Service monitor scripts should be able to use the team's name and IP together. This would be for something like a SSH banner grab, where the content must have the team's name. At the moment, only the team's IP is available to the service scripts.
Right now, arguments to scripts are configured, where the raw string "IP" is replaced by the IP addr of the team being evaluated. Example:
[[checks]]
# ...
args = "-I IP -t 5"
While this has worked, it feels flimsy. A golang text/template format string could do the job of substituting {{ .Name }} and {{ .IP }}. That is just one solution, though.
Service monitor scripts should be able to use the team's name and IP together. This would be for something like a SSH banner grab, where the content must have the team's name. At the moment, only the team's IP is available to the service scripts.
Right now, arguments to scripts are configured, where the raw string "IP" is replaced by the IP addr of the team being evaluated. Example:
While this has worked, it feels flimsy. A golang
text/template
format string could do the job of substituting{{ .Name }}
and{{ .IP }}
. That is just one solution, though.