Return code of 255 is out of bounds in windows pc

6 posts / 0 new
Last post
Anonymous
Return code of 255 is out of bounds in windows pc
Hi,
 
I have one windows machine where nagios installed. another one linux machine where Nagios plugin and NRPE daemon so totally i have two machines.
 
 Is this possible to monitor linux host from Windows PC?
 
As per NRPE.pdf, i have installed below things in the linux host.
 
1) Installed the Nagios Plugins
 
2) Installed xinetd
 
3) Installed the NRPE daemon
 
In windows machine, i have installed nagios. The Nagwin is running fine on windows PC and i am able to monitor localhost
Is there anything i need to install it on windows machine? 
i have configured linux host info in cfg file as below in windows machine.
define host{
use                     linux-server            
host_name               xxxx.xxxx.xxxx
alias                   xxxx
address                 3.204.109.165
}
 
define service{
use generic-service
host_name xxxx.xxxx.xxxx
service_description CPU Load
check_command check_nrpe!check_load
}
I am getting below error, please help me out. Any contact person?
 
(Return code of 255 is out of bounds) 
 
Below error i am getting in nagios.log file in windows pc
 
 Warning: Return code of 255 for check of service '/dev/sda1 Free Space' on host 'xxxx.xxxx.com' was out of bounds.
 Warning: Return code of 255 for check of service 'Current Users' on host 'jxxxx.xxxx.com' was out of bounds.
 Warning: Return code of 255 for check of service 'CPU Load' on host 'xxxx.xxxx.com' was out of bounds.
 Warning: Return code of 255 for check of service 'Total Processes' on host 'xxxx.xxxx.com' was out of bounds.
itefix
Offline
Last seen: 5 hours 37 min ago
Joined: 01.05.2008 - 21:33
 
venkatesh
Hi,

Hi,

yes, I was following up the below link.

"https://assets.nagios.com/downloads/nagioscore/docs/nrpe/NRPE.pdf"

I did set up for  c) Remote Host Setup(Linux machine) 

Below part i have not done because i was using windows PC  where nagios is nistalled.

d) Monitoring Host Setup( Linux Machine)

Thanks and Regards,

Venkatesh

 

 

itefix
Offline
Last seen: 5 hours 37 min ago
Joined: 01.05.2008 - 21:33
 

 

Did you follow the rest of our usage example ? How does your nrpe.cfg look like ?

venkatesh
nrpe.cfg file

nrpe.cfg file

path: /etc/xinetd.d/nrpe

# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
        flags           = REUSE
        socket_type     = stream
        port            = 5666
        wait            = no
        user            = nagios
        group           = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        disable         = no
        only_from       = 127.0.0.1 3.204.111.106
}
 
itefix
Offline
Last seen: 5 hours 37 min ago
Joined: 01.05.2008 - 21:33
 

 

I mean the configuration file for the nrpe itself, not xinet - etc/nrpe.cfg