User Tools

Site Tools


admin:esxi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
admin:esxi [2019/06/10 20:49]
peppe [SNMP configuration]
admin:esxi [2022/09/20 11:26] (current)
peppe
Line 101: Line 101:
   vmware_guestd_enable="YES"   vmware_guestd_enable="YES"
  
-===== SNMP configuration ===== 
  
-ESXi host: 
  
-  # esxcli system snmp set --communities public +===== iSCSI multipath (OLD, decommissioned 9/2022) =====
-  # esxcli system snmp set --enable true +
-  # /etc/init.d/snmpd restart+
  
-firewall rules:+==== EMC VNX e3100 side ==== 
 +  VNXe-SPA-eth3 192.168.200.20 
 +  VNXe-SPB-eth3 192.168.200.40
  
-  # esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true 
-  # esxcli network firewall ruleset set --ruleset-id snmp --enabled true 
  
-rescue:+  uranus-iSCSI-staff -> EMC nfspool (SPB) -> VM sdb1 
 +  uranus-iSCSI-students -> EMC cifspool (SPA) -> VM sdc1 
 +  uranus-iSCSI-grads -> EMC nfspool (SPB) -> VM sdd1
  
-LibreNMS installation:+==== ESXi side ==== 
 +2014/11/19:
  
-  # apt update && apt upgrade +w/o ethernet passthroughvmswitches used
-  # apt install apache2 curl acl zip unzip +
-  # systemctl enable apache2 +
-   +
-  php 7.1.3 installation: +
-  # apt install apt-transport-https lsb-release ca-certificates +
-  # wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg +
-  # sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' +
-  # apt update +
-  # apt install php7.1-cli php7.1-curl php7.1-mbstring php7.1-gd libapache2-mod-php7.1 php7.1-snmp php7.1-xml php7.1-mysql php7.1-zip php7.1-json+
  
-  mariadb installation: +http://www.youtube.com/watch?v=Mu-HyD3E3cw 
-  # apt install mariadb-server + 
-  # systemctl enable mariadb +vswitch1 (uranus-iSCSI-switch), ESXi host ethernet ports #3 & #4: 
-  systemctl start mariadb +  192.168.200.101/255.255.255.0 
-  mysql_secure_installation +  192.168.200.121/255.255.255.0 
-  # mysql -u root -p + 
-  CREATE DATABASE librenms; + 
-  USE librenms; +==== Debian VM side ==== 
-  GRANT ALL PRIVILEGES ON librenms.* TO 'librenmsuser'@'localhost' IDENTIFIED BY 'librenmspss'; + 
-  FLUSH PRIVILEGES; +debian rescan SCSI bus: 
-  exit;+ 
 +  # echo "- - -" > /sys/class/scsi_host/host0/scan 
 +(0 is the scsi host bus you want to scan.)
  
-  # /etc/mysql/mariadb.conf.d/50-server.cnf 
-  add the following in mysqld section 
-  innodb_file_per_table=1 
-  sql-mode="" 
-  lower_case_table_names=0 
-   
-  # systemctl restart mariadb 
-   
-  #  apt install composer fping git graphviz imagemagick mtr-tiny nmap python-memcache python-mysqldb rrdtool snmp snmpd whois 
-   
-  # useradd librenms -d /opt/librenms -M -r 
-  # usermod -a -G librenms www-data 
-  # cd /opt/ 
-  # git clone https://github.com/librenms/librenms.git librenms 
-  # chown -R librenms:librenms /opt/librenms 
-  # cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf 
-  # vi /etc/snmp/snmpd.conf 
-  Replace RANDOMSTRINGGOESHERE with community name 
-   
-  # curl -o /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro 
-  # chmod +x /usr/bin/distro 
-  # systemctl restart snmpd 
-  # cp /opt/librenms/librenms.nonroot.cron /etc/cron.d/librenms 
-  # cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms 
-   
-  # mv librenms/ /var/www/html/ FIXME 
-  # cd /var/www/html/libremns 
-  # ./scripts/composer_wrapper.php install --no-dev 
-   
-  Access from http://<IP>/librenms/html/ 
-  Login at http://<IP>/librenms/html/index.php/login 
-   
admin/esxi.1560188970.txt.gz · Last modified: 2019/06/10 20:49 by peppe