Nice! That was it, just chown nagios.nagios /etc/nagios/resources.cfg
like you said and it works now. Just to make it clear I wasn't using
the nagios script for restarts but just doing 'kill -1'. <br>
<br>
Thanks a lot for the help,<br>
<br>
<br><div><span class="gmail_quote">On 11/29/05, <b class="gmail_sendername">Arno Lehmann</b> <<a href="mailto:al@its-lehmann.de">al@its-lehmann.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>On 29.11.2005 01:46, Radkon wrote:<br><br>> I just got to playing with 2.0b4 and the first thing I ran into was the 127<br>> error, the resources.cfg file by default was pointing to:<br>> $USER1$=/usr/lib/nagios/plugins
<br>><br>> but the plugins install into: $USER1$=/usr/local/nagios/libexec/<br>><br>> Not a big deal it works now, the problem is when I restart the nagios<br>> process all the plugins fail again, in order to keep it running I have to
<br>> kill -9 the process and then restart it.<br>><br>> Here is a log message from after the restart: nagios:<br>> Warning: Return code of 127 for check of service 'Root / Free Space' on host<br>> '<a href="http://host.network.com">
host.network.com</a>' was out of bounds. Make sure the plugin you're trying to<br>> run actually exists.<br>><br>> The system is Fedora Core 4, with nagios 2.0b4.<br><br>I've experienced this problem, too.<br>Here, it was a permissions issue. The file with the "private" macros was
<br>0600 root:root, but should have been 0600 nagios:nagios. I assume that<br>nagios reads this file as root at startup, but at a reload it's running<br>as user nagios... The solution was, obviously, a simple chown nagios.
<br>/etc/nagios/resource.cfg for me.<br><br>Hope that helps,<br><br>Arno<br><br>> This was the only way to see if anyone else was seeing this so I apologize<br>> if this isnt the right place to send to.<br>><br>> Thanks,
<br>><br><br>--<br>IT-Service
Lehmann <a href="mailto:al@its-lehmann.de">al@its-lehmann.de</a><br>Arno
Lehmann <a href="http://www.its-lehmann.de">http://www.its-lehmann.de</a><br></blockquote></div><br>