Keith Pawson | 12 Jul 2012 05:01
Favicon

curl probe with alerts

Hi All

Recently I've had a requirement to monitor an internal web server as it 
recently had a crash, but the server itself was still up. I've added the 
curl probe and configured the monitoring of the website page and it 
works fine on the graph side of things. However, I can't get alerts to 
work with it and I'm not sure what sort of alert configuration is 
required by this from the documentation.

Have tried playing around with an Alert Matcher of "CheckLatency" 
however I don't understand the correct syntax required for pattern e.g. 
in Alerts I added something like this:
+latency
type = matcher
edgetrigger = yes
pattern = ????
comment = web page is not responding

Is this what I need to do or am I completely off track here? I also did 
a search on this mailing list's archive and also noticed a few people 
asking the same question, but no answers or solutions.

Any help would be much appreciated.

Thanks
Keith

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
(Continue reading)

G.W. Haywood | 12 Jul 2012 09:42
Picon
Favicon

Re: curl probe with alerts

Hi there,

On Thu, 12 Jul 2012, Keith Pawson wrote:

> ... I don't understand the correct syntax required for pattern e.g.
> in Alerts I added something like this:
> +latency
> type = matcher
> edgetrigger = yes
> pattern = ????
> comment = web page is not responding
>
> Is this what I need to do or am I completely off track here?

Close, but no cigar. :)

AFAICT it's as documented.  This passes muster for me:

+latency
type = matcher
edgetrigger = yes
pattern = CheckLatency(l=>10,x=>3)
comment = TestingLatencyCheck

I don't know if it actually does anything.

Check in ../Smokeping.pm for the syntax check (search for the string
'pattern entry') and in .../Smokeping/matchers/CheckLatency.pm for
the installation of the matcher.  Some scary comments near the top
in my version. :)
(Continue reading)

Keith Pawson | 16 Jul 2012 13:38
Favicon

Re: curl probe with alerts

Thanks that's what I was looking for, but in the end I've actually 
configured EchoPingHttp probe which is working out really well so far.
Also, thanks for the tip of looking into the Smokeping.pm file too, 
didn't think of doing that.

Would be good to have some more examples in the doco for things like 
this as well, just a suggestion for when the doco get's revised or 
updated :-)

Thanks again!

On 12/07/12 17:42, G.W. Haywood wrote:
> Hi there,
>
> On Thu, 12 Jul 2012, Keith Pawson wrote:
>
>> ... I don't understand the correct syntax required for pattern e.g.
>> in Alerts I added something like this:
>> +latency
>> type = matcher
>> edgetrigger = yes
>> pattern = ????
>> comment = web page is not responding
>>
>> Is this what I need to do or am I completely off track here?
>
> Close, but no cigar. :)
>
> AFAICT it's as documented.  This passes muster for me:
>
(Continue reading)


Gmane