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?
Check interpretation in the GUI
Re: Check interpretation in the GUI
Have you enabled error logging by chance in the /etc/php.ini file?
Make sure you have:
Make sure you have:
Code: Select all
display_errors = OffBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Check interpretation in the GUI
I added the command you gave me but I am still getting the Notice. Screenshot attached.
You do not have the required permissions to view the files attached to this post.
Re: Check interpretation in the GUI
You should restart apache to apply the display errors change in the php.ini, however it looks like the error is coming from the help doc section of the command_test.php file. When you click the run check command does it ever return the values from the check?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Check interpretation in the GUI
I restarted httpd and now the command is just blank.
You do not have the required permissions to view the files attached to this post.
Re: Check interpretation in the GUI
What version of XI are you using? Normally commands run through the cmdsubsys so you should be able to run a tail -f /usr/local/nagiosxi/var/cmdsubsys.log and watch when you click the run button to see if there is some sort of error happening.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.