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.
For Weathermaps I made a small script to display device snmp info when we do mouseover. Put the script info.php in the weathermap dir and add the following to the NODE part for your devices in weathermap.
replace {node:this:cactiid} with the cactiid of the device. The device will be polled by the script for its information.
If you add
OVERLIBGRAPH images/cisco-6509.PNG
to the Node aswell you can add pictures of you're device in the same window.
make sure you've got an image with your device in the images directory of weathermap and point to it.
hmm....
getting the "SNMP not in use" message on the pop-up. seems like it is not pulling the snmp values from within cacti.
if I am in /var/www/html/cacti/plugins/weathermap, then line 3
should put me in /var/www/html/cacti
then the include statements should work then....
scratching my head on this one.
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
Weird, cactiid is working for me. I know it was quick and dirty and frankly for me it was a quick hack to get something working. Will look into the script to make it a bit more versatile.
NODE 6506A_core
LABEL 6506A
SET cacti_id 14
LABELOUTLINECOLOR none
OVERLIBCAPTION South Shownet1 6506A Core switch handles odd numbered vlans and subnets
NOTES <iframe width=\"400px\" height=\"350px\" src=\"/cacti/plugins/weathermap/info.php?node={node:this:cacti_id}\"> </iframe>
OVERLIBGRAPH images/6500.png
ICON images/6500.png
LABELOFFSET 10 40
POSITION 144 118
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
Your really just defining/setting a variable so there really is no right/wrong way, I have cacti_id because I copied Howie's example but cactiid,idcacti,foo work just as well as long as the node:this:foo matches the SET foo.
egarnel if your not using 0.96 and templates or specifying it as default then
I tried that initially, but it did not seem to work. I will try it again on another map soon
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
The only exception is if you are using poller_ouput/rrd or dsstats, and then weathermap will set some of those variables for you (including cacti_host_id)
zoemu wrote:works like a charm for me here, just one small question!!!...
Is it possible to make the windows popup upward instead of downward!!!
LA
Yeah, that would be nice!
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
Hi
I've installed it on a windows 2003 server , but although I can see the snmp info, the pop up disappears quickly, (the same happens on IE 8 an Mozilla).
my cacti is 0.8.7.d (windows 2003 server)
my weathermap 0.95b.
Made my version with WM 0.96a. Not sure if all works in previous versions.
Displaying of the script is done by the javascript part of weathermap. You could try to replace info.php with a simple html page to make sure it's not the script that is the problem.