weather map status issues

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

weather map status issues

Post by Findarato »

I am having issues showing the gauge status for my switch ports

Now I have one more issue, all of my gauge items are reporting the same thing in the logs,

ReadData: NODE gigB37, target: gauge:/var/www/cacti/rra/gigswitchb_traffic_in_1722.rrd:int_status:- on config line 1900 of /var/www/cacti/plugins/weathermap/configs/switchPorts.conf had no valid data, according to WeatherMapDataSource_rrd

I know the path is correct so that is not what is breaking it.

Code: Select all

FONTDEFINE 100 docs/example/Vera.ttf 10

WIDTH 1280
HEIGHT 1400
HTMLSTYLE overlib
KEYFONT 100
TITLE Main Library
TIMEPOS 17 1300 Created: %b %d %Y %H:%M:%S

KEYPOS DEFAULT 10 1300 Traffic Load
KEYSTYLE  DEFAULT horizontal
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 230 230 230
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 0    5    204 204 204     0 255   0    
SCALE DEFAULT 5    50     0 255   0   255 255   0    
SCALE DEFAULT 50   100  255 255   0   255   0   0    

SCALE IFSTATUS 0    1.5    0 255   0  Up
SCALE IFSTATUS 1.5  2.5  255   0   0  Down

#SET key_hidezero_DEFAULT 1

# End of global section


# TEMPLATE-only NODEs:
NODE DEFAULT
	LABELFONT 100
	MAXVALUE 100


# TEMPLATE-only LINKs:
LINK DEFAULT
	WIDTH 6
	ARROWSTYLE compact
	BWFONT 100
	BWLABEL none
	BANDWIDTH 1000M


# regular NODEs:
NODE gigA1
LABEL sA1
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=1743
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=1743
ICON 15 15 square
TARGET gauge:/var/www/cacti/rra/gigswitcha_traffic_in_1896.rrd:int_status:-
USESCALE IFSTATUS
POSITION 50 100

NODE A1
LABEL A1
POSITION 50 10


LINK gigA1-A1
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=1743
TARGET /var/www/cacti/rra/gigswitcha_traffic_in_1896.rrd
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=1743
USESCALE DEFAULT
NODES gigA1 A1
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weather map status issues

Post by Howie »

Take a look in cacti.log - do you get any WEATHERMAP warnings in there?
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!)
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

Re: weather map status issues

Post by Findarato »

r/www/cacti/plugins/weathermap/configs/switchPorts.conf had no valid data, according to WeatherMapDataSource_rrd
Aug 1 12:50:08 monitor Cacti[15599]: WEATHERMAP: WARNING: [Map 5] switchPorts.conf: ReadData: NODE gigB30, target: gauge:/var/www/cacti/rra/gigswitchb_traffic_in_1715.rrd:int_status:- on config line 1745 of /var/www/cacti/plugins/weathermap/configs/switchPorts.conf had no valid data, according to WeatherMapDataSource_rrd
Aug 1 12:50:08 monitor Cacti[15599]: WEATHERMAP: WARNING: [Map 5] switchPorts.conf: ReadData: NODE gigB31, target: gauge:/var/www/cacti/rra/gigswitchb_traffic_in_1716.rrd:int_status:- on config line 1767 of /var/www/cacti/plugins/weathermap/configs/switchPorts.conf had no valid data, according to WeatherMapDataSource_rrd
Aug 1 12:50:08 monitor Cacti[15599]: WEATHERMAP: WARNING: [Map 5] switchPorts.conf: ReadData: NODE gigB32, target: gauge:/var/www/cacti/rra/gigswitchb_traffic_in_1717.rrd:int_status:- on config line 1789 of /var/www/cacti/plugins/weathermap/configs/switchPorts.conf had no valid data, according to WeatherMapDataSource_rrd
Aug 1 12:50:08 monitor Cacti[15599]: WEATHERMAP: WARNING: [Map 5] switchPorts.conf: ReadData: NODE gigB33, target: gauge:/var/www/cacti/rra/gigswitchb_traffic_in_1718.rrd:int_status:- on config line 1811 of /var/www/cacti/plugins/weathermap/configs/switchPorts.conf had no valid data, according to WeatherMapDataSource_rrd

It says that for all of the ports from all of the switches.
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

Re: weather map status issues

Post by Findarato »

Just an update this config for the graph works fine and is not tossing any errors
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-14400 \
--end=-300 \
--title='gigSwitchD - Traffic - g1' \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12:'/www/cacti/ttf/georgia.ttf' \
--font AXIS:8:'/www/cacti/ttf/georgia.ttf' \
--font LEGEND:8:'/www/cacti/ttf/dejavusansmonoroman.ttf' \
--font UNIT:8:'/www/cacti/ttf/georgia.ttf' \
DEF:a="/var/www/cacti/rra/gigswitchd_traffic_in_1815.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/gigswitchd_traffic_in_1815.rrd":traffic_in:MAX \
DEF:c="/var/www/cacti/rra/gigswitchd_traffic_in_1815.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/cacti/rra/gigswitchd_traffic_in_1815.rrd":traffic_out:MAX \
CDEF:cdefa=a,-8,* \
CDEF:cdefb=a,8,*,-1,* \
CDEF:cdefc=a,8,* \
CDEF:cdeff=b,8,*,-1,* \
CDEF:cdefg=c,8,* \
CDEF:cdefbb=d,8,* \
LINE1:cdefa#157419FF:"" \
AREA:cdefb#00FF0099:"Inbound" \
GPRINT:cdefc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefc:MAX:"Maximum\:%8.2lf %s" \
LINE1:cdeff#005D57FF:"Peak Usage\n" \
AREA:cdefg#002A9719:"" \
AREA:cdefg#00A0FF99:"Outbound" \
GPRINT:cdefg:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefg:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefg:MAX:"Maximum\:%8.2lf %s" \
LINE1:cdefbb#0000AAFF:"Peak Usage\n"

while I see this in the logs for the weather map setup
Aug 1 13:05:12 monitor Cacti[19509]: WEATHERMAP: WARNING: [Map 5] switchPorts.conf: ReadData: NODE gigD1, target: gauge:/var/www/cacti/rra/gigswitchd_traffic_in_1815.rrd:int_status:- on config line 3219 of /var/www/cacti/plugins/weathermap/configs/switchPorts.conf had no valid data, according to WeatherMapDataSource_rrd
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weather map status issues

Post by Howie »

OK - can you run for one poller cycle with DEBUG logging? you'll get a lot more information about what Weathermap is trying to do with your rrd files, and what data it's reading.
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!)
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

Re: weather map status issues

Post by Findarato »

Aug 1 15:40:19 monitor Cacti[27069]: WEATHERMAP: WARNING: [Map 5] switchPorts.conf: ReadData: NODE gigD41, target: gauge:/var/www/cacti/rra/gigswitchd_traffic_in_1855.rrd:int_status:- on config line 4099 of /var/www/cacti/plugins/weathermap/configs/switchPorts.conf had no valid data, according to WeatherMapDataSource_rrd
Aug 1 15:40:19 monitor Cacti[28355]: CMDPHP: WARNING: SNMP Get Timeout for Host:'10.1.1.11', and OID:'.1.3.6.1.2.1.1.3.0'
Aug 1 15:40:19 monitor Cacti[27069]: WEATHERMAP: WARNING: [Map 5] switchPorts.conf: RRD ReadData: At least one of your DS names (int_status and -) were not found, even though there was a valid data line. Maybe they are wrong? Valid DS names in this file are: traffic_in,traffic_out, [WMRRD06]

ok so what am I missing so that I have init_status for the DS?
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weather map status issues

Post by Howie »

The standard Cacti interface traffic template doesn't record interface status. You'd need another Cacti template that does.
(sorry I didn't notice before that this was the regular traffic_in/traffic_out rrd files)

This looks like the way to go: http://forums.cacti.net/about17722.html
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!)
Findarato
Posts: 29
Joined: Wed Feb 06, 2008 2:56 pm

Re: weather map status issues

Post by Findarato »

I will roll that out tomorrow and get it working. I eventually just put in some code to check and see if the outbound traffic was greater than 0. It does almost the same thing. Thanks a ton for all of your help.
[b]Cacti Version[/b] - 0.8.7d [b]Plugin Architecture[/b] - 2.4 [b]Poller Type[/b] - CMD.php [b]Server Info[/b] - Linux 2.6.18-164.9.1.el5 [b]Web Server[/b] - Apache/2.2.3 (CentOS) [b]PHP[/b] - 5.1.6 [b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, dbase, gd, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp[b]MySQL[/b] - 5.0.77 [b]RRDTool[/b] - 1.4.2 [b]SNMP[/b] - 5.3.2.2
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weather map status issues

Post by Howie »

If you just want to do that, you don't need to change the code. Just define a new scale for nodes:


SCALE nodes 0 0 255 0 0
SCALE nodes 0 100 0 255 0


NODE blah
USESCALE nodes out


So if it's exactly 0 then that will be red, otherwise green.
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest