Nagios3-CVS Patch - Small Bug in config.c with temp_path not available

Hendrik Baecker andurin at process-zero.de
Sun Mar 25 10:56:38 CEST 2007


Hi List,
hi Ethan,

one member of the German Nagios Portal mentioned Problems resulting in
"No Output returns from Plugin" if the temp_path directive direct to a
non existing directory.

In my opinion it would be the best to check the temp_path while config
parsing, cause the temp_path is the single point of getting outputs from
the plugins.

I wrote a small patch to check if nagios would be able to open the
directory, but until now not to check if it would be writeable by the
nagios user. AFAIK there should be one or two more variables like the
structure stat to check the uid/gid of the directory.

Please have a look at the patch.

Maybe it would be better to test the opendir() after checking for the
trailing "/" but I'm not sure.

Kind regards,

Hendrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.c.-temp_path_checking.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070325/e7d8547b/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list