no valid data

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
zztop2006
Posts: 21
Joined: Thu Dec 31, 2015 2:55 am

no valid data

Post by zztop2006 »

hi
happy new year.
my cacti is ver 0.8.8a and Weathermaps ver .97c
i have a problem and couldn't solve it.
i want to show status of my switch ports.

when port 1 of my switch is up iwant to show
port_up.png
port_up.png (317 Bytes) Viewed 4110 times
and when port 1 of my switch is up iwant to show
Port_down.png
Port_down.png (309 Bytes) Viewed 4110 times
i search this froum in 3 days but cann't found solution.

this is my script:

# Automatically generated by php-weathermap v0.97c


BACKGROUND images/BGB_1000_800.png
WIDTH 1100
HEIGHT 900

KEYPOS DEFAULT -1 -1 Traffic Load
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0

SET key_hidepercent_DEFAULT 1
SET community DSKM

# End of global section


# TEMPLATE-only NODEs:

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

NODE Port
USESCALE updown in
ICON images/port_{node:this:state}.png
TARGET snmp:{map:community}:{node:this:ip}:.1.3.6.1.2.1.2.2.1.8.{node:this:interface}:-
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}


# regular NODEs:

NODE L_3750
ICON images/Cisco3750-48.png
POSITION 495 245


NODE LN_3750_G101
TEMPLATE Port
SET interface 10101
SET ip 10.10.1.10
SET graph_id 921
POSITION L_3750 -285 1

and in cacti log:

01/05/2016 11:36:06 AM - WEATHERMAP: Poller[0] WARNING: [Map 11] Switch_Diagram.conf: ReadData: NODE LN_3750_G101, target: snmp:DSKM:10.10.1.10:.1.3.6.1.2.1.2.2.1.8.10101:- on config line 46 of /usr/share/cacti/site/plugins/weathermap/configs/Switch_Diagram.conf had no valid data, according to WeatherMapDataSource_snmp

but graph id 921 is exist and show normally.

what's wrong?
Last edited by zztop2006 on Wed Jan 06, 2016 8:41 am, edited 3 times in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: no valid data

Post by Howie »

Enable debug logging in cacti to see more detail about what the snmp plugin is doing in cacti.log

It doesn't use the graph_id to collect data, it uses the OID you supplied.
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!)
zztop2006
Posts: 21
Joined: Thu Dec 31, 2015 2:55 am

Re: no valid data

Post by zztop2006 »

hi howei
thank's for your attention.
this is cacti.log

01/06/2016 07:26:00 AM - WEATHERMAP: Poller[0] WARNING: [Map 11] Switch_Diagram.conf: OVERLIBGRAPH is used, but HTMLSTYLE is static. This is probably wrong. [WMWARN41]
01/06/2016 07:26:03 AM - WEATHERMAP: Poller[0] WARNING: [Map 11] Switch_Diagram.conf: ReadData: NODE LN_3750_G101, target: snmp:DSKM:10.10.1.10:.1.3.6.1.2.1.2.2.1.8.10101:- on config line 46 of /usr/share/cacti/site/plugins/weathermap/configs/Switch_Diagram.conf had no valid data, according to WeatherMapDataSource_snmp
01/06/2016 07:26:06 AM - WEATHERMAP: Poller[0] WARNING: [Map 11] Switch_Diagram.conf: ReadData: NODE LN_3750_G102, target: snmp:DSKM:10.10.1.10:.1.3.6.1.2.1.2.2.1.8.10102:- on config line 53 of /usr/share/cacti/site/plugins/weathermap/configs/Switch_Diagram.conf had no valid data, according to WeatherMapDataSource_snmp


there is no more detail for this problem.
is this debug logging? or i do something else?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: no valid data

Post by Howie »

In Cacti, got to Settings, and turn on DEBUG logging. Wait for 5-10 minutes and turn it back to the previous setting. You will have *lots* more information in the logs.
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!)
zztop2006
Posts: 21
Joined: Thu Dec 31, 2015 2:55 am

Re: no valid data

Post by zztop2006 »

hi howei
icann't found it.
can you show it to me by picture?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: no valid data

Post by Howie »

I am not near Cacti right now, but there is only one setting for Logging Level in the Cacti settings...
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:

Re: no valid data

Post by Howie »

Found a screenshot online.
Attachments
debug logging.png
debug logging.png (138.58 KiB) Viewed 4129 times
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!)
zztop2006
Posts: 21
Joined: Thu Dec 31, 2015 2:55 am

Re: no valid data

Post by zztop2006 »

many thank's for your guid man.
you are a GOOD man.

this is a part of cacti log:

01/06/2016 02:51:01 PM - WEATHERMAP: Poller[0] WARNING: [Map 11] Switch_Diagram.conf: ReadData: NODE LN_3750_G101, target: snmp:DSKM:10.10.1.10:.1.3.6.1.2.1.2.2.1.8.10101:- on config line 44 of /usr/share/cacti/site/plugins/weathermap/configs/Switch_Diagram.conf had no valid data, according to WeatherMapDataSource_snmp
01/06/2016 02:51:01 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_snmp.php:148] [Map 11] Switch_Diagram.conf: SNMP ReadData: Returning (NULL,NULL,1452079261)
01/06/2016 02:51:01 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_snmp.php:133] [Map 11] Switch_Diagram.conf: SNMP ReadData: Got and
01/06/2016 02:50:58 PM - WEATHERMAP: Poller[0] DEBUG: [ProcessString@Weathermap.class.php:535] [Map 11] Switch_Diagram.conf: Trace: ProcessString(snmp:DSKM:10.10.1.10:.1.3.6.1.2.1.2.2.1.8.10101:-, node:LN_3750_G101)
01/06/2016 02:50:58 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:919] [Map 11] Switch_Diagram.conf: ReadData: New Target: snmp:{map:community}:{node:this:ip}:.1.3.6.1.2.1.2.2.1.8.{node:this:interface}:-

why that Returning (NULL,NULL,1452079261)?

I send graph id by SET graph_id 921 by command in post #1 and that graph is realy exist and it show traffic IN/OUT graph of user is connected to port 1 of switch.

what's wrong?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: no valid data

Post by Howie »

Once again it doesn't use the graph to get data! It is using the SNMP configuration you give.

So, from a command-line, does this work?

Code: Select all

snmpget -v1 -cDSKM 10.10.1.10 .1.3.6.1.2.1.2.2.1.8.10101
?

That is what weathermap is doing, to try to get data.
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!)
zztop2006
Posts: 21
Joined: Thu Dec 31, 2015 2:55 am

Re: no valid data

Post by zztop2006 »

ok howei
my switch is snmp ver 3
this command:
snmpwalk -v3 -uDSKM -l authPriv -A Mystring -a MD5 -x DES -X Mystring 10.10.1.10 .1.3.6.1.2.1.2.2.1.8.10101

return this:
iso:3.6.1.2.1.2.2.1.8.10101 = INTEGER: 1

by snmpget is same value

Please read post #1 again

by that goal please change this script:

NODE Port
USESCALE updown in
ICON images/port_{node:this:state}.png
TARGET snmp:{map:community}:{node:this:ip}:.1.3.6.1.2.1.2.2.1.8.{node:this:interface}:-
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}
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: no valid data

Post by Howie »

Weathermap doesn't use SNMPv3 so you will not be able to do this using the SNMP datasource.

If graph 921 is the ifOperState, you could use the rrd file that the graph uses instead.
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!)
zztop2006
Posts: 21
Joined: Thu Dec 31, 2015 2:55 am

Re: no valid data

Post by zztop2006 »

so many thank's Howie for your reply.

is there any new version of weathermap in future that support snmp v3?

thank's again man :P
zztop2006
Posts: 21
Joined: Thu Dec 31, 2015 2:55 am

Re: no valid data

Post by zztop2006 »

hi Howie

in my swith with snmp v3 when I in terminal type :

snmpwalk -v3 -uDSKM -l authPriv -A Mystring -a MD5 -x DES -X Mystring 10.10.1.10 i have:
.
.
.
+ Found item [ifOperStatus='Down'] index: 5181 [from value]
+ Found item [ifOperStatus='Up'] index: 10101 [from value]
+ Found item [ifOperStatus='Down'] index: 10102 [from value]
+ Found item [ifOperStatus='Up'] index: 10103 [from value]
.
.
.

so how can i create a graph for a node of my switch that it have graph ifOperState ?
i can only create traffice_in or traffic_out for every node.
zztop2006
Posts: 21
Joined: Thu Dec 31, 2015 2:55 am

Re: no valid data

Post by zztop2006 »

I Found it.

https://kb.groundworkopensource.com/dis ... tus+checks

in this page is a SNMP - Interface Statistics XML,when it import to cacti ,I can see Interface - Status in Graph Type when I create Graph for a port of switch.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests