hp 3par storage array templates

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

Moderators: Developers, Moderators

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

Re: hp 3par storage array templates

Post by technique »

DNS resolution is OK, I also tried with the IP address.
shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

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

Post by technique »

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

Post by technique »

Could it be a missing option on my 3PAR SAN ?
shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

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

Post by technique »

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

Post by technique »

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

Post by technique »

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

Post by technique »

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

Post by technique »

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

Post by technique »

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
technique
Posts: 27
Joined: Wed Sep 07, 2016 10:23 am

Re: hp 3par storage array templates

Post by technique »

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

Post by technique »

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

Post by technique »

There was a mistake in the cacti path for scripts.

Now I see my data !
shanekennedy
Posts: 45
Joined: Tue Oct 10, 2006 10:35 am

Re: hp 3par storage array templates

Post by shanekennedy »

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

Who is online

Users browsing this forum: No registered users and 5 guests