shinken-solutions / shinken

Flexible and scalable monitoring framework
http://www.shinken-monitoring.org
GNU Affero General Public License v3.0
1.13k stars 335 forks source link

Custom notification (Send custom service notification) is not working in Shinken 1.2 #623

Open Yannig opened 12 years ago

Yannig commented 12 years ago

Shinken is able to send notification if services or host are up or down.

If I try to send a custom service notification (Send custom service notification from Thruk interface), I never get my email.

After setting debug mode for broker, I can see this event (in brokerd.log file):

2012-09-25 12:35:35,543 [1348569335] Debug :   [broker-1] 0 Broks get in 0.000372886657715
2012-09-25 12:35:35,543 [1348569335] Debug :   [broker-1] Time to send 0 broks (0 secs)
2012-09-25 12:35:35,543 [1348569335] Debug :   [broker-1] Enqueuing an external command '{'__module__': 'shinken.external_command', 'my_type': 'externalcommand', '__init__': <function __init__ at 0xd3e500>, '__doc__': None}'
2012-09-25 12:35:36,546 [1348569336] Debug :   [broker-1] Begin Loop: managing old broks (0)
2012-09-25 12:35:36,546 [1348569336] Debug :   [broker-1] External Queue len (Livestatus): 0

Is there something I'm missing ?

Regards,

Yannig

h4wkmoon commented 12 years ago

Are you able to send emails from command-line ?

Yannig commented 12 years ago

I don't know but the setup was able to launch notification for real alert. But maybe you can tell me which command you want me to launch.

Frescha commented 12 years ago

echo “lorem ipsum” | mail -s “Hello world” foo@bar.tld

Am 19.11.2012 um 16:15 schrieb Yannig notifications@github.com:

I don't know but the setup was able to launch notification for real alert. But maybe you can tell me which command you want me to launch.

— Reply to this email directly or view it on GitHub.

Yannig commented 12 years ago

Well, I confirm, the server is able to send email as shinken user.

naparuba commented 11 years ago

It's confirmed, the external command code is missing.

Seb-Solon commented 10 years ago

We should postpone it to 2.2

naparuba commented 10 years ago

was missing sonce 4years, can still wait some months :)