Hi Guys,
is it possible to use a the output of Linux hostname in the controlfile for
connection testing?
vinh@alpha:/opt/monit> hostname
alpha
Currently I do something like this
CHECK PROCESS kibana WITH MATCHING "/opt/kibana/bin/../node/bin/node\s"
if failed
host alpha
port 5601
type tcp
protocol http
then alert
alert [email protected]
group elkstack
The problem is I have kibana run on multiple hosts and binded to the
hostname of its respective hosts. I would like to have the same
configuration file on each host, instead of changing the hostname on each
host. I tried
CHECK PROCESS kibana WITH MATCHING "/opt/kibana/bin/../node/bin/node\s"
if failed
host $HOST
port 5601
type tcp
protocol http
then alert
alert [email protected]
group elkstack
That does not work. I think $HOST only works for SYSTEM. Any ideas how
this can be achieved?
Thanks in advance
Vinh
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general