NRPE: Command 'CheckDriveSize' not defined

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nky1986
Posts: 21
Joined: Fri Oct 19, 2012 6:18 am

NRPE: Command 'CheckDriveSize' not defined

Post by nky1986 »

Hi,
I have setup nagios xi 2012 r.1.

i have installed nrpe agent on a centos machine.

when i am trying to monitor that centos machine then i am getting error:
NRPE: Command 'CheckDriveSize' not defined
NRPE: Command 'checkCPU' not defined
NRPE: Command 'checkMem' not defined

i have checked nrpe command from command line:

/usr/local/nagios/libexec/check_nrpe -H 172.30.54.29 -p 5666 -c CheckDriveSize -a CheckAllOthers MinWarn=20G MinCrit=10G Volume=System Reserved

then also same error
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE: Command 'CheckDriveSize' not defined

Post by scottwilkerson »

on the client machine open the NSC.ini and uncomment these lines

Code: Select all

FileLogger.dll
CheckSystem.dll
CheckDisk.dll
CheckEventLog.dll
CheckHelpers.dll
CheckExternalScripts.dll
Then restart the NSClient service
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nky1986
Posts: 21
Joined: Fri Oct 19, 2012 6:18 am

Re: NRPE: Command 'CheckDriveSize' not defined

Post by nky1986 »

where is this file in centos machine
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE: Command 'CheckDriveSize' not defined

Post by slansing »

Use the following:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -c check_disk -a '-w 20% -c 10%'
the xxx's being filled by the target IP address.

checkDriveSize is the alias for a NSClient++ check for windows NRPE monitoring, those will not be the same for a linux agent.

For memory:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -c check_mem -a '-w 20 -c 10'
Etc..
nky1986
Posts: 21
Joined: Fri Oct 19, 2012 6:18 am

Re: NRPE: Command 'CheckDriveSize' not defined

Post by nky1986 »

to check load:

/usr/local/nagios/libexec/check_nrpe -H Host-IP -c check_load -a '-w 15 -c 30'

could you tell me what is this load and what are these numbers
nky1986
Posts: 21
Joined: Fri Oct 19, 2012 6:18 am

Re: NRPE: Command 'CheckDriveSize' not defined

Post by nky1986 »

could anybody let me know, how to monitor cpu using nrpe on linux client
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE: Command 'CheckDriveSize' not defined

Post by scottwilkerson »

nky1986 wrote:to check load:

/usr/local/nagios/libexec/check_nrpe -H Host-IP -c check_load -a '-w 15 -c 30'

could you tell me what is this load and what are these numbers
These are the machine load, over the last 1, 5, 15 minutes
nky1986 wrote:could anybody let me know, how to monitor cpu using nrpe on linux client
Use the previous plugin.

You can also use check_cpu_stats to monitor CPU load and warn on high IO Wait %
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jhobbins
Posts: 33
Joined: Fri Oct 05, 2012 8:24 pm

Re: NRPE: Command 'CheckDriveSize' not defined

Post by jhobbins »

G'day Guys,

I had the same problem when:

1. Ran "Monitoring Wizard"

2. Selected "Monitor a remote Linux/Unix server using NRPE."

if however I:

1. Ran "Monitoring Wizard"

2. Selected "Monitor a remote Linux server".

I didn't have the problem.

Regards, John Hobbins
Australia
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NRPE: Command 'CheckDriveSize' not defined

Post by mguthrie »

Correct. There is a generic linux wizard, which should be used for new monitoring situations. The NRPE wizard is in place for people with existing Nagios Core installations and are migrating over to XI.
Locked