Page 1 of 1

NRPE: Command 'CheckDriveSize' not defined

Posted: Fri Oct 26, 2012 7:02 am
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

Re: NRPE: Command 'CheckDriveSize' not defined

Posted: Fri Oct 26, 2012 7:17 am
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

Re: NRPE: Command 'CheckDriveSize' not defined

Posted: Fri Oct 26, 2012 7:20 am
by nky1986
where is this file in centos machine

Re: NRPE: Command 'CheckDriveSize' not defined

Posted: Fri Oct 26, 2012 9:01 am
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..

Re: NRPE: Command 'CheckDriveSize' not defined

Posted: Sun Oct 28, 2012 11:42 pm
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

Re: NRPE: Command 'CheckDriveSize' not defined

Posted: Sun Oct 28, 2012 11:46 pm
by nky1986
could anybody let me know, how to monitor cpu using nrpe on linux client

Re: NRPE: Command 'CheckDriveSize' not defined

Posted: Mon Oct 29, 2012 9:10 am
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 %

Re: NRPE: Command 'CheckDriveSize' not defined

Posted: Sat Nov 10, 2012 12:09 am
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

Re: NRPE: Command 'CheckDriveSize' not defined

Posted: Mon Nov 12, 2012 10:40 am
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.