Page 1 of 1

Check_hpasm power supply control

Posted: Fri Jul 28, 2017 5:21 am
by fgrotto
Hi all,
I'm trying to configure check_hpasm on Nagios XI i have installed the command and i need to show just power supply to control a HP server.

These are the output of 2 cases:

- All power supply is ok and redundant
OK - System: 'proliant dl360p gen8', S / N: 'CZJ3160SM1', ROM: 'P71 03/01/2013', hardware working fine, from: 1 logical drives, 2 physical drives


- power 1 unplugged or not working
CRITICAL - powersupply 1 needs attention (failed), System: 'proliant dl360p gen8', S / N: 'CZJ3160SM1', ROM: 'P71 03/01/2013'


Can i extract or check with nagios this message and send a notification alert via email if powersupply1 / 2 needs attention?
i want to send a message only when the power supplies don't works and not check the other errors.

I'm sorry if someone already ask that in forum or if it's a dumb question I'm newbie with nagios and still learning.

Many thanks
Fabio

Re: Check_hpasm power supply control

Posted: Fri Jul 28, 2017 12:55 pm
by lmiltchev
Can you show us the command run from the command line along with the output of it? After running each command, also run:

Code: Select all

echo $?
You should see "0" and "2", returned from the plugin. If you assigned a monitoring contact to your service, he/she would receive notifications when the service goes to hard OK or NON-OK state. Read more about state types and notifications here:

https://assets.nagios.com/downloads/nag ... types.html

https://assets.nagios.com/downloads/nag ... tions.html