Help using xi for a newbie - check_ilo_health

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
elliotK
Posts: 8
Joined: Fri Oct 25, 2019 11:48 pm

Re: Help using xi for a newbie - check_ilo_health

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Help using xi for a newbie - check_ilo_health

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
elliotK
Posts: 8
Joined: Fri Oct 25, 2019 11:48 pm

Re: Help using xi for a newbie - check_ilo_health

Post 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
elliotK
Posts: 8
Joined: Fri Oct 25, 2019 11:48 pm

Re: Help using xi for a newbie - check_ilo_health

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Help using xi for a newbie - check_ilo_health

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
elliotK
Posts: 8
Joined: Fri Oct 25, 2019 11:48 pm

Re: Help using xi for a newbie - check_ilo_health

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Help using xi for a newbie - check_ilo_health

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked