Re: host notifications not sent properly
amol sapkal <[email protected]> Mon, 6 Jan 2003 23:30:23 -0800 (PST)
| Newsgroups | gmane.network.netsaint.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Sir, > command[host-notify-by-email]=/usr/bin/printf '***** > NetSaint > *****\n\nNotification Type: > $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: > $OUTPUT$\n\nDate/Time: > $DATETIME$\n' | /bin/mail -s 'Host $HOSTSTATE$ alert > for $HOSTNAME$!' > $CONTACTEMAIL$ > > command[notify-by-email]=/usr/bin/printf '***** > NetSaint > *****\n\nNotification Type: > $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: > $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: > $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | > /bin/mail -s '** $NOTIFICATIONTYPE$ alert - > $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$ **' $CONTACTEMAIL$ > > contact[netsaint]=Site > Admin;24x7;24x7;1;1;1;1;1;1;notify-by-email;host-notify-by-email;ab@company. > net; This seems fine. I think you need to check on the hostgroup configs. Eg: X is a host on your n/w. Y is the hostgroup defined. Then, please check that X has been associated with Y and that, Y has been associated with the contactgroup "netsaint". (Please note that, a contact and contact group can have the same name, it works!) where, contact "netsaint" is defined as > contact[netsaint]=Site > Admin;24x7;24x7;1;1;1;1;1;1;notify-by-email;host-notify-by-email;ab@company. > net; For all above refer the config documentation at http://www.netsaint.org/docs/0_0_7/confighost.html Warm Regds, Amol Sapkal GTL Ltd., Mumbai __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com