Report or list of services, commands and arguments

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lilydalehs
Posts: 34
Joined: Fri May 29, 2020 7:20 pm

Report or list of services, commands and arguments

Post by lilydalehs »

Hi All,

is it possible to run a report (or do a db query) which would allow me to get a list of all services with the associated commands and arguments. In particular I'm after the arguments so that I can do some verification against our current setup.

I have resumed looking after a site and I believe that interim techs have moved ports on switches and I'd like to do some QA on the commands. In particular, the $ARG1$ from the attached image.

Cheers,
Chris.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Report or list of services, commands and arguments

Post by benjaminsmith »

Hi Chris,

I believe the API might do the trick here. You can pull all of the current services in the CCM using the following example:

Code: Select all

curl -XGET "HTTP://ipaddress/nagiosxi/api/v1/config/service?apikey=123&pretty=1"
and then filter the data to your choosing. More details on the Config API endpoint by going to Help > API Docs in the GUI.

Let me know if you have further questions.
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!
lilydalehs
Posts: 34
Joined: Fri May 29, 2020 7:20 pm

Re: Report or list of services, commands and arguments

Post by lilydalehs »

Hi benjaminsmith,

thanks for the info. It seems our nagios version is a little too old for that one. That command returns "Not implemented yet", so I will have to wait till I can upgrade.

Cheers,
Chris.

P.S. I spent a bit of time digging around in the nagios database and discovered the data I'm interested in so I think I'll do it that way. Thanks for the other info anyway.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Report or list of services, commands and arguments

Post by scottwilkerson »

lilydalehs wrote:Hi benjaminsmith,

thanks for the info. It seems our nagios version is a little too old for that one. That command returns "Not implemented yet", so I will have to wait till I can upgrade.

Cheers,
Chris.

P.S. I spent a bit of time digging around in the nagios database and discovered the data I'm interested in so I think I'll do it that way. Thanks for the other info anyway.
Glad you found a solution!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked