Variables
There are a few ‘gotchas’ with Variables which are noted below. If you have any issues with Variables, please refer first to this section.
Variable value Copied
A Variable value field can only contain 63 characters or less and is subject to some strict character restrictions. This is because Opsview Monitor cannot allow the service description to be longer than 128 characters​ when combined with the Service Check name. If it is longer, this will fail when running Apply Changes in the Configuration menu, and the message below will be displayed:
ERROR 500: Service name 'XXXX' on host 'YYYY' has greater than max 128 chars.
To work around the character and length restrictions you can use the Override Arg 1
field; this has no character restrictions and the field length is significantly larger. For the Servicecheck configuration you can use %VARIABLE:1%
instead of %VARIABLE%
.
Internally generated variables Copied
Some Variables are internally-generated, so it is not necessary to manually add information at the Host edit pages. There is currently only one internally-generated variable:
Variable Name | Description | Host Template |
---|---|---|
INTERFACE | Returns X variables, one for each SNMP interface stored from a Query Host call | SNMP MIB-II |
Add the Host Template to this Host so that the appropriate Service Checks are created to monitor each variable.