Check_hpasm power supply control

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fgrotto
Posts: 1
Joined: Tue Jul 25, 2017 11:15 am

Check_hpasm power supply control

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_hpasm power supply control

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked