check_nrpe

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

check_nrpe

Post 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.
Last edited by tmcdonald on Wed Dec 16, 2015 6:02 pm, edited 1 time in total.
Reason: I have moved this post into the appropriate forum. Please make sure to post questions in the correct areas.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe

Post by hsmith »

Can you post your configuration file for the service with an error?
Former Nagios Employee.
me.
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post by nebblkshts »

Where would I find that?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_nrpe

Post 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.
Former Nagios Employee
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_nrpe

Post by rkennedy »

Can you post a screenshot of where you're seeing that?
Former Nagios Employee
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post by nebblkshts »

I have attached the Screenshot
Attachments
Nagios.png
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: check_nrpe

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_nrpe

Post 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.
Former Nagios Employee
nebblkshts
Posts: 58
Joined: Tue Dec 08, 2015 7:35 am

Re: check_nrpe

Post 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:
}
Locked