Run Check Command and Custom Variables

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Re: Run Check Command and Custom Variables

Post by AngeloMileto »

Hey Peter,

You're on the right path - at least from what I managed to get working. First, sorry if my explanation of what I did to make it work was confusing but I can't copy/paste any of the configurations and was too lazy to hand-jam all of them

ANYWAY, you're on it! The trick that I found is, as you've pointed out, the fact that it needs to be a _HOST variable. So I found, in my case, a template that existed for web/http checks and created the _http_port=443 variable in there. Then it's just a relatively simple matter to remember to add that template to all the hosts I need to check basic http sites for (actually https since it's 443).

Then, for the 5 or so hosts that have custom ports, I just create the _http_port=xxx in that host and viola.

So in your case, instead of creating a custom service template, maybe make that into a host template?
Post Reply