Ad Widget

Collapse

Problem with adding hosts through auto-discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jroberson
    Senior Member
    • May 2008
    • 124

    #1

    Problem with adding hosts through auto-discovery

    I'm trying my hand at adding a bunch of hosts through the Discovery feature, but I'm having some problems getting the hosts auto-added to Zabbix. I've already installed all the Zabbix agents to about 25 computers (I used the Zabbix Agent Installer and pushed it out to the hosts). That installed everything and setup the conf file. I double checked a few of them to make sure it did it correctly and it seems that it did. I even setup a host manually to make sure that it worked.

    I setup the discovery rule per the example in the manual.
    Code:
    IP Range: 172.18.100.1-255
    Checks: ZABBIX agent "system.uname"
    This is the Action:
    Code:
    Conditions:
    Service type = "ZABBIX agent"
    Discovery status = "Up"
    Received value = "Windows"
    
    Operations:
    Send message to User "jason"
    Add to group "Unassigned Hosts"
    Link to template "Template_Windows"
    The only things different are the group that I want them to go into and I want it to send me a message when it happens.

    I see a bunch of similar messaged to these in my zabbix_server.log:
    Code:
     15422:20090316:080352 Send list of active checks to [172.18.100.42] failed: host [cnt1293] not found
     15418:20090316:080352 Send list of active checks to [172.18.100.31] failed: host [cnt1417] not found
     15416:20090316:080352 Send list of active checks to [172.18.100.77] failed: host [cnt1231] not found
     15420:20090316:080356 Send list of active checks to [172.18.100.55] failed: host [cnt1695] not found
    
    "etc ..."
    The hostnames are correct and I can even ping them from the server using that hostname. I have made sure that all firewalls on these computers are disabled. Just to be sure I even setup a ICMP Ping for the same IP range as another discovery check (not on the same name as the above one). I set them for 600 seconds and two hours later, nothing is showing up in either one. I have used discovery before for some network printers and they all show up. I don't know how long it took them to show up but these are taking much longer than 10 minutes (600 seconds) to do so. Just to be sure, I let it run over the weekend and it did finally show all the computers in Discovery, but no host was added.

    Am I doing something wrong here? Is anybody else having the same problem? Any help would be greatly appreciated as I intend to eventually monitor even more hosts and would very much like to not have to add them manually.

    Thanks in advance!
  • jroberson
    Senior Member
    • May 2008
    • 124

    #2
    Nobody? Perhaps someone that has Discovery auto-adding hosts post their configuration? Maybe I just have it wrong. As an update, I went ahead and recreated the setup following the manual again and it still didn't work. I do, however, now have a list of discovered agents, but no added host. Is there perhaps a parameter in the config file or setup that I might have missed?

    Comment

    • jroberson
      Senior Member
      • May 2008
      • 124

      #3
      Well I figured out what I was doing wrong. I set 'Received value = "Windows"'
      instead of 'Received value like "Windows"' And not only did I do it once, twice, but three times ...

      ...


      Man, that was dumb. ...

      Comment

      • dado
        Junior Member
        • Apr 2009
        • 1

        #4
        got same error, no operation issue

        I'm getting the same error with Zabbix 1.6.4 on CentOS 5, not sending notification by email. I'm able to send email by trigger. I tried all the combinations of Server Up/Down Discovered/Lost, Uptime/Downtime conditioins and no Action is done.
        Discovery rule is working fine, so that either discovery event is not fired or action condition is not TRUE...
        Here my setting:
        Conditions (A) Uptime/Downtime >= "60"
        and
        Send message to Group "Zabbix administrators".
        Any help?
        Thank you...

        Comment

        Working...