



#This zabbix template is to do HP 3PAR storage monitoring in Zabbix#The script is the same which is used in Nagios for 3PAR monitoring with some changes here and there#You need to put the test3par.sh bash script in the 'externalscripts' directory defined in zabbix_nf#For the template to work you need to have read only access - user account to the 3PAR command line#You must also make the zabbix user as onw which runs bash as default instead of a nologin acc#For this do the following pre-reqs below,#make a copy of /etc/passwd as 'root' user#edit the /etc/passwd to reflect like below,#zabbix ❌498:497:Zabbix Monitoring System:/var/lib/zabbix:/bin/bash - (Earlier it will be /sbin/nologin)#create a password for the zabbix user (passwd zabbix)#create a directory (mkdir /var/lib/zabbix/) and the directory should be owned by zabbix user#chown zabbix /var/lib/zabbix/#Once this is done you will need to login to the zabbix server as a zabbix user and the password you just created#Now you need to create a public-private keypair in zabbix server and then copy the public key to 3par machine for authentication#This will ensure that the zabbix need not enter passwd to ssh and run the commands to get 3par storage status#From zabbix server do,#ssh-keygen and then press enter#This will create the private key in /var/lib/zabbix/.ssh/id_rsa#The public key will be in /var/lib/zabbix/.ssh/id_rsa.pub#Copy the contents of 3PAR id_rsa.pub.
