check_users plugin problem [Solved]

Sil <Spam> smog1 at free.fr
Fri Mar 23 16:09:25 CET 2007


I think I solved the problem.
In my tests I've try the plugin in a user shell, a sudo shel and a root 
shell (su - )
But when I restart a service I use sudo.
$ sudo /etc/init.d/nagios restart

So I try to restart Nagios service in a root shell :
$ su -
pw
# /etc/init.d/nagios restart

And now it works, the own difference is the answer text is now in 
English !!! Not important.
Take care at the plugin answer :
maugain at sarge:~$ /usr/lib/nagios/plugins/check_users -w3 -c10

UTILISATEURS OK - 1 utilisateurs actuellement connectés sur |users=1;3;10;0

me at sarge:~$ su -
Password:

sarge:~# /usr/lib/nagios/plugins/check_users -w3 -c10
USERS WARNING - 4 users currently logged in |users=4;3;10;0


Thanks for your help.
Sil

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list