MogiePete / zabbix-systemd-service-monitoring

Simple Zabbix Template to discover, monitor, and alert on systemd services.
GNU General Public License v2.0
92 stars 41 forks source link

Update userparameter_systemd_services.conf #5

Closed Josephvh closed 5 years ago

Josephvh commented 5 years ago

Service discovery SED for search and replace of ".service" syntax didn't target only ".service", _service is also targeted and incorrectly reports on a service called mail_directory_service. E.G

~ # systemctl list-unit-files | grep service | grep enabled | awk '{print $1}'| sed 's/.service//' | grep mail_dir mail_directory.service ~ # systemctl list-unit-files | grep service | grep enabled | awk '{print $1}'| sed 's/.service//' | grep mail_dir mail_directory_service