Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Hello guys, I'm trying to change a node label according to an OID value, it is the number of users connected on an Access Point controlled by a Cisco WLC 5508. I made some graphs using the OID, but I can't change a weathermap label with this value. Here are the code:
xikkofranco wrote:Hello guys, I'm trying to change a node label according to an OID value, it is the number of users connected on an Access Point controlled by a Cisco WLC 5508. I made some graphs using the OID, but I can't change a weathermap label with this value. Here are the code:
Have you turned DEBUG mode on and looked for clues? You can normally see when weathermap runs the snmpget and tells you what the returned value was and if it was OK or not.
The LABEL statement looks ok, remove {node:this:snmp_out_raw} because that belongs to what comes after the : and it's replaced by the - which means ignore it. Unless you are looking for 2 values like you normally do when polling interface traffic (IN and OUT).
Cheers
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
Hey, assuming you're using weathermap as cacti plugin, go to Settings, change logging to DEBUG, let the poller run and all the debug will go to cacti.log
Then search through it looking for that part, can't remember right now the key word, Howie will know better. But you'll see the part where it's doing the snmpget and returning the value.
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
Seeing the cacti log on DEBUG mode, it shows message of invalid snmp data, for its targets. I tried many ways but nothing works. I think weathermap doesn't supports my desired OID.
Last edited by Pucho on Thu Aug 03, 2017 3:35 pm, edited 1 time in total.
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
You don't need the :- on the end. You already have two OIDs there (there's a : in the middle, even though both OID are the same). It would be more efficient to just have:
(one OID and the '-') and use only {node:this:snmp_in_raw} in your label. Otherwise weathermap will just ask for the same value twice, and print it twice in your label.
Back to the snmp error though: What happens if you try
from the command line? Do you get data? This is basically what weathermap will be doing. Most importantly, in 0.98, it is using SNMPv1 only. SNMPv2c and v3 support are in the next (1.0.0) version.
Thank you Howie, you solved my problem. The SNMP version 1 was disabled on my controller, and it was the reason why snmp target wasn't working. I enabled it and everything is fine.