Hi All,
ZBX-534 seems to have appeared again.
(Previously I have posted this as reply to the zbx-534 bug report, but it seems replys to long-dormant threads are not noticed)
DESIRED BEHAVIOUR:
Upon discovery, the new host should be added to the list of monitored hosts, added to a specified host group, be linked with a specified template and a notification should be sent to a user or group.
ACTUAL BEHAVIOUR:
Everthing except the notification is performed as expected.
(after a new host comes online for the first time, the host is added to the list, is added to the host-group, is linked in with the template and is monitored;
If that host later happens to go offline again, I am in fact informed by means of an activated trigger.)
MY CONFIG:
I configured zabbix to perform the desired tasks via an Action which has "Discovery" as event source:
Action
- name: autoadd discovered 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
I have deleted the Admin user, so the only user (beside Guest) is me (mjpogner) with type "ZABBIX Super Admin" and with Group "Network administrators" and Group "Zabbix administrators".
The server is standalone Zabbix Server 1.6.4 compiled from source.
There isn't any zabbix-proxy.
There are several monitored Hosts with different zabbix-agent versions:
- 1.4.2-4ubuntu3 (ubuntu hardy package)
- 1.4.6-1ubuntu1 (ubuntu intrepid package)
- 1.4-10etch1 (debian etch package)
- 1.4.6-1 (debian lenny package)
MISC:
Since I receive notifications via email about Triggerchanges (Action has event source trigger and simpy notifies), so I rule out postfix, email and notification settings.
To minimize configuration errors, I have also added a very simple action with event source "discovery", no action-conditions and only one action-operation "Send Message to User mjpogner". The message contains only static text.
Again, 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
ZBX-534 seems to have appeared again.
(Previously I have posted this as reply to the zbx-534 bug report, but it seems replys to long-dormant threads are not noticed)
DESIRED BEHAVIOUR:
Upon discovery, the new host should be added to the list of monitored hosts, added to a specified host group, be linked with a specified template and a notification should be sent to a user or group.
ACTUAL BEHAVIOUR:
Everthing except the notification is performed as expected.
(after a new host comes online for the first time, the host is added to the list, is added to the host-group, is linked in with the template and is monitored;
If that host later happens to go offline again, I am in fact informed by means of an activated trigger.)
MY CONFIG:
I configured zabbix to perform the desired tasks via an Action which has "Discovery" as event source:
Action
- name: autoadd discovered 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
I have deleted the Admin user, so the only user (beside Guest) is me (mjpogner) with type "ZABBIX Super Admin" and with Group "Network administrators" and Group "Zabbix administrators".
The server is standalone Zabbix Server 1.6.4 compiled from source.
There isn't any zabbix-proxy.
There are several monitored Hosts with different zabbix-agent versions:
- 1.4.2-4ubuntu3 (ubuntu hardy package)
- 1.4.6-1ubuntu1 (ubuntu intrepid package)
- 1.4-10etch1 (debian etch package)
- 1.4.6-1 (debian lenny package)
MISC:
Since I receive notifications via email about Triggerchanges (Action has event source trigger and simpy notifies), so I rule out postfix, email and notification settings.
To minimize configuration errors, I have also added a very simple action with event source "discovery", no action-conditions and only one action-operation "Send Message to User mjpogner". The message contains only static text.
Again, 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