Good Morning,
How can I query the service displayname by api
Thks
KR
Query Service DisplayName
Re: Query Service DisplayName
This should do it:
Code: Select all
yum install jq
curl --silent -k -L 'http://YOURXISERVER/nagiosxi/api/v1/objects/servicestatus?apikey=YOURAPIKEY&pretty=1&host_name=localhost&service_description=SSH' | jq -r '.servicestatus[] .display_name'-
FCC_Nagios_Support
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: Query Service DisplayName
Many thanks I am gonna try
KR
KR
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Query Service DisplayName
Hi,
Sounds good. Let us know that works for you.
Sounds good. Let us know that works for you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Query Service DisplayName
Locking thread, ticket received, we will continue support through the ticket.
Thank you!
Thank you!