New Issue with Liebert UPS
Posted: Thu Jul 10, 2014 6:29 pm
Guess we closed this out too soon.
I was trying to set up another service from this plugin, I was going to check Battery Time Remaining. When I ran it from the command line, I got this error:
[root@hhscnagios ~]# /usr/local/nagios/libexec/check_ups_alarm.pl -H 10.5.210.35 -C j613LmNZ -X batteryMinRemaining -w 15 -c 10
Insecure dependency in printf while running with -T switch at /usr/local/nagios/libexec/check_ups_alarm.pl line 265.
I found this on the Exchange Plugin page where I got the plugin, posted by chriscamm.
If you get the following error:
Insecure dependency in printf while running with -T switch at ./check_ups_alarm.pl line 266.
Edit the script and on Line 1 change
#!/usr/bin/perl -wT
to
#!/usr/bin/perl
Then above
use scrict;
Add the following line
use warnings;
use scrict;
This corrects the error and I can now run all of the checks.
So I did that, but then the Battery Status check that was working failed with "Error 126 Out Of Bounds, plugin may not be executable."
So I undid those changes, and the Battery Status check went back to green.
Is that some bogus info on the Exchange page, or am I doing something wrong again?
I was trying to set up another service from this plugin, I was going to check Battery Time Remaining. When I ran it from the command line, I got this error:
[root@hhscnagios ~]# /usr/local/nagios/libexec/check_ups_alarm.pl -H 10.5.210.35 -C j613LmNZ -X batteryMinRemaining -w 15 -c 10
Insecure dependency in printf while running with -T switch at /usr/local/nagios/libexec/check_ups_alarm.pl line 265.
I found this on the Exchange Plugin page where I got the plugin, posted by chriscamm.
If you get the following error:
Insecure dependency in printf while running with -T switch at ./check_ups_alarm.pl line 266.
Edit the script and on Line 1 change
#!/usr/bin/perl -wT
to
#!/usr/bin/perl
Then above
use scrict;
Add the following line
use warnings;
use scrict;
This corrects the error and I can now run all of the checks.
So I did that, but then the Battery Status check that was working failed with "Error 126 Out Of Bounds, plugin may not be executable."
So I undid those changes, and the Battery Status check went back to green.
Is that some bogus info on the Exchange page, or am I doing something wrong again?