no valid data
Moderators: Developers, Moderators
no valid data
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 and when port 1 of my switch is up iwant to show 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?
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 and when port 1 of my switch is up iwant to show 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.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: no valid data
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.
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!)
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!)
Re: no valid data
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?
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?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: no valid data
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!)
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!)
Re: no valid data
hi howei
icann't found it.
can you show it to me by picture?
icann't found it.
can you show it to me by picture?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: no valid data
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: no valid data
Found a screenshot online.
- Attachments
-
- debug logging.png (138.58 KiB) Viewed 4151 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!)
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!)
Re: no valid data
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?
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?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: no valid data
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?
?
That is what weathermap is doing, to try to get data.
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!)
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!)
Re: no valid data
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}
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}
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: no valid data
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.
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!)
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!)
Re: no valid data
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
is there any new version of weathermap in future that support snmp v3?
thank's again man
Re: no valid data
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.
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.
Re: no valid data
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests