Ad Widget

Collapse

Initial Discovery and "Add Host" Action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • langdonwhite
    Junior Member
    • Nov 2009
    • 1

    #1

    Initial Discovery and "Add Host" Action

    I am doing an initial implementation of Zabbix 1.6.5 (Server on SUSE, agents on Red Hat, SUSE, Ubuntu, CentOS, Windows) and I cannot even make the most basic discovery rule and associated action work. I believe I have followed the documentation to the letter and I just can't get it to work (I also am unclear on how to go about debugging/troubleshooting the issue for myself). The discovery rule seems to be firing because if I look at Monitoring|Discovery I find all the servers I would expect with up/downtime and columns for all the checks (some green some red as appropriate), they are even in the right "group." The problem is that the hosts never seem to get added to the "Inventory|Hosts," show up in graphs or maps, or, in general seem like they are "really" known by zabbix. I think this is because the action doesn't seem to fire -- template not applied, no email message, etc. So, if someone could please give me some pointers I would greatly appreciate it.

    Discovery Rule:
    Name: Data Center -- Database
    Discovery by proxy: (no proxy)
    IP range: 10.1.5.1-255
    Delay (seconds): 600
    Checks:
    ICMP Ping
    SNMPv2 agent "blah":""
    SSH
    ZABBIX agent "system.uname"
    Status: Active

    Action:
    Name: Add db server to monitoring
    Event Source: Discovery
    Default Subject: {TRIGGERNAME} : {STATUS}
    Default Message: {HOST.CONN} added to monitoring

    Action Conditions:
    Type: (A) and (B) and (C)
    Conditions:
    (A) Host ip = "10.1.5.1-255"
    (B) Discovery status = "Discover" (also tried status = "up")
    (C) Uptime/Downtime >= "600"

    Action Operations:
    Send message to Group "Zabbix administrators"
    Add host
    Add to group "DB Group"

    thanx... and I am SURE i am missing something really simple (which is why this is particularly frustrating )
  • zabbix_zen
    Senior Member
    • Jul 2009
    • 426

    #2
    Hi.

    Only hosts with data entered in 'Use Profile' / 'Use extended profile' in Configuration|Hosts will appear in Inventory|Hosts

    About Graphs or Maps, they aren't auto built after you add the hosts, you'll have to configure them ( except for Templated Items, those will come with prebuilt Triggers and Graphs)

    Now about the Action(sorry but haven't had the time to try what you discribed), as you said the Discovery Rule is working OK, thus the Action being not fired is only explained by an Action/User Permission problem.

    In case the Action config is OK then check if the User you're trying to send email to belongs to a User Group with Read privileges over that "DB Group"

    Comment

    • MrKen
      Senior Member
      • Oct 2008
      • 652

      #3
      Originally posted by langdonwhite

      Action Operations:
      Send message to Group "Zabbix administrators"
      Add host
      Add to group "DB Group"
      In Action Operations, did you link to template?

      MrKen
      Disclaimer: All of the above is pure speculation.

      Comment

      Working...