HI Assaf.
Thanks for replying to my email
this is the output of the command
$ ./check_users -w 5 -c 10
USERS OK - 1 users currently logged in |users=1;5;10;0
On Sep 22, 2010, at 2:19 AM, Assaf Flatto wrote:
> On 22/09/10 02:09, Jonathan Wiggins wrote:
>>
>> # The following examples use hardcoded command arguments...
>>
>> command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
>> command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c
>> 30,25,20
>> command[check_hda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
>> /dev/hda1
>> command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10
>> -s Z
>> command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c
>> 200
>>
>>
>> # The following examples allow user-supplied arguments and can
>> # only be used if the NRPE daemon was compiled with support for
>> # command arguments *AND* the dont_blame_nrpe directive in this
>> # config file is set to '1'. This poses a potential security risk, so
>> # make sure you read the SECURITY file before doing this.
>>
>> #command[check_users]=/usr/lib64/nagios/plugins/check_users -w $ARG1$ -c
>> $ARG2$
>> #command[check_load]=/usr/lib64/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
>> #command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c
>> $ARG2$ -p $ARG3$
>> #command[check_procs]=/usr/lib64/nagios/plugins/check_procs -w $ARG1$ -c
>> $ARG2$ -s $ARG3$
>>
>>
>>
>> that's the entry in the .cfg file, if I run this for example, you can see it
>> does give me output:
>> /usr/lib64/nagios/plugins/check_nrpe -H localhost
>> NRPE v2.12
>>
>> but other than that, I just run the command as below?
>> /usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_users (I'm
>> confused on this part - does this particular "check_users" need this at the
>> end? " -w 5 -c 10" when that's done, I get Unable To read output )
>>
>> i've checked permissions also on the /usr/lib64/nagios/plugins/* directories
>> and only the ../nagios/ directory has nagios.nagios as the owner, the rest
>> have root.root -- i've seen permissions listed in other forums as the
>> possible culprit, but my permissions seem right? I've only got "nagios"
>> listed as the nrpe_user and the nrpe_group in the nrpe.cfg file -- do I
>> need to add "nrpe" and/or "root" to this?
>>
>
> when you try running one of the command localy on the remote machine what is
> the output ?
>
> "/usr/lib64/nagios/plugins/check_users -w 5 -c 10 " - what does this command
> return ?
>
> Assaf
>
>
> --
> Never,Ever Cut A Deal With a Dragon
>
>
> Next year I will be doing the London to Paris bike ride to
> raise money for the DogTrust (www.dogstrust.co.uk) .
> Please Sponsor me at http://www.justgiving.com/Assaf-Flatto
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________
> Nagios-users mailing list
> Nagios-users@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
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users@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