PHP Network Weathermap 0.8 (now 0.9)

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

I wasn't asking google the correct way. Thanks
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

re : problem

Post by gilles »

i have added the maps to the 'manage weathermaps' screen, and they *still* aren't generated automatically

in the Cacti log file, i have nothing with WEATHERMAP

like mactrack, i need to schedule another job

my question is : wich command line ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: re : problem

Post by Howie »

gilles wrote:i have added the maps to the 'manage weathermaps' screen, and they *still* aren't generated automatically

in the Cacti log file, i have nothing with WEATHERMAP

like mactrack, i need to schedule another job

my question is : wich command line ?
You don't need to schedule another job. The cacti plugin works as part of the poller.php. You will need to wait for the next poller cycle (up to five minutes) before maps are created, or errors appear in the log, though.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Re: re : problem

Post by gilles »

Howie wrote: You don't need to schedule another job. The cacti plugin works as part of the poller.php. You will need to wait for the next poller cycle (up to five minutes) before maps are created, or errors appear in the log, though.
not for me

2 days on 2 different machines with different AMP and no maps...

like mactrack...

the only plugin which is ok is thold

i need a separate schedule job for my plugins
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

map not displaying the icons.

I'm assuming that the png files go in
<cacti path>/plugins/weathermap/images and that per the docs the syntax is: ICON myimage.png (under node properties )

I am using the CactiCD and GD 2.x is installed.

What am I missing?
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: re : problem

Post by Howie »

gilles wrote:
Howie wrote: You don't need to schedule another job. The cacti plugin works as part of the poller.php. You will need to wait for the next poller cycle (up to five minutes) before maps are created, or errors appear in the log, though.
not for me

2 days on 2 different machines with different AMP and no maps...

like mactrack...

the only plugin which is ok is thold

i need a separate schedule job for my plugins
Then I don't know how you will do it. There isn't a command line that will run all the maps in the same way as the plugin does. You would have one job per map with something like:

Code: Select all

php.exe c:\path\to\weathermap\ --config configfile.conf --output out.png --htmloutput out.html
but the tab won't work properly then.

Have you tried running the poller.php from the command line to see if you get any error message? (php poller.php) I guess you already have...

Also, what about if you temporarily comment out all the other plugins in the config file? I had a problem where 'report' would crash, and nothing after that was run.

It's working fine for me on two different XAMPP installations, plus however many others.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

egarnel wrote:map not displaying the icons.

I'm assuming that the png files go in
<cacti path>/plugins/weathermap/images and that per the docs the syntax is: ICON myimage.png (under node properties )

I am using the CactiCD and GD 2.x is installed.

What am I missing?
Either use ICON images/router.png or put the icon images in the weathermap directory (not images). Unless it says otherwise, all paths in the config file are relative to where you ran weathermap from. The alternative is to use an absolute pathname.

I'll make a change in the manual to make it clearer.

It *should* have said something in the log about not being able to load the icon, however.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

got it now. thanks for the help
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Howie wrote:It's the OVERLIBGRAPH config line. If you have the cacti-picker function configured (see the manual, or cacti-pick.php), then the picker will put those lines in for you. It would be the URL for an image (not an image page - it goes into an HTML IMG tag).
I assume I have the cacti-picker function configured since I can pick from cacti for links. However there isn't an active link in the node properties dialog box?
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Re: re : problem

Post by gilles »

Howie wrote: Also, what about if you temporarily comment out all the other plugins in the config file? I had a problem where 'report' would crash, and nothing after that was run.
thanks !!
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

I have a building icon on my map and I'd like to make the INFOURL a link to a map of its internal network. How do I go about doing this since the id of that map may change?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

knobdy wrote:I have a building icon on my map and I'd like to make the INFOURL a link to a map of its internal network. How do I go about doing this since the id of that map may change?
Why would the map ID change? They should never get repeated or reused. It's a mysql autoincrement field, which just goes up and up as you add maps. It would only ever change if you deleted the other map and re-added it.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
davs
Posts: 28
Joined: Fri Mar 31, 2006 9:47 am
Location: paris

Post by davs »

I have added a map in the 'manage weathermaps' screen, and nothing are generated. I've wait for the next poller cycle but there are still no maps created.
I have this message in the Cacti Log File:

WEATHERMAP:poller[0] Weathermap has left the building
WEATHERMAP:poller[0] Weathermap 0.8 in da house

Does anyone know what it means?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

davs wrote:I have added a map in the 'manage weathermaps' screen, and nothing are generated. I've wait for the next poller cycle but there are still no maps created.
I have this message in the Cacti Log File:

WEATHERMAP:poller[0] Weathermap has left the building
WEATHERMAP:poller[0] Weathermap 0.8 in da house

Does anyone know what it means?
Nothing else? Try turning on Cacti DEBUG mode for one cycle.

'in da house' is the very first thing it does during a poller cycle
'left the building' is the very last thing
so that is actually the end of one cycle and the start of the next one, but if that's all you have, turn on DEBUG. You should get some sort of error/warning to explain why nothing is happening (usually it's permissions, if it's doing this little!).
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
davs
Posts: 28
Joined: Fri Mar 31, 2006 9:47 am
Location: paris

Post by davs »

here is what I have on CACTI DEBUG mode after a cycle:

WEATHERMAP:Poller[0] Weathermap has left the building
WEATHERMAP:Poller[0] Iterated all maps.
WEATHERMAP:Poller[0] Iterating all maps.
CMDPHP:Poller[0] DEBUG: SQL Assoc: "select * from weathermap_maps where active='on'"
WEATHERMAP:Poller[0] Engaging Weathermap DEBUG mode
WEATHERMAP:Poller[0] Weathermap 0.8 in da house

????
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests