Monitoring Nagios server with NRPE

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Monitoring Nagios server with NRPE

Post 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?
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring Nagios server with NRPE

Post 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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Monitoring Nagios server with NRPE

Post 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
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring Nagios server with NRPE

Post by slansing »

I'd read through this:

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

It is valuable information for any linux admin.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Monitoring Nagios server with NRPE

Post by WillemDH »

Cleaning up my open threads. Got the cpu load , open files etc running nicely. Thread can be closesd. Tx.
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring Nagios server with NRPE

Post by tmcdonald »

And thank you for going through your threads!
Former Nagios employee
Locked