<html><head><title>Re: [smokeping-users] edgetrigger</title>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
<body>
<br><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>FP> On 21.02.2014 06:42, Philip Wehunt wrote:<br>
>> I could hackishly work around this in my python but I wanted to<br>
>> identify if I am doing something wrong on the SP side or if it is a<br>
>> bug. Mainly in the spirit of KISS. I don't like to let hackish<br>
>> scripts linger.<br>
<br>
FP> You probably found the same script on gist, but here's my version[1]<br>
FP> which doesn't fail when the 6th arg is missing. It will not add "<br>
FP> cleared" to the subject without the arg, but it will send you the report.<br>
<br>
FP> [1]: </b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="https://git.server-speed.net/users/flo/bin/tree/smokemtr.py">https://git.server-speed.net/users/flo/bin/tree/smokemtr.py</a><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>FP> From the documentation in smokeping_config I'd say this is a bug, but<br>
FP> given I get my mails I didn't bother fixing it yet.<br>
<br>
</b><span style=" color: #000000;">Florian et.al.<br>
<br>
First, thanks for the script. I've had to mod it a bit - my MTR isn't quite the same as yours and I want to use a non-local SMTP server and port - but those were easy mods. [MTR is in a different spot too, again easy mod.]<br>
<br>
So, I'm very excited about the prospects of automated mtr stats when a smokeping alert gets triggered - however I run into a substantial snag.<br>
<br>
I use a 60s poll in smokeping, and if I get a bunch of [smokeping] alerts that kick off, then, when each MTR takes a while to run, it stalls smokeping. <br>
<br>
This causes a ripple-effect, and a raft of nagios alerts...since I use a smokeping nagios plug-in. When SP stalls [running the mtr's] the RRD's go dry, and then nagios starts alerting on an "unknown" target state. ["This RRD hasn't been written to in 180s" etc.]<br>
<br>
So, is there some way I can fork off the mtr script, and allow smokeping to continue while the mtr stats are gathered and a report sent?<br>
<br>
[This is something I'm woefully un-knowledgeable about...]<br>
<br>
TIA<br>
-Greg</body></html>