Reporting correct partition free space of linux OS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Reporting correct partition free space of linux OS

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Reporting correct partition free space of linux OS

Post by scottwilkerson »

Can you send the nrpe.cfg from the remote machine
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Reporting correct partition free space of linux OS

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Reporting correct partition free space of linux OS

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: Reporting correct partition free space of linux OS

Post by AWS »

Thank you! That's it. You rock.

Have a good Thanksgiving!
Locked