I have a number of remote clients out in the field running the NRDS client for passive checks. In the past, I've made some custom plugins on my XI Server, and have referenced them in the NRDS Config for my devices, and saw the remote device download the missing plugin and things worked fine.
Now, I've created a new plugin and uploaded it as a Command via CCM. I can see the plugin located on XI in /usr/local/nagios/libexec/ and is chmod +x -- we're good up until this point.
On my existing NRDS Client, I added some extra lines to the config as follows:
Code: Select all
command[__HOST__]=/usr/lib/nagios/plugins/check_ping -H localhost -w 200.0,40% -c 400.0,80% -p 1
command[Outdoor 1]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.201 -w 200.0,40% -c 400.0,80% -p 5
command[Outdoor 2]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.202 -w 200.0,40% -c 400.0,80% -p 5
command[Outdoor 3]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.203 -w 200.0,40% -c 400.0,80% -p 5
command[Outdoor 4]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.204 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 1]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.205 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 2]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.206 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 3]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.207 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 4]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.208 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 5]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.209 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 6]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.210 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 7]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.211 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 8]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.212 -w 200.0,40% -c 400.0,80% -p 5
command[Indoor 9]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.213 -w 200.0,40% -c 400.0,80% -p 5
command[QNAP]=/usr/lib/nagios/plugins/check_ping -H 192.168.103.221 -w 200.0,40% -c 400.0,80% -p 5
command[Outdoor 1 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.201
command[Outdoor 2 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.202
command[Outdoor 3 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.203
command[Outdoor 4 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.204
command[Indoor 1 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.205
command[Indoor 2 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.206
command[Indoor 3 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.207
command[Indoor 4 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.208
command[Indoor 5 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.209
command[Indoor 6 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.210
command[Indoor 7 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.211
command[Indoor 8 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.212
command[Indoor 9 - Stats]=/usr/lib/nagios/plugins/check_mobotix.sh -H 192.168.103.213
This is what my NRDS Config page looks like: When I let the cronjob run, or run it manually on the remote NRDS Client, this is the output I get:
Code: Select all
root@Mucci-Pi:/usr/lib/nagios/plugins# /usr/local/nrdp/clients/nrds/nrds.pl -H 'Mucci Farms - RaspberryPi' 2>&1
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Can't exec "/usr/lib/nagios/plugins/check_mobotix.sh": No such file or directory at /usr/local/nrdp/clients/nrds/nrds.pl line 91, <CONFIG> line 44.
Sent 28 checks to http://nagios.mydomain.com/nrdp/
Any tips as to what I'm missing?