hey friends,<br>
<br>
 I am using Nagions 2.0b on Fedora Core 3.I have configured
check_users to see how many users are currently login into the system.<br>
<br>
define command{<br>
    command_name    check_local_users<br>
    command_line    $USER1$/check_users -w 15 -c 10<br>
    }<br>
<br>
 Through the url <a href="http://localhost/nagios">http://localhost/nagios</a><br>
<br>
<table border="0">
<tbody><tr><td class="dataVar">Current Status:</td><td class="dataVal"><div class="serviceOK">  OK    </div></td></tr>
<tr><td class="dataVar">Status Information:</td><td class="dataVal">USERS OK - 0 users currently logged in</td></tr>
<tr><td class="dataVar">Performance Data:</td><td class="dataVal">users=0;15;10;0</td></tr>
<tr><td class="dataVar">Current Attempt:</td><td class="dataVal">1/5</td></tr>
<tr><td class="dataVar">State Type:</td><td class="dataVal">HARD</td></tr>
<tr><td class="dataVar">Last Check Type:</td><td class="dataVal">ACTIVE</td></tr>
<tr><td class="dataVar">Last Check Time:</td><td class="dataVal">11-10-2005 10:40:11</td></tr>
<tr><td class="dataVar">Status Data Age:</td><td class="dataVal"> 0d  0h  1m 17s</td></tr>
<tr><td class="dataVar">Next Scheduled Active Check:  </td><td class="dataVal">11-10-2005 10:45:11</td></tr>
<tr><td class="dataVar">Latency:</td><td class="dataVal">0.000 seconds</td></tr>
<tr><td class="dataVar">Check Duration:</td><td class="dataVal">0.005 seconds</td></tr>
<tr><td class="dataVar">Last State Change:</td><td class="dataVal">11-09-2005 16:39:17</td></tr>
<tr><td class="dataVar">Current State Duration:</td><td class="dataVal"> 0d 18h  2m 11s</td></tr>
<tr><td class="dataVar">Last Service Notification:</td><td class="dataVal">N/A</td></tr>
<tr><td class="dataVar">Current Notification Number:</td><td class="dataVal">0</td></tr>
<tr><td class="dataVar">Is This Service Flapping?</td><td class="dataVal">N/A</td></tr>
<tr><td class="dataVar">Percent State Change:</td><td class="dataVal">N/A</td></tr>
<tr><td class="dataVar">In Scheduled Downtime?</td><td class="dataVal"><div class="downtimeINACTIVE">  NO  </div></td></tr>
<tr><td class="dataVar">Last Update:</td><td class="dataVal">11-10-2005 10:41:14</td></tr>
</tbody>
</table>








<table border="0">
<tbody><tr><td class="dataVar">Active Checks:</td><td class="dataVal"><div class="checksENABLED">  ENABLED  </div></td></tr>
<tr><td class="dataVar">Passive Checks:</td><td class="dataVal"><div class="checksENABLED">  ENABLED  </div></td></tr>
<tr><td class="dataVar">Obsessing:</td><td class="dataVal"><div class="checksENABLED">  ENABLED  </div></td></tr>
<tr><td class="dataVar">Notifications:</td><td class="dataVal"><div class="notificationsENABLED">  ENABLED  </div></td></tr>
<tr><td class="dataVar">Event Handler:</td><td class="dataVal"><div class="eventhandlersENABLED">  ENABLED  </div></td></tr>
<tr><td class="dataVar">Flap Detection:</td><td class="dataVal"><div class="flapdetectionENABLED">  ENABLED  </div></td></tr></tbody>
</table>
<br>
<br>
But If I run the check_users from command line it shows there are users<br>
<br>
./check_users -w 10 -c 15<br>
USERS OK - 5 users currently logged in |users=5;10;15;0<br>
<br>
in services.cfg I have added these lines for check_users service<br>
<br>
define service{<br>
    host_name        cluster1<br>
    service_description    localuserload<br>
    check_command        check_local_users<br>
    max_check_attempts    5<br>
    normal_check_interval    5<br>
    retry_check_interval    3<br>
    check_period        nonworkhours<br>
    notification_interval    30<br>
    notification_period    nonworkhours<br>
    notification_options    w,c,r<br>
    contact_groups        linux-admins<br>
    }<br>
<br>
Please let me know if you need any further inputs.<br>
<br>
Can you guide me what wrong I am doing ?<br>
<br>
Thanks & Regards<br>
<br>
Ankush Grover<br>
<br>
<br>