Pages

Wednesday, October 9, 2024

VMware Monitoring for Free with Telegraf InfluxDB and Grafana

Link to blog post: 

https://www.virtualizationhowto.com/2024/05/vmware-monitoring-for-free-with-telegraf-influxdb-and-grafana/

vCert

Source: https://virtham.us/posts/f/vcert

Nize je priklad postupu pro vymenu VMCA certifikatu za certifikat podepsany CA.

Reset ESXi 6 Evaluation License

The ESXi 6 evaluation license is valid for 60 days and a free one can be obtained from VMware at anytime. Resetting the evaluation license provides continual access to all the features available, and most importantly for me, full compatibility with the ESXi Embedded Host Client.

VMware ESXi – How to extend the license expiration period of an ESXi server

The installable version of ESXi hosts is always installed in evaluation mode.

The evaluation period is 60 days and begins when you turn on the ESXi host.

The evaluation license provides the set of features equal to a vSphere Enterprise Plus license.

Setup Google Authenticator on FreeBSD

SSH, MFA, Google Authenticator 

Run as root:

cd /usr/ports/security/pam_google_authenticator
make install
mkdir /var/lib/google-authenticator

Edit /etc/pam.d/sshd:

auth      required    pam_google_authenticator.so nullok noskewadj

Edit /etc/pam.d/system:

auth      required    pam_google_authenticator.so nullok noskewadj

Leave out nullok if you do not want to allow users without having google-authenticator configured to be able to log in.
Be sure your root account has google-authenticator setup if you remove nullok and added it to /etc/pam.d/system.

Run google-authenticator with every user you want to be able to use it.

Source: https://www.schmidp.com/2014/01/12/setup-google-authenticator-on-freebsd/

Sunday, October 16, 2022

Install and Configure Photon OS with Wattson and Comet Temp containers

Operating System with Docker

Install Photon OS and Docker as described here.  

Git

Install Git

  • sudo tdnf install git 

Clone Git Repositories

  • git clone https://github.com/davidpasek/wattson
  • git clone https://github.com/davidpasek/comet-temp

Docker images

Build images

  • /home/admin/wattson/build.sh
  • /home/admin/comet-temp/build.sh

Loging

Install Docker Driver Client as described here.
  • docker plugin install grafana/loki-docker-driver:latest --alias loki --grant-all-permissions
Configure Docker Driver as described here.
  • Grafana Cloud URL: https://logs-prod-eu-west-0.grafana.net
  • Grafana Cloud User: 210148
  • Grafana Cloud API Key (password): TBD

Scheduler

Login as admin user and edit crontab (crontab -e) to run containers every minute.

* * * * * /home/admin/comet-temp/run.sh
* * * * * /home/admin/wattson/run.sh