Ad Widget

Collapse

Discovery rules / actions not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Federico
    Junior Member
    • Jul 2013
    • 2

    #1

    Discovery rules / actions not working

    Hello Everyone,
    I'm looking after a reason since two days but i cannot find out. I hope then someone here could help me.

    Nothing is discovered so i think the problem is with the discovery rule but i don't see what's wrong.

    I've several clients with agent running (2.0.6 on osx )
    On zabbix server (2.0.6 on ubuntu) I've set :
    (of course the range is the right one )
    Discovery rule :

    Name : xxxx
    Discovery by proxy : NO proxy
    IP range : 192.168.XX.1-254
    Delay (in sec) : 360
    Checks : Zabbix agent "system.uname"
    Device uniqueness criteria : IP address
    Enable : Yes

    Discovery Action :
    Name : OSX Discovery

    Conditions : AND

    (A) Discovery rule = "xxxx"
    (B) Received value like "Darwin"
    (C) Discovery status = "Up"
    (D) Service type = "Zabbix agent"

    Operations :

    Add to host groups: Discovered hosts

    Link to templates: Template OS Mac OS X

    thanks
  • vintagegamingsystems
    Member
    • Jun 2013
    • 57

    #2
    Check Monitoring Page

    Have you checked the monitoring page to see if the host has been discovered there? It is on the index page of the Zabbix server. What is shown there for your discovery rule? If nothing is there then your discovery rule may be the problem. Also, set the Delay (in sec) to 60, so that it checks in 60 seconds. So you don't have to wait very long to see if Zabbix finds it.

    Make sure that in the Monitoring --> Latest data under General that the system information string starts with Darwin. If it is something else then it will not work. Find a string that it can match. Remember the discovery action bases its decision to add your host on what you specify in the discovery rule.

    Another thing, in your action operations settings you need to put Add host and Enable host.


    It also could be this:
    On your Zabbix server there is a setting in the /etc/zabbix/zabbix_server.conf file that has to do with StartDiscoverers. If that is commented out then it will not discover hosts. Delete the # in front of StartDiscoverer. Set it to StartDiscoverer=1.

    !!!!Remember to restart the zabbix_server after you have edited the file.!!!!

    A command like /etc/init.d/zabbix_server restart . I have it set to 4 but I have a lot of hosts that I monitoring and discovering. If you have any other questions feel free to ask me.

    Also, take out the Discovery = "xxxx", I don't think you need that either.

    Good luck.
    Last edited by vintagegamingsystems; 24-07-2013, 22:59.

    Comment

    • Federico
      Junior Member
      • Jul 2013
      • 2

      #3
      Sorry for this fake problem.. at the end it was related to a strange network issue with bonded interfaces.

      Now it works great.

      Thanks for answer

      Kind Regards

      Comment

      • Isa
        Junior Member
        • Aug 2013
        • 6

        #4
        Sorry for reviving an old thread @Federico but what was the problem with the bonded interface? Cause I am having the same issue and it too has a bonded Interface

        Comment

        Working...