[Nagios-users] Additiona Info don't work with Win Server!
Thibault can you help me? This's my checkcommands.cfg: define command{ command_name notify-by-email command_line /usr/bin/printf %b * Nagios v2.0b4 *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\n | /bin/mail -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ } define command{ command_name host-notify-by-email command_line /usr/bin/printf %b * Nagios v2.0b4 *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nDate/Time: $LONGDATETIME$\nInfo: $HOSTOUTPUT$\n\n | /bin/mail -s Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$ } With Linux/Unix Servers work fine. I receive email with additional info. With Windows Servers don't work! Why? What can I do? Ths very much! Sei stanco di girare a vuoto? Con il nuovo motore di ricerca Interfree trovi di tutto. Vieni a trovarci: http://search.interfree.it/ Lo Staff di Interfree --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Additional Info in email notification
Hi, there I would to include additional info into email notification! What can I do? This is the email that nagios sends me. Nagios * Notification Type: PROBLEM Service: Ping Host: myhost Address: IP State: CRITICAL Date/Time: Fri Feb 10 11:14:20 CET 2006 Additional Info: $ Ths Sei stanco di girare a vuoto? Con il nuovo motore di ricerca Interfree trovi di tutto. Vieni a trovarci: http://search.interfree.it/ Lo Staff di Interfree --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Additional Info in email notification
I have already tried this but I don't to receive Additional Info. What can I do now? Ths Hi, try to put something like this in your miscommands.cfg file that should contact the email notification command : define command{ command_namehost-notify-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nAdditional Info: $OUTPUT$\n\nDate/Time: $DATETIME$\n | /usr/bin/sendmail Host $HOSTSTATE$ alert for $HOSTNAME$! $CONTACTEMAIL$ } 10 Feb 2006 10:44:26 -, [EMAIL PROTECTED] [EMAIL PROTECTED]: Sei stanco di girare a vuoto? Con il nuovo motore di ricerca Interfree trovi di tutto. Vieni a trovarci: http://search.interfree.it/ Lo Staff di Interfree --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Re: Additional Info in email notification
You don't have access to the $OUTPUT$ variable in the host notification (I don't even know if it actually exists). You should use $HOSTOUTPUT$ instead (and $SERVICEOUTPUT$ for your service-notify-by-email command) See http://nagios.sourceforge.net/docs/2_0/macros.html Now! It's working! But I have a problem with the Windows Servers! I recieve this email... Nagios v2.0b4 * Notification Type: PROBLEM Service: Used Disk D: Host: Windows Server 2003 Address: IP State: CRITICAL Date/Time: Fri Feb 10 16:31:38 CET 2006 Additional Info: D: - I see only D: I want to see the message like in the browser: i.e. D:\ - total: 63.80 Gb - used: 61.72 Gb (97%) - free 2.08 Gb (3%) Is this pissible? Ths! Sei stanco di girare a vuoto? Con il nuovo motore di ricerca Interfree trovi di tutto. Vieni a trovarci: http://search.interfree.it/ Lo Staff di Interfree --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null