hp 3par storage array templates

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

Moderators: Moderators, Developers

Author
Message
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#16 Post by technique » Fri Sep 09, 2016 7:59 am

DNS resolution is OK, I also tried with the IP address.

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

Re: hp 3par storage array templates

#17 Post by shanekennedy » Fri Sep 09, 2016 8:36 am

run sestatus to see if selinux is running

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#18 Post by technique » Fri Sep 09, 2016 8:40 am

shanekennedy wrote:run sestatus to see if selinux is running

Code: Select all

CAC-PD01:~# sestatus
SELinux status:                 disabled
retried and same error

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#19 Post by technique » Fri Sep 09, 2016 8:41 am

Could it be a missing option on my 3PAR SAN ?

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

Re: hp 3par storage array templates

#20 Post by shanekennedy » Fri Sep 09, 2016 8:52 am

san is not used for the inform_cli, only ethernet

if you have support on your 3par, send hp the error message

cacti isn't supported but the inform_cli is

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#21 Post by technique » Fri Sep 09, 2016 8:54 am

technique wrote:Could it be a missing option on my 3PAR SAN ?
Last edited by technique on Fri Sep 09, 2016 10:22 am, edited 1 time in total.

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#22 Post by technique » Fri Sep 09, 2016 8:56 am

shanekennedy wrote:san is not used for the inform_cli, only ethernet

if you have support on your 3par, send hp the error message

cacti isn't supported but the inform_cli is
Will do that today.

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#23 Post by technique » Fri Sep 09, 2016 3:22 pm

technique wrote:
shanekennedy wrote:san is not used for the inform_cli, only ethernet

if you have support on your 3par, send hp the error message

cacti isn't supported but the inform_cli is
Will do that today.
It worked ! no support needed from HP.

I uninstalled cli 3.1.1 and installed the new 3.2.2 mu3 and everything passed the test. I was able to run the command

Code: Select all

/opt/3PAR/inform_cli_3.1.1/bin/setpassword -saveonly -file /opt/3PAR/inform_cli_3.1.1/bin/up

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#24 Post by technique » Mon Sep 12, 2016 8:01 am

I go one step further,...

this command don't work

Code: Select all

chown cactiuser /opt/3PAR/inform_cli_3.1.1/bin/up
I got an error "invalid user"
I tried user : admin, cacti, cactiuser

I log into my cacti with the user admin.

Code: Select all

CAC-PD01:/opt/3PAR/inform_cli/bin# ls -la up
-rw------- 1 root root 115 Sep  9 16:20 up
There is no "cacti" or "admin" user in /etc/passwd


Should I create a new "cactiuser" user for this to work ?

Also in my

Code: Select all

/usr/share/cacti/site/include/config.php
this is what I have.

Code: Select all

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "**********";
$database_port = "";
$database_ssl = false;
Neither username works for the chown command.

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#25 Post by technique » Mon Sep 12, 2016 8:32 am

Although,

those commands works perfectly

Code: Select all

/opt/3PAR/inform_cli_3.1.1/bin/cli -sys YOUR_3PAR_HOSTNAME showsys -space # this should show capacity utilization




verify cacti poller script works:

<path_cacti>/scripts/3par.ksh YOUR_3PAR_HOSTNAME vvindex # this should list all you volumes

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#26 Post by technique » Mon Sep 12, 2016 8:46 am

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

[email protected]:~$ export TPDPWFILE=/opt/3PAR/inform_cli_3.1.1/bin/up

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#27 Post by technique » Mon Sep 12, 2016 9:38 am

I continued the installation on Cacti

XML is found but data queries returns no data

Code: Select all

Data Query Debug Information
+ Running data query [12].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/3par_ports.xml'
+ XML file parsed ok.
+ Executing script for num of indexes '/usr/share/cacti/site/scripts/3par.ksh HP3PARQC num_indexes'
+ Executing script for list of indexes '/usr/share/cacti/site/scripts/3par.ksh HP3PARQC index' Index Count: 0
+ Executing script query '/usr/share/cacti/site/scripts/3par.ksh HP3PARQC query location'
+ Executing script query '/usr/share/cacti/site/scripts/3par.ksh HP3PARQC query portType'

Code: Select all

Data Query Debug Information
+ Running data query [13].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/3par_vvols.xml'
+ XML file parsed ok.
+ Executing script for num of indexes '/usr/share/cacti/site/scripts/3par.ksh HP3PARQC vvnum_indexes'
+ Executing script for list of indexes '/usr/share/cacti/site/scripts/3par.ksh HP3PARQC vvindex' Index Count: 0
+ Executing script query '/usr/share/cacti/site/scripts/3par.ksh HP3PARQC vvquery vvName'

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#28 Post by technique » Mon Sep 12, 2016 10:59 am

I just installed a brand new cacti + inform_cli 3.2.2 on a test VM. Just to double check the steps.
OS Debian Jessie x64

every chown cactiuser don't work.

Code: Select all

chown cactiuser:users <path_cacti>/scripts/3par* <path_cacti>/resource/script_queries/3par*

Code: Select all

chown cactiuser /opt/3PAR/inform_cli_3.1.1/bin/up
Default cacti login name is "admin"

Could anyone help me here where do I get this cactiuser (or any user) to work ?

Thanks

technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

#29 Post by technique » Mon Sep 12, 2016 3:04 pm

There was a mistake in the cacti path for scripts.

Now I see my data !

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

Re: hp 3par storage array templates

#30 Post by shanekennedy » Tue Sep 13, 2016 7:15 am

my cacti installation is quite old & was installed with a cacti user named cactiuser

you cacti user should be the username in /etc/crontab that calls poller.php

this sounds to be admin in your case

Post Reply