Skip checking the battery condition by check_hpasm

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
humaun21
Posts: 1
Joined: Wed Aug 11, 2021 11:09 am

Skip checking the battery condition by check_hpasm

Post by humaun21 »

My nagios check_hpasm reports the status of battery status. I would like to stop reporting by nagios while calling check_hpasm.

Host: server
Service: HPASM
Status: CRITICAL
Status information: CRITICAL - controller accelerator battery needs attention, System: 'proliant xxxxx xxxx', S/N: 'CZ2xxxxxxxx', ROM: 'P70
I was trying to follow the instruction but in case of accelerator battery I didn't find any parameter that i can put in the blacklist
https://labs.consol.de/nagios/check_hpasm/index.html

How can I ignore the reporting by setting a parameter while calling check_hpasm? Thanks in advance.

Best
Humaun
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Skip checking the battery condition by check_hpasm

Post by mcapra »

I know nothing about this plugin or the hardware it's meant for, but I think --blacklist is the way to do this. See the "Blacklisting" section of the documentation:
https://labs.consol.de/nagios/check_hpasm/index.html

Perhaps something like this:

Code: Select all

--blacklist daacb
Former Nagios employee
https://www.mcapra.com/
Locked