Sudden NRDS Error for new devices
Posted: Tue Sep 06, 2016 2:55 pm
Hi there,
I've been using NRDS quite a bit to setup remote agents to perform basic checks (check_ping etc) and report back to XI server. I tried to spin up a new Linux device following my normal process, and I've run into some issues.
In the NRDS Config in XI, I've set the following commands:
Plugin_Dir /usr/local/nagios/libexec
Send_Nrdp /usr/local/nrdp/clients/send_nrdp.sh
Tmpdir /usr/local/nrdp/clients/tmp
Update_Config Yes
Update_Plugins Yes
I installed the NRDS config via the install instructions in XI. This works no problem. I manually run the cron entry as follows:
Results in the following output:
I've compared the NRDS Config commands to some working devices that I have setup, and the directory paths etc are the same. What am I missing here? I swear I've had this before.
Edit:
I have check_ping in /usr/local/nagios/libexec, but that doesn't work either...
Edit2:
Found this in the Nagios KB, showing "this is a failed execution", but no help to resolve
https://support.nagios.com/kb/article.php?id=500
I've been using NRDS quite a bit to setup remote agents to perform basic checks (check_ping etc) and report back to XI server. I tried to spin up a new Linux device following my normal process, and I've run into some issues.
In the NRDS Config in XI, I've set the following commands:
Code: Select all
command[__HOST__]=/usr/lib/nagios/plugins/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
command[ping ip phone]=/usr/lib/nagios/plugins/check_ping -H 192.168.1.189 -w 200.0,40% -c 400.0,80% -p 1
Send_Nrdp /usr/local/nrdp/clients/send_nrdp.sh
Tmpdir /usr/local/nrdp/clients/tmp
Update_Config Yes
Update_Plugins Yes
I installed the NRDS config via the install instructions in XI. This works no problem. I manually run the cron entry as follows:
Code: Select all
/usr/local/nrdp/clients/nrds/nrds.pl -H 'Derek Test'
Code: Select all
Can't exec "/usr/lib/nagios/plugins/check_ping/check_ping": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 18.
Can't exec "/usr/lib/nagios/plugins/check_ping/check_ping": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 18.
Sent 2 checks to http://nagios.mydomain.com/nrdp/
Edit:
I have check_ping in /usr/local/nagios/libexec, but that doesn't work either...
Code: Select all
root@raspberrypi:/usr/local/nrdp/clients/nrds# /usr/local/nagios/libexec/check_ping -H 192.168.1.189 -w 200.0,40% -c 400.0,80% -p 1
bash: /usr/local/nagios/libexec/check_ping: cannot execute binary file: Exec format error
Found this in the Nagios KB, showing "this is a failed execution", but no help to resolve
https://support.nagios.com/kb/article.php?id=500