Is check_users working properly

ankush grover grover1711 at gmail.com
Thu Nov 10 06:08:11 CET 2005


hey friends,

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.

define command{
command_name check_local_users
command_line $USER1$/check_users -w 15 -c 10
}

Through the url http://localhost/nagios

 Current Status: OK
Status Information:USERS OK - 0 users currently logged in Performance Data:
users=0;15;10;0 Current Attempt:1/5 State Type:HARD Last Check Type:ACTIVE Last
Check Time:11-10-2005 10:40:11 Status Data Age: 0d 0h 1m 17s Next Scheduled
Active Check: 11-10-2005 10:45:11 Latency:0.000 seconds Check
Duration:0.005seconds Last
State Change:11-09-2005 16:39:17 Current State Duration: 0d 18h 2m 11s Last
Service Notification:N/A Current Notification Number:0 Is This Service
Flapping?N/A Percent State Change:N/A In Scheduled Downtime? NO
Last Update:11-10-2005 10:41:14  Active Checks: ENABLED
Passive Checks: ENABLED
Obsessing: ENABLED
Notifications: ENABLED
Event Handler: ENABLED
Flap Detection: ENABLED


But If I run the check_users from command line it shows there are users

./check_users -w 10 -c 15
USERS OK - 5 users currently logged in |users=5;10;15;0

in services.cfg I have added these lines for check_users service

define service{
host_name cluster1
service_description localuserload
check_command check_local_users
max_check_attempts 5
normal_check_interval 5
retry_check_interval 3
check_period nonworkhours
notification_interval 30
notification_period nonworkhours
notification_options w,c,r
contact_groups linux-admins
}

Please let me know if you need any further inputs.

Can you guide me what wrong I am doing ?

Thanks & Regards

Ankush Grover
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051110/32244953/attachment.html>


More information about the Users mailing list