Probe problem

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

Probe problem

Post by orani »

In some APC UPS exists an external probe for measuring temperature and humidity.

Is there any script or any way to get this value to nagios (monitor).

Thank you all...
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Probe problem

Post by hsmith »

What model do you have?
Former Nagios Employee.
me.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Probe problem

Post by orani »

APC Smart-UPS 3000 XL

and

APC Smart-UPS 5000 XL
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Probe problem

Post by hsmith »

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

Re: Probe problem

Post by orani »

Code: Select all

# dos2unix check_ups_mge.pl 
dos2unix: converting file check_ups_mge.pl to UNIX format ...

[root@nagios-core-network libexec]# dos2unix check_ups_pow.pl 
dos2unix: converting file check_ups_pow.pl to UNIX format ...

[root@nagios-core-network libexec]# ./check_ups_mge.pl --help
bash: ./check_ups_mge.pl: /usr/local/groundwork/bin/perl: bad interpreter: No such file or directory

[root@nagios-core-network libexec]# ./check_ups_pow.pl --help
bash: ./check_ups_pow.pl: /usr/local/groundwork/bin/perl: bad interpreter: No such file or directory
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Probe problem

Post by hsmith »

Can you update this to the correct path for your perl installation? It might be different on your system.
Former Nagios Employee.
me.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Probe problem

Post by orani »

It is the right path... i run many perl scripts at this path without any problem.

But dont worry i found the right oid and i got the temperature from the probe with check_snmp

So mark this as solved


Thanks for your time!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Probe problem

Post by rkennedy »

Are you sure it's the correct path? The top of each files has the following, which is why it's erroring out #!/usr/local/groundwork/bin/perl
For example, on my XI system -

Code: Select all


[root@nagiosxi scripts]# which perl
/usr/bin/perl

As for hearing you got it working with check_snmp - great! I'll mark this as resolved.
Former Nagios Employee
Locked