[Nagiosplug-help] check_users

Andreas Ericsson ae at op5.se
Thu Oct 14 01:13:24 CEST 2004


martinus.nel at scarceskills.com wrote:
> Harper,
> 
> Here is what happens when I am logged in with 3 or 4 users:
> 
> ---
> 
> # w
>  08:32:00  up 9 days, 23:00,  3 users,  load average: 0.30, 0.15, 0.10
> USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
> root     pts/0    xxxxxxxxxxxxx    Tue11am  8.00s  5.03s  3.47s  -bash
> root     pts/1    xxxxxxxxxxxxx    Tue 1pm 16:11m  1.18s  0.83s  ssh 
> root     pts/2    xxxxxxxxxxxxx    Wed 2pm  0.00s  1.49s  1.47s  -bash
> # /usr/lib/nagios/plugins/check_users -w 3 -c 4
> USERS WARNING - 3 users currently logged in
> # /usr/lib/nagios/plugins/check_users -w 4 -c 5
> USERS OK - 3 users currently logged in
> 
> 
> ---
> So, it's not 'more than' ?
> 

No. Adjust accordingly, or supply a patch to fix the help output. It 
shouldn't be very difficult. Please don't alter the logic. A lot of 
people have set their threshold according to actual functionality, so 
fixing the text is quite obviously the preferred approach.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Help mailing list