Page 1 of 1

Command Expansion Error

Posted: Tue Jan 26, 2016 5:30 am
by rlinux57
Getting below error in logs, Whenever i clicked Go button in command expansion, please find screenshot.
Moreover "usr" folder is not placed at "/usr/local/nagios/share/". Kindly help me to find out the issue ?

Code: Select all

[root@monitor ~]# tail -f /var/log/httpd/error_log
[Tue Jan 26 04:28:11 2016] [error] [client 182.180.102.10] File does not exist: /usr/local/nagios/share/usr, referer: http://IP-Address/nagios/cgi-bin/status.cgi?host=all&limit=0
[Tue Jan 26 04:28:11 2016] [error] [client 182.180.102.10] File does not exist: /usr/local/nagios/share/usr, referer: http://IP-Address/nagios/cgi-bin/status.cgi?host=all&limit=0
[Tue Jan 26 04:28:27 2016] [error] [client 182.180.102.10] File does not exist: /usr/local/nagios/share/usr, referer: http://IP-Address/nagios/cgi-bin/extinfo.cgi?type=2&host=Webs10&service=Current+Users
[Tue Jan 26 04:28:31 2016] [error] [client 182.180.102.10] File does not exist: /usr/local/nagios/share/usr, referer: http://IP-Address/nagios/cgi-bin/notifications.cgi?contact=all

Re: Command Expansion Error

Posted: Tue Jan 26, 2016 10:23 am
by rkennedy
Please post your apache configuration for us to take a look at.

Also, what version of Nagios are you running?

Re: Command Expansion Error

Posted: Tue Jan 26, 2016 12:40 pm
by rlinux57
I have using nagios 4.1 version, please find httpd conf attachment.

Re: Command Expansion Error

Posted: Tue Jan 26, 2016 3:35 pm
by rkennedy
I just installed core on a fresh machine, and noticed a different -

Code: Select all

#DocumentRoot "/var/www/html"
DocumentRoot "/usr/local/nagios/share/"
Do you know why the existing DocumentRoot is commented out? Can you try uncommenting it, restart httpd / nagios and try again?

Re: Command Expansion Error

Posted: Wed Jan 27, 2016 2:24 am
by rlinux57
Even i have uncomment that line but it won't work again getting same error when press go button.

Re: Command Expansion Error

Posted: Wed Jan 27, 2016 12:14 pm
by rkennedy
What OS are you running? Can you also post any other configuration files in your conf.d folder?