I am trying to configure the plugin check_mssql and what I am looking for is that at the time of setting the parameter “mssql_health_hostname” there is a command that runs a command and this automatically detects the “hostname” of the server and thus not having to configure the service for each server.
If someone knows the way to do it I appreciate your comments and support.
You can use other variables, for example you can set $host.name$ in the mssql_health_hostname variable.
This will the resolve to the hostname of the host the service is applied to.
Example:
would resolve to
when the check is executed