Re: Netsaint / Sendmail

"Tom DE BLENDE" <[email protected]> Thu, 09 Jan 2003 08:46:52 +0100
Newsgroups gmane.network.netsaint.user
Organization DHL GCC
Message-ID <[email protected]>
command[notify-by-email]=/bin/echo -e '***** NetSaint 0.0.7
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$
\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional
Info:\n\n$OUTPUT$' | REPLY
[email protected] /usr/bin/mutt -s '** $NOTIFICATIONTYPE$ alert
- $HOSTALIAS$: $SERVICEDESC$ is $SERVICESTATE$ **' $CONTACTEMA
IL$
command[host-notify-by-email]=/bin/echo -e "***** NetSaint 0.0.7
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nS
tate: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$OUTPUT$\n\nDate/Time: $DATETIME$\n" | [email protected]
/usr/bin/mutt -
s 'Host $HOSTSTATE$ alert for $HOSTNAME$!' $CONTACTEMAIL$



Stanley Hopcroft wrote:
> 
> Dear Sir,
> 
> On Wed, Jan 08, 2003 at 10:50:57AM -0500, [email protected] wrote:
> > Can someone send me the command section of their hosts.cfg file that has
> > email alerts fuctional. I would like to compare it to my commands and see
> > if I may have something wrong or missing.
> >
> 
> Netsaint 0.0.7 (although the NS version shouldn't matter)
> 
> command[notify-by-email]=/usr/bin/printf '%s\n%s\n%s\n%s\n%s' '*****
> NetSaint 0.0.7 ***** $SERVICESTATE$ alert/notification' 'Date/Time:
> $DATETIME$', 'Service: $SERVICEDESC
> $' 'Host: $HOSTNAME$ Address: $HOSTADDRESS$', 'Additional Info:
> $OUTPUT$' | /usr/bin/mail -s '** $NOTIFICATIONTYPE$ alert -
> $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **' $
> CONTACTEMAIL$
> 
> command[host-notify-by-email]=/usr/bin/printf '%s\n%s\n%s' '*****
> NetSaint 0.0.7 ***** Host $HOSTNAME$/$HOSTADDRESS$ is $HOSTSTATE$!'
> 'Date/Time: $DATETIME$' ,'Info: $OUTPU
> T$' | /usr/bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTNAME$!'
> $CONTACTEMAIL$
> 
> 
> > Thank you,
> >
> > Mike
> 
> Yours sincerely.
> 
> --
> ------------------------------------------------------------------------
> Stanley Hopcroft
> ------------------------------------------------------------------------
> 
> '...No man is an island, entire of itself; every man is a piece of the
> continent, a part of the main. If a clod be washed away by the sea,
> Europe is the less, as well as if a promontory were, as well as if a
> manor of thy friend's or of thine own were. Any man's death diminishes
> me, because I am involved in mankind; and therefore never send to know
> for whom the bell tolls; it tolls for thee...'
> 
> from Meditation 17, J Donne.
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Netsaint-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/netsaint-users


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com