Page 1 of 1
Probe problem
Posted: Tue Jun 21, 2016 10:25 am
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...
Re: Probe problem
Posted: Tue Jun 21, 2016 11:20 am
by hsmith
What model do you have?
Re: Probe problem
Posted: Tue Jun 21, 2016 11:50 am
by orani
APC Smart-UPS 3000 XL
and
APC Smart-UPS 5000 XL
Re: Probe problem
Posted: Tue Jun 21, 2016 12:36 pm
by hsmith
Re: Probe problem
Posted: Tue Jun 21, 2016 12:52 pm
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
Re: Probe problem
Posted: Tue Jun 21, 2016 12:57 pm
by hsmith
Can you update this to the correct path for your perl installation? It might be different on your system.
Re: Probe problem
Posted: Tue Jun 21, 2016 1:28 pm
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!
Re: Probe problem
Posted: Tue Jun 21, 2016 1:32 pm
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.