Hello, according to 'Standard Macros in Nagios' page[1], LONGHOSTOUTPUT and HOSTPERFDATA can be used in notify-host-by-email command, LONGSERVICEOUTPUT and SERVICEPERFDATA can be used in notify-service-by-email command.
But in my notify email, these macros expand to empty. I use debian 5.0: % dpkg -l | grep nagios [09-05-18 13:52:17] ii nagios-images 0.4 Collection of images and icons for the nagio ii nagios-nrpe-plugin 2.12-1 Nagios Remote Plugin Executor Plugin ii nagios-nrpe-server 2.12-1 Nagios Remote Plugin Executor Server ii nagios-plugins 1.4.12-5 Plugins for the nagios network monitoring an ii nagios-plugins-basic 1.4.12-5 Plugins for the nagios network monitoring an ii nagios-plugins-standard 1.4.12-5 Plugins for the nagios network monitoring an ii nagios3 3.0.6-3 A host/service/network monitoring and manage ii nagios3-common 3.0.6-3 support files for nagios3 ii nagios3-doc 3.0.6-3 documentation for nagios3 Here is command definition: # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nSt ate: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nDate/Time: $LONGDATETIME$\n\nHost output: $LONGHOSTOUTPUT$\nHos t perf data: $HOSTPERFDATA$\n" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTAT E$" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICED ESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nDate/Time: $LONGDATETIME$\n\nServ ice Output:\n$LONGSERVICEOUTPUT$\n\nService perf data:\n$SERVICEPERFDATA$\n" | /usr/bin/mail -s "$NOTIFIC ATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTEMAIL$ } http://nagios.sourceforge.net/docs/3_0/macrolist.html Thanks for some help, -- Dongsheng Song ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ 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