> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Felipe Tocchetto > Sent: Friday, July 28, 2006 8:48 AM > To: Marc Powell; Nagios Users Mailinglist > Subject: Re: [Nagios-users] not receiving the nagios notifications > > Hi Marc > > I changed the command in the misccomands.cfg to the one you suggest, > it creates the file, and here is the output. > > I supress some of my host and IP information. > > bash-3.00# more /tmp/host-notify > > /usr/bin/printf "%b" "***** Nagios ***** > > Notification Type: PROBLEM > Host: host.xx-xx.xx.x > State: DOWN > Address: 200.000.00.00 > Info: CRITICAL - Plugin timed out after 10 seconds > > Date/Time: Fri Jul 28 10:27:14 BRT 2006 > " | /usr/bin/mail -s "Host DOWN alert for host.xx-xx.xx.x!" > [EMAIL PROTECTED] > > Information about my OS: > > SunOS 5.10 Generic_118844-26 i86pc i386 i86pc > > I notice somethig: > > bash-3.00# printf TEST123 | mail -s "test mail to felipe" > [EMAIL PROTECTED] > > Without the "!" in the end of the subject it was sent with no problems
Yup. I suspected that might be an issue. You can remove the '!' or use ''s around the subject to prevent the interpretation of the ! like -- .... | /usr/bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTNAME$!' $CONTACTEMAIL$' -- Marc ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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