[Nagiosplug-help] Nagios 2 writes wrong number of files
Olivier 'Babar' Raginel
nagios at babar.us
Tue Feb 24 09:16:22 CET 2009
On Tue, Feb 24, 2009 at 09:12:22AM +0100, Petr Hudeček wrote:
> I have problem with my script, here it is:
> soubory=`find /home/yeti/Maildir/ -follow -type f | wc -l`
> When I run it manually, it writes concrete number of files. But when
> Nagios runs it, there is always written 0. Could anyone help me?
Have you tried running your script as the nagios user?
Most probably, the user nagios doesn't have permission to go to your
Maildir/, which is probably something sane enough to do (you don't want
the world to read your mail, do you?)
--
Babar.
More information about the Help
mailing list