import failed with exclamation mark

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sltn_support
Posts: 20
Joined: Thu Dec 07, 2017 10:12 am

import failed with exclamation mark

Post by sltn_support »

Hi,

I've create a service and in this service I excluded some hosts.
But when I want to import this file (trough ccm) I get:

"You must enter a proper host name. You can not use the characters: \~!$%^&*"'|<>?()="

This is the config file:

define service {
host_name !s001v,!s002v,!s003v
service_description Service: Windows Update
use st_alert_p2,st_check_15-5-6
hostgroup_name 04_microsoft_windowsserver_2008
check_command check_nt_service_1.2_v2c_sltn!"Windows Update"!!!!!!!
process_perf_data 1
register 1
}
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: import failed with exclamation mark

Post by lmiltchev »

The CCM import tool doesn't support group exclusions, at least, not yet.
example01.PNG
What you can do is import the service config without exclusions, then modify the service in the CCM to exclude the three hosts - s001v, s002v, and s003v.

CCM > Services > Windows Update > Manage Hosts > Add Selected > select the "Exclude" check-box > Close > Save > Apply Configuration
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sltn_support
Posts: 20
Joined: Thu Dec 07, 2017 10:12 am

Re: import failed with exclamation mark

Post by sltn_support »

lmiltchev wrote:The CCM import tool doesn't support group exclusions, at least, not yet.
example01.PNG
What you can do is import the service config without exclusions, then modify the service in the CCM to exclude the three hosts - s001v, s002v, and s003v.

CCM > Services > Windows Update > Manage Hosts > Add Selected > select the "Exclude" check-box > Close > Save > Apply Configuration
Ok but this is just an example. I have like +- 150 servers to exclude everytime.
So Nagios has his own export and import tool but it is not working 100%
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: import failed with exclamation mark

Post by lmiltchev »

I understand this is going to be a tedious process in large environments, but again, as of now, importing group exclusions is not supported yet. I filed an internal feature request for adding this functionality to the CCM import tool, which is pending approval.

As a "workaround" for the time being, you could manage these hosts/services manually by placing the configs in the static directory. For more information on the manual config file management in Nagios XI, please review our KB article on the topic here:

https://support.nagios.com/kb/article/n ... t-160.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked