Thanks for the reply Peter, however that isn't what the problem is in my case. The /var/spool/sms/outgoing directory on that server is in fact world-writable. And as I said I can run it from the command line successfully while logged in as the nagios user, which I wouldn't be able to do if the permissions were not right.
Keep in mind that SMS Tools is running on a different server, and I'm using SCP to copy the file to that server. Any other ideas? Thanks anyway. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hallam Sent: Friday, 30 November 2007 2:33 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] SMS notification commands Having just solved this problem this week: chmod g+w /var/spool/sms/outgoing chgrp nagios /var/spool/sms/outgoing This should enable nagios to write to the directory using your script. Regards, Peter. ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ 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