SPINE 1.2.24 - problems with unusual SNMP values?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

SPINE 1.2.24 - problems with unusual SNMP values?

Post by GGA »

I'm on the latest released Cacti/Spine 1.2.24.

I try to monitor the optical SFP RX/TX power from a Brocade ICX switch.
The returned values have a kind of unusual setup:

Code: Select all

snmpget -v2c -c xxx host .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.17.1 -Ovqa
"-008.6806 dBm Normal"
There are double quotes and values and strings together.

I wrote a small snmp_queries XML but that only works during the realtime monitoring.

The default 5min monitoring just shows me a warning in cacti.log:

Code: Select all

2023-07-18 18:11:19 - SPINE: Poller[1] PID[78909] PT[139655334712896] WARNING: Invalid Response, Device[81] HT[1] DS[20783] SNMP: v2: <device>, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.17.1, value: -001.9661 dBm Normal
Spine debugging gives me rather the same:

Code: Select all

/usr/local/spine/bin/spine --first=81 --last=81 -R -S -V 5
...
Total[0.1410] WARNING: Invalid Response, Device[81] HT[1] DS[20783] SNMP: v2: <device>, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.17.1, value: -008.7127 dBm Normal
Total[0.1411] Device[81] HT[1] DS[20783] TT[86.08] SNMP: v2: <device>, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.17.1, value: U
Total[0.1411] WARNING: Invalid Response, Device[81] HT[1] DS[20783] SNMP: v2: <device>, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.17.1, value: -001.9661 dBm Normal
Total[0.1411] Device[81] HT[1] DS[20783] TT[86.10] SNMP: v2: <device>, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.17.1, value: U

Also Data Source Troubleshooter sees issues with bad results.
troubleshooter.png
troubleshooter.png (15.98 KiB) Viewed 1160 times
But why is realtime monitoring working? Does it anything different than general 5min polling with Spine?
Could there be something with the snmp_query XML? Well if so, would realtime monitoring work neither?
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by GGA »

viewtopic.php?t=62724
This is maybe the same as we have.
In my case, cmd.php works but takes so much longer.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by Osiris »

Spine should have stripped those trailing values.
Before history, there was a paradise, now dust.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by Osiris »

You should log a bug on GitHub.
Before history, there was a paradise, now dust.
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by GGA »

User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by Osiris »

Grab the latest 1.2.x branch. It's fixed there already.
Before history, there was a paradise, now dust.
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by GGA »

Thank you Osiris and TheWitness, this seems to fix it with the latest 1.2.x branch.
But in my case, this version brings me a new problem and this could fit together.
My bind9 monitoring based on Script/Command stops working with the latest 1.2.x branch.
The input string

Code: Select all

<path_cacti>/scripts/bind-stats.sh <hostname>
leads to an error because of the wrong placed quotes:

Code: Select all

ERROR: Problem executing POPEN. File '/var/www/cacti/scripts/bind-stats.sh 'host'' does not exist or is not executable. 
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by TheWitness »

Does the file exist and is it executable?
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by TheWitness »

Maybe change to

Code: Select all

/bin/sh -c /blah.sh <hostname>
Instead.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by TheWitness »

Run spine at debug level for that host_id

Code: Select all

./spine -R -V5 -S -H host_id
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by TheWitness »

Log that to github too. Include the output.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by GGA »

I will paste it to github.
The script is executable and it still works when I switch back to spine release 1.2.24:

latest 1.2.x branch

Code: Select all

Total[0.1978] The executable is '/usr/bin//var/www/cacti/scripts/bind-stats.sh' in '/var/www/cacti/scripts/bind-stats.sh 'HOST''
Total[0.1979] Device[3] ERROR: Problem executing POPEN.  File '/var/www/cacti/scripts/bind-stats.sh 'HOST'' does not exist or is not executable.
With spine release 1.2.24

Code: Select all

Total[0.2237] DEBUG: Device[3] DEBUG: The NIFTY POPEN returned the following File Descriptor 9
Total[0.2529] Device[3] HT[1] DS[595] TT[29.47] SCRIPT: /var/www/cacti/scripts/bind-stats.sh 'HOST', output: a:23726299 a6:1 aaaa:16733246 any:1572 cname:27042 mx:2257 naptr:42117 ns:5755 ptr:8034 soa:3460 spf:6 srv:934732 txt:19786 rsnx:749692 rsfail:76 rserr:7 rsipv4qs:1586174 rsipv4rr:1532849 rsmismatch: rsqr:1699338 rsqt:76206 rsrtt10:6476462 rsrtt100500:500206 rsrtt10100:2471797 rsrtt1600:577 rsrtt500800:4772 rsrtt8001600:979 sockopen:2435733 sockclosed:2435725 sockbf:189 consest:1584432 recverr:4364
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by TheWitness »

I'm going to be fixing this today.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by TheWitness »

Should be fixed as of 5 minutes ago.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: SPINE 1.2.24 - problems with unusual SNMP values?

Post by GGA »

Cool, it is working now. Thank you for fixing this.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests