MogiePete / zabbix-systemd-service-monitoring

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

fix for [#20] #36

Open samuk10 opened 2 years ago

samuk10 commented 2 years ago

Same as: #20 On ubuntu i have no problem on the installation, but on centos7 i had this problem. running the scripts was everythin fine but using agent this happen:

$ /etc/zabbix# zabbix_agentd -t "systemd.service.status[ssh]" systemd.service.status[ssh] [m|ZBX_NOTSUPPORTED] [Unsupported item key.]

Fix:

  1. Find in agend.conf which folder for external confs

$ cat /etc/zabbix/zabbix_agentd.conf | grep /etc/zabbix/zabbix_agent

  1. Place _userparameter_systemdservices.conf inside the folders above
  2. Restart zabbix_agent

For me was like this: Zabbix Agent2 on Ubuntu Working in this folder: /etc/zabbix/zabbix_agent2.d/userparameter_systemd_services.conf Zabbix Agent(old): on Centos7 Working in this folder: /etc/zabbix/zabbix_agentd.conf.d/userparameter_systemd_services.conf