Service Output Check_pdh

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
ofeist
Posts: 3
Joined: Wed Mar 20, 2019 9:25 am
Location: HH, Germany

Service Output Check_pdh

Post by ofeist »

Hi guys,

I have added a new check today on my environment based on NSClient++:

./check_nrpe -H $HOSTADDRESS$ -c check_pdh -a "counter=\DNS\Secure Update Failure" 'perf-config=*(Secure_Update_Failure)' expand-index

The check itself is working fine, but I want to customize the serivce output. Right now it´s like this:

Code: Select all

[b]OK: \DNS\Secure Update Failure = 6.71696e+006[/b]
How can I change it to a readable number or is that not possible?

My goal would be something like:

Code: Select all

[b]OK: 123456789[/b]
Anyone any ideas how to handle this?

Cheers,
Olli
“The Earth is a fine place and worth fighting for.”
Locked