Check_Disk, users and load plugin issue


#1

Slowly starting to get the hang of this thing and I’ve got most of my monitoring working correctly.

These two however don’t function properly, I get the exact same results for all devices and they show in yellow:

commands.cfg:

‘check_local_disk’ command definition

define command{
command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}

‘check_local_users’ command definition

define command{
command_name check_local_users
command_line $USER1$/check_users -w $ARG1$ -c $ARG2$
}

services.cfg for each device I have these ones:

check_command check_local_disk!20%!10%!/

check_command check_local_users!20!50

All the above are default settings.

Thx


#2

Kinda sparse on sharing the problem aren’t we? What is the output of those commands? Try this for us.
su - nagios
cd /usr/local/nagios/libexec
./check_users -w 20 -c 50

This is what I get;
[root@tia3407 libexec]# su - nagios
[nagios@tia3407 ~]$ cd /usr/local/nagios/libexec/
[nagios@tia3407 libexec]$ ./check_users -w 20 -c 50
USERS OK - 5 users currently logged in |users=5;20;50;0


#3

I figured it out in the mean time, these things don’t work on remote machines without the NRPE agent running, so I got stuck into that and got it working, cheers!


#4

I figured it out in the mean time, these things don’t work on remote machines without the NRPE agent running, so I got stuck into that and got it working, cheers!


#5

Huh? I’m confused, you stated the commands gave the same output. What output did it give? What did you do to fix it?