NRPE check_drivesize display options

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

NRPE check_drivesize display options

Post by jenstar13 »

first cause you always ask :-)
Installed Version: 5.5.5

I'm trying to change what is displayed in the XI Gui for check drivesize on Windows
When i run it from the Gui I get
WARNING D:: 398.155GB/479.992GB used

but when i run it from the command line, I get
/usr/local/nagios/libexec/check_nrpe -H 172.xxx.xxx.xxx -t 30 -c check_drivesize -a "drive=D:" "warn=free < 20%" "crit=free < 10%"
WARNING D:: 398.155GB/479.992GB used|'D: free'=81.83765GB;95.99845;47.99922;0;479.99227 'D: free %'=17%;20;10;0;100

how can I get the XI gui to either show all the details like the command line, or show 17% free as that is easier for the enduser.

I've hit about 30 different search pages and this forum, and can't find the answer

thank you in advance
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE check_drivesize display options

Post by npolovenko »

Hi, @jenstar13. Please try the following command instead:
/usr/local/nagios/libexec/check_nrpe -H 172.xxx.xxx.xxx -t 30 -c check_drivesize -a "drive=C:" "warn=free < 20%" "crit=free < 10%" detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}' show-all
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Re: NRPE check_drivesize display options

Post by jenstar13 »

that was perfect, thank you very much!
Locked