Importing Configs into fresh Nagios XI Server
Posted: Wed Nov 02, 2016 4:09 pm
Hey there,
A while back, we tried to update our old Nagios installation, but it failed so we decided to build a new VM from scratch and import the configs.
Following the instructions and ordering for importing existing configs, I received an error when importing the files in my services directory. The import tool is failing with the following error:
You must enter a proper host name. You can not use the characters: \~!$%^&*"'|<>?,()=
Here's an example configuration that is failing:
define service {
host_name dc01-cache-01,dc01-cache-02,dc01-cache-03,dc01-cache-04,dc01-cache-05,dc01-cache-06
service_description Apache Status - Cache
use Standard Check Settings,Critical to VictorOps [System Administrators - Email]
check_command check_apache!-a '-H localhost -p 8888 ' !!!!!!!
check_period xi_timeperiod_24x7
notification_period xi_timeperiod_24x7
_xiwizard linux-server
register 1
}
It seems like it's interpreting the comma separated list of hostname as a single host. I especially think this is true because the services.cfg that only have one host (ie localhost) all imported successfully. I have tried added a space, but it still is not working.
A while back, we tried to update our old Nagios installation, but it failed so we decided to build a new VM from scratch and import the configs.
Following the instructions and ordering for importing existing configs, I received an error when importing the files in my services directory. The import tool is failing with the following error:
You must enter a proper host name. You can not use the characters: \~!$%^&*"'|<>?,()=
Here's an example configuration that is failing:
define service {
host_name dc01-cache-01,dc01-cache-02,dc01-cache-03,dc01-cache-04,dc01-cache-05,dc01-cache-06
service_description Apache Status - Cache
use Standard Check Settings,Critical to VictorOps [System Administrators - Email]
check_command check_apache!-a '-H localhost -p 8888 ' !!!!!!!
check_period xi_timeperiod_24x7
notification_period xi_timeperiod_24x7
_xiwizard linux-server
register 1
}
It seems like it's interpreting the comma separated list of hostname as a single host. I especially think this is true because the services.cfg that only have one host (ie localhost) all imported successfully. I have tried added a space, but it still is not working.