how to remove the services from _multiple_hosts.cfg files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
surmeena
Posts: 9
Joined: Thu May 30, 2019 11:33 pm

how to remove the services from _multiple_hosts.cfg files

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how to remove the services from _multiple_hosts.cfg file

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
surmeena
Posts: 9
Joined: Thu May 30, 2019 11:33 pm

Re: how to remove the services from _multiple_hosts.cfg file

Post 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
}
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how to remove the services from _multiple_hosts.cfg file

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
surmeena
Posts: 9
Joined: Thu May 30, 2019 11:33 pm

Re: how to remove the services from _multiple_hosts.cfg file

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how to remove the services from _multiple_hosts.cfg file

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
surmeena
Posts: 9
Joined: Thu May 30, 2019 11:33 pm

Re: how to remove the services from _multiple_hosts.cfg file

Post by surmeena »

Its displaying automatically after 30 min to 1 hour
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: how to remove the services from _multiple_hosts.cfg file

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
surmeena
Posts: 9
Joined: Thu May 30, 2019 11:33 pm

Re: how to remove the services from _multiple_hosts.cfg file

Post 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
You do not have the required permissions to view the files attached to this post.
surmeena
Posts: 9
Joined: Thu May 30, 2019 11:33 pm

Re: how to remove the services from _multiple_hosts.cfg file

Post by surmeena »

Added one more screen shot.
You do not have the required permissions to view the files attached to this post.
Locked