hp 3par storage array templates

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

Moderators: Developers, Moderators

shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

technique wrote:I created a new linux user "admin" with the password as my Cacti system.

I ran the chown command

Code: Select all

CAC-PD01:~$ ls -la /opt/3PAR/inform_cli/bin/up*
-rw------- 1 admin root 115 Sep  9 16:20 /opt/3PAR/inform_cli/bin/up
This command returns no error and no output,... normal ?

Code: Select all

admin@CAC-PD01:~$ export TPDPWFILE=/opt/3PAR/inform_cli_3.1.1/bin/up
the above command should create a file named up

no output is normal
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

When I run the script manually I hit these errors.

Code: Select all

CAC-PD01:/usr/share/cacti/site# ./scripts/3par-graph-tree-generator.ksh
adding tree 3par-HP3PARQC :  Tree Created - tree-id: (4)
adding header node Ports :   Added Node node-id: (16)
adding header node Ports_IO_Size :   Added Node node-id: (17)
adding header node Ports_IOPS :   Added Node node-id: (18)
adding header node Ports_Service_Time :   Added Node node-id: (19)
adding header node Ports_Throughput :   Added Node node-id: (20)
adding header node Volumes :   Added Node node-id: (21)
Added Node node-id: (22)
adding graph HP3PARQC's Port Aggr Disk graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's Port Aggr Host graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's Utilization graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's Interrupts graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's Context Switches graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's FreeSpace FC graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's FreeSpace NL graph :   ERROR: No such graph-id () exists. Try --list-graphs
I have modified the HOST and CACTIDIR variables as mentionned.

Code: Select all

#!/bin/ksh

HOST=HP3PARQC
CACTIDIR=/usr/share/cacti
TREENAME="3par-$HOST"
All graphs have been created.

I feel like doing one baby step at a time LOL.
shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

did you successfully create the graphs before running the graph tree generator

& if so did you try running the generator multiple times

the 1st 2 times i ran this script it crapped out, but the 3rd time was a charm. couldn’t figure out why. if you have issues, cntrl-c to kill the script then go to cacti console > graph_trees > & delete the 3par tree. then re-run the tree-generator. if it works correctly the only output you should see is “adding XXX : added XXX”
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

shanekennedy wrote:did you successfully create the graphs before running the graph tree generator

& if so did you try running the generator multiple times

the 1st 2 times i ran this script it crapped out, but the 3rd time was a charm. couldn’t figure out why. if you have issues, cntrl-c to kill the script then go to cacti console > graph_trees > & delete the 3par tree. then re-run the tree-generator. if it works correctly the only output you should see is “adding XXX : added XXX”

Yes the graphs were created successfully before running the graph tree generator.
Yes I ran the script more than 5 times. I also delete the Tree graph on cacti and retried. Still the same error.

I looked at the script. I don't think there something's missing.

I will delete the graphs I added and retry. I'll repost the results later.

Thanks
shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

run the script in debug mode using the command

ksh -x 3par-graph-tree-generator.ksh
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

shanekennedy wrote:run the script in debug mode using the command

ksh -x 3par-graph-tree-generator.ksh

Code: Select all

CAC-PD01:/usr/share/cacti/site# ksh -x ./scripts/3par-graph-tree-generator.ksh
+ HOST=HP3PARQC
+ CACTIDIR=/usr/share/cacti
+ TREENAME=HP3PARQC
+ set -A HOSTNSP
+ set -A HOSTVOL
+ set -A HEADERS Ports Ports_IO_Size Ports_IOPS Ports_Service_Time Ports_Throughput Volumes
+ set -A HEADERDESC '\s+3par\s+stats3parPorts+\s$' '\s+3par\s+stats3parPorts\sIO\sSize+\s$' '\s+3par\s+stats3parPorts\sIOPS+\s$' '\s+3par\s+stats3parPorts\sService\sTime+\s$' '\s+3par\s+stats3parPorts\sThroughput+\s$' ''
+ set -A HEADERDESCSUM 'Port Aggr Disk' 'Port Aggr Host' Utilization Interrupts 'Context Switches' 'FreeSpace FC' 'FreeSpace NL'
+ set -A HEADERIDS
+ cd /usr/share/cacti/cli
+ print -n 'adding tree HP3PARQC :  '
adding tree HP3PARQC :  + php -q add_tree.php '--type=tree' '--name=HP3PARQC' '--sort-method=manual'
ERROR: Not adding tree - it already exists - tree-id: (5)
+ php -q add_tree.php --list-trees
+ awk '{print $1}'
+ grep HP3PARQC
+ TREEID=5
+ php -q add_tree.php --list-hosts
+ awk '{print $1}'
+ grep 'HP3PARQC$'
+ HOSTID=''
+ php -q add_tree.php --list-graphs '--host-id='
+ awk '{print $4}'
+ 1> /tmp/9403.9403
+ egrep '\s+3par\s+stats3parPorts+\s$'
+ X=0
+ 0< /tmp/9403.9403
+ read NSP
+ HOSTNSP[0]=''
+ awk '{print $4}'
+ php -q add_tree.php --list-graphs '--host-id='
+ 1> /tmp/9403.9403
+ egrep '\s+3par\s+stats3parVols+\s$'
+ X=0
+ 0< /tmp/9403.9403
+ read VOL
+ rm /tmp/9403.9403
+ X=0
+ [[ Ports != '' ]]
+ print -n 'adding header node Ports :   '
adding header node Ports :   + php -q add_tree.php '--type=node' '--node-type=header' '--tree-id=5' '--name=Ports'
Added Node node-id: (23)
+ php -q add_tree.php --list-nodes '--tree-id=5'
+ awk '{print $2}'
+ grep Ports
+ HEADERIDS[0]=$'23\n24\n25\n26\n27'
+ (( X = X + 1 ))
+ [[ Ports_IO_Size != '' ]]
+ print -n 'adding header node Ports_IO_Size :   '
adding header node Ports_IO_Size :   + php -q add_tree.php '--type=node' '--node-type=header' '--tree-id=5' '--name=Ports_IO_Size'
Added Node node-id: (24)
+ php -q add_tree.php --list-nodes '--tree-id=5'
+ awk '{print $2}'
+ grep Ports_IO_Size
+ HEADERIDS[1]=24
+ (( X = X + 1 ))
+ [[ Ports_IOPS != '' ]]
+ print -n 'adding header node Ports_IOPS :   '
adding header node Ports_IOPS :   + php -q add_tree.php '--type=node' '--node-type=header' '--tree-id=5' '--name=Ports_IOPS'
Added Node node-id: (25)
+ php -q add_tree.php --list-nodes '--tree-id=5'
+ awk '{print $2}'
+ grep Ports_IOPS
+ HEADERIDS[2]=25
+ (( X = X + 1 ))
+ [[ Ports_Service_Time != '' ]]
+ print -n 'adding header node Ports_Service_Time :   '
adding header node Ports_Service_Time :   + php -q add_tree.php '--type=node' '--node-type=header' '--tree-id=5' '--name=Ports_Service_Time'
Added Node node-id: (26)
+ php -q add_tree.php --list-nodes '--tree-id=5'
+ awk '{print $2}'
+ grep Ports_Service_Time
+ HEADERIDS[3]=26
+ (( X = X + 1 ))
+ [[ Ports_Throughput != '' ]]
+ print -n 'adding header node Ports_Throughput :   '
adding header node Ports_Throughput :   + php -q add_tree.php '--type=node' '--node-type=header' '--tree-id=5' '--name=Ports_Throughput'
Added Node node-id: (27)
+ php -q add_tree.php --list-nodes '--tree-id=5'
+ awk '{print $2}'
+ grep Ports_Throughput
+ HEADERIDS[4]=27
+ (( X = X + 1 ))
+ [[ Volumes != '' ]]
+ print -n 'adding header node Volumes :   '
adding header node Volumes :   + php -q add_tree.php '--type=node' '--node-type=header' '--tree-id=5' '--name=Volumes'
Added Node node-id: (28)
+ php -q add_tree.php --list-nodes '--tree-id=5'
+ awk '{print $2}'
+ grep Volumes
+ HEADERIDS[5]=28
+ (( X = X + 1 ))
+ [[ '' != '' ]]
+ php -q add_tree.php '--type=node' '--node-type=header' '--tree-id=5' '--name=Summary'
Added Node node-id: (29)
+ php -q add_tree.php --list-nodes '--tree-id=5'
+ awk '{print $2}'
+ grep Summary
+ HEADERIDS[6]=29
+ X=0
+ [[ '\s+3par\s+stats3parPorts+\s$' != '' ]]
+ Y=0
+ [[ '' != '' ]]
+ (( X = X + 1 ))
+ [[ '\s+3par\s+stats3parPorts\sIO\sSize+\s$' != '' ]]
+ Y=0
+ [[ '' != '' ]]
+ (( X = X + 1 ))
+ [[ '\s+3par\s+stats3parPorts\sIOPS+\s$' != '' ]]
+ Y=0
+ [[ '' != '' ]]
+ (( X = X + 1 ))
+ [[ '\s+3par\s+stats3parPorts\sService\sTime+\s$' != '' ]]
+ Y=0
+ [[ '' != '' ]]
+ (( X = X + 1 ))
+ [[ '\s+3par\s+stats3parPorts\sThroughput+\s$' != '' ]]
+ Y=0
+ [[ '' != '' ]]
+ (( X = X + 1 ))
+ [[ '' != '' ]]
+ Y=0
+ [[ '' != '' ]]
+ (( X = X + 1 ))
+ Y=0
+ [[ 'Port Aggr Disk' != '' ]]
+ php -q add_tree.php --list-graphs '--host-id='
+ awk '{print $1}'
+ egrep 'Port Aggr Disk'
+ GRAPHID=''
+ print -n $'adding graph HP3PARQC\'s Port Aggr Disk graph :   '
adding graph HP3PARQC's Port Aggr Disk graph :   + php -q add_tree.php '--type=node' '--node-type=graph' '--tree-id=5' '--parent-node=29' '--graph-id='
ERROR: No such graph-id () exists. Try --list-graphs
+ (( Y = Y + 1 ))
+ [[ 'Port Aggr Host' != '' ]]
+ php -q add_tree.php --list-graphs '--host-id='
+ awk '{print $1}'
+ egrep 'Port Aggr Host'
+ GRAPHID=''
+ print -n $'adding graph HP3PARQC\'s Port Aggr Host graph :   '
adding graph HP3PARQC's Port Aggr Host graph :   + php -q add_tree.php '--type=node' '--node-type=graph' '--tree-id=5' '--parent-node=29' '--graph-id='
ERROR: No such graph-id () exists. Try --list-graphs
+ (( Y = Y + 1 ))
+ [[ Utilization != '' ]]
+ php -q add_tree.php --list-graphs '--host-id='
+ awk '{print $1}'
+ egrep Utilization
+ GRAPHID=''
+ print -n $'adding graph HP3PARQC\'s Utilization graph :   '
adding graph HP3PARQC's Utilization graph :   + php -q add_tree.php '--type=node' '--node-type=graph' '--tree-id=5' '--parent-node=29' '--graph-id='
ERROR: No such graph-id () exists. Try --list-graphs
+ (( Y = Y + 1 ))
+ [[ Interrupts != '' ]]
+ php -q add_tree.php --list-graphs '--host-id='
+ awk '{print $1}'
+ egrep Interrupts
+ GRAPHID=''
+ print -n $'adding graph HP3PARQC\'s Interrupts graph :   '
adding graph HP3PARQC's Interrupts graph :   + php -q add_tree.php '--type=node' '--node-type=graph' '--tree-id=5' '--parent-node=29' '--graph-id='
ERROR: No such graph-id () exists. Try --list-graphs
+ (( Y = Y + 1 ))
+ [[ 'Context Switches' != '' ]]
+ php -q add_tree.php --list-graphs '--host-id='
+ awk '{print $1}'
+ egrep 'Context Switches'
+ GRAPHID=''
+ print -n $'adding graph HP3PARQC\'s Context Switches graph :   '
adding graph HP3PARQC's Context Switches graph :   + php -q add_tree.php '--type=node' '--node-type=graph' '--tree-id=5' '--parent-node=29' '--graph-id='
ERROR: No such graph-id () exists. Try --list-graphs
+ (( Y = Y + 1 ))
+ [[ 'FreeSpace FC' != '' ]]
+ php -q add_tree.php --list-graphs '--host-id='
+ awk '{print $1}'
+ egrep 'FreeSpace FC'
+ GRAPHID=''
+ print -n $'adding graph HP3PARQC\'s FreeSpace FC graph :   '
adding graph HP3PARQC's FreeSpace FC graph :   + php -q add_tree.php '--type=node' '--node-type=graph' '--tree-id=5' '--parent-node=29' '--graph-id='
ERROR: No such graph-id () exists. Try --list-graphs
+ (( Y = Y + 1 ))
+ [[ 'FreeSpace NL' != '' ]]
+ php -q add_tree.php --list-graphs '--host-id='
+ awk '{print $1}'
+ egrep 'FreeSpace NL'
+ GRAPHID=''
+ print -n $'adding graph HP3PARQC\'s FreeSpace NL graph :   '
adding graph HP3PARQC's FreeSpace NL graph :   + php -q add_tree.php '--type=node' '--node-type=graph' '--tree-id=5' '--parent-node=29' '--graph-id='
ERROR: No such graph-id () exists. Try --list-graphs
+ (( Y = Y + 1 ))
+ [[ '' != '' ]]
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

Code: Select all

HP3PARQC SAN - Cpu Context Switches 	12 	3par stats3parCpu Context Switches 	120x500 	
HP3PARQC SAN - Cpu Interrupts 	13 	3par stats3parCpu Interrupts 	120x500 	
HP3PARQC SAN - Cpu Utilization 	14 	3par stats3parCpu Utilization 	120x500 	
HP3PARQC SAN - Free Space FC 	15 	3par stats3parFreeSpace FC 	120x500 	
HP3PARQC SAN - Free Space NL 	16 	3par stats3parFreeSpace NL 	120x500 	
HP3PARQC SAN - Free Space SSD 	17 	3par stats3parFreeSpace SSD 	120x500 	
HP3PARQC SAN - Port Aggr Disk Ports 	18 	3par stats3parPorts Port Aggr Disk Ports 	120x500 	
HP3PARQC SAN - Port Aggr Host Ports 	19 	3par stats3parPorts Port Aggr Host Ports 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.1 	20 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.1 IO Size 	32 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.1 IOPS 	44 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.1 Service Time 	68 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.1 Throughput 	56 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.2 	21 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.2 IO Size 	33 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.2 IOPS 	45 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.2 Service Time 	69 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.0.2 Throughput 	57 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.1 	22 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.1 IO Size 	34 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.1 IOPS 	46 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.1 Service Time 	70 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.1 Throughput 	58 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.2 	23 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.2 IO Size 	35 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.2 IOPS 	47 	3par stats3parPorts IOPS 	120x500
HP3PARQC SAN Node.Slot.Port 0.1.2 Service Time 	71 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.1.2 Throughput 	59 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.1 	24 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.1 IO Size 	36 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.1 IOPS 	48 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.1 Service Time 	72 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.1 Throughput 	60 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.2 	25 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.2 IO Size 	37 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.2 IOPS 	49 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.2 Service Time 	73 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 0.2.2 Throughput 	61 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.1 	26 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.1 IO Size 	38 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.1 IOPS 	50 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.1 Service Time 	74 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.1 Throughput 	62 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.2 	27 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.2 IO Size 	39 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.2 IOPS 	51 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.2 Service Time 	75 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.0.2 Throughput 	63 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.1 	28 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.1 IO Size 	40 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.1 IOPS 	52 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.1 Service Time 	76 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.1 Throughput 	64 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.2 	29 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.2 IO Size 	41 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.2 IOPS 	53 	3par stats3parPorts IOPS 	120x500
HP3PARQC SAN Node.Slot.Port 1.1.2 Service Time 	77 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.1.2 Throughput 	65 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.1 	30 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.1 IO Size 	42 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.1 IOPS 	54 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.1 Service Time 	78 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.1 Throughput 	66 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.2 	31 	3par stats3parPorts 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.2 IO Size 	43 	3par stats3parPorts IO Size 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.2 IOPS 	55 	3par stats3parPorts IOPS 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.2 Service Time 	79 	3par stats3parPorts Service Time 	120x500 	
HP3PARQC SAN Node.Slot.Port 1.2.2 Throughput 	67 	3par stats3parPorts Throughput 	120x500 	
HP3PARQC SAN Vol .srdata 	80 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol admin 	81 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLBSI_Data 	82 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLBSI_TL 	83 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLInfra_Data 	84 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLInfra_Massiv 	85 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLInfra_TL 	86 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLLogic_Data 	87 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLLogic_TL 	88 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLOMHM_Data 	89 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLOMHM_TL 	90 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLOMHQ_Data 	91 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLOMHQ_TL 	92 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLTab_Data 	93 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLTab_TL 	94 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLV2_Data 	95 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol SQLV2_TL 	96 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol VMCluster01 	97 	3par stats3parVols 	120x500
HP3PARQC SAN Vol VMCluster02 	98 	3par stats3parVols 	120x500 	
HP3PARQC SAN Vol VMClusterTmp 	99 	3par stats3parVols 	120x500
Should I delete all these graphs ?
shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

looks like you're not deleting the tree from the cacti gui before running the graph tree generator (see bottom of 1st post of this thread)

then the HOSTID variable is not being found/set which may be due to above issue

the following commands should produce a hostid

ksh
cd /usr/share/cacti/cli
php -q add_tree.php --list-hosts | grep HP3PARQC$ | awk '{print $1}'
exit
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

shanekennedy wrote:looks like you're not deleting the tree from the cacti gui before running the graph tree generator (see bottom of 1st post of this thread)

then the HOSTID variable is not being found/set which may be due to above issue

the following commands should produce a hostid

ksh
cd /usr/share/cacti/cli
php -q add_tree.php --list-hosts | grep HP3PARQC$ | awk '{print $1}'
exit
I deleted the Tree Graph and proceed as you said.

Code: Select all

root@CAC-PD01:/usr/share/cacti/site# ksh
# cd /usr/share/cacti/clicas
ksh: cd: /usr/share/cacti/clicas: [No such file or directory]
# cd /usr/share/cacti/cli
# php -q add_tree.php --list-hosts | grep HP3PARQC$ | awk '{print $1}'
# exit
root@CAC-PD01:/usr/share/cacti/site#
root@CAC-PD01:/usr/share/cacti/site#
root@CAC-PD01:/usr/share/cacti/site#
root@CAC-PD01:/usr/share/cacti/site# ./scripts/3par-graph-tree-generator.ksh
adding tree HP3PARQC :  Tree Created - tree-id: (6)
adding header node Ports :   Added Node node-id: (30)
adding header node Ports_IO_Size :   Added Node node-id: (31)
adding header node Ports_IOPS :   Added Node node-id: (32)
adding header node Ports_Service_Time :   Added Node node-id: (33)
adding header node Ports_Throughput :   Added Node node-id: (34)
adding header node Volumes :   Added Node node-id: (35)
Added Node node-id: (36)
adding graph HP3PARQC's Port Aggr Disk graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's Port Aggr Host graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's Utilization graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's Interrupts graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's Context Switches graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's FreeSpace FC graph :   ERROR: No such graph-id () exists. Try --list-graphs
adding graph HP3PARQC's FreeSpace NL graph :   ERROR: No such graph-id () exists. Try --list-graphs
shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

the php command i sent will only work after the graph tree generator has run, it will fail after deleting the tree

so it should work now

to get more detail run:

ksh
cd /usr/share/cacti/cli
php -q add_tree.php --list-hosts | grep HP3PARQC
exit
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

I did delete all graph and tree

I only added these graphs

Code: Select all

    Created graph: HP3PARQC - Cpu Context Switches
    Created graph: HP3PARQC - Cpu Interrupts
    Created graph: HP3PARQC - Cpu Utilization
    Created graph: HP3PARQC - Free Space FC
    Created graph: HP3PARQC - Free Space NL
    Created graph: HP3PARQC - Free Space SSD
    Created graph: HP3PARQC - Port Aggr Disk Ports
    Created graph: HP3PARQC - Port Aggr Host Ports
corrected the HOSTID in cacti. It was

Code: Select all

HP3PARQC SAN
I removed the SAN suffix

reran the script

Code: Select all

root@QCSEC-CAC-PD01:/usr/share/cacti/site# ./scripts/3par-graph-tree-generator.ksh
adding tree HP3PARQC :  Tree Created - tree-id: (8)
adding header node Ports :   Added Node node-id: (44)
adding header node Ports_IO_Size :   Added Node node-id: (45)
adding header node Ports_IOPS :   Added Node node-id: (46)
adding header node Ports_Service_Time :   Added Node node-id: (47)
adding header node Ports_Throughput :   Added Node node-id: (48)
adding header node Volumes :   Added Node node-id: (49)
Added Node node-id: (50)
adding graph HP3PARQC's Port Aggr Disk graph :   Added Node node-id: (51)
adding graph HP3PARQC's Port Aggr Host graph :   Added Node node-id: (52)
adding graph HP3PARQC's Utilization graph :   Added Node node-id: (53)
adding graph HP3PARQC's Interrupts graph :   Added Node node-id: (54)
adding graph HP3PARQC's Context Switches graph :   Added Node node-id: (55)
adding graph HP3PARQC's FreeSpace FC graph :   Added Node node-id: (56)
adding graph HP3PARQC's FreeSpace NL graph :   Added Node node-id: (57)
Seems to work now. But I still can't see any graphs in cacti.

I added the bunch of other data queries

Code: Select all

Data Query [3par ports] 	
location 	portType 	
0.0.1	DiskPort	
0.0.2	DiskPort	
0.1.1	DiskPort	
0.1.2	DiskPort	
0.2.1	HostPort	
0.2.2	HostPort	
1.0.1	DiskPort	
1.0.2	DiskPort	
1.1.1	DiskPort	
1.1.2	DiskPort	
1.2.1	HostPort	
1.2.2	HostPort

Code: Select all

Data Query [3par vols] 	
Virtual Volume Name

data remove (sensitive)
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

Only graph I'm able to see is the HP3PARQC > Summary

I'll wait a bit for data to fill the graphs.
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

still no data

File permissions

Code: Select all

-rwxr-xr-x 1 admin users 3011 Sep 13 10:12 /usr/share/cacti/site/scripts/3par-graph-tree-generator.ksh
-rwxr-xr-x 1 admin users 8189 Sep  7 11:16 /usr/share/cacti/site/scripts/3par.ksh

-rw-r--r-- 1 admin users 1648 Mar 27  2013 /usr/share/cacti/resource/script_queries/3par_ports.xml
-rw-r--r-- 1 admin users 1541 Mar 27  2013 /usr/share/cacti/resource/script_queries/3par_vvols.xml

-rw------- 1 admin root 115 Sep  9 16:20 /opt/3PAR/inform_cli_3.1.1/bin/up
Am I missing something ?
shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

to view cacti logs look in /usr/share/cacti/log/cacti.log

to increase verbosity of logging go to the cacti gui & select setting from the left column & under the general tab set the Poller Logging Level to the desired value
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

Saw this in cacti web

Code: Select all

<path_cacti>/scripts/3par.ksh <hostname> cpu
Input Fields
Input Fields Add
Name Field Order Friendly Name
hostname 1 hostname

Is there something wrong ? Shoundn't I see HP3PARQC instead of <hostname> ?

I think I'm gonna delete all this and try it back from begining
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest