Hi All,
When we are applying apply configuration from Configure-->Core Configuration Manager--> Apply Configuration it's showing below error.
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/nix_check_filesystem_usr.cfg', starting on line 16)
But when we are checking from server. Pre-flight check is showing 0 error.
Even after deleting the file /usr/local/nagios/etc/services/nix_check_filesystem_usr.cfg same error is generating. Attached the screen short and log details.
Our Nagios version is: Nagios XI 2014R2.7.
Getting error on Apply Configuration through WebConsole
Getting error on Apply Configuration through WebConsole
You do not have the required permissions to view the files attached to this post.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
Re: Getting error on Apply Configuration through WebConsole
See what you have on line 16 in the "/usr/local/nagios/etc/services/nix_check_filesystem_usr.cfg" file. You will have to modify the "problem" service under the CCM, and make sure it has a host, and a valid service description.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Getting error on Apply Configuration through WebConsole
Thanks for your reply.
The file don't have 16 line at all.
I have even deleted the service but still it's not work. Attached the service details.
define service {
host_name daert11
service_description NIX check /usr file system
hostgroup_name centos_linux_servers,redhat_linux_servers
display_name nix_check_filesystem_usr
check_command check_nrpe!check_disk!-a '-w 10% -c 5% -l -p /usr'!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
register 1
}
The file don't have 16 line at all.
I have even deleted the service but still it's not work. Attached the service details.
define service {
host_name daert11
service_description NIX check /usr file system
hostgroup_name centos_linux_servers,redhat_linux_servers
display_name nix_check_filesystem_usr
check_command check_nrpe!check_disk!-a '-w 10% -c 5% -l -p /usr'!!!!!!
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
register 1
}
You do not have the required permissions to view the files attached to this post.
Regards,
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
Sk Abdul Goffar
Nagios Version:Nagios XI 5.4.8
OS:CentOS release 6.5
Re: Getting error on Apply Configuration through WebConsole
Hard to tell based off of that screenshot - everything looks alright there. When errors occur during 'Apply config' its usually a conflict between what the DB has on record and what the flat files have listed at the moment. The following process should resolve it:
In the XI UI go to:
Core Config Manager > Tools > Write Config Files
Then follow these steps in order:
delete (deletes all flat files)
write (creates new flat files based off of what is in MySQL)
verify (runs the nagios verify cmd)
* If verify is good = apply config
* If verify is bad = correct the corresponding error, then repeat these steps until there are no more errors. - If in any doubt, post the error here, hopefully it will provide more detail.
In the XI UI go to:
Core Config Manager > Tools > Write Config Files
Then follow these steps in order:
delete (deletes all flat files)
write (creates new flat files based off of what is in MySQL)
verify (runs the nagios verify cmd)
* If verify is good = apply config
* If verify is bad = correct the corresponding error, then repeat these steps until there are no more errors. - If in any doubt, post the error here, hopefully it will provide more detail.
Be sure to check out the Knowledgebase for helpful articles and solutions!