Ad Widget

Collapse

Discovery, no email sent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flexguy
    Junior Member
    • Sep 2008
    • 19

    #1

    Discovery, no email sent

    Anyone,

    Using a discovery rule, Zabbix finds new hosts and puts them into the right group, and links them to the right template. However, notification does not work. Email settings in Zabbix are oke, i'm getting mails through other actions/triggers. No entries in the audit log or notifications log. The action I defined:

    name: autoswitch
    event source: discovery
    default subject: new switch found
    default message: blahblah
    status: enabled
    type of calculation: and (a and b)
    conditions:
    a: host ip = x.x.x.1-254
    b: discovery status = up
    action operations:
    send message to flexguy
    add to group switches access layer
    link tot template cisco basic

    Ubuntu 8 Server, Zabbix 1.5.4, ~120 switches, ~50 servers, san, ups, routers
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Registered as ZBX-534.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Max-Julian Pogner
      Junior Member
      • Apr 2009
      • 2

      #3
      Hi All,

      ZBX-534 seems to have appeared again.



      MY CONFIG:

      I have an Action for discovered hosts:

      Action
      - name: autoadd discivered hosts
      - event source: discovery
      - default subject: Added Host {HOSTNAME}
      - Default Message: Added Host {HOSTNAME}
      - Status: Enabled
      Action Conditions:
      - Discovery Status = "Discover"
      Action operations:
      - Send Message to Group "Zabbix Administrators"
      - Add Host
      - Add to Group "Newly discovered Hosts"
      - Link to template "Generic Host"

      The discovery rule is:
      - Name: "Local Network: TCP(22)"
      - Discovery by proxy: (no proxy)
      - IP-Range: 172.16.123.1-200,172.16.123.240-255
      - Delay (seconds): 3600
      - Checks: TCP(22)
      - Status: Active

      The only user (beside Guest) is me (mjpogner), I have deleted the Admin user, of type "ZABBIX Super Admin" and with Group "Network administrators" and "Zabbix administrators".

      I have a standalone Zabbix Server 1.6.4
      There isn't any zabbix-proxy.
      There are several Hosts with version
      - 1.4.2-4ubuntu3 (latest hardy package)
      - 1.4.6-1ubuntu1 (latest intrepid package)
      - 1.4-10etch1 (latest etch package)
      - 1.4.6-1 (latest lenny package)


      DESIRED BEHAVIOUR:

      The host should be added to the List of monitored Hosts plus host group, linked with the generic template and I should receive an email about it.


      ACTUAL BEHAVIOUR:

      The host is successfully added to the host-list and linked with the template, etc. But I do not receive any email.


      ENVIRONMENT:

      I can in fact receive emails about trigger-alarms. For example, if I remove the ethernet-cable of some monitored hosts, I do receive an alarm email.
      (via an Action: "Event source 'trigger', Conditions: none, operation: Send Message to Group 'Network Administrators'"

      I have also added an action with event source "discovery", and no conditions and the only action-operation is "Send Message to User mjpogner". The sent message contains no macros.
      No E-Mail was every received.



      Can you confirm that this is bug ZBX-534 or something unrelated?
      Maybe some hints what might cause this?



      On a side note: The Zabbix Manual seems to know nothing about the condition
      "Discovery Status = Discover" but it apparently applies, because the hosts are added and linked.




      greetings,

      Max-Julian Pogner

      Comment

      Working...