Hi Kennedy, thanks for the reply
Yes i do as you say.
The problema is when in nagiosxi i try to edit/add a service. when i sabe the confiiguration the host "disappears" and not write correcly the .cfg.
If I check the exclude options they write correcly.
Maybe is an error do it by the upgrade (some variable or permissions.. I d'ont know).
Maybe it's not important but I find this:
if check this log:
tail -f /usr/local/nagiosxi/var/cmdsubsys.lo
i click "Aplly configuration" with services.cfg without host_name defined.
Code: Select all
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/TEST_HOST1.cfg', starting on line 16)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
RET: 1
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors /usr/local/nagiosxi/scripts
tar: Removing leading `/' from member names
/usr/local/nagiosxi/scripts
LATEST NOM SNAPSHOT: /usr/local/nagiosxi/nom/checkpoints/nagioscore/1476866884.tar.gz
/ /usr/local/nagiosxi/scripts
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1476866884.tar.gz
tar: usr/local/nagios/etc/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot change mode to rwsrwsr-x: Operation not permitted
.....
tar: usr/local/nagios/etc/pnp: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
if I edit the -cfg service file manually (I add the host_name) and "Apply configuration" i don't have the error of operation not permitted.
Sorry for the english, it's not the best. If you need some files or some output commands tell me
Thanks!