Command Expansion Error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Command Expansion Error

Post 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
Attachments
Screenshot from 2016-01-26 15-24-27.png
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Command Expansion Error

Post by rkennedy »

Please post your apache configuration for us to take a look at.

Also, what version of Nagios are you running?
Former Nagios Employee
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Command Expansion Error

Post by rlinux57 »

I have using nagios 4.1 version, please find httpd conf attachment.
Attachments
httpd.txt
(33.77 KiB) Downloaded 332 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Command Expansion Error

Post 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?
Former Nagios Employee
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Command Expansion Error

Post by rlinux57 »

Even i have uncomment that line but it won't work again getting same error when press go button.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Command Expansion Error

Post by rkennedy »

What OS are you running? Can you also post any other configuration files in your conf.d folder?
Former Nagios Employee
Locked