Extract arguments in services

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Extract arguments in services

Post by rajasegar »

Nagios XI Enterprise version 5.6.9

I need to urgently extract list of arguments in all services.
Can you please advice the tables related to this and the relationship.

Thanks.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Extract arguments in services

Post by scottwilkerson »

Via the API you can get these
Help -> API Docs -> Config Reference
GET config/host
GET config/service

What you are looking for is the check_command in each entry, this contains the command name along with a list of arguments that are separated by !

so for example, if you had the following

Code: Select all

"check_command": "check_local_load!5.0,4.0,3.0!10.0,6.0,4.0!!!!!!",
Check command = check_local_load
$ARG1$ = 5.0,4.0,3.0
$ARG2$ = 10.0,6.0,4.0
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Extract arguments in services

Post by rajasegar »

We need to do a report for compliance.
Extracting via SQL to reporting tool seems like an easier solution.

BTW, I am not getting any notification from the forum anymore.
Can you please check at your end if emails is being sent out.

Thanks
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Extract arguments in services

Post by scottwilkerson »

We do not have guides for directly interacting with the database. but the filed would look the same.
rajasegar wrote:BTW, I am not getting any notification from the forum anymore.
Can you please check at your end if emails is being sent out.
thanks, I believe this was resolve this AM
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Extract arguments in services

Post by rajasegar »

scottwilkerson wrote:We do not have guides for directly interacting with the database. but the filed would look the same.
rajasegar wrote:BTW, I am not getting any notification from the forum anymore.
Can you please check at your end if emails is being sent out.
thanks, I believe this was resolve this AM
Managed to figure it out. Thanks.
Please close this thread
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Extract arguments in services

Post by scottwilkerson »

rajasegar wrote:
scottwilkerson wrote:We do not have guides for directly interacting with the database. but the filed would look the same.
rajasegar wrote:BTW, I am not getting any notification from the forum anymore.
Can you please check at your end if emails is being sent out.
thanks, I believe this was resolve this AM
Managed to figure it out. Thanks.
Please close this thread
Great

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