<br clear="all"><br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 4:46 PM, Zach La Celle <span dir="ltr"><<a href="mailto:lacelle@roboticresearch.com">lacelle@roboticresearch.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

The error, when I attempt to run it from the monitoring machine, is:<br>
NRPE: Command 'blah' not defined<br>
<br>
The command IS defined in /etc/nagios/nrpe.cfg on the target machine.<br>
The command is ALSO defined in /etc/nagios-plugins/config/blah.cfg on<br>
the target machine.<br></blockquote><div><br> Is '/etc/nagios-plugins/config/blah.cfg' linked in your Nrpe commands config?<br><br>Can you run the command via check_nrpe on the local (target) machine?<br><br>Only time I saw a command not getting picked up by nrpe was when I had started nrpe twice!<br>

and as such was only restarting the second one which had not bound to the interface of course.<br><br>Ritchie<br> --<br><-- <a href="http://23.me.uk/2" target="_blank">http://23.me.uk/2</a> --><br><--Time flies like an arrow; fruit flies like a banana.  --><br>

<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I restarted nagios-nrpe-server after adding the command.<br>
<br>
I'm calling it from my monitoring server with<br>
/usr/lib/nagios/plugins/check_nrpe -H <hostaddress> -c blah<br>
<br>
When I run the perl script myself, it works fine.<br>
<br>
Any ideas?  All of my other checks for this host work.<br>
<br>
------------------------------------------------------------------------------<br>
Systems Optimization Self Assessment<br>
Improve efficiency and utilization of IT resources. Drive out cost and<br>
improve service delivery. Take 5 minutes to use this Systems Optimization<br>
Self Assessment. <a href="http://www.accelacomm.com/jaw/sdnl/114/51450054/" target="_blank">http://www.accelacomm.com/jaw/sdnl/114/51450054/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>