Page 1 of 1
Extract arguments in services
Posted: Tue Jun 09, 2020 6:12 am
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.
Re: Extract arguments in services
Posted: Tue Jun 09, 2020 7:47 am
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
Re: Extract arguments in services
Posted: Tue Jun 09, 2020 8:00 pm
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
Re: Extract arguments in services
Posted: Wed Jun 10, 2020 7:31 am
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
Re: Extract arguments in services
Posted: Wed Jun 17, 2020 3:01 am
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
Re: Extract arguments in services
Posted: Wed Jun 17, 2020 6:47 am
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