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
NRPE: Command 'CheckDriveSize' not defined
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRPE: Command 'CheckDriveSize' not defined
on the client machine open the NSC.ini and uncomment these lines
Then restart the NSClient service
Code: Select all
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
CheckEventLog.dll
CheckHelpers.dll
CheckExternalScripts.dllRe: NRPE: Command 'CheckDriveSize' not defined
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
Use the following:
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:
Etc..
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -c check_disk -a '-w 20% -c 10%'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'Re: NRPE: Command 'CheckDriveSize' not defined
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
/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
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
These are the machine load, over the last 1, 5, 15 minutesnky1986 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
Use the previous plugin.nky1986 wrote:could anybody let me know, how to monitor cpu using nrpe on linux client
You can also use check_cpu_stats to monitor CPU load and warn on high IO Wait %
Re: NRPE: Command 'CheckDriveSize' not defined
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
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
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.