Hi Team,
I need list of services with contacts assigned to it .
Is there any way to get each services with contacts from nagiosxi console or cmd prompt(putty) ?
Need to pull services list with contacts
-
manimurugesan
- Posts: 145
- Joined: Wed Oct 03, 2018 9:15 am
Re: Need to pull services list with contacts
Hello @naminurugesan
Thanks for reaching out, found others that had similar requests.
You can view the data in a format but if you would like to parse the data then you would need to run something like this, for example:
Example:
Thanks,
Perry
Thanks for reaching out, found others that had similar requests.
Code: Select all
{yourserveraddress}/nagios/cgi-bin/config.cgiCode: Select all
{yourserveraddress}/nagios/cgi-bin/objectjson.cgi?query=service&hostname={hostname]&servicedescription=Disk+Usage"contact_groups": [
],
"contacts": [
"nagiosadmin"
],
Thanks,
Perry