Skip to content

HPE 5130 switch configuration

December 13, 2016

https://www.elasticsky.de/2015/08/hp-5130-ei-switch-konfiguration/http://allhpnetworking.blogspot.lt/2010/10/hp-networking-series-example.html

Advertisements

Install Zabbix – CentOS

November 29, 2016

CentOS7

///systemctl disable firewalld

# yum install httpd httpd-devel

# yum install mariadb-server
# yum install php php-cli php-common php-devel php-pear php-gd php-mbstring php-mysql php-xml

yum install nano
yum install epel-release
yum install phpmyadmin
nano /etc/httpd/conf.d/phpMyAdmin.conf
systemctl restart httpd.service
http://server_domain_or_IP/phpMyAdmin


 

 

service httpd start
service mariadb start

# mysql_secure_installation

# rpm -Uvh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm

# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-java-gateway

# nano /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Europe/Vilnius

# service httpd restart

# mysql -u root -p

mysql> CREATE USER ‘zabbix’@’localhost’ IDENTIFIED BY ‘***’;GRANT USAGE ON *.* TO ‘zabbix’@’localhost’ IDENTIFIED BY ‘***’ REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;CREATE DATABASE IF NOT EXISTS `zabbix` CHARACTER SET UTF8;GRANT ALL PRIVILEGES ON `zabbix`.* TO ‘zabbix’@’localhost’;

///mysql> CREATE DATABASE zabbix CHARACTER SET UTF8;
///mysql> GRANT ALL PRIVILEGES on zabbix.* to zabbix@localhost IDENTIFIED BY ‘password’;
mysql> FLUSH PRIVILEGES;
mysql> quit

 

 

 

# cd /usr/share/doc/zabbix-server-mysql-3.2.1

gunzip create.sql.gz

#  mysql -u zabbix -p zabbix < create.sql

service zabbix-server start

go to  http://zabbix-server/zabbix/

web -> next, next

login admin / zabbix

 

nano /etc/zabbix/zabbix_server.conf
change DBPassword

getsebool -a | grep zabbix
httpd_can_connect_zabbix –> off
zabbix_can_network –> off
setsebool -P zabbix_can_network=true
setsebool -P httpd_can_connect_zabbix=true


systemctl start zabbix-agent
systemctl enable zabbix-agent
systemctl enable httpd
systemctl enable mariadb
systemctl enable zabbix-server 
reboot

Thanks http://tecadmin.net (http://tecadmin.net/install-zabbix-network-monitoring-on-centos-rhel-and-fedora/#)

 


C:\zabbix_agents\bin\win32\zabbix_agentd.exe --config C:\zabbix_agents\conf\zabbix_agentd.win.conf --install

 

 

Install Net 3.5 Framework on Windows Server 2012 R2 without DVD

October 31, 2016
dism.exe /online /enable-feature /featurename:NetFX3 /all

UniFi – Ubuntu

September 15, 2016

1. Add  to /etc/apt/sources.list

for specific version:

deb http://www.ubnt.com/downloads/unifi/debian unifi3 ubiquiti
or
deb http://www.ubnt.com/downloads/unifi/debian unifi4 ubiquiti
or
deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti

or for currect stable
deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti

2. Add the GPG Keys:

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv C0A52C50

3. Update, install, and upgrade:

sudo apt-get update

# install/upgrade unifi-controller
sudo apt-get install unifi
or
sudo apt-get upgrade unifi

vSphere SSD

July 18, 2016
tags: ,

esxcli storage vmfs unmap -l MyDatastore

 

esxcli storage nmp device list

 

Run this command to add a PSA claim rule to mark the device as SSD:

# esxcli storage nmp satp rule add --satp=SATP_TYPE --device naa.6006016015301d00167ce6e2ddb3de11 --option "enable_ssd"

For example:

# esxcli storage nmp satp rule add --satp=VMW_SATP_CX --device naa.6006016015301d00167ce6e2ddb3de11 --option "enable_ssd"

esxcli storage nmp satp rule add --satp=VMW_SATP_LOCAL --device naa.600508e0000000000e53078148f38508 --option "enable_ssd"

Run this command to enable local and SSD at the same time:

# esxcli storage nmp satp rule add –-satp=VMW_SATP_LOCAL –-device naa.6006016015301d00167ce6e2ddb3de11 --option "enable_local enable_ssd"

For example:

# esxcli storage nmp satp rule add --satp=VMW_SATP_LOCAL --device naa.6006016015301d00167ce6e2ddb3de11 --option "enable_local enable_ssd"

You must restart the ESXi host for the changes to take effect.

Run this command to check the SSD status:

# esxcli storage core device list -d naa.6006016015301d00167ce6e2ddb3de11 |grep SSD

Linux space reclamation

July 11, 2016
tags:

dd if=/dev/zero of=/var/mytempfile
rm -f /var/mytempfile

ADDC Time Sync

June 22, 2016
tags: ,

w32tm /query /configuration

Type: NT5DS (Local)

w32tm /config /manualpeerlist:”europe.pool.ntp.org” /syncfromflags:MANUAL /reliable:yes /update

Type: NTP (Local) NtpServer: pool.ntp.org (Local)