Page 1 of 1
Document to manage Free variables/service/servicegroups
Posted: Mon Apr 24, 2017 12:00 pm
by satishvjadhav
Hello,
Do we have any good document to understand how effectively we can use free variables after defining it with host and how we can decide the name of the variable to define how to use it and how can we configure it by passing as an argument while configuring any service check.
Thank you,
Satish
Re: Document to manage Free variables/service/servicegroups
Posted: Mon Apr 24, 2017 12:46 pm
by dwhitfield
I think
https://assets.nagios.com/downloads/nag ... gement.pdf will be of some use.
What version of XI are you using? That will help us know what is available via the API for you and what isn't. API documentation is built in to the Help menu.
Re: Document to manage Free variables/service/servicegroups
Posted: Mon Apr 24, 2017 9:11 pm
by tacolover101
are you referring to custom variables within core? if so, take a look at this page -
https://assets.nagios.com/downloads/nag ... tvars.html - it explains the references you'll want to make to use a hosts custom defined variable within a service.
Re: Document to manage Free variables/service/servicegroups
Posted: Tue Apr 25, 2017 9:23 am
by dwhitfield
Nagios 3 and 4 are similar in this regard, but you likely have Nagios Core 4 on the backend and thus
https://assets.nagios.com/downloads/nag ... tvars.html is the relevant document. The version of XI will help use determine what version of Core you are running on the backend.
Re: Document to manage Free variables/service/servicegroups
Posted: Tue Apr 25, 2017 11:25 am
by satishvjadhav
Hi All,
I am using nagios 5.4
Thank you
satish
Re: Document to manage Free variables/service/servicegroups
Posted: Tue Apr 25, 2017 2:03 pm
by dwhitfield
Ok, the document I sent is the appropriate one from the Core side (and the first one for XI). If you are looking to set this up in a host in XI, the you need to go to the Core Config Manager (aka CCM). Then go to hosts. Click on a host, then click on the Misc Settings tab (it's the last tab). There will be a "Manage Free Variables" button.
Re: Document to manage Free variables/service/servicegroups
Posted: Tue Apr 25, 2017 10:33 pm
by tacolover101
satishvjadhav wrote:Hi All,
I am using nagios 5.4
Thank you
satish
the same concept applies that is described on the document i linked. you'll need to utilize the GUI method though that @dwhitfield mentioned as this utilizes the core interface.
Re: Document to manage Free variables/service/servicegroups
Posted: Wed Apr 26, 2017 9:20 am
by dwhitfield
tacolover101 wrote:the same concept applies that is described on the document i linked.
That's true. In fact, spot-checking the Core 4 and Core 3 doc here suggests no differences in the two, but I like to be clear about what is going on on the back end so people don't get confused in situations where it does actually matter.
OP, did this help you out? Are we ready to close?