After seeing the "show off your weathermap" thread I've decided to implement one of those Cisco Chassis ifOperStatus maps and have spend the best part of the morning trying to get it work.
I have no need to log IF status using RRD, so have been following the thread info here http://forums.cacti.net/viewtopic.php?f=16&t=36174 to do the SNMP query from the SNMP DS plugin within weathermap.
I can't get the SNMP query to work however. All I get in the logs is
Code: Select all
04/24/2012 11:47:13 AM - WEATHERMAP: Poller[0] WARNING: [Map 16] TEST-MAP: ReadData: NODE TESTRACKSWITCH_p02, target: snmp:NOTMYSNMPKEY:192.168.1.1:.1.3.6.1.2.1.2.2.1.8.10002:- on config line 54 had no valid data, according to WeatherMapDataSource_snmp
My SNMP key is fine, and doing an snmpwalk with 2c (and even attempting 1 temporarily) works fine.
Code: Select all
# snmpwalk -v 2c -c NOTMYSNMPKEY 192.168.1.1 1.3.6.1.2.1.2.2.1.8.10002
IF-MIB::ifOperStatus.10002 = INTEGER: up(1)
Config is :-
Code: Select all
# Automatically generated by php-weathermap v0.96a
WIDTH 1920
HEIGHT 900
HTMLSTYLE overlib
KEYFONT 1
TITLE TEST-MAP
TIMEPOS 18 889 Created: %b %d %Y %H:%M:%S
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SCALE DEFAULT 0 0 192 192 192
SCALE DEFAULT 0 1 255 255 255
SCALE DEFAULT 1 10 140 0 255
SCALE DEFAULT 10 25 32 32 255
SCALE DEFAULT 25 40 0 192 255
SCALE DEFAULT 40 55 0 240 0
SCALE DEFAULT 55 70 240 240 0
SCALE DEFAULT 70 85 255 192 0
SCALE DEFAULT 85 100 255 0 0
SCALE updown 0 0 255 255 0
SCALE updown 2 2 255 0 0
SCALE updown 1 1 0 255 0
SCALE updown 3 3 192 192 192
SCALE updown 4 4 0 0 192
SCALE updown 6 6 0 0 192
SET community NOTMYSNMPKEY
SET rrd_use_poller_output 1
SET key_hidezero_DEFAULT 1
# End of global section
# TEMPLATE-only NODEs:
NODE DEFAULT
MAXVALUE 100
NODE port
ZORDER 300
LABELFONT 24
OVERLIBWIDTH 403
OVERLIBHEIGHT 165
LABELFONTCOLOR contrast
INFOURL /cacti/graph.php?action=view&rra_id=all&local_graph_id={node:this:graph_id}
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_height=100&graph_width=300&graph_nolegend=true&local_graph_id={node:this:graph_id}
TARGET snmp:{map:community}:{node:this:ip}:.1.3.6.1.2.1.2.2.1.8.{node:this:interface}:-
USESCALE updown in
# TEMPLATE-only LINKs:
LINK DEFAULT
ARROWSTYLE compact
BWFONT 1
BWLABEL bits
BANDWIDTH 1000M
# regular NODEs:
NODE TESTRACKSWITCH
LABEL TESTRACKSWITCH
ZORDER 200
LABELOFFSET E
POSITION 320 120
NODE TESTRACKSWITCH_p01
TEMPLATE port
LABEL 01
POSITION TESTRACKSWITCH -94 -5
SET interface 10001
SET ip 192.168.1.1
SET ifname FastEthernet0/1
SET host_id 98
SET graph_id 2020
SET data_id 2495
# regular LINKs:
# That's All Folks!