Page 1 of 4
APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:11 pm
by orani
I am trying to monitor an APC UPS using check_powerware_ups.pl plugin but i got the following error.
ERROR: Yoy do NOT have the Net::SNMP library
Install itby running:
perl -MCPAN -e shell
cpan[1]> install Net::SNMP
Any ideas what is going wrong???
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:15 pm
by orani
At Nagios web interface at service infos i got: (no output returnd from plugin)
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:19 pm
by hsmith
Code: Select all
ERROR: Yoy do NOT have the Net::SNMP library
It looks like you don't have the NET::SNMP library.
Try to install it by running:
Code: Select all
perl -MCPAN -e shell
cpan[1]> install Net::SNMP
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:25 pm
by orani
i tried this but iam getting the following
Code: Select all
Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:26 pm
by hsmith
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:33 pm
by orani
i followed the instructions. At cpan[1]> i wrote install Net::SNMP...
At cpan[2]> what i have to write to continue???
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:35 pm
by hsmith
Did anything happen after you ran the first command?
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:36 pm
by orani
yes.... it installed something and now i got stack
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:40 pm
by hsmith
Type exit. Try the plugin again.
Re: APC UPS MONITORIN
Posted: Mon Jun 13, 2016 2:53 pm
by orani
ok!!!! the half problem solved! now i can run the plugin from command line and i am getting results (which are true).
But still at the nagios web interface i am getting (no output returned from plugin)