Liebert UPS plugin not working in NagiosXI

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

Liebert UPS plugin not working in NagiosXI

Post 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?
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 UPS plugin not working in NagiosXI

Post by Box293 »

Do you have a link to the plugin or can you attach the plugin to the post?
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 UPS plugin not working in NagiosXI

Post by toleolu »

I attached the plugin.

Thanks
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Liebert UPS plugin not working in NagiosXI

Post by toleolu »

Well I attached it, but I don't see it anywhere.
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 UPS plugin not working in NagiosXI

Post by Box293 »

Try renaming it as a .txt file
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 UPS plugin not working in NagiosXI

Post by toleolu »

Text file. Open with Word Pad.
You do not have the required permissions to view the files attached to this post.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Liebert UPS plugin not working in NagiosXI

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
toleolu
Posts: 294
Joined: Fri Jul 19, 2013 7:02 pm
Location: Honolulu Hawaii

Re: Liebert UPS plugin not working in NagiosXI

Post 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.
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 UPS plugin not working in NagiosXI

Post 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.
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 UPS plugin not working in NagiosXI

Post 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
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Locked