check_nrpe
-
nebblkshts
- Posts: 58
- Joined: Tue Dec 08, 2015 7:35 am
check_nrpe
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.
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.
Reason: I have moved this post into the appropriate forum. Please make sure to post questions in the correct areas.
Re: check_nrpe
Can you post your configuration file for the service with an error?
Former Nagios Employee.
me.
me.
Re: check_nrpe
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.
Attach that file here.
Former Nagios Employee
-
nebblkshts
- Posts: 58
- Joined: Tue Dec 08, 2015 7:35 am
Re: check_nrpe
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
check_nrpe!CheckMem!MaxWarn=80% MaxCrit=90% ShowAll type=physical
-
nebblkshts
- Posts: 58
- Joined: Tue Dec 08, 2015 7:35 am
Re: check_nrpe
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.
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
Thanks @gormank. @nebblkshts let us know if this helps you.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.
Former Nagios Employee
-
nebblkshts
- Posts: 58
- Joined: Tue Dec 08, 2015 7:35 am
Re: check_nrpe
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:
}
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:
}