Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Apr 22, 2019 3:32 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Tue Sep 19, 2017 12:09 pm 
Offline

Joined: Tue Jan 24, 2017 7:19 am
Posts: 8
Location: Bydgoszcz, Poland
Thanks for so fast answer.
I fixed it as you suggested.
Now is working well.


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Mon Jan 08, 2018 12:34 pm 
Offline

Joined: Mon May 18, 2009 8:33 am
Posts: 24
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,


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Mon Jan 08, 2018 1:26 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5300
Location: United Kingdom
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!)


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Mon Jan 08, 2018 1:36 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5300
Location: United Kingdom
(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!)


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Mon Jan 08, 2018 1:59 pm 
Offline

Joined: Mon May 18, 2009 8:33 am
Posts: 24
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!


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Mon Jan 08, 2018 2:58 pm 
Offline

Joined: Mon May 18, 2009 8:33 am
Posts: 24
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,


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Fri May 11, 2018 3:52 am 
Offline

Joined: Tue Jan 24, 2017 7:19 am
Posts: 8
Location: Bydgoszcz, Poland
I have new problem on other weathermap.

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

Snmpwalk:
Code:
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:
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:
LABEL  {node:this:snmp_in_raw}HA


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Fri May 11, 2018 6:27 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5300
Location: United Kingdom
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!)


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Fri May 11, 2018 7:20 am 
Offline

Joined: Tue Jan 24, 2017 7:19 am
Posts: 8
Location: Bydgoszcz, Poland
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.


Top
 Profile  
 
 Post subject: Re: Graphing SNMP String with Weathermap
PostPosted: Fri May 11, 2018 10:48 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5300
Location: United Kingdom
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!)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group