Re: Netsaint / Sendmail

Stanley Hopcroft <[email protected]> Thu, 9 Jan 2003 08:43:29 +1100
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
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