Re: CGI Error created by "enable_environment_macros=1"
Posted: Wed Jul 15, 2015 7:39 am
We have possibly found the source of the issue.
Our old .cfg Files have in the host definition empty customer fields.
for example…
I don’t know why empty fields are in the config files, there comes from Nagios 2 installation. Nagios 3.2.3 have no problem with this. I have tried to delete there in a small Configuration, after that "enable_environment_macros=1"make no more problems. I will implement this for all our .cfg Files.
Our old .cfg Files have in the host definition empty customer fields.
for example…
Code: Select all
define host{
use linux-server
host_name localhost
alias localhost
address 127.0.0.1
notes $_HOSTCUSTOMER001$ $_HOSTCUSTOMER002$ $_HOSTCUSTOMER003$ $_HOSTCUSTOMER004$ $_HOSTCUSTOMER005$
notes_url http://websitename
icon_image logo_axis_40x40.png
statusmap_image Icon.png
register 1
# <br>
_customer001 Location: Germany, Berlin<br>
_customer002
_customer003
_customer004 <a href="http://websitename/Service1">Servicename1</a><br>
_customer005 <a href="https://websitename/Service2">Servicename2</a><br>
}