Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I'm new to phpweathermap so please don't flame if this is a stupid question. I've already searched the forums and tried to go-it alone but haven't had much luck so i'm posting here. I'm trying to create a single weathermap that displays both link status (bandwidth usage) and other stats such as current connections. I have the bandwidth part working fine, but when I tried to add the current connections stat the cacti log is displaying the following:
10/09/2008 10:49:08 AM - WEATHERMAP: Poller[0] [Map 9] My Network: ReadData: LINK Intranet-HQLTM, target: /var/www/html/rra/hq_ltm_1_vsconnections_195.rrd:VsConnections:LAST on config line 133 had no valid data, according to WeatherMapDataSource_rrd
I verified that the graph is working fine and I can see connections so I'm not sure why it doesn't work. Here is part of the code that I'm working with:
10/09/2008 12:06:07 PM - WEATHERMAP: Poller[0] [Map 9] My Network: ReadData: LINK Intranet-HQLTM, target: gauge:/var/www/html/rra/hq_ltm_1_vsconnections_195.rrd:VsTotConnections:- on config line 133 had no valid data, according to WeatherMapDataSource_rrd
Just updated... found I was missing ":-" at the end of the line if you only have one counter. It's still not polling the data though.
Then turn on DEBUG logging in Cacti, and you should get more info from the ReadData part of Weathermap. It will show you what data it is getting from the rrd files, which hopefully will show up whatever is causing the problem...
make sure to turn it back to LOW logging after a cycle or two though, or your logfile will fill up quickly.
OK So I think I got it working now thanks to your help. One odd thing that I'm still running into is it's displaying the current connections with a decimal point which it shouldn't (how do you have .1666562 of a connection?!?) In addition, is there a way to change the scale from being a percentage to a fixed number?
Thats what I was thinking too, but what was confusing was when I look at the graph it's showing a whole number not an integer. Maybe the graph is already rounding the number? I have the number showing up as a link bandwidth.
Arron wrote:Thats what I was thinking too, but what was confusing was when I look at the graph it's showing a whole number not an integer. Maybe the graph is already rounding the number? I have the number showing up as a link bandwidth.