Page 2 of 2

Re: Help using xi for a newbie - check_ilo_health

Posted: Wed Nov 06, 2019 10:33 pm
by elliotK
scottwilkerson wrote:Can you show the output of the following

Code: Select all

grep hpasmcli /etc/sudoers
Hi Scott thanks for the help.

Code: Select all

[root@nagios ~]# grep hpasmcli /etc/sudoers
nagios  ALL=(ALL)       NOPASSWD: /sbin/hpasmcli

Re: Help using xi for a newbie - check_ilo_health

Posted: Thu Nov 07, 2019 7:30 am
by scottwilkerson
Can we verify that's where it is at

Code: Select all

which hpasmcli
Also do you get the same error if you run any of the types independently

Code: Select all

./check_proliant.py --type=fan

Code: Select all

./check_proliant.py --type=ps

Code: Select all

./check_proliant.py --type=temp
Finally, does it work if you do the following

Code: Select all

sudo /sbin/hpasmcli
SHOW FANS
EXIT

Re: Help using xi for a newbie - check_ilo_health

Posted: Sun Nov 10, 2019 6:36 am
by elliotK
Hi Scott, thanks for this.

Code: 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

Re: Help using xi for a newbie - check_ilo_health

Posted: Mon Nov 11, 2019 6:41 am
by elliotK
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'
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.

Re: Help using xi for a newbie - check_ilo_health

Posted: Mon Nov 11, 2019 8:13 am
by scottwilkerson
Often there is the ability to have multiple sensors, and the base OID is the number for the table, but .0.1 is the first element in the table, such as the first temp sensor, first CPU, etc.

Re: Help using xi for a newbie - check_ilo_health

Posted: Mon Nov 11, 2019 6:34 pm
by elliotK
Thanks a lot for your help Scott and everyone. I think I've got enough with SNMP, happy to close this one out.

Re: Help using xi for a newbie - check_ilo_health

Posted: Tue Nov 12, 2019 7:51 am
by scottwilkerson
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.
Great!

Locking