check_users plugin problem [Solved]

Dinçer Kavraal dkavraal at yahoo.com
Fri Mar 23 17:15:56 CET 2007


It might be using default .po file (translation - language). You can set
your default language to solve that English problem.
But there is a problem in here, you ought not to run nagios as root. There
can occur a security flaw.
Try to run only "check_users" as root or give related permission to the
nagios user.

Dinçer


2007/3/23, Sil <Spam> <smog1 at free.fr>:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070323/1c99f9e7/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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