Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SNMP result handling for non-numeric results #311

Closed
tataa36 opened this issue Aug 8, 2023 · 10 comments
Closed

Improve SNMP result handling for non-numeric results #311

tataa36 opened this issue Aug 8, 2023 · 10 comments
Labels
QA Issue found in QA, no ChangeLog required resolved

Comments

@tataa36
Copy link

tataa36 commented Aug 8, 2023

Describe the bug
There are devices with unusual complex SNMP query result. Such a value can contain numeric value together with unit and text.
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"
This will lead to a NaN situation in Cacti.
The same graph is working using cmd.php oder realtime-monitoring.

Screenshots
normal mode
normal
realtime mode
realtime

Server (please complete the following information):

  • OS: Ubuntu LTS22.04
  • Cacti and Spine release 1.2.24

Additional context
cacti.log:
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 output:

/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
@TheWitness
Copy link
Member

I'm pretty sure this is fixed in the 1.2.x branch.

@tataa36
Copy link
Author

tataa36 commented Aug 9, 2023

Indeed, this seems to be fixed in latest 1.2.x branch. But maybe this fix brought me a new problem where input script isn't working anymore - because of new placed quotes.
With latest 1.2.x branch:

./spine_1.2.x_20230808 -R -V 5 -S -H 3
SPINE: Using spine config file [/etc/spine.conf]
Total[0.0037] DEBUG: The path_php_server variable is /var/www/cacti/script_server.php
Total[0.0037] DEBUG: The path_cactilog variable is /var/log/cacti/cacti.log
Total[0.0038] DEBUG: The version variable is 10.6.12-MariaDB-0ubuntu0.22.04.1-log
Total[0.0038] DEBUG: The log_destination variable is 4 (STDOUT)
Total[0.0039] DEBUG: The path_php variable is /usr/bin/php
Total[0.0040] DEBUG: The availability_method variable is 2
Total[0.0041] DEBUG: The ping_recovery_count variable is 3
Total[0.0046] DEBUG: The ping_failure_count variable is 2
Total[0.0049] DEBUG: The ping_method variable is 2
Total[0.0051] DEBUG: The ping_retries variable is 1
Total[0.0053] DEBUG: The ping_timeout variable is 400
Total[0.0055] DEBUG: The snmp_retries variable is 3
Total[0.0056] DEBUG: The log_perror variable is 1
Total[0.0057] DEBUG: The log_pwarn variable is 1
Total[0.0059] DEBUG: The boost_redirect variable is 0
Total[0.0060] DEBUG: The boost_rrd_update_enable variable is 0
Total[0.0061] DEBUG: The log_pstats variable is 1
Total[0.0063] DEBUG: The threads variable is 1
Total[0.0064] DEBUG: The polling interval is 300 seconds
Total[0.0065] DEBUG: The number of concurrent processes is 1
Total[0.0066] DEBUG: The script timeout is 25
Total[0.0068] DEBUG: The selective_device_debug variable is 165
Total[0.0069] DEBUG: The spine_log_level variable is 0
Total[0.0070] DEBUG: The number of php script servers to run is 1
Total[0.0071] DEBUG: The number of active data source profiles is 1
Total[0.0072] DEBUG: The number of snmp ports on the system is 1
Total[0.0075] DEBUG: Device List to be polled='3', TotalPHPScripts='1'
Total[0.0075] DEBUG: The PHP Script Server is Required
Total[0.0077] DEBUG: The Maximum SNMP OID Get Size is 10
Total[0.0077] DEBUG: Selective Debug Devices 165
Total[0.0081] DEBUG: Total Connections made 1
Total[0.0081] DEBUG: Creating Local Connection Pool of 1 threads.
Total[0.0081] DEBUG: Creating Local Connection 0.
Total[0.0084] DEBUG: Total Connections made 2
Total[0.0084] DEBUG: Version 1.2.25 starting
Total[0.0084] DEBUG: MySQL is Thread Safe!
Total[0.0084] DEBUG: Spine running as 0 UID, 0 EUID
Total[0.0085] DEBUG: Spine is running as root.
Total[0.0085] DEBUG: Spine has got ICMP
Total[0.0085] DEBUG: Initializing Net-SNMP API
Total[0.0085] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
Total[0.0150] DEBUG: Initializing PHP Script Server(s)
Total[0.0150] DEBUG: SS[0] PHP Script Server Routine Starting
Total[0.0150] DEBUG: SS[0] PHP Script Server About to FORK Child Process
Total[0.0152] DEBUG: SS[0] PHP Script Server Child FORK Success
Total[0.0910] DEBUG: SS[0] Confirmed PHP Script Server running using readfd[8], writefd[7]
Total[0.0922] DEBUG: Initial Value of Available Threads is 1 (0 outstanding)
Total[0.0924] DEBUG: Valid Thread to be Created (139948291774016)
Total[0.0924] DEBUG: Available Threads is 0 (1 outstanding)
Total[0.0931] DEBUG: Device[0] HT[1] In Poller, About to Start Polling
Total[0.0933] DEBUG: Traversing Local Connection Pool for free connection.
Total[0.0933] DEBUG: Checking Local Pool ID 0.
Total[0.0933] DEBUG: Allocating Local Pool ID 0.
Total[0.0938] Device[0] HT[1] Total Time: 0.00064 Seconds
Total[0.0940] DEBUG: Freeing Local Pool ID 0
Total[0.0941] DEBUG: Device[0] HT[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
Total[0.1029] DEBUG: Valid Thread to be Created (139948291774016)
Total[0.1030] DEBUG: Available Threads is 0 (1 outstanding)
Total[0.1030] WARNING: Device[3] polling sleeping while waiting for 1 Threads to End
Total[0.1040] DEBUG: Device[3] HT[1] In Poller, About to Start Polling
Total[0.1041] DEBUG: Traversing Local Connection Pool for free connection.
Total[0.1041] DEBUG: Checking Local Pool ID 0.
Total[0.1041] DEBUG: Allocating Local Pool ID 0.
Total[0.1045] get_namebyhost(HOST) - Allocating name_t
Total[0.1045] get_namebyhost(HOST) - No delimiter, assume full hostname
Total[0.1045] Device[3] INFO: SNMP Device 'HOST:161' has a timeout of 500000 (500), with 3 retries
Total[0.1053] Device[3] DEBUG: Entering SNMP Ping
Total[0.1060] Device[3] SNMP Result: Device responded to SNMP
Total[0.1061] Device[3] Checking for System Information Update
Total[0.1061] Device[3] Updating Full System Information Table
Total[0.1093] DEBUG: Device[3] HT[1] RECACHE: Processing 2 items in the auto reindex cache for 'HOST'
Total[0.1098] Device[3] HT[1] DQ[4] Legacy Uptime Result: 1095543455, Is Numeric: 1
Total[0.1102] Device[3] HT[1] DQ[4] Extended Uptime Result: 1095543500, Is Numeric: 1
Total[0.1102] Device[3] HT[1] DQ[4] RECACHE OID: .1.3.6.1.2.1.1.3.0, (assert: 1095523000 < output: 1095543500)
Total[0.1103] Device[3] HT[1] DQ[7] RECACHE OID: .1.3.6.1.2.1.1.3.0, (assert: 1095523000 < output: 1095543500)
Total[0.1116] Device[3] HT[1] NOTE: There are '38' Polling Items for this Device
Total[0.1120] Device[3] HT[1] DS[553] TT[0.38] SS[0] SERVER: /var/www/cacti/scripts/ss_hstats.php ss_hstats '3' polling_time, output: 0.194
Total[0.1122] Device[3] HT[1] DS[554] TT[0.24] SS[0] SERVER: /var/www/cacti/scripts/ss_hstats.php ss_hstats '3' uptime, output: 1095523000
Total[0.1122] Device[3] INFO: SNMP Device 'HOST:161' has a timeout of 500000 (500), with 3 retries
Total[0.1205] Device[3] HT[1] DS[555] TT[8.00] SNMP: v2: HOST, dsname: load_1min, oid: .1.3.6.1.4.1.2021.10.1.3.1, value: 0.00
Total[0.1205] Device[3] HT[1] DS[556] TT[8.02] SNMP: v2: HOST, dsname: load_15min, oid: .1.3.6.1.4.1.2021.10.1.3.3, value: 0.00
Total[0.1205] Device[3] HT[1] DS[557] TT[8.03] SNMP: v2: HOST, dsname: load_5min, oid: .1.3.6.1.4.1.2021.10.1.3.2, value: 0.00
Total[0.1205] Device[3] HT[1] DS[558] TT[8.04] SNMP: v2: HOST, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, value: 353808
Total[0.1205] Device[3] HT[1] DS[559] TT[8.05] SNMP: v2: HOST, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, value: 2178428
Total[0.1205] Device[3] HT[1] DS[560] TT[8.05] SNMP: v2: HOST, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, value: 190148
Total[0.1205] Device[3] HT[1] DS[561] TT[8.06] SNMP: v2: HOST, dsname: mem_total, oid: .1.3.6.1.4.1.2021.4.5.0, value: 4025604
Total[0.1205] Device[3] HT[1] DS[562] TT[8.07] SNMP: v2: HOST, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, value: 0
Total[0.1205] Device[3] HT[1] DS[563] TT[8.08] SNMP: v2: HOST, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, value: 169
Total[0.1206] Device[3] HT[1] DS[564] TT[8.09] SNMP: v2: HOST, dsname: ssCpuIdle, oid: .1.3.6.1.4.1.2021.11.11.0, value: 99
Total[0.1600] Device[3] HT[1] DS[569] TT[39.43] SS[0] SERVER: /var/www/cacti/scripts/ss_net_snmp_disk_io.php ss_net_snmp_disk_io 'HOST', output: reads:0 writes:1111
Total[0.1972] Device[3] HT[1] DS[570] TT[37.16] SS[0] SERVER: /var/www/cacti/scripts/ss_net_snmp_disk_bytes.php ss_net_snmp_disk_bytes 'HOST', output: bytesread:0 byteswritten:5955584
Total[0.1977] Device[3] HT[1] DS[565] TT[0.52] SNMP: v2: HOST, dsname: ssCpuSystem, oid: .1.3.6.1.4.1.2021.11.10.0, value: 0
Total[0.1978] Device[3] HT[1] DS[566] TT[0.54] SNMP: v2: HOST, dsname: ssCpuUser, oid: .1.3.6.1.4.1.2021.11.9.0, value: 0
Total[0.1978] Device[3] HT[1] DS[567] TT[0.55] SNMP: v2: HOST, dsname: ssSysInterrupts, oid: .1.3.6.1.4.1.2021.11.7.0, value: 282
Total[0.1978] Device[3] HT[1] DS[568] TT[0.56] SNMP: v2: HOST, dsname: ssSysContext, oid: .1.3.6.1.4.1.2021.11.8.0, value: 220
Total[0.1978] Device[3] HT[1] DS[577] TT[0.57] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.11, value: 3931492352
Total[0.1978] Device[3] HT[1] DS[577] TT[0.58] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.11, value: 439048896512
Total[0.1978] Device[3] HT[1] DS[578] TT[0.59] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.12, value: 2783687680
Total[0.1978] Device[3] HT[1] DS[578] TT[0.60] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.12, value: 57860222976
Total[0.1978] Device[3] HT[1] DS[579] TT[0.61] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.13, value: 2048
Total[0.1978] Device[3] HT[1] DS[579] TT[0.62] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.13, value: 0
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.
Total[0.1979] Device[3] HT[1] DS[595] TT[0.03] SCRIPT: /var/www/cacti/scripts/bind-stats.sh 'HOST', output: U
Total[0.1979] 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.
Total[0.1979] Device[3] HT[1] DS[596] TT[0.03] SCRIPT: /var/www/cacti/scripts/bind-stats.sh 'HOST', output: U
Total[0.1979] The executable is '/usr/bin//var/www/cacti/scripts/bind-stats.sh' in '/var/www/cacti/scripts/bind-stats.sh 'HOST''
Total[0.1980] Device[3] ERROR: Problem executing POPEN.  File '/var/www/cacti/scripts/bind-stats.sh 'HOST'' does not exist or is not executable.
Total[0.1980] Device[3] HT[1] DS[597] TT[0.03] SCRIPT: /var/www/cacti/scripts/bind-stats.sh 'HOST', output: U
Total[0.1980] The executable is '/usr/bin//var/www/cacti/scripts/bind-stats.sh' in '/var/www/cacti/scripts/bind-stats.sh 'HOST''
Total[0.1980] Device[3] ERROR: Problem executing POPEN.  File '/var/www/cacti/scripts/bind-stats.sh 'HOST'' does not exist or is not executable.
Total[0.1980] Device[3] HT[1] DS[598] TT[0.03] SCRIPT: /var/www/cacti/scripts/bind-stats.sh 'HOST', output: U
Total[0.1989] Device[3] HT[1] DS[580] TT[0.90] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.14, value: 1130677248
Total[0.1990] Device[3] HT[1] DS[580] TT[0.94] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.14, value: 381159321600
Total[0.1990] Device[3] HT[1] DS[581] TT[0.97] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.15, value: 14974976
Total[0.1990] Device[3] HT[1] DS[581] TT[1.00] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.15, value: 29351936
Total[0.1991] Device[3] HT[1] DS[594] TT[1.03] SNMP: v2: HOST, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.2, value: 15233635350
Total[0.1991] Device[3] HT[1] DS[594] TT[1.06] SNMP: v2: HOST, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.2, value: 9776987233
Total[0.1991] Device[3] HT[1] DS[599] TT[1.09] SNMP: v2: HOST, dsname: hdd_free, oid: .1.3.6.1.4.1.2021.9.1.7.1, value: 10202172
Total[0.1991] Device[3] HT[1] DS[599] TT[1.12] SNMP: v2: HOST, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.1, value: 3299680
Total[0.1992] Device[3] HT[1] DS[600] TT[1.15] SNMP: v2: HOST, dsname: hdd_free, oid: .1.3.6.1.4.1.2021.9.1.7.2, value: 10833036
Total[0.1993] Device[3] HT[1] DS[600] TT[1.23] SNMP: v2: HOST, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.2, value: 2669748
Total[0.1994] DEBUG: Setting up writes to local database
Total[0.1997] Device[3] HT[1] Total Time: 0.096 Seconds
Total[0.2018] DEBUG: Freeing Local Pool ID 0
Total[0.2019] DEBUG: Device[3] HT[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
Total[0.6032] The final count of Threads is 0
Total[0.6033] INFO: Thread complete for Device[0] and 0 to 0 sources
Total[0.6033] INFO: Thread complete for Device[3] and 0 to 0 sources
Total[0.6033] DEBUG: Closing Local Connection Pool ID 0
Total[0.6034] DEBUG: Thread Cleanup Complete
Total[0.6034] DEBUG: SS[0] Script Server Shutdown Started
Total[0.6537] DEBUG: PHP Script Server Pipes Closed
Total[0.6538] DEBUG: Allocated Variable Memory Freed
Total[0.6539] DEBUG: MYSQL Free & Close Completed
Total[0.6541] DEBUG: Net-SNMP Close Completed
Total[0.6541] Time: 0.6540 s, Threads: 1, Devices: 2

And compared to this with spine release 1.2.24:

./spine -R -V 5 -S -H 3
SPINE: Using spine config file [/etc/spine.conf]
Total[0.0046] DEBUG: The path_php_server variable is /var/www/cacti/script_server.php
Total[0.0047] DEBUG: The path_cactilog variable is /var/log/cacti/cacti.log
Total[0.0047] DEBUG: The version variable is 10.6.12-MariaDB-0ubuntu0.22.04.1-log
Total[0.0047] DEBUG: The log_destination variable is 4 (STDOUT)
Total[0.0050] DEBUG: The path_php variable is /usr/bin/php
Total[0.0052] DEBUG: The availability_method variable is 2
Total[0.0053] DEBUG: The ping_recovery_count variable is 3
Total[0.0055] DEBUG: The ping_failure_count variable is 2
Total[0.0056] DEBUG: The ping_method variable is 2
Total[0.0058] DEBUG: The ping_retries variable is 1
Total[0.0060] DEBUG: The ping_timeout variable is 400
Total[0.0062] DEBUG: The snmp_retries variable is 3
Total[0.0063] DEBUG: The log_perror variable is 1
Total[0.0065] DEBUG: The log_pwarn variable is 1
Total[0.0067] DEBUG: The boost_redirect variable is 0
Total[0.0070] DEBUG: The boost_rrd_update_enable variable is 0
Total[0.0072] DEBUG: The log_pstats variable is 1
Total[0.0076] DEBUG: The threads variable is 1
Total[0.0078] DEBUG: The polling interval is 300 seconds
Total[0.0084] DEBUG: The number of concurrent processes is 1
Total[0.0087] DEBUG: The script timeout is 25
Total[0.0090] DEBUG: The selective_device_debug variable is 165
Total[0.0092] DEBUG: The spine_log_level variable is 0
Total[0.0095] DEBUG: The number of php script servers to run is 1
Total[0.0098] DEBUG: The number of active data source profiles is 1
Total[0.0100] DEBUG: The number of snmp ports on the system is 1
Total[0.0105] DEBUG: Device List to be polled='3', TotalPHPScripts='1'
Total[0.0105] DEBUG: The PHP Script Server is Required
Total[0.0107] DEBUG: The Maximum SNMP OID Get Size is 10
Total[0.0108] DEBUG: Selective Debug Devices 165
Total[0.0113] DEBUG: Total Connections made 1
Total[0.0114] DEBUG: Creating Local Connection Pool of 1 threads.
Total[0.0114] DEBUG: Creating Local Connection 0.
Total[0.0118] DEBUG: Total Connections made 2
Total[0.0118] DEBUG: Version 1.2.24 starting
Total[0.0118] DEBUG: MySQL is Thread Safe!
Total[0.0119] DEBUG: Spine running as 0 UID, 0 EUID
Total[0.0119] DEBUG: Spine is running as root.
Total[0.0119] DEBUG: Spine has got ICMP
Total[0.0119] DEBUG: Initializing Net-SNMP API
Total[0.0120] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
Total[0.0186] DEBUG: Initializing PHP Script Server(s)
Total[0.0186] DEBUG: SS[0] PHP Script Server Routine Starting
Total[0.0186] DEBUG: SS[0] PHP Script Server About to FORK Child Process
Total[0.0188] DEBUG: SS[0] PHP Script Server Child FORK Success
Total[0.1080] DEBUG: SS[0] Confirmed PHP Script Server running using readfd[8], writefd[7]
Total[0.1093] Spine will support multithread device polling.
Total[0.1096] DEBUG: Initial Value of Available Threads is 1 (0 outstanding)
Total[0.1099] DEBUG: Valid Thread to be Created (139947195942464)
Total[0.1099] DEBUG: Available Threads is 0 (1 outstanding)
Total[0.1108] DEBUG: Device[0] HT[1] In Poller, About to Start Polling
Total[0.1110] DEBUG: Traversing Local Connection Pool for free connection.
Total[0.1110] DEBUG: Checking Local Pool ID 0.
Total[0.1110] DEBUG: Allocating Local Pool ID 0.
Total[0.1116] Device[0] HT[1] Total Time: 0.00072 Seconds
Total[0.1119] DEBUG: Freeing Local Pool ID 0
Total[0.1120] DEBUG: Device[0] HT[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
Total[0.1203] DEBUG: Valid Thread to be Created (139947195942464)
Total[0.1203] DEBUG: Available Threads is 0 (1 outstanding)
Total[0.1204] WARNING: Device[3] polling sleeping while waiting for 1 Threads to End
Total[0.1209] DEBUG: Device[3] HT[1] In Poller, About to Start Polling
Total[0.1210] DEBUG: Traversing Local Connection Pool for free connection.
Total[0.1210] DEBUG: Checking Local Pool ID 0.
Total[0.1210] DEBUG: Allocating Local Pool ID 0.
Total[0.1215] get_namebyhost(HOST) - Allocating name_t
Total[0.1215] get_namebyhost(HOST) - No delimiter, assume full hostname
Total[0.1215] Device[3] INFO: SNMP Device 'HOST:161' has a timeout of 500000 (500), with 3 retries
Total[0.1222] Device[3] DEBUG: Entering SNMP Ping
Total[0.1229] Device[3] SNMP Result: Device responded to SNMP
Total[0.1229] Device[3] Checking for System Information Update
Total[0.1230] Device[3] Updating Full System Information Table
Total[0.1260] DEBUG: Device[3] HT[1] RECACHE: Processing 2 items in the auto reindex cache for 'HOST'
Total[0.1264] Device[3] HT[1] DQ[4] Legacy Uptime Result: 1095586880, Is Numeric: 1
Total[0.1269] Device[3] HT[1] DQ[4] Extended Uptime Result: 1095586900, Is Numeric: 1
Total[0.1269] Device[3] HT[1] DQ[4] RECACHE OID: .1.3.6.1.2.1.1.3.0, (assert: 1095583100 < output: 1095586900)
Total[0.1270] Device[3] HT[1] DQ[7] RECACHE OID: .1.3.6.1.2.1.1.3.0, (assert: 1095583100 < output: 1095586900)
Total[0.1281] Device[3] HT[1] NOTE: There are '38' Polling Items for this Device
Total[0.1291] Device[3] HT[1] DS[553] TT[0.95] SS[0] SERVER: /var/www/cacti/scripts/ss_hstats.php ss_hstats '3' polling_time, output: 0.206
Total[0.1297] Device[3] HT[1] DS[554] TT[0.62] SS[0] SERVER: /var/www/cacti/scripts/ss_hstats.php ss_hstats '3' uptime, output: 1095583100
Total[0.1298] Device[3] INFO: SNMP Device 'HOST:161' has a timeout of 500000 (500), with 3 retries
Total[0.1369] Device[3] HT[1] DS[555] TT[6.70] SNMP: v2: HOST, dsname: load_1min, oid: .1.3.6.1.4.1.2021.10.1.3.1, value: 0.01
Total[0.1370] Device[3] HT[1] DS[556] TT[6.74] SNMP: v2: HOST, dsname: load_15min, oid: .1.3.6.1.4.1.2021.10.1.3.3, value: 0.00
Total[0.1370] Device[3] HT[1] DS[557] TT[6.75] SNMP: v2: HOST, dsname: load_5min, oid: .1.3.6.1.4.1.2021.10.1.3.2, value: 0.01
Total[0.1370] Device[3] HT[1] DS[558] TT[6.76] SNMP: v2: HOST, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, value: 353808
Total[0.1370] Device[3] HT[1] DS[559] TT[6.78] SNMP: v2: HOST, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, value: 2179136
Total[0.1370] Device[3] HT[1] DS[560] TT[6.79] SNMP: v2: HOST, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, value: 204468
Total[0.1370] Device[3] HT[1] DS[561] TT[6.80] SNMP: v2: HOST, dsname: mem_total, oid: .1.3.6.1.4.1.2021.4.5.0, value: 4025604
Total[0.1370] Device[3] HT[1] DS[562] TT[6.81] SNMP: v2: HOST, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, value: 0
Total[0.1370] Device[3] HT[1] DS[563] TT[6.82] SNMP: v2: HOST, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, value: 151
Total[0.1371] Device[3] HT[1] DS[564] TT[6.84] SNMP: v2: HOST, dsname: ssCpuIdle, oid: .1.3.6.1.4.1.2021.11.11.0, value: 99
Total[0.1777] Device[3] HT[1] DS[569] TT[40.60] SS[0] SERVER: /var/www/cacti/scripts/ss_net_snmp_disk_io.php ss_net_snmp_disk_io 'HOST', output: reads:0 writes:247
Total[0.2226] Device[3] HT[1] DS[570] TT[44.82] SS[0] SERVER: /var/www/cacti/scripts/ss_net_snmp_disk_bytes.php ss_net_snmp_disk_bytes 'HOST', output: bytesread:0 byteswritten:1335296
Total[0.2232] Device[3] HT[1] DS[565] TT[0.62] SNMP: v2: HOST, dsname: ssCpuSystem, oid: .1.3.6.1.4.1.2021.11.10.0, value: 0
Total[0.2233] Device[3] HT[1] DS[566] TT[0.66] SNMP: v2: HOST, dsname: ssCpuUser, oid: .1.3.6.1.4.1.2021.11.9.0, value: 0
Total[0.2233] Device[3] HT[1] DS[567] TT[0.67] SNMP: v2: HOST, dsname: ssSysInterrupts, oid: .1.3.6.1.4.1.2021.11.7.0, value: 298
Total[0.2233] Device[3] HT[1] DS[568] TT[0.69] SNMP: v2: HOST, dsname: ssSysContext, oid: .1.3.6.1.4.1.2021.11.8.0, value: 263
Total[0.2233] Device[3] HT[1] DS[577] TT[0.71] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.11, value: 3931492352
Total[0.2233] Device[3] HT[1] DS[577] TT[0.73] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.11, value: 439067344896
Total[0.2233] Device[3] HT[1] DS[578] TT[0.74] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.12, value: 2783687680
Total[0.2233] Device[3] HT[1] DS[578] TT[0.75] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.12, value: 57862406144
Total[0.2234] Device[3] HT[1] DS[579] TT[0.80] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.13, value: 2048
Total[0.2234] Device[3] HT[1] DS[579] TT[0.84] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.13, value: 0
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
Total[0.2531] DEBUG: Device[3] DEBUG: The NIFTY POPEN returned the following File Descriptor 9
Total[0.2647] Device[3] HT[1] DS[596] TT[11.65] 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
Total[0.2649] DEBUG: Device[3] DEBUG: The NIFTY POPEN returned the following File Descriptor 9
Total[0.2752] Device[3] HT[1] DS[597] TT[10.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
Total[0.2754] DEBUG: Device[3] DEBUG: The NIFTY POPEN returned the following File Descriptor 9
Total[0.2872] Device[3] HT[1] DS[598] TT[11.94] 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
Total[0.2882] Device[3] HT[1] DS[580] TT[1.02] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.14, value: 1130677248
Total[0.2883] Device[3] HT[1] DS[580] TT[1.07] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.14, value: 381175586816
Total[0.2883] Device[3] HT[1] DS[581] TT[1.10] SNMP: v2: HOST, dsname: Bytes_Read, oid: .1.3.6.1.4.1.2021.13.15.1.1.12.15, value: 14974976
Total[0.2883] Device[3] HT[1] DS[581] TT[1.12] SNMP: v2: HOST, dsname: Bytes_Written, oid: .1.3.6.1.4.1.2021.13.15.1.1.13.15, value: 29351936
Total[0.2883] Device[3] HT[1] DS[594] TT[1.15] SNMP: v2: HOST, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.2, value: 15234115746
Total[0.2884] Device[3] HT[1] DS[594] TT[1.17] SNMP: v2: HOST, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.2, value: 9777555392
Total[0.2884] Device[3] HT[1] DS[599] TT[1.20] SNMP: v2: HOST, dsname: hdd_free, oid: .1.3.6.1.4.1.2021.9.1.7.1, value: 10202168
Total[0.2884] Device[3] HT[1] DS[599] TT[1.24] SNMP: v2: HOST, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.1, value: 3299684
Total[0.2885] Device[3] HT[1] DS[600] TT[1.27] SNMP: v2: HOST, dsname: hdd_free, oid: .1.3.6.1.4.1.2021.9.1.7.2, value: 10832568
Total[0.2885] Device[3] HT[1] DS[600] TT[1.31] SNMP: v2: HOST, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.2, value: 2670216
Total[0.2885] DEBUG: Setting up writes to local database
Total[0.2887] Device[3] HT[1] Total Time: 0.17 Seconds
Total[0.2916] DEBUG: Freeing Local Pool ID 0
Total[0.2916] DEBUG: Device[3] HT[1] DEBUG: HOST COMPLETE: About to Exit Device Polling Thread Function
Total[0.6205] The final count of Threads is 0
Total[0.6206] INFO: Thread complete for Device[0] and 0 to 0 sources
Total[0.6206] INFO: Thread complete for Device[3] and 0 to 0 sources
Total[0.6206] DEBUG: Closing Local Connection Pool ID 0
Total[0.6206] DEBUG: Thread Cleanup Complete
Total[0.6206] DEBUG: SS[0] Script Server Shutdown Started
Total[0.6708] DEBUG: PHP Script Server Pipes Closed
Total[0.6708] DEBUG: Allocated Variable Memory Freed
Total[0.6709] DEBUG: MYSQL Free & Close Completed
Total[0.6710] DEBUG: Net-SNMP Close Completed
Total[0.6710] Time: 0.6709 s, Threads: 1, Devices: 2

@TheWitness
Copy link
Member

Do the following

ls -l filename.sh

Send the results.

@tataa36
Copy link
Author

tataa36 commented Aug 9, 2023

# ls -l bind-stats.sh
-rwxr-xr-x 1 www-data www-data 167 Jul 11  2022 bind-stats.sh

@TheWitness
Copy link
Member

I've just fixed this. Try again. Marking this closed as I have found my mistake and corrected it now.

@TheWitness TheWitness added QA Issue found in QA, no ChangeLog required resolved labels Aug 12, 2023
@netniV
Copy link
Member

netniV commented Aug 12, 2023

In which commit?

@TheWitness
Copy link
Member

Here.

ec7faa8

@tataa36
Copy link
Author

tataa36 commented Aug 14, 2023

Thank you TheWitness, the latest 1.2.x branch made it working.

@tataa36
Copy link
Author

tataa36 commented Aug 17, 2023

Oh no, it seems I was a bit too hasty.
Even with the latest 1.2.x spine the are some unusable values. Strange thing, from the same device some values can be used and some can't.

A bulkget gives me all values I would expect:

iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.1.1 = STRING: "000.6273 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.3.1 = STRING: "-002.2709 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.5.1 = STRING: "001.3232 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.7.1 = STRING: "000.6914 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.9.1 = STRING: "001.2962 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.10.1 = STRING: "-002.3792 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.257.1 = STRING: "001.2499 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.261.1 = STRING: "001.5155 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.3.263.1 = STRING: "002.1648 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.1.1 = STRING: "-007.6447 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.3.1 = STRING: "-002.8274 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.5.1 = STRING: "-020.4575 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.7.1 = STRING: "-012.3358 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.9.1 = STRING: "-006.8131 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.10.1 = STRING: "-007.8542 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.257.1 = STRING: "-007.8754 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.261.1 = STRING: "-019.7469 dBm Normal"
iso.3.6.1.4.1.1991.1.1.3.3.10.1.4.263.1 = STRING: "-011.0790 dBm Normal"

Now I spine where only the last two OIDs bring me a value.

/usr/local/spine/bin/spine --first=80 --last=80 -R -S -V 5
...
Total[0.9604] Device[80] HT[1] DS[20833] TT[9.57] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.1.1, value: U
Total[0.9604] Device[80] HT[1] DS[20833] TT[9.58] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.1.1, value: U
Total[0.9604] Device[80] HT[1] DS[20834] TT[9.59] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.3.1, value: U
Total[0.9604] Device[80] HT[1] DS[20834] TT[9.61] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.3.1, value: U
Total[0.9604] Device[80] HT[1] DS[20835] TT[9.62] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.5.1, value: U
Total[0.9604] Device[80] HT[1] DS[20835] TT[9.63] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.5.1, value: U
Total[0.9660] Device[80] HT[1] DS[20836] TT[5.57] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.7.1, value: U
Total[0.9661] Device[80] HT[1] DS[20836] TT[5.64] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.7.1, value: U
Total[0.9661] Device[80] HT[1] DS[20837] TT[5.67] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.9.1, value: U
Total[0.9661] Device[80] HT[1] DS[20837] TT[5.70] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.9.1, value: U
Total[0.9662] Device[80] HT[1] DS[20838] TT[5.74] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.10.1, value: U
Total[0.9662] Device[80] HT[1] DS[20838] TT[5.77] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.10.1, value: U
Total[0.9662] Device[80] HT[1] DS[20839] TT[5.81] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.257.1, value: U
Total[0.9663] Device[80] HT[1] DS[20839] TT[5.84] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.257.1, value: U
Total[0.9663] Device[80] HT[1] DS[20840] TT[5.87] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.261.1, value: U
Total[0.9663] Device[80] HT[1] DS[20840] TT[5.89] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.261.1, value: U
Total[0.9712] Device[80] HT[1] DS[20841] TT[4.81] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.263.1, value: -010.8249
Total[0.9712] Device[80] HT[1] DS[20841] TT[4.87] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.263.1, value: 002.2190

I have no clue, other devices should draw two graphs and both are working. An other one has four and only three are there.
Any idea?

@tataa36
Copy link
Author

tataa36 commented Aug 17, 2023

It seems to depend on how many snmp bulkget I configure for each device:
max 10 OIDs per get:
2 from 18 avlues are working.
max 20 OIDs per get:
12 from 18 are working.
max 30 OIDs per get:
2 from 18 are working.
max 40 OIDs per port:
all 18 are working.

Total[0.4351] Device[80] HT[1] DS[20833] TT[3.42] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.1.1, value: -007.6674
Total[0.4351] Device[80] HT[1] DS[20833] TT[3.43] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.1.1, value: 000.6314
Total[0.4351] Device[80] HT[1] DS[20834] TT[3.44] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.3.1, value: -002.8124
Total[0.4351] Device[80] HT[1] DS[20834] TT[3.45] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.3.1, value: -002.2657
Total[0.4351] Device[80] HT[1] DS[20835] TT[3.47] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.5.1, value: -020.0877
Total[0.4351] Device[80] HT[1] DS[20835] TT[3.48] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.5.1, value: 001.3684
Total[0.4351] Device[80] HT[1] DS[20836] TT[3.49] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.7.1, value: -012.2475
Total[0.4351] Device[80] HT[1] DS[20836] TT[3.50] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.7.1, value: 000.7294
Total[0.4352] Device[80] HT[1] DS[20837] TT[3.52] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.9.1, value: -006.7923
Total[0.4352] Device[80] HT[1] DS[20837] TT[3.53] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.9.1, value: 001.2962
Total[0.4352] Device[80] HT[1] DS[20838] TT[3.54] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.10.1, value: -007.7650
Total[0.4352] Device[80] HT[1] DS[20838] TT[3.55] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.10.1, value: -002.3792
Total[0.4352] Device[80] HT[1] DS[20839] TT[3.56] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.257.1, value: -007.8621
Total[0.4352] Device[80] HT[1] DS[20839] TT[3.58] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.257.1, value: 001.2538
Total[0.4352] Device[80] HT[1] DS[20840] TT[3.59] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.261.1, value: -019.7469
Total[0.4352] Device[80] HT[1] DS[20840] TT[3.60] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.261.1, value: 001.5354
Total[0.4353] Device[80] HT[1] DS[20841] TT[3.61] SNMP: v2: HOST, dsname: snIfMonitoringRxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.4.263.1, value: -010.8512
Total[0.4353] Device[80] HT[1] DS[20841] TT[3.62] SNMP: v2: HOST, dsname: snIfMonitoringTxPwr, oid: .1.3.6.1.4.1.1991.1.1.3.3.10.1.3.263.1, value: 002.3258

If I look at the wireshark data structure with max 30 OIDs per get where at the end I only receive the last two values.
Cacti sends two snmp-get with 30 items in for these power values.
The first one has at the end 16 OIDs, and the second one starts with the two working OIDs.
Seems like only the last snmp-get is intepreted.
If I set it to max 40 OIDs per get, they all fit into a single snmp-get.

@netniV netniV changed the title Spine won't work with complex SNMP results improve SNMP result handling for non-numeric results Sep 4, 2023
@netniV netniV changed the title improve SNMP result handling for non-numeric results Improve SNMP result handling for non-numeric results Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA Issue found in QA, no ChangeLog required resolved
Projects
None yet
Development

No branches or pull requests

3 participants