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
how to remove the services from _multiple_hosts.cfg files
Re: how to remove the services from _multiple_hosts.cfg file
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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: how to remove the services from _multiple_hosts.cfg file
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
}
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
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: how to remove the services from _multiple_hosts.cfg file
We are using XI only, i have tried to remoce from CCM only, but no luck.
After some time service will add again.
After some time service will add again.
Re: how to remove the services from _multiple_hosts.cfg file
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: how to remove the services from _multiple_hosts.cfg file
Its displaying automatically after 30 min to 1 hour
Re: how to remove the services from _multiple_hosts.cfg file
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.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: how to remove the services from _multiple_hosts.cfg file
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
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
You do not have the required permissions to view the files attached to this post.
Re: how to remove the services from _multiple_hosts.cfg file
Added one more screen shot.
You do not have the required permissions to view the files attached to this post.