[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Smokeping RRDs for Node Targets



I've been using php-weathermap (95b and now 96test) for about a week now and I love it. However, I'm having a problem trying to use it with Smokeping. I want to get the median RTT from my Smokeping fping probe and use this to color each node according to scale. I'm pretty sure I've got the scale thing worked out, as it works great with the links and/or if I point the node targets to an MRTG RRD (e.g. CPU Utilization).
So, I'm hoping someone can point me in the right direction.

Within each node my target lines look like this:
        TARGET gauge:/var/www/html/mrtg/rrdfiles/NorthMPLS/art1a-BAL-MD01.rrd:median:-

This seems to work properly, and doesn't generate errors when I run php-weathermap. However, I get no change in color for the nodes.

I've used --debug to check the data being returned for display:
DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxx:786] north.conf: Aggregate so far: 0.059922 0
DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxx:790] north.conf: ReadData complete for NODE BAL-MD01: 0.059922 0
DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxx:836] north.conf: ReadData: Setting 0.059922,0
DEBUG: [ReadData@xxxxxxxxxxxxxxxxxxxx:840] north.conf: ReadData Completed.
So it seems like the median data point is probably set to .059922, correct?

I've tried setting the MAXVALUE to a decimal, and using a decimal scale, but php-weathermap does not allow this.

Questions:
Is this the proper format for fetching this data from the RRD?
Can I multiply the data point by 100 somehow?
Anything else obvious I might be missing? I'm happy to RTFM if someone has a link, Google was less than helpful in this area. It turned up a few posts and such, but upon reading them I'm starting to think that php-weathermap won't work with smokeping. Is this the case?

Thanks,
Garry

NOTICE: This e-mail and any files transmitted with it are the property of ARCADIS U.S., Inc. and its affiliates. All rights, including without limitation copyright, are reserved. The proprietary information contained in this e-mail message, and any files transmitted with it, is intended for the use of the recipient(s) named above. If the reader of this e-mail is not the intended recipient, you are hereby notified that you have received this e-mail in error and that any review, distribution or copying of this e-mail or any files transmitted with it is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete the original message and any files transmitted. The unauthorized use of this e-mail or any files transmitted with it is prohibited and disclaimed by ARCADIS U.S., Inc. and its affiliates.

Copyright 1994-2005, by Howard Jones. howie@thingy.com