Graphing SNMP String with Weathermap

Support questions about the Network Weather Map plugin

Moderators: Moderators, Developers

Author
Message
DanielU
Posts: 8
Joined: Tue Jan 24, 2017 7:19 am
Location: Bydgoszcz, Poland

Re: Graphing SNMP String with Weathermap

#16 Post by DanielU » Tue Sep 19, 2017 12:09 pm

Thanks for so fast answer.
I fixed it as you suggested.
Now is working well.

msantana
Posts: 24
Joined: Mon May 18, 2009 8:33 am

Re: Graphing SNMP String with Weathermap

#17 Post by msantana » Mon Jan 08, 2018 12:34 pm

Howie wrote:OK, well those definitely work for me :-) I haven't tried with 0.98 on our own prod yet though :oops:

Hello Howie, is the snmp2c function supported in weathermap 0.97b? If so, is the OID variable limited to an amount of characters?

The reason I ask about the amount of characters in the OID, is because (in this case) the OID value is a very large one. To be specific is: .1.2.826.0.1.1578918.6.2307.1.36.1.7.100.101.102.97.117.108.116.1.1.4.1

Regards,

User avatar
Howie
Cacti Guru User
Posts: 5327
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Graphing SNMP String with Weathermap

#18 Post by Howie » Mon Jan 08, 2018 1:26 pm

No it isn't (in 0.97b).

There's no limit on the size of a target (although there is a limit of 4096 characters on the length of a line in the config file - this can be increased simply).

You can see what data sources are supported by looking in weathermap/lib/datasources (on any version before 1.x) and you'll see the plugins. SNMPv1, v2c and v3 are 3 separate plugins.
Weathermap 0.98 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: 5327
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Graphing SNMP String with Weathermap

#19 Post by Howie » Mon Jan 08, 2018 1:36 pm

(I haven't tried it, but you *might* find that you can just take the snmp2c file from 0.98 and use it in 0.97. Might.)
Weathermap 0.98 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!)

msantana
Posts: 24
Joined: Mon May 18, 2009 8:33 am

Re: Graphing SNMP String with Weathermap

#20 Post by msantana » Mon Jan 08, 2018 1:59 pm

Howie wrote:(I haven't tried it, but you *might* find that you can just take the snmp2c file from 0.98 and use it in 0.97. Might.)
I'll give it a try. Thank you!

msantana
Posts: 24
Joined: Mon May 18, 2009 8:33 am

Re: Graphing SNMP String with Weathermap

#21 Post by msantana » Mon Jan 08, 2018 2:58 pm

msantana wrote:
Howie wrote:(I haven't tried it, but you *might* find that you can just take the snmp2c file from 0.98 and use it in 0.97. Might.)
I'll give it a try. Thank you!
I just downloaded the 0.98 version and couldn't find a snmp2c file. I compared the snmp file (that came with the zip file) with the 0.97b version and it's identical.

If there's a post or thread with that snmp2c file, I'd appreciate your guidance.

Regards,

DanielU
Posts: 8
Joined: Tue Jan 24, 2017 7:19 am
Location: Bydgoszcz, Poland

Re: Graphing SNMP String with Weathermap

#22 Post by DanielU » Fri May 11, 2018 3:52 am

I have new problem on other weathermap.

I am trying to visualize F5 (BIG IP) HA status and current configsys state.

Snmpwalk:

Code: Select all

 snmpwalk -v1 -c coodais_RO 10.10.10.10 .1.3.6.1.4.1.3375.2.1.14.3.1
SNMPv2-SMI::enterprises.3375.2.1.14.3.1.0 = INTEGER: 4
Config:

Code: Select all

SCALE F5SYN	0    0.5	110	255	2
SCALE F5SYN	0.6  1.5	255	255	3
SCALE F5SYN	1.6  2.5	255	255	4
SCALE F5SYN	2.6  3.5	255	0	5
SCALE F5SYN	3.6  4.5	110	255	6

NODE node_F5_HA_Status
	LABEL HA
	TARGET snmp:coodais_RO:10.10.10.10:.1.3.6.1.4.1.3375.2.1.14.3.1:-
	LABELOUTLINECOLOR none
	USESCALE F5SYN in 
	POSITION 470 379
The labels colours aren't correct. They all are green like in the first line of scale despite they should have different values.
When I commented first line of scale labels became gray.
When I tried show the value on label, the value was [UNKNOWN]

Code: Select all

LABEL  {node:this:snmp_in_raw}HA

User avatar
Howie
Cacti Guru User
Posts: 5327
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Graphing SNMP String with Weathermap

#23 Post by Howie » Fri May 11, 2018 6:27 am

Three things:
1) Best to start a new thread for a new problem
2) Look closely at your snmpwalk output and the OID in your TARGET. The target OID doesn't have the .0 on the end. The best way to test is to use snmpget instead of snmpwalk. snmpwalk shows you results 'below' the requested OID also.
3) I think your scale might be wrong - did you intend to have blue values of 2,3,4,5,6? (basically identical). I suspect you are missing a column of numbers from the colours, and you wanted to use scaletag of 2,3,4,5,6?

Also, looking in the logs would probably have told you the OID was wrong.
Weathermap 0.98 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!)

DanielU
Posts: 8
Joined: Tue Jan 24, 2017 7:19 am
Location: Bydgoszcz, Poland

Re: Graphing SNMP String with Weathermap

#24 Post by DanielU » Fri May 11, 2018 7:20 am

Howie wrote:Three things:
1) Best to start a new thread for a new problem
2) Look closely at your snmpwalk output and the OID in your TARGET. The target OID doesn't have the .0 on the end. The best way to test is to use snmpget instead of snmpwalk. snmpwalk shows you results 'below' the requested OID also.
3) I think your scale might be wrong - did you intend to have blue values of 2,3,4,5,6? (basically identical). I suspect you are missing a column of numbers from the colours, and you wanted to use scaletag of 2,3,4,5,6?

Also, looking in the logs would probably have told you the OID was wrong.
1) I thought the topic is the same, but you rule this world.
2) You were right. .0 solved the problem. You are irreplaceable.
3) My scale is little strange because I used one scale for two different data source which have values from 0 to 5 and I have in this scale 2 yellows and 2 greens. For test and diagnostic reasons I wanted to diversify the same colors. When they are presented in Weathermap I can check the color via clipboard in graphical program. Finally I'll set 0 at this place.

Thank you very much for your invaluable help.

User avatar
Howie
Cacti Guru User
Posts: 5327
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Graphing SNMP String with Weathermap

#25 Post by Howie » Fri May 11, 2018 10:48 am

You said "I have new problem on other weathermap." :-)

Glad it's working!
Weathermap 0.98 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