Page 1 of 2
how to remove the services from _multiple_hosts.cfg files
Posted: Thu May 30, 2019 11:42 pm
by surmeena
Hi,
We have added the few services in _multiple_hosts.cfg file .../services directory, but im not able to remove the services from _multiple_hosts.cfg.
Could you please let me know how i can remove the services permanently.
Thanks,
Suresh
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Fri May 31, 2019 1:06 pm
by cdienger
How are you trying to remove them? Do you see them in the CCM web UI? Do you receive an error when you try to remove them?
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Tue Jun 04, 2019 4:37 am
by surmeena
Those are all configured in "/usr/local/nagios/etc/services",
im trying to remove in cfg file only.
FYI:
define service{
use generic-service
host_name xxxx-abc-a
service_description DISK OPT
check_command check_by_ssh_master!psnagios!/usr/local/nagios/tmp!"/users/psnagios/nrpe-agent/nrpe/libexec/check_disk -w 15% -c 10% -p /opt"
contact_groups CONTACT_GRP
}
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Tue Jun 04, 2019 4:56 pm
by cdienger
Do not make changes directly to the configuration files - this is what the CCM in XI is for. If you make changes directly to the files they will get overwritten.
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Thu Jun 06, 2019 11:33 pm
by surmeena
We are using XI only, i have tried to remoce from CCM only, but no luck.
After some time service will add again.
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Fri Jun 07, 2019 12:48 pm
by cdienger
How long does it take for them to be readded? Once they are removed, the only expected ways they could be readded is if someone added them back or restored a previous configuration.
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Fri Jul 19, 2019 5:56 am
by surmeena
Its displaying automatically after 30 min to 1 hour
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Fri Jul 19, 2019 12:08 pm
by lmiltchev
Let's clarify a few things...
Are you trying to delete some services completely, or just move them out of _multiple_hosts.cfg file, and place them in different (separate) configs?
It is strange that the configs would "revert" in 30 min to an hour... Have you checked the audit log to see if someone else on your team is re-adding these objects? Are you using some automation via ansible, puppet, chef, db replication setup, etc.?
Show us the actual _multiple_hosts.cfg config, and screenshot of what you see in the GUI after removing the services.
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Thu Jul 25, 2019 5:29 am
by surmeena
Hi,
please check the screen shot, i have removed few services from _multihost.cfg file. (please check the updated on time stamp)
again the services are back.
no one is added again .
FYI,
is it coming the files are imported through CCM tool in nagios.
Thanks,
Suresh
Re: how to remove the services from _multiple_hosts.cfg file
Posted: Thu Jul 25, 2019 5:30 am
by surmeena
Added one more screen shot.