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

cmd.php poller not stripping alpha from snmp get values #1501

Closed
DoubleBeast opened this issue Mar 27, 2018 · 6 comments
Closed

cmd.php poller not stripping alpha from snmp get values #1501

DoubleBeast opened this issue Mar 27, 2018 · 6 comments

Comments

@DoubleBeast
Copy link

I have some graphs of cisco receiver Temperature that worked just fine until this morning when i update my cacti instalattion, this is the debug log for one of the receivers:

27-03-2018 16:20:59 - POLLER: Poller[Main Poller] WARNING: Invalid Response(s), Errors[4] Device[19] Device[TNT Series] Thread[1] Graphs[TNT Series - Temperatures, TNT Series - Temperatures] Graphs[TNT Series - Temperatures, TNT Series - Temperatures] Graphs[TNT Series - Temperatures, TNT Series - Temperatures] Graphs[TNT Series - Temperatures, TNT Series - Temperatures] DS[TNT Series - CurrTemp, TNT Series - FPGAT, TNT Series - I1T, TNT Series - I2T]
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Traffic - 192.168.169.64 (ETHER0), TNT Series - Traffic - 192.168.169.64 (ETHER0)] DS[TNT Series - Traffic - 192.168.169.64/ETHER0] SNMP: v2: 192.168.169.64, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 6335189
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Traffic - 192.168.169.64 (ETHER0), TNT Series - Traffic - 192.168.169.64 (ETHER0)] DS[TNT Series - Traffic - 192.168.169.64/ETHER0] SNMP: v2: 192.168.169.64, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 13454229
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Temperatures, TNT Series - Temperatures] DS[TNT Series - I2T] SNMP: v2: 192.168.169.64, dsname: PVU_In2Temp, oid: 1.3.6.1.4.1.1429.2.2.5.18.2.1.1.3.5, output: U
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Temperatures, TNT Series - Temperatures] DS[TNT Series - I1T] SNMP: v2: 192.168.169.64, dsname: PVU_In1Temp, oid: 1.3.6.1.4.1.1429.2.2.5.18.2.1.1.3.4, output: U
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Temperatures, TNT Series - Temperatures] DS[TNT Series - FPGAT] SNMP: v2: 192.168.169.64, dsname: PVU_FPGATemp, oid: 1.3.6.1.4.1.1429.2.2.5.18.2.1.1.3.7, output: U
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Temperatures, TNT Series - Temperatures] DS[TNT Series - CurrTemp] SNMP: v2: 192.168.169.64, dsname: PVU_CTemp, oid: 1.3.6.1.4.1.1429.2.2.5.18.2.1.1.3.1, output: U
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Signal, TNT Series - Signal] DS[TNT Series - Signal] SNMP: v2: 192.168.169.64, dsname: PVU_Signal, oid: 1.3.6.1.4.1.1429.2.2.5.5.3.1.1.7.1, output: -47
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Alerts & Warnings, TNT Series - Alerts & Warnings] DS[TNT Series - Warn] SNMP: v2: 192.168.169.64, dsname: PVU_Warn, oid: 1.3.6.1.4.1.1429.2.2.5.17.1.2.0, output: 1
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Alerts & Warnings, TNT Series - Alerts & Warnings] DS[TNT Series - Alert] SNMP: v2: 192.168.169.64, dsname: PVU_Alert, oid: 1.3.6.1.4.1.1429.2.2.5.17.1.1.0, output: 0
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] Graphs[TNT Series - Carrier to Noise Margin, TNT Series - Carrier to Noise Margin] DS[TNT Series - CN] SNMP: v2: 192.168.169.64, dsname: PVU_CN, oid: 1.3.6.1.4.1.1429.2.2.5.5.3.1.1.6.1, output: 1.0
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] RECACHE DQ[SNMP - Interface Statistics] OID: .1.3.6.1.2.1.1.3.0, output: 36632898
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] RECACHE: Processing 1 items in the auto reindex cache for '192.168.169.64'.
27-03-2018 16:20:59 - POLLER: Poller[Main Poller] Device[19] Device[TNT Series] STATUS: Device '192.168.169.64' is UP.

## and this is the snmp check with an external program using the same OIDs:

----------------------- New Test -----------------------
Paessler SNMP Tester 5.2.3 Computername: MONITOR-PC Interface: 192.168.169.9
27/03/2018 04:20:57 p.m. (45 ms) : Device: 192.168.169.64
27/03/2018 04:20:57 p.m. (50 ms) : SNMP V2c
27/03/2018 04:20:57 p.m. (51 ms) : Custom OID 1.3.6.1.4.1.1429.2.2.5.18.2.1.1.3.1
27/03/2018 04:20:57 p.m. (86 ms) : SNMP Datatype: ASN_OCTET_STR
27/03/2018 04:20:57 p.m. (88 ms) : -------
27/03/2018 04:20:57 p.m. (89 ms) : Value: 30.0øC
27/03/2018 04:20:57 p.m. (90 ms) : Done
----------------------- New Test -----------------------
Paessler SNMP Tester 5.2.3 Computername: MONITOR-PC Interface: 192.168.169.9
27/03/2018 04:21:51 p.m. (3 ms) : Device: 192.168.169.64
27/03/2018 04:21:51 p.m. (5 ms) : SNMP V2c
27/03/2018 04:21:51 p.m. (7 ms) : Custom OID 1.3.6.1.4.1.1429.2.2.5.18.2.1.1.3.5
27/03/2018 04:21:51 p.m. (23 ms) : SNMP Datatype: ASN_OCTET_STR
27/03/2018 04:21:51 p.m. (25 ms) : -------
27/03/2018 04:21:51 p.m. (27 ms) : Value: 28.0øC
27/03/2018 04:21:51 p.m. (30 ms) : Done
----------------------- New Test -----------------------
Paessler SNMP Tester 5.2.3 Computername: MONITOR-PC Interface: 192.168.169.9
27/03/2018 04:21:55 p.m. (5 ms) : Device: 192.168.169.64
27/03/2018 04:21:55 p.m. (8 ms) : SNMP V2c
27/03/2018 04:21:55 p.m. (11 ms) : Custom OID 1.3.6.1.4.1.1429.2.2.5.18.2.1.1.3.4
27/03/2018 04:21:55 p.m. (25 ms) : SNMP Datatype: ASN_OCTET_STR
27/03/2018 04:21:55 p.m. (29 ms) : -------
27/03/2018 04:21:55 p.m. (32 ms) : Value: 32.0øC
27/03/2018 04:21:55 p.m. (36 ms) : Done
----------------------- New Test -----------------------
Paessler SNMP Tester 5.2.3 Computername: MONITOR-PC Interface: 192.168.169.9
27/03/2018 04:21:59 p.m. (7 ms) : Device: 192.168.169.64
27/03/2018 04:21:59 p.m. (11 ms) : SNMP V2c
27/03/2018 04:21:59 p.m. (15 ms) : Custom OID 1.3.6.1.4.1.1429.2.2.5.18.2.1.1.3.7
27/03/2018 04:21:59 p.m. (31 ms) : SNMP Datatype: ASN_OCTET_STR
27/03/2018 04:21:59 p.m. (35 ms) : -------
27/03/2018 04:21:59 p.m. (39 ms) : Value: 47.0øC
27/03/2018 04:21:59 p.m. (59 ms) : Done

## I think it could be an octet datatype problem in the new version, thanks in advance.

@cigamit
Copy link
Member

cigamit commented Apr 3, 2018

So, it's numeric data with a string suffix. Yea, sorry, we have to fix that then. Just confirm that please.

@cigamit cigamit changed the title Data Source problem after 1.1.35 to 1.1.37 update Poller not stripping alpha from snmp get values Apr 4, 2018
@cigamit cigamit changed the title Poller not stripping alpha from snmp get values cmd.php poller not stripping alpha from snmp get values Apr 4, 2018
cigamit added a commit that referenced this issue Apr 4, 2018
cmd.php poller not stripping alpha from snmp get values
@cigamit
Copy link
Member

cigamit commented Apr 4, 2018

This issue is resolved. Simply update cmd.php and lib/snmp.php from the develop branch.

@cigamit cigamit closed this as completed Apr 4, 2018
@DoubleBeast
Copy link
Author

DoubleBeast commented Apr 4, 2018

Thanks for the response @cigamit but after updating the 2 files you mention with the development version i get this log message and no graphs:

04-04-2018 10:28:18 - RECACHE STATS: Poller: RecacheTime:45.7376 DevicesRecached:12
04-04-2018 10:28:18 - PCOMMAND Device[19] Device[TNT Series] WARNING: Recache Event Detected for Device
04-04-2018 10:28:16 - PCOMMAND Device[18] Device[Mtik RB750] WARNING: Recache Event Detected for Device
04-04-2018 10:28:04 - PCOMMAND Device[17] Device[Servidor Valencia] WARNING: Recache Event Detected for Device
04-04-2018 10:28:03 - PCOMMAND Device[11] Device[Switch Head-End] WARNING: Recache Event Detected for Device
04-04-2018 10:27:57 - PCOMMAND Device[9] Device[Servidor] WARNING: Recache Event Detected for Device
04-04-2018 10:27:57 - PCOMMAND Device[15] Device[Switch Piar] WARNING: Recache Event Detected for Device
04-04-2018 10:27:50 - PCOMMAND Device[8] Device[Infochannel] WARNING: Recache Event Detected for Device
04-04-2018 10:27:49 - PCOMMAND Device[4] Device[Mtik RB2011U] WARNING: Recache Event Detected for Device
04-04-2018 10:27:49 - PCOMMAND Device[3] Device[CMTS] WARNING: Recache Event Detected for Device
04-04-2018 10:27:42 - PCOMMAND Device[5] Device[Aprovisionamiento] WARNING: Recache Event Detected for Device
04-04-2018 10:27:37 - SYSTEM THOLD STATS: Time:1.0111 Tholds:1 TotalDevices:23 DownDevices:0 NewDownDevices:0
04-04-2018 10:27:34 - PCOMMAND Device[1] Device[Monitor] WARNING: Recache Event Detected for Device
04-04-2018 10:27:33 - PCOMMAND Device[21] Device[Televen] WARNING: Recache Event Detected for Device
04-04-2018 10:27:32 - SYSTEM STATS: Time:18.2950 Method:cmd.php Processes:4 Threads:N/A Hosts:23 HostsPerProcess:6 DataSources:241 RRDsProcessed:167
04-04-2018 10:27:31 - POLLER: Poller[Main Poller] ASSERT: '103713428<(103738768) 12 days, 0:09:47.68' failed. Recaching host '192.168.169.64', data query #2
04-04-2018 10:27:29 - POLLER: Poller[Main Poller] ASSERT: '565000<(590000) 1:38:20.00' failed. Recaching host '192.168.168.1', data query #2
04-04-2018 10:27:26 - POLLER: Poller[Main Poller] ASSERT: '576420<(601391) 1:40:13.91' failed. Recaching host '192.168.168.2', data query #6
04-04-2018 10:27:26 - POLLER: Poller[Main Poller] ASSERT: '576119<(601369) 1:40:13.69' failed. Recaching host '192.168.168.2', data query #5
04-04-2018 10:27:26 - POLLER: Poller[Main Poller] ASSERT: '574950<(601349) 1:40:13.49' failed. Recaching host '192.168.168.2', data query #2
04-04-2018 10:27:25 - POLLER: Poller[Main Poller] ASSERT: '585154231<(585180883) 67 days, 17:30:08.83' failed. Recaching host '172.20.0.4', data query #2
04-04-2018 10:27:24 - POLLER: Poller[Main Poller] ASSERT: '14633774<(14659360) 1 day, 16:43:13.60' failed. Recaching host '192.168.169.2', data query #6
04-04-2018 10:27:24 - POLLER: Poller[Main Poller] ASSERT: '14633494<(14659355) 1 day, 16:43:13.55' failed. Recaching host '192.168.169.2', data query #5
04-04-2018 10:27:24 - POLLER: Poller[Main Poller] ASSERT: '14633133<(14659349) 1 day, 16:43:13.49' failed. Recaching host '192.168.169.2', data query #2
04-04-2018 10:27:24 - POLLER: Poller[Main Poller] ASSERT: '26230664<(26257916) 3 days, 0:56:19.16' failed. Recaching host '172.20.0.5', data query #2
04-04-2018 10:27:23 - POLLER: Poller[Main Poller] ASSERT: '405776305<(405802854) 46 days, 23:13:48.54' failed. Recaching host '192.168.169.6', data query #6
04-04-2018 10:27:23 - POLLER: Poller[Main Poller] ASSERT: '405776073<(405802847) 46 days, 23:13:48.47' failed. Recaching host '192.168.169.6', data query #5
04-04-2018 10:27:23 - POLLER: Poller[Main Poller] ASSERT: '405775695<(405802837) 46 days, 23:13:48.37' failed. Recaching host '192.168.169.6', data query #2
04-04-2018 10:27:19 - POLLER: Poller[Main Poller] ASSERT: '246348300<(246375100) 28 days, 12:22:31.00' failed. Recaching host '172.20.0.1', data query #2
04-04-2018 10:27:18 - POLLER: Poller[Main Poller] ASSERT: '585826463<(585853305) 67 days, 19:22:13.05' failed. Recaching host '172.20.0.3', data query #2
04-04-2018 10:27:16 - POLLER: Poller[Main Poller] ASSERT: '23408445<(23435098) 2 days, 17:05:50.98' failed. Recaching host '172.20.0.2', data query #7
04-04-2018 10:27:16 - POLLER: Poller[Main Poller] ASSERT: '23408429<(23435094) 2 days, 17:05:50.94' failed. Recaching host '172.20.0.2', data query #6
04-04-2018 10:27:16 - POLLER: Poller[Main Poller] ASSERT: '23408221<(23435083) 2 days, 17:05:50.83' failed. Recaching host '172.20.0.2', data query #5
04-04-2018 10:27:16 - POLLER: Poller[Main Poller] ASSERT: '265364<(292647) 0:48:46.47' failed. Recaching host 'localhost', data query #6
04-04-2018 10:27:16 - POLLER: Poller[Main Poller] ASSERT: '23407869<(23435070) 2 days, 17:05:50.70' failed. Recaching host '172.20.0.2', data query #4
04-04-2018 10:27:16 - POLLER: Poller[Main Poller] ASSERT: '265106<(292634) 0:48:46.34' failed. Recaching host 'localhost', data query #5
04-04-2018 10:27:16 - POLLER: Poller[Main Poller] ASSERT: '23407837<(23435060) 2 days, 17:05:50.60' failed. Recaching host '172.20.0.2', data query #2
04-04-2018 10:27:16 - POLLER: Poller[Main Poller] ASSERT: '264506<(292624) 0:48:46.24' failed. Recaching host 'localhost', data query #2
04-04-2018 10:27:15 - POLLER: Poller[Main Poller] ASSERT: '67147923<(67175868) 7 days, 18:35:58.68' failed. Recaching host '192.168.169.66', data query #2

i copy the 1.1.35 version of the same 2 files (cmd.php and snmp.php) and everything is working smooth again

@cigamit
Copy link
Member

cigamit commented Apr 7, 2018

I have fixed the remaining issue with the ASSERT. This was caused by using the php-snmp module. I had stopped using it in my test environment as it desperately needs a code change (which is of course no excuse for not testing), and I just don't have the time to invest in fixing that php module.

@DoubleBeast
Copy link
Author

Thanks for the support, i will wait the next official release for testing.

ronytomen pushed a commit that referenced this issue Apr 8, 2018
cmd.php poller not stripping alpha from snmp get values

(cherry picked from commit 636a277)
ronytomen pushed a commit that referenced this issue Apr 8, 2018
cmd.php poller not stripping alpha from snmp get values

(cherry picked from commit 636a277)
@netniV
Copy link
Member

netniV commented May 18, 2018

I think you could be on to something there, though it does make me wonder if there is a placed that has been missed.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants