> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Robert Dodier > Sent: Tuesday, March 25, 2008 1:26 PM > To: [email protected] > Subject: [Nagios-users] Nagios fails pre-launch verification step;"Unexpected > token or statement" in command.cfg > > Hello, > > I have installed Nagios 3.0 by building RPM's from the source code tarballs. > The host system is CentOS 4. >
> command[notify-by-email]=/bin/printf "$OUTPUT$" | /bin/mail -s > '$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$' $CONTACTEMAIL$ > > What's wrong with this? What can I do at this point to make Nagios happy? This is either old Netsaint command syntax or NRPE syntax but definitely not Nagios syntax. Nagios doesn't understand this. See http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#command or the sample config files distributed with nagios. Also note that the $OUTPUT$ macro is not valid either. You're probably looking for $HOSTOUTPUT$ or $SERVICEOUTPUT$ (http://nagios.sourceforge.net/docs/3_0/macros.html). -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list [email protected] 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
