Ad Widget

Collapse

2 zabbix server, monitor each other and also other clients

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kemco
    Junior Member
    • Oct 2023
    • 10

    #1

    2 zabbix server, monitor each other and also other clients

    Hello Folks

    I would have a question

    I have 2 Zabbix server, each on different physical server.

    What do i want:

    I want to monitor 3-4 clients. But i also need to monitor the zabbix server itself. I have now notifications when one server is down, but i am getting them only when the server is up again (zabbix1 cant send a notification when its down itself, it will only send a notification when its up again and i will get 2 notifs, 1 that it was down and 1 its fixed)

    So what do i want exactly?

    zabbix 1 monitoring

    client1
    client2
    client3
    zabbix2

    zabbix 2 monitoring

    client1
    client2
    client3
    zabbix1


    i have 2 zabbix server for monitoring because when one should be down, whatever reason, that still the other one will monitor. both zabbix server monitor the same 3 clients and the other zabbix server.

    Is this even possible? any idea how to do it better? Maybe with floating ip? Even if possible, wouldnt i get double notifs (like when client1 gives a warning, zab1 and zab2 would send notifs).

    Any ideas?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Zabbix server component provides HA option also, so you can have OOB HA and wont need 2 separate instances... Just make sure your DB is also HA in such case.. It would be much more clearer setup than 2 separate instances.

    But you can make agent to work with 2 separate servers/proxies also.. its just a matter of defining Server and ServerActive parameters accordingly. And making sure you have all needed FW holes. But as you say, you may end up with duplicate notifications as both instances notify you individually...

    Comment

    • kemco
      Junior Member
      • Oct 2023
      • 10

      #3
      hmmm ok. i will still try if its gonna work. i also explain what i found out, please correct me whenever i tell something wrong.

      right now, i have 2 zabbix servers, these are the monitoring ones. both run zabbix 6.0 on ubuntu 20.04 and have installed server, frontend and agent, as database mysql and as web server apache.

      on the server i want to monitor i have zabbix6.0 but its on ubuntu 16.04. Because of that i have only installed agent and no database or webserver (as far as i know this should be enough anyways)

      right now i have notifications set up and working for this situation => when zabbix1 is down, zabbix2 gives a noti and vice versa. Also the availability symbol is green and i also tested with shutting down one of it and i get the notification. So far it works.

      Now my problem. One part of the problem is, i do not know how exactly i have to make the settings to monitor the website on the 16.04 server. Which templates for an example. All i want is to monitor if the website is reachable or down, check cpu and give a warning when over 70%, same for memory and storage. Maybe some other would be also good, i am open for ideas and suggestions since i am pretty new in the whole topic.

      But whatever i do, the availabilty symbol turns either red or stays green. when i pick linux by zabbix agent it turns red with the error "get value from agent failed: cannot connect to interruped system call" or when i go linux by zabbix agent active it just stays grey. I am almost sure i did the correct changes and also set the firewall correct.

      Any ideas how i can fix that and reach my goal?

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        So you want to monitor your third host (U1604) from both of your Zabbix servers? I guess you need to allow both of those servers in agents config on that 3rd host... make sure FW-s are open etc. But it will mean, that you will get notifications from both of servers. As your servers are independent, they do not know anything about other server monitoring the same agent and will both notify you...
        If currently none of templates seems to work, you should look into servers log and also into agents log, what is written there.

        Comment

        • kemco
          Junior Member
          • Oct 2023
          • 10

          #5
          yes, i want to monitor u1604 with both of the other servers. just in case when one of the "monitoring" servers have a problem and shut down or whatever. As far as i found, i can even make dependancies so i do not get double notifications. like, as long as zabbix1 is up, only zabbix1 gives notifs out, whenever zabbix1 is down, zabbix2 gives notifs out.

          so far from my side i adjusted the settings correctly, on the 1604 i adjusted the conf on 3 lanes

          server=ip adress of both with comma seperated
          serverlisten= same
          host name= same asme name i have it on the frontend of both monitoring servers

          as template i choose zabbix agent, but whenver i do that i cant get a connection. As far as i know i also gave all necessary ports free. but the "availability" symbol turns always red.

          i am kinda loosing my brain. i have done it with the zabbix1 and 2 without any problem (zabbix1 green symbol on availabiltyon zabbix2 and vice versa) but whenver i put the other one, i always have a red symbol on availability with connection failed.

          Comment

          Working...