NRPE give error on web interface but CLI will return result
Posted: Tue Nov 17, 2015 9:52 am
Hello everyone and thank you for your time.
My nagios core 4.1.1 server is running on Ubuntu 14.04 and was compiled from source.
Client I am trying to monitor is running Ubuntu 14.04 and the NRPE package was used.
I created a command to check the state of the chrome web browser in /etc/nagios/nrpe.cfg command
On the nagios server I can run
and I get the return
Which is exactly what I want-BUT on the web interface I get
On the nagios server I have the service in the configuration files as
So I am confused as to why I can use the check_nrpe on the CLI, but when I try via the web interface I get an error. Can someone please point me in the correct direction? Thank you again for your time.
My nagios core 4.1.1 server is running on Ubuntu 14.04 and was compiled from source.
Client I am trying to monitor is running Ubuntu 14.04 and the NRPE package was used.
I created a command to check the state of the chrome web browser in /etc/nagios/nrpe.cfg command
Code: Select all
[check_chrome]=/usr/lib/nagios/plugins/check_procs -C chromeCode: Select all
./check_nrpe -H 10.0.4.44 -c check_ chrome Code: Select all
PROCS OK: 4 processes with command name 'chrome' | procs=4;;;0;Code: Select all
(Return code of 255 is out of bounds)Code: Select all
define host {
use linux-server
host_name <NOT REAL NAME>
alias Room 102
address 10.0.4.44
hostgroups XXX
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}
define service{
use local-service
host_name <NOT REAL NAME>
service_description Check Chrome
check_command check_nrpe!check_chrome
check_interval 1
}