Page 1 of 12

check_nrpe

Posted: Tue Dec 08, 2015 7:47 am
by nebblkshts
I just started with this company and found this error on the Nagios install. The install is on Ubuntu 12.4

Error: No command "check_nrpe!CheckMem!MaxWarn=80% MaxCrit=90% ShowAll type=physical" found

I am trying to adjust the limits for 2 servers because they run at a high level and that can not be changed.

I am by no mean Ubuntu expert or Nagios.

Re: check_nrpe

Posted: Tue Dec 08, 2015 10:24 am
by hsmith
Can you post your configuration file for the service with an error?

Re: check_nrpe

Posted: Tue Dec 08, 2015 10:40 am
by nebblkshts
Where would I find that?

Re: check_nrpe

Posted: Tue Dec 08, 2015 11:44 am
by rkennedy
From the Configure tab, click 'Core Config Manager' -> '# Services" -> Look for the service in question and click the floppy disk icon, it represents 'View Text Config'.

Attach that file here.

Re: check_nrpe

Posted: Tue Dec 08, 2015 12:14 pm
by nebblkshts
I do not have tabs but I am hoping this is what we are after:

check_nrpe!CheckMem!MaxWarn=80% MaxCrit=90% ShowAll type=physical

Re: check_nrpe

Posted: Tue Dec 08, 2015 12:32 pm
by rkennedy
Can you post a screenshot of where you're seeing that?

Re: check_nrpe

Posted: Tue Dec 08, 2015 1:04 pm
by nebblkshts
I have attached the Screenshot

Re: check_nrpe

Posted: Tue Dec 08, 2015 1:17 pm
by gormank
Commands are defined in config files, and they define whe executable run when the agent is told to run the command. Commands can have the same name as an executable, but aren't the same. Its a bit confusing.

Have a look at /usr/local/nagios/etc/nrpe.cfg and /usr/local/nagios/etc/nrpe/common.cfg.
Look for CheckMem in those files. The error is telling you the command isn't there.

Re: check_nrpe

Posted: Tue Dec 08, 2015 1:47 pm
by rkennedy
gormank wrote:Have a look at /usr/local/nagios/etc/nrpe.cfg and /usr/local/nagios/etc/nrpe/common.cfg.
Look for CheckMem in those files. The error is telling you the command isn't there.
Thanks @gormank. @nebblkshts let us know if this helps you.

Re: check_nrpe

Posted: Tue Dec 08, 2015 1:51 pm
by nebblkshts
Found it...

define service{
use infra-trivial-service
host_name LYNCFE2
service_description CPU Load
check_command check_nrpe!CheckCPU!warn=80 crit=90 time=5m
}



# Create a service for monitoring
# Change the host_name to match the name of the host you defined above

define service{
use infra-trivial-service
host_name LYNCFE2
service_description Memory Usage
check_command check_nrpe!CheckMem!MaxWarn=80% MaxCrit=90% ShowAll type=physical
}



# Create a service for monitoring C:\ disk usage
# Change the host_name to match the name of the host you defined above

define service{
use infra-trivial-service
host_name LYNCFE2
service_description C:\ Drive Space
check_command check_nrpe!CheckDriveSize!ShowAll MinWarnFree=10% MinCritFree=5% Drive=c:
}