Page 2 of 2
Re: Reporting correct partition free space of linux OS
Posted: Tue Nov 20, 2012 5:22 pm
by AWS
scottwilkerson wrote:BanditBBS is correct.
Have you installed an agent on the machine you are trying to monitor?
Yes, there is an agent/daemon running.
Re: Reporting correct partition free space of linux OS
Posted: Tue Nov 20, 2012 5:37 pm
by scottwilkerson
Can you send the nrpe.cfg from the remote machine
Re: Reporting correct partition free space of linux OS
Posted: Tue Nov 20, 2012 5:52 pm
by AWS
Code: Select all
log_facility=daemon
pid_file=/var/run/nrpe2.pid
server_port=5666
server_address=10.1.1.254
nrpe_user=nagios
nrpe_group=nagios
allowed_hosts=10.1.1.4
dont_blame_nrpe=0
debug=0
command_timeout=60
connection_timeout=300
command[check_users]=/usr/local/libexec/nagios/check_users -w 3 -c 2
command[check_load]=/usr/local/libexec/nagios/check_load -w 15,10,5 -c 30,25,20
command[check_root]=/usr/local/libexec/nagios/check_disk -w 20 -c 10 /
command[check_var]=/usr/local/libexec/nagios/check_disk -w 20 -c 10 /var
command[check_zombie_procs]=/usr/local/libexec/nagios/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/libexec/nagios/check_procs -w 150 -c 200
command[check_ping]=/usr/local/libexec/nagios/check_ping -w -c
command[check_usr]=/usr/local/libexec/nagios/check_disk -w 20 -c 10 /usr
command[check_http]=/usr/local/libexec/nagios/check_http -w 3 -c 5 -S -p 10443
Re: Reporting correct partition free space of linux OS
Posted: Tue Nov 20, 2012 8:13 pm
by scottwilkerson
So you would call the command from your XI machine like so assuming your were connecting to 10.1.1.254
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 10.1.1.254 -t 30 -c check_var
to check /usr you would use
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 10.1.1.254 -t 30 -c check_usr
the revevent portion of the nrpe config is this part, the command name is between [ and ]
Code: Select all
command[check_users]=/usr/local/libexec/nagios/check_users -w 3 -c 2
command[check_load]=/usr/local/libexec/nagios/check_load -w 15,10,5 -c 30,25,20
command[check_root]=/usr/local/libexec/nagios/check_disk -w 20 -c 10 /
command[check_var]=/usr/local/libexec/nagios/check_disk -w 20 -c 10 /var
command[check_zombie_procs]=/usr/local/libexec/nagios/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/libexec/nagios/check_procs -w 150 -c 200
command[check_ping]=/usr/local/libexec/nagios/check_ping -w -c
command[check_usr]=/usr/local/libexec/nagios/check_disk -w 20 -c 10 /usr
command[check_http]=/usr/local/libexec/nagios/check_http -w 3 -c 5 -S -p 10443
Re: Reporting correct partition free space of linux OS
Posted: Wed Nov 21, 2012 1:22 am
by AWS
Thank you! That's it. You rock.
Have a good Thanksgiving!