Ad Widget

Collapse

How do i monitor zabbix itself?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tiv
    Junior Member
    • Jun 2008
    • 5

    #1

    How do i monitor zabbix itself?

    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?
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    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.

    Comment

    • just2blue4u
      Senior Member
      • Apr 2006
      • 347

      #3
      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

      • Tenzer
        Senior Member
        • Nov 2007
        • 316

        #4
        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

        • ldil
          Junior Member
          Zabbix Certified Specialist
          • Jun 2007
          • 23

          #5
          Hi tiv

          I did this, running gnokki with a gsm phone and looking at port 10050 and 10051 on the local machine. If it fails send a mail and sms with sendsms/gnokki.

          You can also do this with Webmin monitoring.

          Greetz Leo
          Last edited by ldil; 25-06-2008, 01:37.

          Comment

          • tiv
            Junior Member
            • Jun 2008
            • 5

            #6
            so, it seems like setting up another zabbix for distributed monitoring might be overkill when we juts have 3 servers running total.

            ldil, what is this webmin monitoring?

            -v

            Comment

            • tore
              Junior Member
              • Feb 2008
              • 16

              #7
              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:
              Code:
              #!/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
              I run this script every minute via crontab

              --
              Tore

              Comment

              Working...