I am looking to make a template to monitor certain services on Linux servers. I have found templates for Linux servers but they report on everything. How can I create my own OR can I edit an existing Template to my liking. Thanks for any help
Ad Widget
Collapse
New user Questions
Collapse
X
-
Thanks for the reply. I am trying to get this up and running. I do not understand the templating yet. I have only a few services that I want to monitor, http, postfix, sshd, mysql. Is there simple template out there for one of these and I can clone it for the others? I have looked all day long without finding anything. I have about 350 machines that I want to monitor, so a template is the only way as far as I can see.Comment
-
The version of Zabbix is 6.4.7 and I have the Agent2 installed on several systems and I am getting info back. I am using the Linux by Zabbix Agent template to start, https://git.zabbix.com/projects/ZBX/...lates/os/linuxComment
-
So I have things kinda working. Using this template (I full cloned it) SystemD by Zabbix Agent2, I changed the macro
​
Stopping chronyd and starting it gives me alerts. The next question is: How can I use a macro like this to watch multoiple services ie: httpd, cron, postfix, etc I tried to add them all into the value ie: cron.service,chronyd.service, etc I got an error. I tried to add a second Macro {$systemd.name.service.matches} Value cron.service And got an error that I could only have one macro like that. Suggestions??
ThanksComment
-
Back at it. So in the macro {$SYSTEMD.NAME.SERVICE.MATCHES} I have this for the value ^(chronyd|crond|fail2ban|httpd|mariadb|postfix|ssh |freepbx).service I see data for all but fail2ban. I can query the system from the command line with service fail2ban status and it is running. If I run systemctl --type=service --state=running fail2ban is listed as a service. I am confused, thanksComment
-
Your regex is: name.service
How does the fail2ban service name appear when executing "systemctl --type=service --state=running" ?
if the name is "fail2ban.service" then your regex is correct.
but if the name is for example: "fail2ban-server.service", then change your regex to fail2ban-server
Wellington​Comment
Comment