Using Variables in Service ARGS and Hosts
Posted: Tue Aug 11, 2015 6:50 am
Hello,
I am setting up a bunch of servers whose filesystem's will need to be monitored, but I do not want to create a single Service for each one. I though of creating Variables on Nagios Service and Host side:

So I could attach the Service to all Host and set up individually the threshold for the filesystem on Host variable's side, which i guess his value would overried Service one, isn't it?
Did anyone could manage to configure a service using as arguments those variables? Is that possible, or maybe I am trying something not implemented? Also, is there any "better" way to do this?

The goal is something like this:
COMMAND: /usr/local/nagios/libexec/check_disk -w $_FsWarn -c $_FsCrit -p $_Instance/$OracleHome/
Thanks in advance and best regards,
J.
I am setting up a bunch of servers whose filesystem's will need to be monitored, but I do not want to create a single Service for each one. I though of creating Variables on Nagios Service and Host side:

So I could attach the Service to all Host and set up individually the threshold for the filesystem on Host variable's side, which i guess his value would overried Service one, isn't it?
Did anyone could manage to configure a service using as arguments those variables? Is that possible, or maybe I am trying something not implemented? Also, is there any "better" way to do this?

The goal is something like this:
COMMAND: /usr/local/nagios/libexec/check_disk -w $_FsWarn -c $_FsCrit -p $_Instance/$OracleHome/
Thanks in advance and best regards,
J.