Page 1 of 2
Error while applying configuration
Posted: Fri Aug 05, 2016 8:50 am
by RIDS_I2MP
Hi Team,
I want to disable monitoring on few servers, initially different filesystems and services were monitored on these services.
While disabling monitoring, I have first deleted the host from the list of servers in each service which were monitored then I made the host inactive and deleted the host as well created in Nagios.
When I clicked on apply configuration I am receiving attached error. whereas earlier it was working fine and I have disabled monitoring on various other servers as well.
Kindly suggest.
Re: Error while applying configuration
Posted: Fri Aug 05, 2016 10:38 am
by bwallace
The error is indicating that in the /usr/local/nagios/etc/services/AIX-VAR.cfg file you have a service that is not attached to an existing host, or that the service is lacking a service_description field. It could be either, you'll need to check it out or post the file here. You can do this via the UI in CCM - once you find the AIX-VAR service, click the floppy disk icon to the right in order to view the text config.
Re: Error while applying configuration
Posted: Fri Aug 05, 2016 10:43 am
by rkennedy
In addition to what @bwallace mentioned, if you do not want to fix it, then you need to delete the services that were associated with that host as well. Services don't go away when a host does, they operate independently in that way.
Re: Error while applying configuration
Posted: Wed Aug 10, 2016 4:44 am
by RIDS_I2MP
Hi Team,
I have checked the file and I didn't get anything wrong in it.
And I can't delete the service completely as different other hosts are included in this service.
Kindly suggest.
Re: Error while applying configuration
Posted: Wed Aug 10, 2016 5:07 am
by RIDS_I2MP
Hi Team,
As per Bwallace suggestion below, I have checked the AIX-VAR file and compared it with the other service file.
bwallace wrote:The error is indicating that in the /usr/local/nagios/etc/services/AIX-VAR.cfg file you have a service that is not attached to an existing host, or that the service is lacking a service_description field. It could be either, you'll need to check it out or post the file here. You can do this via the UI in CCM - once you find the AIX-VAR service, click the floppy disk icon to the right in order to view the text config.
Below is my observation i.e. host_name is null in AIX-VAR whereas in reference file host_name consists list of hostnames:
AIX-Var file
define service {
host_name null
service_description /Var usage
use xiwizard_nrpe_service
servicegroups AIX_OS_Services
check_command check_nrpe!check_disk!-a '-w 25% -c 15% -p /var'!!!!!!
max_check_attempts 1
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 0
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts ri_unix_team
contact_groups All_alerts
_xiwizard aix
register 1
}
Reference file :
host_name EU2NAPU319,EU2NAPU321,EU2NAPU329
service_description /usr usage
use xiwizard_nrpe_service
servicegroups AIX_OS_Services
check_command check_nrpe!check_disk!-a '-w 15% -c 10% -p /usr'!!!!!!
max_check_attempts 1
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 0
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts ri_unix_team
contact_groups All_alerts
_xiwizard aix
register 1
}
Kindly suggest.
Re: Error while applying configuration
Posted: Wed Aug 10, 2016 10:52 am
by lmiltchev
What is the host/service that you are trying to delete? What are the "dependent relationships" that you see when you click on the "Relationship Info" button next to the host/service under the CCM? Which of the services, "/Var usage" or "/usr usage", is located on line 16 in the "AIX-Var.cfg"? Have you tried assigning a host to "/Var usage" or deleting it?
Re: Error while applying configuration
Posted: Thu Aug 11, 2016 2:56 am
by RIDS_I2MP
Hi Team,
My aim was to disable monitoring for few hosts, I have followed below steps:
1)Checked which all services are monitored on those hosts (one of those service was AIX-VAR)
2)Then removed the host entry from each service from CCM
3)Then I made some services inactive which were only used to monitor any of these hosts
4)Clicked on apply configuration, but I received previously attached error message
I don't want to delete AIX-VAR service as it is used to monitor other hosts as well, on which I don't want to disable monitoring but AIX-VAR service consisted the hosts on which I want to disable monitoring so I just removed those hosts from the service.
Line 16 in the file is below line:
16 define service {
17 host_name null
18 service_description /Var usage
and so on.
I have also tried to added and delete some hosts in AIX-VAR service through CCM then click on "apply configuration" but didn't succeed still I am receiving the same error.
Kindly suggest some solution as soon as possible.
May I know What time do your team work?
Re: Error while applying configuration
Posted: Thu Aug 11, 2016 10:01 am
by lmiltchev
Is opening a new support ticket in our email ticketing system an option for you? It is going to be faster to resolve the issue during a remote session. Send us an email at
[email protected]. Type "Error while applying configuration" in the subject field, and provide a URL link to this topic in the email's body.
May I know What time do your team work?
Our normal business hours (CST) are:
Monday – Thursday: 9:00 am – 5:00 pm
Friday: 9:00 am – 2:00 pm
Re: Error while applying configuration
Posted: Wed Aug 17, 2016 1:03 am
by RIDS_I2MP
Hi Team,
We will let you know about opening a new support ticket in your email ticketing system, mean while can you suggest us some other options to solve this issue?
why the AIX-VAR config file is showing "host_name" as null? whereas it should show the list of hostnames on which monitoring is enabled.
Re: Error while applying configuration
Posted: Wed Aug 17, 2016 10:56 am
by lmiltchev
Go to the CCM->Services->AIX-VAR->Manage Hosts, add at least one host, save, and apply configuration. Did this solve the issue?