Liebert SNMP Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Liebert SNMP Issue

Post by toleolu »

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
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Liebert SNMP Issue

Post by Box293 »

When I look at the comments in the plugin code, it was written in 2004. There may be some things in Perl that have changed since then which cause it to generate this issue.

You could try changing the first line of the plugin to:

Code: Select all

#!/usr/bin/perl -w
If that doesn't work then you have two choices:
1) Learn Perl and fix the issue in the code
2) Try a different plugin

Sometimes there isn't an easy solution.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Liebert SNMP Issue

Post by toleolu »

Thanks Box, taking that -T out of there fixed it. (Good thing too cause there's no way this old dog's gonna learn Perl)

Hope all is well down under. Thanks again for your help.

Mahalo
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Liebert SNMP Issue

Post by Box293 »

Great stuff, glad we could sort it out.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked