What's desired is to detect problems and send notifications (via e-mail). I've been struggling and hope you can help.
I set up a Zabbix web monitor which works perfectly. As expected, the status is:
Step "[degenaro] DUCC Broker status" [1 of 1] failed: Couldn't connect to server: couldn't connect to host
and when when all is well the status is:
OK.
Perfect.
=====
Issue 1.
I define a trigger based on the above web status. When the status changes the trigger status changes from OK to PROBLEM. That part is good. But when The problem is resolved, the trigger remains PROBLEM?
=====
Issue 2.
The e-mail does not get sent. In the zabbix_server.log file I see:
cannot connect to SMTP server "localhost": cannot connect to [[localhost]:25]: [111] Connection refused
And under Monitoring -> Events I see an entry:
Step 1, Type Email, Status Not Sent, retries left 0 ...
Yet, if I issue:
sendmail degenaro@mydomain < foobar.txt
the message arrives.
I set up a Zabbix web monitor which works perfectly. As expected, the status is:
Step "[degenaro] DUCC Broker status" [1 of 1] failed: Couldn't connect to server: couldn't connect to host
and when when all is well the status is:
OK.
Perfect.
=====
Issue 1.
I define a trigger based on the above web status. When the status changes the trigger status changes from OK to PROBLEM. That part is good. But when The problem is resolved, the trigger remains PROBLEM?
=====
Issue 2.
The e-mail does not get sent. In the zabbix_server.log file I see:
cannot connect to SMTP server "localhost": cannot connect to [[localhost]:25]: [111] Connection refused
And under Monitoring -> Events I see an entry:
Step 1, Type Email, Status Not Sent, retries left 0 ...
Yet, if I issue:
sendmail degenaro@mydomain < foobar.txt
the message arrives.
Comment