Graphing Cisco wlc 5508 wireless controllers

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

snpbond
Posts: 1
Joined: Mon Apr 24, 2017 4:57 pm

Re: Graphing Cisco wlc 5508 wireless controllers

Post by snpbond »

kjstech wrote:Upgraded to 1.0.4. There is a ton of noise in the cacti.log from this. Will it be updated? This thing scrolls by remarkablly fast if you tail the log. The log grows, even when rotated for today at 1:34 PM EST its size is 1976220727 so far.

Code: Select all

2017-03-08 13:33:27 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 188 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-03-08 13:33:27 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..196.10.203.223.90.0.1.44'
2017-03-08 13:33:27 - ERROR PHP DEPRECATED: Function split() is deprecated in file: /var/www/cacti/scripts/Cisco_WLC_Radios.php  on line: 185
2017-03-08 13:33:27 - CMDPHP PHP ERROR Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 185 split)(CactiErrorHandler)(/lib/functions.php: 4272 cacti_debug_backtrace)
2017-03-08 13:33:27 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..196.10.203.223.90.0.1.48 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-03-08 13:33:27 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 188 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-03-08 13:33:27 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..196.10.203.223.90.0.1.48'
2017-03-08 13:33:27 - ERROR PHP DEPRECATED: Function split() is deprecated in file: /var/www/cacti/scripts/Cisco_WLC_Radios.php  on line: 185
2017-03-08 13:33:27 - CMDPHP PHP ERROR Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 185 split)(CactiErrorHandler)(/lib/functions.php: 4272 cacti_debug_backtrace)
2017-03-08 13:33:27 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..196.10.203.223.90.0.1.52 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-03-08 13:33:27 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 188 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-03-08 13:33:27 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..196.10.203.223.90.0.1.52'
2017-03-08 13:33:27 - ERROR PHP DEPRECATED: Function split() is deprecated in file: /var/www/cacti/scripts/Cisco_WLC_Radios.php  on line: 185
2017-03-08 13:33:27 - CMDPHP PHP ERROR Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 185 split)(CactiErrorHandler)(/lib/functions.php: 4272 cacti_debug_backtrace)

I fixed a bunch of the deprecated functions and errors in the Cisco_WLC_Radios.php and Cisco_WLC_APs_Assoc.php files, I haven't tested the others but this got it working for me on Centos 7 with Cacti 1.1.2 against a Cisco Virtual WLC running 8.3.112
Attachments
wlc.zip
(2.98 KiB) Downloaded 685 times
kjstech
Cacti User
Posts: 97
Joined: Thu Feb 28, 2013 2:57 pm

Re: Graphing Cisco wlc 5508 wireless controllers

Post by kjstech »

Thanks! I put these two files in place. Still seeing a lot of noise in the log. Am I supposed to restart apache or something?

Code: Select all

2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.36'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.112 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.112'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.116 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.116'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.40 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.40'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.44 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.44'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.48 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.48'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.52 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.52'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.132 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.132'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.136 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.136'
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'Timeout (500 ms)', Device:'10.1.1.62', OID:'.1.3.6.1.2.1.31.1.1.1.10.2'
2017-05-01 11:28:20 - POLLER: Poller[1] Device[45] DS[2151] WARNING: Result from SNMP not valid.  Partial Result: U
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.140 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.91.64.1.140'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.108 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.108'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.104 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.104'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.100 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.100'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.64 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.64'
2017-05-01 11:28:20 - ERROR PHP WARNING: snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.60 in file: /var/www/cacti/lib/snmp.php  on line: 122
2017-05-01 11:28:20 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php: 223 call_user_func_array)(ss_host_radios)(/scripts/Cisco_WLC_Radios.php: 191 cacti_snmp_get)(/lib/snmp.php: 122 snmp2_get)(CactiErrorHandler)(/lib/functions.php: 4259 cacti_debug_backtrace)
2017-05-01 11:28:20 - CMDPHP WARNING: SNMP Error:'', Device:'10.1.0.11', OID:'.1.3.6.1.4.1.14179.2.2.14.1.2..88.53.217.57.93.144.1.60'
rjmontenegro
Posts: 1
Joined: Sat Jul 22, 2017 8:59 pm

Re: Graphing Cisco wlc 5508 wireless controllers

Post by rjmontenegro »

ericgarnel wrote:Here are the updated files in zip.
Tested fine against a 2504 running 7.6.120.0
Follow instructions on page 1 for install

Eric
Hi Eric.
Work on 2504 with SNMP v2 but in SNMP v3 only work in cisco_wlc_wlanassoc. On the apassoc don't work.
Have updates for your template?
dstuehb
Posts: 3
Joined: Tue Apr 04, 2017 5:38 pm

Re: Graphing Cisco wlc 5508 wireless controllers

Post by dstuehb »

Just performed an import of this template & the .xml/.php files.

When I import the template, all the results show a success except for the following under the Data Template section:
[success] Cisco WLC - WLAN Assoc [unchanged]
+ Found Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Found Dependency: (Data Input Field) SNMP Version (1, 2, or 3)
+ Found Dependency: (Data Input Field) Index Type
+ Found Dependency: (Data Input Field) SNMP Password (v3)
+ Found Dependency: (Data Input Field) SNMP Username (v3)
+ Found Dependency: (Data Input Field) SNMP Community
+ Found Dependency: (Data Input Field) SNMP Port
+ Found Dependency: (Data Input Field) Output Type ID
+ Found Dependency: (Data Input Field) SNMP IP Address
+ Found Dependency: (Data Input Field) Index Value
+ Unmet Dependency: (Data Input Field)
Also in the cacti log when I perform the import, I get the following warning:
2017/07/28 14:01:07 - CMDPHP WARNING: Could not find Cacti default matching hash for unknown system hash "35637c344d84d8aa3a4dc50e4a120b3f" for 1. No repair performed.
The error appears every time I upload the template.

Any ideas what this could be? Anything I need to worry about?

Cheers
User avatar
pizu
Posts: 42
Joined: Thu Nov 17, 2011 5:15 pm

Re: Graphing Cisco wlc 5508 wireless controllers

Post by pizu »

same
Regards,
Pizu
Rno
Cacti Pro User
Posts: 680
Joined: Wed Dec 07, 2011 9:19 am

Re: Graphing Cisco wlc 5508 wireless controllers

Post by Rno »

Hard to follow what is the working version, the latest one provide error on the import of the XML due to dependencie, that wasen't present before, and I can't have the WLC_APs-Assoc query to work!

Total: 0, Delta: 0, Running data query [14].
Total: 0, Delta: 0, Found type = '4' [Script Query].
Total: 0, Delta: 0, Found data query XML file at '/usr/share/cacti-1/resource/script_queries/cisco_wlc_aps_assoc.xml'
Total: 0, Delta: 0, Error parsing XML file into an array.
Total: 0, Delta: 0, Found data query XML file at '/usr/share/cacti-1/resource/script_queries/cisco_wlc_aps_assoc.xml'
Total: 0, Delta: 0, Found data query XML file at '/usr/share/cacti-1/resource/script_queries/cisco_wlc_aps_assoc.xml'
Total: 0, Delta: 0, Update data query sort cache complete
Total: 0, Delta: 0, Updated data query index ordering
Total: 0, Delta: 0, Found data query XML file at '/usr/share/cacti-1/resource/script_queries/cisco_wlc_aps_assoc.xml'
Total: 0.03, Delta: 0.03, Update re-index cache complete
Total: 0.03, Delta: 0, Update graph data query cache complete
Total: 0.03, Delta: 0, Update data source data query cache complete
Total: 0.03, Delta: 0, Update data query cache complete
Total: 0.03, Delta: 0, Update poller cache from query complete
Total: 0.03, Delta: 0, Automation execute data query complete
Total: 0.03, Delta: 0, Plugin hooks complet

Anyone have a working version that it can be uploaded to this thread ?

thanks in advance,
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 680
Joined: Wed Dec 07, 2011 9:19 am

Re: Graphing Cisco wlc 5508 wireless controllers

Post by Rno »

Ok I fix it wrong copy the file was bad !!

But still when I try to create a graph for Data Query [SNMP - Cisco WLC Radios] only the first column is filed, all other (like name, MAC, Model) are empty, any clue how to fix this ?

thanks
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 680
Joined: Wed Dec 07, 2011 9:19 am

Re: Graphing Cisco wlc 5508 wireless controllers

Post by Rno »

And that's my debug log

2017/08/25 10:50:00 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_APs_Assoc.php: 62 snmp_walk)(/scripts/Cisco_WLC_APs_Assoc.php: 30 cacti_snmp_walk)(/lib/snmp.php: 733 format_snmp_string)(/lib/snmp.php: 805 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/08/25 10:50:00 - ERROR PHP NOTICE: Use of undefined constant SNMP_VALUE_NUMERIC - assumed 'SNMP_VALUE_NUMERIC' in file: /usr/share/cacti-1/lib/snmp.php on line: 805
2017/08/25 10:50:00 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_APs_Assoc.php: 62 snmp_walk)(/scripts/Cisco_WLC_APs_Assoc.php: 30 cacti_snmp_walk)(/lib/snmp.php: 733 format_snmp_string)(/lib/snmp.php: 805 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/08/25 10:50:00 - ERROR PHP NOTICE: Use of undefined constant SNMP_VALUE_NUMERIC - assumed 'SNMP_VALUE_NUMERIC' in file: /usr/share/cacti-1/lib/snmp.php on line: 805
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 680
Joined: Wed Dec 07, 2011 9:19 am

Re: Graphing Cisco wlc 5508 wireless controllers

Post by Rno »

And on the /var/log/http/error_log:
.1.3.6.1.4.1.14179.2.2.1.1.17..220.206.193.39.108.96: Unknown Object Identifier (Sub-id not found: enterprises -> .220.206.193.39.108.96)
.1.3.6.1.4.1.14179.2.2.1.1.17..220.206.193.39.108.96: Unknown Object Identifier (Sub-id not found: enterprises -> .220.206.193.39.108.96)

I think the error come from this line
$arr[$i] = cacti_snmp_get($hostname, $snmp_community, $oids[$arg] . ".". preg_replace("/(.[0-9]{1,3})$/", "", $arr_index[$i]), $snmp_version, $snmp_auth_username, $snmp_auth_password, $snmp_auth_protocol,$snmp_priv_passphrase,$snmp_priv_protocol, $snmp_context, $snmp_port, $snmp_timeout, $ping_retries, SNMP_POLLER);

the "." just before the preg_replace is causing the problem
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
izmenoff
Posts: 19
Joined: Tue Mar 28, 2017 6:27 am
Location: Belarus

Re: Graphing Cisco wlc 5508 wireless controllers

Post by izmenoff »

after update cacti to 1.1.31
22-Jan-2018 09:48:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Power_Level.php: 16 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:48:02 - ERROR PHP NOTICE: Undefined offset: 2 in file: /var/www/html/cacti/scripts/Cisco_WLC_Power_Level.php on line: 16
22-Jan-2018 09:48:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Power_Level.php: 15 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:48:02 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti/scripts/Cisco_WLC_Power_Level.php on line: 15
22-Jan-2018 09:48:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Power_Level.php: 16 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:48:02 - ERROR PHP NOTICE: Undefined offset: 2 in file: /var/www/html/cacti/scripts/Cisco_WLC_Power_Level.php on line: 16
22-Jan-2018 09:48:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Power_Level.php: 15 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:48:02 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti/scripts/Cisco_WLC_Power_Level.php on line: 15
22-Jan-2018 09:48:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Station_Cipher.php: 18 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:48:02 - ERROR PHP NOTICE: Undefined offset: 3 in file: /var/www/html/cacti/scripts/Cisco_WLC_Station_Cipher.php on line: 18
22-Jan-2018 09:48:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Station_Cipher.php: 17 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:48:02 - ERROR PHP NOTICE: Undefined offset: 2 in file: /var/www/html/cacti/scripts/Cisco_WLC_Station_Cipher.php on line: 17
22-Jan-2018 09:48:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Station_Cipher.php: 16 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:48:02 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti/scripts/Cisco_WLC_Station_Cipher.php on line: 16
2018-01-22 09:48:01 - SPINE: Poller[1] ERROR: SQL Failed! Error:'1064', Message:'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'get' 'device' '/dev/mapper/vg00-lv_home''' at line 1', SQL Fragment:'UPDATE poller_reindex SET assert_value='/dev/mapper/vg00-lv_home' WHERE host_id='472' AND data_query_id='2' AND arg1='perl /var/www/html/cacti/scripts/query_unix_partitions.pl 'get' 'device' '/dev/mapper/vg00-lv_home'''


22-Jan-2018 09:57:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Power_Level.php: 16 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:57:02 - ERROR PHP NOTICE: Undefined offset: 2 in file: /var/www/html/cacti/scripts/Cisco_WLC_Power_Level.php on line: 16
22-Jan-2018 09:57:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Power_Level.php: 15 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:57:02 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti/scripts/Cisco_WLC_Power_Level.php on line: 15
22-Jan-2018 09:57:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Power_Level.php: 16 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:57:02 - ERROR PHP NOTICE: Undefined offset: 2 in file: /var/www/html/cacti/scripts/Cisco_WLC_Power_Level.php on line: 16
22-Jan-2018 09:57:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Power_Level.php: 15 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:57:02 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti/scripts/Cisco_WLC_Power_Level.php on line: 15
22-Jan-2018 09:57:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Station_CCX.php: 18 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:57:01 - ERROR PHP NOTICE: Undefined offset: 3 in file: /var/www/html/cacti/scripts/Cisco_WLC_Station_CCX.php on line: 18
22-Jan-2018 09:57:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Station_CCX.php: 17 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:57:01 - ERROR PHP NOTICE: Undefined offset: 2 in file: /var/www/html/cacti/scripts/Cisco_WLC_Station_CCX.php on line: 17
22-Jan-2018 09:57:01 - CMDPHP PHP ERROR NOTICE Backtrace: (/scripts/Cisco_WLC_Station_CCX.php: 16 CactiErrorHandler)(/lib/functions.php: 4482 cacti_debug_backtrace)
22-Jan-2018 09:57:01 - ERROR PHP NOTICE: Undefined offset: 1 in file: /var/www/html/cacti/scripts/Cisco_WLC_Station_CCX.php on line: 16
2018-01-22 09:57:01 - SPINE: Poller[1] ERROR: SQL Failed! Error:'1064', Message:'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'get' 'device' '/dev/mapper/vg00-lv_home''' at line 1', SQL Fragment:'UPDATE poller_reindex SET assert_value='/dev/mapper/vg00-lv_home' WHERE host_id='472' AND data_query_id='2' AND arg1='perl /var/www/html/cacti/scripts/query_unix_partitions.pl 'get' 'device' '/dev/mapper/vg00-lv_home'''
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Graphing Cisco wlc 5508 wireless controllers

Post by Osiris »

Just found this: https://github.com/Cacti/cacti/issues/1244. Looks like there is a possible solution at the end.
Before history, there was a paradise, now dust.
suzy
Posts: 2
Joined: Thu Mar 22, 2018 4:43 pm

Re: Graphing Cisco wlc 5508 wireless controllers

Post by suzy »

Hi, will there be any updates to this template? We have a WLC 2405 and everything works except for graphing the APs. We get the same errors:

CMDPHP WARNING: SNMP Error:'snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.13.1.3..0.218.85.48.10.176.1', Device:'192.168.10.10', OID:'.1.3.6.1.4.1.14179.2.2.13.1.3..0.218.85.48.10.176.1'
04/04/2018 10:30:05 - CMDPHP WARNING: SNMP Error:'snmp2_get(): Invalid object identifier: .1.3.6.1.4.1.14179.2.2.13.1.3..0.218.85.48.10.176.0', Device:'192.168.10.10', OID:'.1.3.6.1.4.1.14179.2.2.13.1.3..0.218.85.48.10.176.0'

Running:
CentOS 7.4.1708
Cacti 1.1.37
Spine 1.1.37
PHP 7.0.29
rcsmota
Posts: 7
Joined: Fri Sep 08, 2017 6:38 am

Re: Graphing Cisco wlc 5508 wireless controllers

Post by rcsmota »

When trying to create graphics for noise and interference I have the following error.

Code: Select all

04/08/2021 17:10:08 - CMDPHP WARNING: SNMP Error:'snmp2_get(): Error in packet at 'iso.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0': No Such Instance currently exists at this OID', Device:'172.26.254.150', OID:'.1.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0'
04/08/2021 17:10:08 - CMDPHP WARNING: SNMP Error:'snmp2_get(): Error in packet at 'iso.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0': No Such Instance currently exists at this OID', Device:'172.26.254.150', OID:'.1.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0'
04/08/2021 17:10:08 - CMDPHP WARNING: SNMP Error:'snmp2_get(): Error in packet at 'iso.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0': No Such Instance currently exists at this OID', Device:'172.26.254.150', OID:'.1.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0'
04/08/2021 17:10:08 - CMDPHP WARNING: SNMP Error:'snmp2_get(): Error in packet at 'iso.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0': No Such Instance currently exists at this OID', Device:'172.26.254.150', OID:'.1.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0' 
if I run a snmpwalk I get the following answer

Code: Select all

snmpwalk -v2c -c xxxxx 172.26.254.150 iso.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0
AIRESPACE-WIRELESS-MIB::bsnAPIfDBNoisePower.'l^;.x.'.0.1 = INTEGER: -93
AIRESPACE-WIRELESS-MIB::bsnAPIfDBNoisePower.'l^;.x.'.0.2 = INTEGER: -93
AIRESPACE-WIRELESS-MIB::bsnAPIfDBNoisePower.'l^;.x.'.0.3 = INTEGER: -92
AIRESPACE-WIRELESS-MIB::bsnAPIfDBNoisePower.'l^;.x.'.0.4 = INTEGER: -91
AIRESPACE-WIRELESS-MIB::bsnAPIfDBNoisePower.'l^;.x.'.0.5 = INTEGER: -90
AIRESPACE-WIRELESS-MIB::bsnAPIfDBNoisePower.'l^;.x.'.0.6 = INTEGER: -92
I believe that since the script runs a get it should have the full OID,

Code: Select all

snmpget -v2c -c xxxxxx 172.26.254.150 iso.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0
AIRESPACE-WIRELESS-MIB::bsnAPIfDBNoisePower.'l^;.x.'.0 = No Such Instance currently exists at this OID

root@cacti:~# snmpget -v2c -c xxxxxxx 172.26.254.150 iso.3.6.1.4.1.14179.2.2.15.1.21.108.94.59.219.120.0.0.1
AIRESPACE-WIRELESS-MIB::bsnAPIfDBNoisePower.'l^;.x.'.0.1 = INTEGER: -93
When I add the channel at the end of the IOD (in case the 1 at the end of the IOD ) it returns the correct value, but I have no idea how to change the script for that. Does anyone have it working?

Thanks

Running:
Debian 10
Cacti 1.2.18
Spine 1.2.18
PHP 7.3.29
bucksur
Posts: 1
Joined: Wed Aug 25, 2021 1:39 pm

Re: Graphing Cisco wlc 5508 wireless controllers

Post by bucksur »

When I try to add the devices, I get SNMP error, and nothing is graphed.
radiognomeinvisible
Posts: 1
Joined: Tue Nov 02, 2021 2:21 am

Re: Graphing Cisco wlc 5508 wireless controllers

Post by radiognomeinvisible »

Hello everyone,

I had a working version of this template and scripts on Cacti 0.8.8 (Centos 6 / PHP 5.3), installed and configured by another person.
Recently i tried moving it to Cacti 1.2.x during Cacti migration process.
But somewhere between removed PHP functions, outdated templates, multiple versions of the same files posted here and on Git, and my overall very limited experience with Cacti, Linux and PHP i kind of got lost.

Can anyone please post (or at least point in the right direction), where can i find the "complete" or "final" pack of this template and scripts working on Cacti 1.2.x?
Currently installed Cacti 1.2.19 with Spine poller and PHP 7.4.3, on Ubuntu 20.04.3.

Thank you in advance.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests