Using custom variables at service check
Posted: Thu Oct 11, 2018 5:53 am
Hello,
I had found the following documentations about the custom variables used by XI:
https://assets.nagios.com/downloads/nag ... tvars.html
https://assets.nagios.com/downloads/nag ... acros.html
But could not use a self defined variable.
The planed method is the following. I have many host objects, and wat separate them to A nd B and run a service check (nrpe) depending on these. So i created A and B host template and created an own variable "TYPE". After i managed the host to use for example "A" host template.
On the server object i had an nrpe service for what i want pass that TYPE variable, but cant figure it out how to pass for it. Tried it many form, but i becom eighter a "$" sing or nothing at the monitored service side script.
Can you help me out, where i make a mistake, what i misunderstood? I try to use the method for setting up other service also dependig on that grouping of hosts...
Thansk, best regards,
Ferenc
I had found the following documentations about the custom variables used by XI:
https://assets.nagios.com/downloads/nag ... tvars.html
https://assets.nagios.com/downloads/nag ... acros.html
But could not use a self defined variable.
The planed method is the following. I have many host objects, and wat separate them to A nd B and run a service check (nrpe) depending on these. So i created A and B host template and created an own variable "TYPE". After i managed the host to use for example "A" host template.
On the server object i had an nrpe service for what i want pass that TYPE variable, but cant figure it out how to pass for it. Tried it many form, but i becom eighter a "$" sing or nothing at the monitored service side script.
Can you help me out, where i make a mistake, what i misunderstood? I try to use the method for setting up other service also dependig on that grouping of hosts...
Thansk, best regards,
Ferenc