While Nagios executes the check, do you see a connection on your Mac ?<br>Is anything written in the syslog on your Mac? <br><br>Something seems to be strange about your output:<br><br>
/usr/lib/nagios/plugins/check_nrpe -H mac.my.domain -c check_users<br>USERS OK - 3 users currently logged in |users=0;5;10;0<br><br>Take a look at the perfdata, it shows 0 users while the output shows 3 users.<br>Is that a copy+paste error or is this the actual result when you launch the check on the command line?<br>
<br><div class="gmail_quote">On Thu, Jan 26, 2012 at 5:37 PM, John Stile <span dir="ltr"><<a href="mailto:john@stilen.com">john@stilen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Recently I tried to setup nrpe monitoring of an osx system by installing<br>
nagios-plugins-1.4.15.tar.gz and nrpe-2.12.tar.gz on osx 10.5, and<br>
locally everything works fine.  This works:<br>
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_users<br>
<br>
  USERS OK - 3 users currently logged in |users=3;5;10;0<br>
<br>
Next I tried to configure my nagios server (debian sarge with packaged<br>
nagios  1.3-cvs), and from the server command line, this works:<br>
/usr/lib/nagios/plugins/check_nrpe -H mac.my.domain -c check_users<br>
<br>
  USERS OK - 3 users currently logged in |users=0;5;10;0<br>
<br>
The problem is adding the monitor to /etc/nagios/services.cfg<br>
<br>
define service{<br>
       use                             generic-service<br>
       host_name                       mac.my.domain<br>
       service_description             Users<br>
       is_volatile                     0<br>
       check_period                    24x7<br>
       max_check_attempts              3<br>
       normal_check_interval           5<br>
       retry_check_interval            1<br>
       contact_groups                  linux-admins<br>
       notification_interval           120<br>
       notification_period             24x7<br>
       notification_options            w,u,c,r<br>
       check_command                   check_nrpe!check_users<br>
       }<br>
<br>
Results in web interface shows:<br>
Status: UNKNOWN<br>
Status Information:     (No output returned from plugin)<br>
<br>
All other nrpe hosts are monitoring well.<br>
I have no other osx nrpe monitored machines as a reference.<br>
<br>
Can anyone offer some ideas (other than upgrade)?<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Keep Your Developer Skills Current with LearnDevNow!<br>
The most comprehensive online learning library for Microsoft developers<br>
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,<br>
Metro Style Apps, more. Free future releases when you subscribe now!<br>
<a href="http://p.sf.net/sfu/learndevnow-d2d" target="_blank">http://p.sf.net/sfu/learndevnow-d2d</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>