Document to manage Free variables/service/servicegroups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
satishvjadhav
Posts: 16
Joined: Tue Mar 07, 2017 5:18 am

Document to manage Free variables/service/servicegroups

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Document to manage Free variables/service/servicegroups

Post 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.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Document to manage Free variables/service/servicegroups

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Document to manage Free variables/service/servicegroups

Post 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.
satishvjadhav
Posts: 16
Joined: Tue Mar 07, 2017 5:18 am

Re: Document to manage Free variables/service/servicegroups

Post by satishvjadhav »

Hi All,

I am using nagios 5.4

Thank you
satish
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Document to manage Free variables/service/servicegroups

Post 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.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Document to manage Free variables/service/servicegroups

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Document to manage Free variables/service/servicegroups

Post 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?
Locked