Aruba Mobility Controller templates

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

Moderators: Developers, Moderators

niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Aruba Mobility Controller templates

Post by niobe »

Aruba MC templates, tested on Aruba OS 5.0 only (may work on 3.x)

Four templates and one data query included in the zip file below.

Some of the included stats are :
- CPU (up to 32 cpus)
- Memory
- Registered APs
- Associated Stations
- Average Users per AP
- Total Users
- Users by Authentication method (802.1x, captive portal etc)

cheers,

N!
Associations & Registrations
Associations & Registrations
aruba_assoc_registr.php.png (28.56 KiB) Viewed 19339 times
CPU Load
CPU Load
aruba_cpu.png (22.93 KiB) Viewed 19339 times
Memory Usage
Memory Usage
aruba_mem.png (28.73 KiB) Viewed 19339 times
This graph may need some explanation. The Unauth/Disassoc stat is calculated by a CDEF. It is the different between 'Total' and the sum of the other stats. What this figure turns out to be mean is 2 things: it is the sum of the unauthenticated users (those in "logon" type roles), and authenticated users who are no longer in the station table - i.e. those who've just disassociated for some reason. Apparently users hang around for a while in the user table even when they've left the station table in case they come back. The other stats all represent active,authenticated users.
Users Stats
Users Stats
aruba_user.png (38.09 KiB) Viewed 19339 times
Attachments
aruba_templates(niobe).zip
templates
(113.47 KiB) Downloaded 2530 times
jplevel
Posts: 5
Joined: Thu Jun 02, 2011 2:19 pm

Re: Aruba Mobility Controller templates

Post by jplevel »

I cannot get the CPU or User template to work.. any Caveats?
jplevel
Posts: 5
Joined: Thu Jun 02, 2011 2:19 pm

Re: Aruba Mobility Controller templates

Post by jplevel »

this is the error i get in the user graph:

RRDTool Says:
ERROR: invalid rpn expression in: f,,-


and this is the error i get with the CPU:
RRDTool Says:
ERROR: opening '/var/lib/cacti/rra/aruba_800_aruba_cpu_load_795.rrd': No such file or directory
jplevel
Posts: 5
Joined: Thu Jun 02, 2011 2:19 pm

Re: Aruba Mobility Controller templates

Post by jplevel »

looks like i fixed the user stats.. your cdef was circular it was f minus the CDEF.. thus i just set the CDEF to this: f,a,-,b,-,c,-,d,-,e,- and it started graphing
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Re: Aruba Mobility Controller templates

Post by niobe »

Thanks jplevel, I have noticed that when making the graphs the data items may be added/deleted and this can break the CDEF for users doing a fresh install
sirokuma
Posts: 4
Joined: Thu Jun 09, 2011 10:12 pm

Re: Aruba Mobility Controller templates

Post by sirokuma »

Hello, this template is very useful for me. :D
But I can't create graph of CPU load, others seems to be working fine (I fixed CDEF as above).

When I create cpu load graph, three fields are requested. And I don't know what should I set.
・Output Type ID
・Index Value
・Index Type
Can you kindly suggest values for this? Should I install Aruba-MIB to determine cpu index ?
My aruba controller is Aruba3400(OS Version 5.0.3.0), and no multiple CPU.

Thank you.
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Re: Aruba Mobility Controller templates

Post by niobe »

Something is wrong here - you shouldn't be prompted for indices, that is what the data query is for.
Have you added the data query to your host or added the graph by mistake?
sirokuma
Posts: 4
Joined: Thu Jun 09, 2011 10:12 pm

Re: Aruba Mobility Controller templates

Post by sirokuma »

I created a data query from arbua_cpu.xml with type "Get SNMP Data (Indexed)".
And I added the query to "Associated Data Queries" of the aruba device.
And the query found 1 Supervisor Card and 11 NPs by reload.

But I can't create cpu graph from template... :(
What should I do next? I'm not good at using cacti templates.

Thank you.
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Re: Aruba Mobility Controller templates

Post by niobe »

Honestly, it's hard to say. Data queries based graphs have cost me more time with cacti than anything else. They are complex and hard to debug *sigh*
That said, let's have a go..

Your query sounds like it's working ok, but can you post the output of the 'verbose query' from the device page.
Also what cacti version?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Aruba Mobility Controller templates

Post by noname »

Though I'm not sure that whether if I can describe my thought correctly,

did you include Data Query definitions (hash_04xxxx) in your template? (I can't find..)
Like this:

Code: Select all

<cacti>	
	<hash_040021...>
		<name>Aruba CPU Load</name>
		<description>Collect Aruba CPU Indices and Load</description>
		<xml_path><path_cacti>/resource/snmp_queries/aruba_cpu.xml</xml_path>
		<data_input_id>hash_030021...</data_input_id>
		<graphs>
			<hash_110021...>
				<name>Aruba - CPU Load</name>
				<graph_template_id>hash_000021...</graph_template_id>
				<rrd>
					<item_000>
						<snmp_field_name>arubaCpuLoad</snmp_field_name>
						<data_template_id>hash_010021...</data_template_id>
						<data_template_rrd_id>hash_080021...</data_template_rrd_id>
					</item_000>
				</rrd>
				<sv_graph>
					<hash_120021...>
						<field_name>title</field_name>
						<sequence>1</sequence>
						<text>|host_description| - Aruba - |query_arubaCpuDesc| Load</text>
					</hash_120021...>
				</sv_graph>
				<sv_data_source>
					<hash_130021...>
						<field_name>name</field_name>
						<data_template_id>hash_010021...</data_template_id>
						<sequence>1</sequence>
						<text>|host_description| - Aruba - |query_arubaCpuDesc| Load</text>
					</hash_130021...>
				</sv_data_source>
			</hash_110021...>
		</graphs>
	</hash_040021...>
</cacti>
Data Queries
Image
Data Queries - Associated Graph/Data Templates
Image

// But sorry, I can't verify it because I don't have Aruba device..
sirokuma
Posts: 4
Joined: Thu Jun 09, 2011 10:12 pm

Re: Aruba Mobility Controller templates

Post by sirokuma »

Hello, this is verbose output of data query.
And my cacti version is 0.8.7g.

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/aruba_cpu.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.1' value: '14'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.4' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.5' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.6' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.7' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.8' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.9' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.10' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.11' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.12' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.13' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.14' value: '0'
+ Index found at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.15' value: '0'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.1' results: '1'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.4' results: '4'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.5' results: '5'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.6' results: '6'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.7' results: '7'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.8' results: '8'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.9' results: '9'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.10' results: '10'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.11' results: '11'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.12' results: '12'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.13' results: '13'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.14' results: '14'
+ index_parse at OID: '1.3.6.1.4.1.14823.2.2.1.1.1.9.1.3.15' results: '15'
+ Inserting index data for field 'arubaCpuIndex' [value='1']
+ Inserting index data for field 'arubaCpuIndex' [value='4']
+ Inserting index data for field 'arubaCpuIndex' [value='5']
+ Inserting index data for field 'arubaCpuIndex' [value='6']
+ Inserting index data for field 'arubaCpuIndex' [value='7']
+ Inserting index data for field 'arubaCpuIndex' [value='8']
+ Inserting index data for field 'arubaCpuIndex' [value='9']
+ Inserting index data for field 'arubaCpuIndex' [value='10']
+ Inserting index data for field 'arubaCpuIndex' [value='11']
+ Inserting index data for field 'arubaCpuIndex' [value='12']
+ Inserting index data for field 'arubaCpuIndex' [value='13']
+ Inserting index data for field 'arubaCpuIndex' [value='14']
+ Inserting index data for field 'arubaCpuIndex' [value='15']
+ Located input field 'arubaCpuDesc' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.14823.2.2.1.1.1.9.1.2'
+ Found item [arubaCpuDesc='Supervisor Card CPU'] index: 1 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU4'] index: 4 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU5'] index: 5 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU6'] index: 6 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU7'] index: 7 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU8'] index: 8 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU9'] index: 9 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU10'] index: 10 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU11'] index: 11 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU12'] index: 12 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU13'] index: 13 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU14'] index: 14 [from value]
+ Found item [arubaCpuDesc='Network Processor CPU15'] index: 15 [from value]
+ Found data query XML file at '/usr/share/cacti/resource/aruba_cpu.xml'
+ Found data query XML file at '/usr/share/cacti/resource/aruba_cpu.xml'
+ Found data query XML file at '/usr/share/cacti/resource/aruba_cpu.xml'

I attach screen shots of 'device view' and 'Data Queries view'.

Thank you.
Attachments
ScreenClip2.png
ScreenClip2.png (155.55 KiB) Viewed 19184 times
ScreenClip.png
ScreenClip.png (103.06 KiB) Viewed 19184 times
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Re: Aruba Mobility Controller templates

Post by niobe »

There's the problem - there should be an associated graph template under the data query "Aruba - cpu load"
You can manually add it if it still exists. The screen should like below after adding.
Attachments
associated graph template
associated graph template
Capture.PNG (47.82 KiB) Viewed 19178 times
sirokuma
Posts: 4
Joined: Thu Jun 09, 2011 10:12 pm

Re: Aruba Mobility Controller templates

Post by sirokuma »

Thank you very much, niobe. Finally I got cpu load graphs with your advise :D
When I associated the query with the graph template, 'Suggested Values' are empty.
Though I did not manually set them, cpu load graphs were created.
gladlow
Posts: 1
Joined: Sun Apr 29, 2012 8:04 pm

Re: Aruba Mobility Controller templates

Post by gladlow »

When trying to import the cacti_graph_template_aruba_-_user_stats.xml I receive the following message, Cacti version 0.8.8.

Notice: Only variable references should be returned by reference in /var/www/html/cacti-0.8.8/lib/import.php on line 689

Fatal error: Unsupported operand types in /var/www/html/cacti-0.8.8/lib/import.php on line 86

cacti.log has one line parse_xml_hash ERROR wrong hash format.

Any ideas ??
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Re: Aruba Mobility Controller templates

Post by niobe »

Maybe incompatibility with 0.88? These were developed on 0.87g.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests