Hello,
I'm not the only one dubious about current systemd integration: The current integration generates a lot of false positives (see eg: https://www.zabbix.com/forum/zabbix-...false-positive).
I've the impression that these false positives come from the fact that the trigger is based on the "active" attribute of a systemd unit (ie: when a systemd unit is "inactive" zabbix will trigger) while it's perfectly normal to have inactive systemd units (IINM, a lots of systemd units just run at boot time once and then become inactive).
So, my question and suggestion is: Why not making the integration trigger on the "failed" attribute of systemd units? Is there a particular reason why you don't use this information or can it be used to improve this monitoring?
Best regards,
Cyrille
Additionnal info:
==========
On the system I'm testing the template, I have 1 failed systemd units, and 114 inactive systemd units:
root@deus:/etc# systemctl list-units --state=failed | tail -n 1
1 loaded units listed.
root@deus:/etc# systemctl list-units --state=inactive | tail -n 2
114 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
Strangely enough, Zabbix triggers "only" on 19 inactive systemd units
I'm not the only one dubious about current systemd integration: The current integration generates a lot of false positives (see eg: https://www.zabbix.com/forum/zabbix-...false-positive).
I've the impression that these false positives come from the fact that the trigger is based on the "active" attribute of a systemd unit (ie: when a systemd unit is "inactive" zabbix will trigger) while it's perfectly normal to have inactive systemd units (IINM, a lots of systemd units just run at boot time once and then become inactive).
So, my question and suggestion is: Why not making the integration trigger on the "failed" attribute of systemd units? Is there a particular reason why you don't use this information or can it be used to improve this monitoring?
Best regards,
Cyrille
Additionnal info:
==========
On the system I'm testing the template, I have 1 failed systemd units, and 114 inactive systemd units:
root@deus:/etc# systemctl list-units --state=failed | tail -n 1
1 loaded units listed.
root@deus:/etc# systemctl list-units --state=inactive | tail -n 2
114 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
Strangely enough, Zabbix triggers "only" on 19 inactive systemd units
So if it is enabled but inactive at the time of discovery, it should not even be discovered.
Comment