Liebert UPS plugin not working in NagiosXI
Liebert UPS plugin not working in NagiosXI
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?
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
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
- 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
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.
Re: Liebert UPS plugin not working in NagiosXI
I attached the plugin.
Thanks
Thanks
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Re: Liebert UPS plugin not working in NagiosXI
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
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
- 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
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.
Re: Liebert UPS plugin not working in NagiosXI
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
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Re: Liebert UPS plugin not working in NagiosXI
The plugin requires the Net::SNMP360 perl module. Do you have it?
Can you post the output from running the check from the cli:
Code: Select all
perldoc -l Net::SNMP360Code: Select all
/usr/local/nagios/libexec/check_snmp_liebert_iv -H 10.5.210.35 -C j613LmNZFormer 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.
"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.
Re: Liebert UPS plugin not working in NagiosXI
[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.
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
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
- 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
I think this will fix your problem (fingers crossed):
On line 20 change:
To:
Now see if the plugin works.
On line 20 change:
Code: Select all
use Net::SNMP360;Code: Select all
use Net::SNMP;As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Liebert UPS plugin not working in NagiosXI
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
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
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates