Ad Widget

Collapse

Monitoring two zabbix servers each other

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • achu_sab
    Member
    • May 2006
    • 49

    #1

    Monitoring two zabbix servers each other

    Hi All,

    I have two zabbix servers (server1=192.168.1.1 and server2=192.168.1.2) . I have configured the zabbix_agentd.conf as follows

    ==In server1===
    Server=192.168.1.2,127.0.0.1
    ServerPort=10051
    Hostname= server1
    ListenPort=10050
    ListenIP=192.168.1.1

    ==In server2===
    Server=192.168.1.1,127.0.0.1
    ServerPort=10051
    Hostname= server2
    ListenPort=10050
    ListenIP=192.168.1.2

    Now the problem is I cannot monitor server1 and server2 itself. I can monitor server1-->server2 and server2-->server1 but I can't do server1-->server1 or server2-->server2

    When I run the command in server 1 I got this error message :
    # zabbix_get -s localhost -k cpu[idle1]
    # zabbix_get -s 127.0.0.1 -k cpu[idle1]

    The o/p is :
    Error: Connection refused

    and the o/p of the command --> # # zabbix_get -s 192.168.1.1 -k cpu[idle1] is

    Timeout while executing operation.


    The same thing is happening with server2 . Can anybody tell me what the problem is ?
    Last edited by achu_sab; 25-09-2006, 11:29.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Don't forget to put IP addresses of all ZABBIX server in zabbix_agentd.conf:

    Server=127.0.0.1,192.168.1.55
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • achu_sab
      Member
      • May 2006
      • 49

      #3
      Yes its worked for me . Here what I did :

      I have edited the zabbix_agentd.conf and commented out the ListenIP=192.168.1.1 and ListenIP=192.168.1.2 on each server , so that it will listen on all available IPs. Also I did what alexi said above, then restarted the zabbix_agentd on both servers .

      For checking I run the command :
      In server1 :
      zabbix_get -s 127.0.0.1 -k cpu[idle1]
      zabbix_get -s 192.168.1.2 -k cpu[idle1]
      In Server2 :
      zabbix_get -s 127.0.0.1 -k cpu[idle1]
      zabbix_get -s 192.168.1.1 -k cpu[idle1]

      Both command will give you some value.

      Thanks Alexi for your great support
      Last edited by achu_sab; 25-09-2006, 11:33.

      Comment

      Working...