Page 2 of 2

Re: Monitoring Nagios server with NRPE

Posted: Fri Oct 04, 2013 5:05 am
by WillemDH
Hi Andy,

Yes indeed, it seems the checks I was looking for are in common.cfg.:

Code: Select all

### GENERIC SERVICES ###
command[check_init_service]=sudo /usr/local/nagios/libexec/check_init_service $$
command[check_services]=/usr/local/nagios/libexec/check_services -p $ARG1$

### MISC SYSTEM METRICS ###
#command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
command[check_load]=/usr/local/nagios/libexec/check_load $ARG1$
command[check_swap]=/usr/local/nagios/libexec/check_swap $ARG1$
command[check_cpu_stats]=/usr/local/nagios/libexec/check_cpu_stats.sh $ARG1$
command[check_mem]=/usr/local/nagios/libexec/custom_check_mem -n $ARG1$

### YUM UPDATES ###
command[check_yum]=/usr/local/nagios/libexec/check_yum
I can't find this common.cfg on the Nagios server. Also like I said before the Nagios server is 2.12 and nrpe on the remote Linux server is 2.14. Is there some way to upgrade this? Is common.cfg something that is installed when installing the nrpe agent?

Re: Monitoring Nagios server with NRPE

Posted: Fri Oct 04, 2013 9:32 am
by slansing
Common.cfg is not actually called by anything explicitly. It is an example file that you can copy commands out of into your own nrpe.cfg if the plugins shown in the command exist. NRPE will be updated on the nagios server when it is pushed out in one of our update scripts. NRPE 2.14 is fairly recent and we only allow changes like this to pass down to customers once they are thoroughly tested.

Re: Monitoring Nagios server with NRPE

Posted: Mon Oct 07, 2013 9:11 am
by WillemDH
Hello,

Ok I'm going forward to what I want:
I copied the following scripts from the remote Linux server to the Nagios server and made a command for them to run locally:
check_cpu_stats.sh
check_open_files.pl

Now I get some results similar to our other monitored Linux servers. :)

Can someone explain me the difference between the load and the cpu stats on a Linux monitored server?

Tx

Re: Monitoring Nagios server with NRPE

Posted: Mon Oct 07, 2013 9:27 am
by slansing
I'd read through this:

http://blog.scoutapp.com/articles/2009/ ... d-averages

It is valuable information for any linux admin.

Re: Monitoring Nagios server with NRPE

Posted: Tue May 27, 2014 2:56 pm
by WillemDH
Cleaning up my open threads. Got the cpu load , open files etc running nicely. Thread can be closesd. Tx.

Re: Monitoring Nagios server with NRPE

Posted: Tue May 27, 2014 2:58 pm
by tmcdonald
And thank you for going through your threads!