|
|
| Author |
Message |
toddbier
Joined: 24 Sep 2008 Posts: 3
|
Posted: Wed Sep 24, 2008 12:01 pm Post subject: ReadData is 0 for all links |
|
|
I have weathermap setup on the same server is my MRTG install.
I'm running it on a windows 2003 box using ActivePerl, MRTG, IIS6, PHP 5 weathermap .95b.
Running the check.php from the browser and CLI reports NO errors.
Running "php weathermap" generates a map but all the links report 0%.
No errors are reported when running "php weathermap" from the command line.
I've included the debug output and the weathermap.png as attachments.
Yes, I did wait 5 minutes in between runs to allow MRTG to update it's data.
Here is an example part of my weathermap config:
NODE Mobile
LABEL Mobile
INFOURL http://wolverine/mrtg/172.16.1.200_6_intutil.html
OVERLIBGRAPH http://wolverine/mrtg/172.16.1.200_6_intutil-day.png
POSITION 675 575
NODE Sonic
LABEL Sonic Wall
INFOURL http://wolverine/mrtg/172.16.1.5_3_intutil.html
OVERLIBGRAPH http://wolverine/mrtg/172.16.1.5_3_intutil-day.png
POSITION 673 304
LINK Sonic-Mobile
WIDTH 4
NODES Sonic Mobile
BANDWIDTH 1M
| Description: |
|
| Filesize: |
12.51 KB |
| Viewed: |
803 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
debug.txt |
| Filesize: |
32.72 KB |
| Downloaded: |
35 Time(s) |
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Wed Sep 24, 2008 12:08 pm Post subject: |
|
|
There are no TARGET lines in that map config. That's how weathermap finds the data, so that's why your values are all 0
|
|
| Back to top |
|
 |
toddbier
Joined: 24 Sep 2008 Posts: 3
|
Posted: Wed Sep 24, 2008 1:35 pm Post subject: |
|
|
| Well just call me dummy! That did the trick! Thanks!
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Thu Sep 25, 2008 4:53 am Post subject: |
|
|
| toddbier wrote: | | Well just call me dummy! That did the trick! Thanks! |
Cool
8 points for fault-reporting style though
Beats "I can't do X" any day.
|
|
| Back to top |
|
 |
toddbier
Joined: 24 Sep 2008 Posts: 3
|
Posted: Fri Sep 26, 2008 2:29 pm Post subject: |
|
|
Could you shed any light on this PHP warning. It occurs for all nodes/links:
PHP Warning: filemtime(): stat failed for http://wolverine/mrtg/172.16.106.1_1_intutil.html in C:\Inetpub\wwwroot\map\lib\datasources\WeatherMapDataSource_mrtg.php on line 48
Also shed any light on how to make this run every 5 min to coincide with my MRTG stats updating? I've done some forum searching and googling and turned up very little useful info. Remember I'm running this on windows. MRTG is running as a service. Just point me in the right direction!
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Fri Sep 26, 2008 4:39 pm Post subject: |
|
|
| toddbier wrote: | Could you shed any light on this PHP warning. It occurs for all nodes/links:
PHP Warning: filemtime(): stat failed for http://wolverine/mrtg/172.16.106.1_1_intutil.html in C:\Inetpub\wwwroot\map\lib\datasources\WeatherMapDataSource_mrtg.php on line 48
|
I thought I fixed this a while ago, but it looks like I didn't. You can safely comment out that one line. It's assuming that the file is a local one, and trying to get the last-modified date. I'll add a check for URL-looking things in the next release.
| Quote: |
Also shed any light on how to make this run every 5 min to coincide with my MRTG stats updating? I've done some forum searching and googling and turned up very little useful info. Remember I'm running this on windows. MRTG is running as a service. Just point me in the right direction!  |
I've only ever run MRTG as a scheduled job on unix systems, where you run it every 5 minutes... if you are using the 'run as daemon' option mentioned in the manual, then I don't know if you can do anything. If you *do* run it every five minutes via a scheduler (I don't think so), then just add the weathermap invocation to the batch file you run.
The only thing I can think of would be some terrible hack: assuming targets are processed in config file order (by mrtg), then make the last target an external script target, and make the external script be something that runs weathermap. It *might* work. I haven't used mrtg in a few years though - there's this nice alternative called Cacti
|
|
| Back to top |
|
 |
|