APC UPS MONITORIN

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

APC UPS MONITORIN

Post 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???
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: APC UPS MONITORIN

Post by orani »

At Nagios web interface at service infos i got: (no output returnd from plugin)
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: APC UPS MONITORIN

Post 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
Former Nagios Employee.
me.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: APC UPS MONITORIN

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: APC UPS MONITORIN

Post by hsmith »

Former Nagios Employee.
me.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: APC UPS MONITORIN

Post by orani »

i followed the instructions. At cpan[1]> i wrote install Net::SNMP...

At cpan[2]> what i have to write to continue???
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: APC UPS MONITORIN

Post by hsmith »

Did anything happen after you ran the first command?
Former Nagios Employee.
me.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: APC UPS MONITORIN

Post by orani »

yes.... it installed something and now i got stack

Code: Select all

cpan[2]>
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: APC UPS MONITORIN

Post by hsmith »

Type exit. Try the plugin again.
Former Nagios Employee.
me.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: APC UPS MONITORIN

Post 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)
Locked