i just set up zabbix to monitor my three servers and it's working great. one question i have though is that if the server that zabbix is running on dies, zabbix wont notify me since it wont be running. what can i do about this?
Ad Widget
Collapse
How do i monitor zabbix itself?
Collapse
X
-
What was first, the chicken or the egg?
IMHO: monitoring is a secondary process, never a critical business app (like backup), if it fails by itself, it shouldn't matter for your critical processes.
I'd search freshmeat for some simple process checking + action triggering tool which can send you an email or sms. -
you could check if the server that's running zabbix is listening on port 10051 (standard zabbix server port).
or you EnableRemoteCommands=1 in agent config and let the server create a file on that agent every minute, then let the client check if the file is older than 1 minute.
Best solution would be zabbix distributed monitoring (with 2 zabbix servers). But i don't think you really wanna do that.
Big ZABBIX is watching you!
(... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)
Comment
-
I have monit running on my Zabbix server, which automatically starts the zabbix_server process again in case it dies. It keeps track of how often it restarts the process, and if it goes over a certain threshold it will stop trying. It informs about all this by sending e-mails, so the only thing it won't notice, is if the Zabbix servers's hardware goes down, but I have another Zabbix server to monitor that
Comment
-
We had some problems with the zabbix server process dieing, so I made a small bash script (running on the zabbix server) that restarts zabbix if it has died. It also writes a log so you can keep track of any restarts. Here is the code:
I run this script every minute via crontabCode:#!/bin/bash log=/var/log/zabbix/zabbix-autorestart.log procno=`ps -eF | grep -c "[z]abbix_server"` if (( $procno == 0 )); then # DEBUG echo "Zabbix not OK, RESTART!" /etc/init.d/zabbix-server stop /etc/init.d/zabbix-server start echo `date` >> $log # DEBUG else # DEBUG echo "Zabbix OK!" fi exit 0
--
ToreComment
Comment