I have a Ubuntu server for which I would like Zabbix to alert me when any one of (or a combination of) a few specific services either fail or if a service gets stopped. I installed zabbix-agent2 on my server that I want to monitor and I added the Systemd by Zabbix agent 2 template to it.
The default state of this template isn't much use to me as it seems to alert on just about everything so I've had to disable until I work out how to configure it so as to be useful and not spammy. Here's what I tried but didn't work how I hoped:
Under the Zabbix server web UI I went to Configuration -> Templates -> Systemd by Zabbix agent 2 -> Macros and change {$SYSTEMD.NAME.SERVICE.MATCHES} from
.*
to
apache2\.service|mysql\.service|php8.1-fpm\.service|ssh\.service
That was my guess at how I might configure it but seems that isn't how its done.
Doing something like this seems like something many users might want to do so I'd like to see this covered on:
I've also got a problem with the official smartctl template. One of the machines that I'm using it with has several disks that are attached to a Dell HW RAID controller that is configured to run in HBA/IT mode because its using ZFS and I'm getting the error:
"Some command to the disk failed"
For every HBA (SATA 3 SSD) disk.
Does the smartctl template not work with SATA disks connected to a RAID controller in HBA/IT mode? I'm pretty sure smartctl works with those disks OK via the command line.
I am running Zabbix server 6.0 under Ubuntu 22.04
Thanks
The default state of this template isn't much use to me as it seems to alert on just about everything so I've had to disable until I work out how to configure it so as to be useful and not spammy. Here's what I tried but didn't work how I hoped:
Under the Zabbix server web UI I went to Configuration -> Templates -> Systemd by Zabbix agent 2 -> Macros and change {$SYSTEMD.NAME.SERVICE.MATCHES} from
.*
to
apache2\.service|mysql\.service|php8.1-fpm\.service|ssh\.service
That was my guess at how I might configure it but seems that isn't how its done.
Doing something like this seems like something many users might want to do so I'd like to see this covered on:
I've also got a problem with the official smartctl template. One of the machines that I'm using it with has several disks that are attached to a Dell HW RAID controller that is configured to run in HBA/IT mode because its using ZFS and I'm getting the error:
"Some command to the disk failed"
For every HBA (SATA 3 SSD) disk.
Does the smartctl template not work with SATA disks connected to a RAID controller in HBA/IT mode? I'm pretty sure smartctl works with those disks OK via the command line.
I am running Zabbix server 6.0 under Ubuntu 22.04
Thanks
Comment