Page 1 of 3

Liebert UPS plugin not working in NagiosXI

Posted: Thu Jul 03, 2014 2:55 pm
by toleolu
We have a couple of Liebert UPS's in our server room. They are being monitored on our old old old Nagios 1 system using a plugin we downloaded from Nagios, way back when.

While the old system is happy with that, Nagios XI doesn't appear to like it at all. Service Detail status is Critical and Status Information says (null).

Here's the command:

check_liebert_iv!j613LmNZ!!!!!!!

And when I test the command from CCM, I get this:

COMMAND: /usr/local/nagios/libexec/check_snmp_liebert_iv -H 10.5.210.35 -C j613LmNZ
OUTPUT:

Do I need a different plugin for this, or is there something else I'm missing?

Re: Liebert UPS plugin not working in NagiosXI

Posted: Thu Jul 03, 2014 11:41 pm
by Box293
Do you have a link to the plugin or can you attach the plugin to the post?

Re: Liebert UPS plugin not working in NagiosXI

Posted: Mon Jul 07, 2014 8:16 pm
by toleolu
I attached the plugin.

Thanks

Re: Liebert UPS plugin not working in NagiosXI

Posted: Mon Jul 07, 2014 8:20 pm
by toleolu
Well I attached it, but I don't see it anywhere.

Re: Liebert UPS plugin not working in NagiosXI

Posted: Mon Jul 07, 2014 8:32 pm
by Box293
Try renaming it as a .txt file

Re: Liebert UPS plugin not working in NagiosXI

Posted: Tue Jul 08, 2014 3:25 pm
by toleolu
Text file. Open with Word Pad.

Re: Liebert UPS plugin not working in NagiosXI

Posted: Tue Jul 08, 2014 4:35 pm
by abrist
The plugin requires the Net::SNMP360 perl module. Do you have it?

Code: Select all

perldoc -l Net::SNMP360
Can you post the output from running the check from the cli:

Code: Select all

/usr/local/nagios/libexec/check_snmp_liebert_iv -H 10.5.210.35 -C j613LmNZ

Re: Liebert UPS plugin not working in NagiosXI

Posted: Tue Jul 08, 2014 6:01 pm
by toleolu
[root@hhscnagios ~]# /usr/local/nagios/libexec/check_snmp_liebert_iv -H 10.5.210.35 -C j613LmNZ
Can't locate Net/SNMP360.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_snmp_liebert_iv line 20.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_snmp_liebert_iv line 20.
on aborted at /usr/local/nagios/libexec/check_snmp_liebert_iv line 20.

I seem to recall this being an issue with some of the other plugins we pulled over from the old Nagios system. Don't recall exactly why, but for some reason we were never able to get those to work either.

Re: Liebert UPS plugin not working in NagiosXI

Posted: Tue Jul 08, 2014 8:31 pm
by Box293
I think this will fix your problem (fingers crossed):

On line 20 change:

Code: Select all

use Net::SNMP360;
To:

Code: Select all

use Net::SNMP;
Now see if the plugin works.

Re: Liebert UPS plugin not working in NagiosXI

Posted: Wed Jul 09, 2014 12:52 pm
by toleolu
Thanks.

Made the change, but then when I saved the plugin, it changed permissions on the file from 500 to 48 and now I'm getting an error on the service that the plugin may not be executable. So something else I screwed up.

Is there a way to change the permissions in Nagios XI or do I need to do that within Linux? If I do need to do that from within Linux, could you provide me the path to where those plugins are?

Mahalo