Page 1 of 1

NRDP --Return code of 127 is out of bounds

Posted: Tue Nov 24, 2015 6:59 am
by raj222059
Hi
Good Evng,

I am facing issues with NRDP server :x
I am suspecting it is not forwarding external commands to the nagios server

Below is the error i am getting for the respective service

(Return code of 127 is out of bounds - plugin may be missing)



Below are configuration for NRDP

in templates.cfg

define service {
name generic-nrdp
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 3
retry_check_interval 2
active_checks_enabled 0
passive_checks_enabled 1
obsess_over_service 1
check_freshness 1
freshness_threshold 905
notifications_enabled 0
notification_interval 60
notification_period 24x7
notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
check_command check_demo
register 0

}

in /usr/local/nagios/etc/objects/commands.cfg


define command{
command_name check_demo
command_line $USER1$/check_demo
}

in localhost.cfg

define service{
use generic-nrdp ; Name of service template to use
host_name UAT
service_description Disk_Space
}


Note: NRDP i checked in GUI with token and request XML and it is responding 1 check processed but it is not sending same to the Nagios
Any Suggestions/Solutions will be appreciated. :)


Thanks ,
RAJ,

" NRDP -- Passive checks"

Posted: Tue Nov 24, 2015 8:46 am
by raj222059
Hi All.

Can any one explain where we can check whether NRDP server is sending any data(Passive checks/external commands data) to nagios server or not.

i am getting error (Return code of 127 is out of bounds - plugin may be missing) for all external commands

Note: I can see NRDP client is sending data to NRDP server and Passive checks are enabled in nagios.cfg

any help will be appreciated. :D


Thanks,
Raj.

Re: NRDP --Return code of 127 is out of bounds

Posted: Tue Nov 24, 2015 12:21 pm
by rkennedy
Can you please post the host definition for UAT?

Also, what is the file 'check_demo'?

Re: NRDP --Return code of 127 is out of bounds

Posted: Wed Nov 25, 2015 3:40 am
by raj222059
here is the definition for host UAT

Code: Select all

define host{
        use                     linux-server            
        host_name               UAT
        alias                   UAT
        address                 10.201.2.8
        }

Check_demo is the dummy command

we are using here NRDP which will send external command o/p to the nagios server.

Can You Please tell me.. how i can check whether NRDP forwarding any data to nagaios or not ?

Re: NRDP --Return code of 127 is out of bounds

Posted: Wed Nov 25, 2015 10:59 am
by tgriep
Can you post how the service check is defined for the Disk_space service on the nagios system?
Can you run the following on the nagios system and post back the results?

Code: Select all

ls -l /usr/local/nagios/libexec
If the plugins are in a different folder, adjust the above line to reflect that.

Can you show how the remote system is setup for sending the information to the Nagios system and any log information?

Re: NRDP --Return code of 127 is out of bounds

Posted: Thu Nov 26, 2015 2:53 am
by raj222059
Hi tgriep ,

thanks for the reply .

This is the service check for the Disk_space

Code: Select all

define service {
name generic-nrdp
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 3
retry_check_interval 2
active_checks_enabled 0
passive_checks_enabled 1
obsess_over_service 1
check_freshness 1
freshness_threshold 905
notifications_enabled 0
notification_interval 60
notification_period 24x7
notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
check_command check_demo
register 0

}
and here we do not need any plugins because we are using NRDP which can send a remote server command o/p to the nagios server.

i want to check NRDP server log but i could not find it . Can any one explain how i can check NRDP server log?

Thanks,
Raj.

Re: NRDP --Return code of 127 is out of bounds

Posted: Thu Nov 26, 2015 7:57 pm
by Box293
In this guide:
https://assets.nagios.com/downloads/nrd ... erview.pdf

On pages 3 and 4 there is a section "Using the NRDP Client".
Can you perform these tests and post the command executed and the output.

On your client you should also have a config file with all your commands defined, can you please upload that file.