Hi Scott thanks for the help.scottwilkerson wrote:Can you show the output of the followingCode: Select all
grep hpasmcli /etc/sudoers
Code: Select all
[root@nagios ~]# grep hpasmcli /etc/sudoers
nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli
Hi Scott thanks for the help.scottwilkerson wrote:Can you show the output of the followingCode: Select all
grep hpasmcli /etc/sudoers
Code: Select all
[root@nagios ~]# grep hpasmcli /etc/sudoers
nagios ALL=(ALL) NOPASSWD: /sbin/hpasmcli
Code: Select all
which hpasmcliCode: Select all
./check_proliant.py --type=fanCode: Select all
./check_proliant.py --type=psCode: Select all
./check_proliant.py --type=tempCode: Select all
sudo /sbin/hpasmcli
SHOW FANS
EXITCode: Select all
[root@nagios sbin]# which hpasmcli
/usr/bin/which: no hpasmcli in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Code: Select all
[root@nagios libexec]# ./check_proliant.py --type=fan
UNKNOWN: Error in pexpect while running hpasmcli
[root@nagios libexec]# ./check_proliant.py --type=ps
UNKNOWN: Error in pexpect while running hpasmcli
[root@nagios libexec]# ./check_proliant.py --type=temp
Traceback (most recent call last):
File "./check_proliant.py", line 427, in <module>
main(sys.argv[1:])
File "./check_proliant.py", line 401, in main
doTemp(ignoreRedundant)
File "./check_proliant.py", line 205, in doTemp
if result.strip() == "":
UnboundLocalError: local variable 'result' referenced before assignment
Code: Select all
[root@nagios sbin]# sudo /sbin/hpasmcli
sudo: /sbin/hpasmcli: command not found
Hi thanks for this. I've had some luck with your suggestion above, and am getting the ambient temperature displayed. I've been playing around with other OID's but my question is, what does the ".0.1" mean/do at the end of the oid? It seems I have to add this to all the oid's I've tested to make them work.gormank wrote:I saw above there was a question on getting ilo ambient temp. Here's an example the OP can use to grab it. Just use CCM to make a service to check and add thresholds.
/usr/local/nagios/libexec/check_snmp -H xxxx -o cpqHeTemperatureCelsius.0.1 -C public -P 2c -m CPQHLTH-MIB'
Great!elliotK wrote:Thanks a lot for your help Scott and everyone. I think I've got enough with SNMP, happy to close this one out.