Page 1 of 1

Active ISDN Channels- Nagios XI

Posted: Thu Aug 29, 2019 8:36 pm
by pbachu2
Hi All,

We have migrated all hosts/services from Nagios Core 4.0.8 to Nagios XI 5.6.3.
Post migration, currently we are working on clearing all critical and Unknown services in XI.

For one of the service "Active ISDN Channels" which is OK from Nagios core but not working on Nagios XI.
It is giving the error " CRITICAL: Return code of 255 is out of bounds. (worker: XXX.tower.lan)" .
I have installed the required plugin (similar to nagios core) and configured new command(similar to nagios core) .
However there is no result.still the same error.Please find the command and attached plugin "check_cisco_b-channels.pl "which I have configured.
Kindly suggest how to proceed further on this.

Command :
check_cisco_b-channels 2
$USER1$/monitoring-plugins/check_cisco_b-channels.pl -H $HOSTADDRESS$ -C t0wer -g -f -w $ARG1$ -c $ARG2$


Regards,
Priyanka Bachu

Re: Active ISDN Channels- Nagios XI

Posted: Fri Aug 30, 2019 2:05 pm
by tgriep
We don't have the equipment to test the plugin but I do have a few things you can do.

First, can you run the plugin from a root shell on the XI server and post the output?

Second, the path to the plugin is not the typical path used in XI.
The default location for plugins in in the /usr/local/nagios/libexec folder.
I recommend putting it that folder and adjusting the command_line to the following

Code: Select all

$USER1$/check_cisco_b-channels.pl -H $HOSTADDRESS$ -C t0wer -g -f -w $ARG1$ -c $ARG2$
Make sure the plugin user and group are set as well as making the plugin executable.
Run the following to do that.

Code: Select all

chown nagios.nagios /usr/local/nagios/libexec/check_cisco_b-channels.pl
chmod 554 /usr/local/nagios/libexec/check_cisco_b-channels.pl
Try the above and if you still have any issues, let us know.

Re: Active ISDN Channels- Nagios XI

Posted: Wed Sep 04, 2019 12:46 am
by pbachu2
Hi,

Thank you much for the response.
The issue got fixed.
The problem was SNMP connection was disabled.
Once it got enabled all working good :)

Regards,
Priyanka Bachu

Re: Active ISDN Channels- Nagios XI

Posted: Wed Sep 04, 2019 6:50 am
by scottwilkerson
pbachu2 wrote:Hi,

Thank you much for the response.
The issue got fixed.
The problem was SNMP connection was disabled.
Once it got enabled all working good :)

Regards,
Priyanka Bachu
Great!

Locking thread