Check interpretation in the GUI
Posted: Tue Jun 25, 2019 3:42 pm
On the commandline I can run
/usr/local/nagios/libexec/check_nrpe -H <serverip> -c check_drivesize "perf-config=*(unit:g)" -a "crit=free<10%" "warn=free<15%" drive=all-drives "filter=type in ('fixed')"
OK All 2 drive(s) are ok|'C:\ free'=18.86457GB;13.48491;8.98994;0;89.89941 'C:\ free %'=21%;15;10;0;100 'E:\ free'=13.53947GB;7.49955;4.9997;0;49.99706 'E:\ free %'=27%;15;10;0;100
or
/usr/local/nagios/libexec/check_nrpe -H <serverip> -c check_drivesize "perf-config=*(unit:g)" -a "crit=free<10%" "warn=free<15%" drive=all-drives "filter=type in ('fixed')" exclude=C:\\
OK All 1 drive(s) are ok|'E:\ free'=13.53947GB;7.49955;4.9997;0;49.99706 'E:\ free %'=27%;15;10;0;100
This works fine. In the GUI however I get a Notice.
My command is this without giving it any arguments
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize "perf-config=*(unit:g)" -a "crit=free<10%" "warn=free<15%" drive=all-drives "filter=type in ('fixed')" exclude=C:\\
Clicking on Run Check Command gets
/usr/local/nagios/libexec/check_nrpe -H <serverIP> -c check_drivesize "perf-config=*(unit:g)" -a "crit=free<10%" "warn=free<15%" drive=all-drives "filter=type in ('fixed')" exclude=C:\\
Notice: Undefined variable: output in /usr/local/nagiosxi/html/includes/components/ccm/command_test.php on line 180
Any idea what is going on?
/usr/local/nagios/libexec/check_nrpe -H <serverip> -c check_drivesize "perf-config=*(unit:g)" -a "crit=free<10%" "warn=free<15%" drive=all-drives "filter=type in ('fixed')"
OK All 2 drive(s) are ok|'C:\ free'=18.86457GB;13.48491;8.98994;0;89.89941 'C:\ free %'=21%;15;10;0;100 'E:\ free'=13.53947GB;7.49955;4.9997;0;49.99706 'E:\ free %'=27%;15;10;0;100
or
/usr/local/nagios/libexec/check_nrpe -H <serverip> -c check_drivesize "perf-config=*(unit:g)" -a "crit=free<10%" "warn=free<15%" drive=all-drives "filter=type in ('fixed')" exclude=C:\\
OK All 1 drive(s) are ok|'E:\ free'=13.53947GB;7.49955;4.9997;0;49.99706 'E:\ free %'=27%;15;10;0;100
This works fine. In the GUI however I get a Notice.
My command is this without giving it any arguments
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize "perf-config=*(unit:g)" -a "crit=free<10%" "warn=free<15%" drive=all-drives "filter=type in ('fixed')" exclude=C:\\
Clicking on Run Check Command gets
/usr/local/nagios/libexec/check_nrpe -H <serverIP> -c check_drivesize "perf-config=*(unit:g)" -a "crit=free<10%" "warn=free<15%" drive=all-drives "filter=type in ('fixed')" exclude=C:\\
Notice: Undefined variable: output in /usr/local/nagiosxi/html/includes/components/ccm/command_test.php on line 180
Any idea what is going on?