I was using NagiosQL. I scrapped my entire configuration and instead imported the example, modified, and now I am getting expected behavior.
On 20 January 2012 15:03, Marc Lucke <m...@onereason.com.au> wrote: > Hi all, > > I'm at my whit's end with this & am hoping one of you will have seen > this before. I've googled for it and come up with close, but not the > answer: > > debug log shows: > > ----- > [1327031437.121800] [2048.0] [pid=17470] WARNING: An error occurred > processing macro 'CONTACTEMAIL'! > [1327031437.121807] [2048.1] [pid=17470] Done. Final output: > '/usr/bin/printf "%b" "***** Nagios *****\n\nSent to: > $CONTACTEMAIL$\n\nNotification Type: \nHost: vpsau01\nState: > UP\nAddress: localhost\nInfo: PING OK - Packet loss = 0%, RTA = 0.05 > ms\n\nDate/Time: Fri Jan 20 14:50:37 EST 2012\n" | /usr/bin/mail -s > "** Host Alert: vpsau01 is UP **" $CONTACTEMAIL$' > ----- > > The $CONTACTEMAIL$ is not being expanded whilst everything else is. > > version: Nagios Core 3.3.1 > dist: debian squeeze > > config: contacts.cfg: > > define contact { > contact_name nagiosadmin > alias Nagios Admin > contactgroups null > host_notifications_enabled 1 > service_notifications_enabled 1 > host_notification_period 24x7 > service_notification_period 24x7 > host_notification_options d,u,r,f,s > service_notification_options w,u,c,r,f,s > host_notification_commands notify-host-by-email > service_notification_commands notify-service-by-email > can_submit_commands 1 > retain_status_information 1 > retain_nonstatus_information 1 > email my@email.address > register 1 > } > > Any thoughts appreciated. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ 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