[smokeping-users] Alerts pt 2

Gregory Sloop gregs at sloop.net
Wed Dec 14 21:55:53 CET 2011


I'm sorry, I left out critical information in my prior post, let me re-post.
I've clarified a bit too.

---
Tobi...
Possible semi-bug [I hesitate to say it - because I code horribly and
don't know perl very well at all, but think so. Please don't flame me
if I'm wrong! :) ]

I get this message.
---
Alert "loss-small": no match for target /var/lib/smokeping/rrd/xyz
Alert "loss-moderate": no match for target /var/lib/smokeping/rrd/xyz
Alert "loss-massive": no match for target /var/lib/smokeping/rrd/xyz

---
I see that in both 2.4.2 and 2.6.6 I get that message on every
target - at least in my installation. [My 2.4.2 install is working
fine, my new 2.6.6 is not.]

I believe I get the message every pass [step], regardless of an actual alert being
raised or not.

Perhaps there's a semi-bug in the code.

I'm using a "to = |" for my destination - since I'm using my own perl
module to send mail. I'm also using the edgetrigger option.

I'd assume that it shouldn't generate any message like the above in
this case, but it does.

[It seems like it should only generate that message if there's nothing
in the "to=" section in the config file. [Provided I'm reading the
perl correctly, which isn't at all certain.

See - {if (@to) - line 1897 in smokeping.pm}

It looks like it should break out of the whole routine once it finds
it's using SNPP or the "|" and not check the following IF. If you're
doing a pipe or SNPP, you're not doing the code under the "if (@to)" (I
think)]


I'm still not sure why I'm not getting messages, but perhaps I'm
getting closer.

Again, I welcome any thoughts/suggestions.

-Greg
---



More information about the smokeping-users mailing list