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.
Extract arguments in services
Extract arguments in services
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
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
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
Check command = check_local_load
$ARG1$ = 5.0,4.0,3.0
$ARG2$ = 10.0,6.0,4.0
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!!!!!!",$ARG1$ = 5.0,4.0,3.0
$ARG2$ = 10.0,6.0,4.0
Re: Extract arguments in services
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
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
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
We do not have guides for directly interacting with the database. but the filed would look the same.
thanks, I believe this was resolve this AMrajasegar 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.
Re: Extract arguments in services
Managed to figure it out. Thanks.scottwilkerson wrote:We do not have guides for directly interacting with the database. but the filed would look the same.
thanks, I believe this was resolve this AMrajasegar 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.
Please close this thread
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
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
Greatrajasegar wrote:Managed to figure it out. Thanks.scottwilkerson wrote:We do not have guides for directly interacting with the database. but the filed would look the same.
thanks, I believe this was resolve this AMrajasegar 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.
Please close this thread
Locking thread