I have a working installation of Zabbix 3 on Centos 7.2.
The monitored hosts have all been auto-discovered, and I am getting good graphs of CPU and Memory use.
I would now like to monitor the state of a service on the remote hosts - sssd - but I am unsure where to start.
Is this an External Check or do I need to put it into an SSH Check?
I know how to eyeball the data locally - on any server run
And I know that I want to run something more like:
on the host in question. But how do I do that (or "what is the best way to do that?").
I should note - in case this affects the answer - that once monitored, I would also like to add triggers: if it enters the state failed, email me and then attempt to restart it locally.
The monitored hosts have all been auto-discovered, and I am getting good graphs of CPU and Memory use.
I would now like to monitor the state of a service on the remote hosts - sssd - but I am unsure where to start.
Is this an External Check or do I need to put it into an SSH Check?
I know how to eyeball the data locally - on any server run
Code:
systemctl status sssd
Code:
`systemctl is-active $SERVICE` != "active"
I should note - in case this affects the answer - that once monitored, I would also like to add triggers: if it enters the state failed, email me and then attempt to restart it locally.
Comment