Check interpretation in the GUI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Check interpretation in the GUI

Post by emartine »

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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check interpretation in the GUI

Post by lmiltchev »

Have you enabled error logging by chance in the /etc/php.ini file?

Make sure you have:

Code: Select all

display_errors = Off
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Check interpretation in the GUI

Post by emartine »

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.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Check interpretation in the GUI

Post by jomann »

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.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Check interpretation in the GUI

Post by emartine »

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.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Check interpretation in the GUI

Post by jomann »

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.
Locked