> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Drew Myers > Sent: Thursday, April 26, 2007 12:43 PM > To: [email protected] > Subject: [Nagios-users] Nagios, REL, and Postfix > > > Ok, I admit it, I'm a bonehead. > > I migrated from sendmail to postfix. I have several passive checks that > run by way of REL. I did not anticipate breaking this functionality, > but I have. > > In the maillog, I have the following entries: > > Command died with status 13: "/usr/local/nagios/bin/smtpreceiver.pl". > Command output: Can't open /var/log/nagios/rw/nagios.cmd for writing: > Permission denied ) > > The permissions on the pipe are: > > prw-rw---- 1 nagios nagios 0 Apr 26 12:41 /var/log/nagios/rw/nagios.cmd
The user that smtpreceiver.pl runs as needs to be added to the nagios group, based on the permissions above. While specifically documenting how to submit external commands from a web server, the documentation at http://nagios.sourceforge.net/docs/2_0/commandfile.html covers the concepts you need to understand to submit them from a script. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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
