Liebert SNMP Issue
Posted: Mon Jul 14, 2014 6:32 pm
This is a continuation of this post:
http://support.nagios.com/forum/viewtop ... 16&t=28173
I closed this old post a little earlier than I should have. Anyway, I'm still running into an issue with this "Insecure dependency" thing.
If I test the service from within Nagios, I get:
COMMAND: /usr/local/nagios/libexec/check_ups_alarm.pl -H 10.5.210.35 -C j613LmNZ -X batteryMinRemaining -w 10 -c 5
OUTPUT:
Running it from the command line, I get:
[root@hhscnagios ~]# /usr/local/nagios/libexec/check_ups_alarm.pl -H 10.5.210.35 -C j613LmNZ -X batteryMinRemaining -w 10 -c 5
Insecure dependency in printf while running with -T switch at /usr/local/nagios/libexec/check_ups_alarm.pl line 265.
Running snmpwalk command that Box provided in the earlier post, I get:
[root@hhscnagios ~]# snmpwalk -m all -v 2c -c j613LmNZ 10.5.210.35 1.3.6.1.2.1.33.1.2.3.0
SNMPv2-SMI::mib-2.33.1.2.3.0 = INTEGER: 65535
I seem to recall that a return of INTEGER: 65535 meant that it wasn't on battery, or normal, or something like that.
Anyway, just as a refresh, there is a comment on the plugin page in Nagios Exchange that someone posted stating that if you get that Insecure dependency error, you need to edit a couple of lines in the script. However, when I do that, the service that I currently have running with this plugin that checks UPS Status fails with "Out of bounds code 126 plugin may not be executable.
Should I try a different plugin, or is there something I need to configure on the UPS?
Mahalo
http://support.nagios.com/forum/viewtop ... 16&t=28173
I closed this old post a little earlier than I should have. Anyway, I'm still running into an issue with this "Insecure dependency" thing.
If I test the service from within Nagios, I get:
COMMAND: /usr/local/nagios/libexec/check_ups_alarm.pl -H 10.5.210.35 -C j613LmNZ -X batteryMinRemaining -w 10 -c 5
OUTPUT:
Running it from the command line, I get:
[root@hhscnagios ~]# /usr/local/nagios/libexec/check_ups_alarm.pl -H 10.5.210.35 -C j613LmNZ -X batteryMinRemaining -w 10 -c 5
Insecure dependency in printf while running with -T switch at /usr/local/nagios/libexec/check_ups_alarm.pl line 265.
Running snmpwalk command that Box provided in the earlier post, I get:
[root@hhscnagios ~]# snmpwalk -m all -v 2c -c j613LmNZ 10.5.210.35 1.3.6.1.2.1.33.1.2.3.0
SNMPv2-SMI::mib-2.33.1.2.3.0 = INTEGER: 65535
I seem to recall that a return of INTEGER: 65535 meant that it wasn't on battery, or normal, or something like that.
Anyway, just as a refresh, there is a comment on the plugin page in Nagios Exchange that someone posted stating that if you get that Insecure dependency error, you need to edit a couple of lines in the script. However, when I do that, the service that I currently have running with this plugin that checks UPS Status fails with "Out of bounds code 126 plugin may not be executable.
Should I try a different plugin, or is there something I need to configure on the UPS?
Mahalo