Is it possible to find all the services/host a particular contact is attached to?
The reason being is that this one particular contact sends out a text message. a handful of servers no longer need that style of contacting and I would like to remove it from the services we no longer need to be texted about.
where is a contact assigned to?
where is a contact assigned to?
Everybody is somebody else’s weirdo
Re: where is a contact assigned to?
Thanks for reaching out @JohnFLiJohnFLi wrote: ↑Wed Oct 16, 2024 9:29 am Is it possible to find all the services/host a particular contact is attached to?
The reason being is that this one particular contact sends out a text message. a handful of servers no longer need that style of contacting and I would like to remove it from the services we no longer need to be texted about.
Do you have an enterprise version of XI? If so you can go to the ccm->tools->bulk modification tools. In this page click remove contact and on that page you can select the contact in question and find the hosts and services it is attached too.
Re: where is a contact assigned to?
No, i do not have the Enterprise Version 
But I did just notice if I click fast enough, it will show me the list of places that I can then copy and paste into excel.....
this will be good enough,
thank you
But I did just notice if I click fast enough, it will show me the list of places that I can then copy and paste into excel.....
this will be good enough,
thank you
Everybody is somebody else’s weirdo
Re: where is a contact assigned to?
This can be done with the API.
A GET to config/host or config/service will give you the contacts filed.
or
Output is in JSON but you can fix that pretty quick.
Happy Monitoring,
--SN
A GET to config/host or config/service will give you the contacts filed.
Code: Select all
curl -XGET "https://<you nagiosxi ip/fqdn>/nagiosxi/api/v1/config/host?apikey=<your-api-key>&filter=active&pretty=1"Code: Select all
curl -XGET "https://<you nagiosxi ip/fqdn>/nagiosxi/api/v1/config/service?apikey=<your-api-key>&filter=active&pretty=1"Happy Monitoring,
--SN