Rexxer

Some tips for me and other

Zabbix

Zabbix + Force Housekeeping

zabbix_server -c /etc/zabbix/zabbix_server.conf -R housekeeper_execute

Zabbix + certificates monitoring

There is the fine script and template for certificates monitoring. Just create the script, import the template and link it to the host. Monitoring SSL Certificates with Zabbix #! /bin/sh SERVER=$1 TIMEOUT=25 RETVAL=0 TIMESTAMP=`echo | date` if [ -z “$2” ] then PORT=443; else PORT=$2; fi EXPIRE_DATE=`echo | openssl s_client -connect $SERVER:$PORT 2>/dev/null | openssl […]

Pfsense + Zabbix + Temperature monitoring via com-port

pw usermod zabbix -G uucp Services: Zabbix Agent 4.2: Agent: Advanced: User Parameters: UserParameter=temperature, /root/digitemp_DS9097 -c /root/.digitemprc -q -t 0 | awk ‘{if ($7 == “85.00”) print “36”; else print $7}’ | bc Add a new item to a host as Numeric (float), a graph and a trigger.

Zabbix + reset password for the web interface

update zabbix.users set passwd=md5(‘mynewpassword’) where alias=’Admin’;

Zabbix + Check your user parameters

To check your user parameters you can use the utility from zabbix client: zabbix_get I have some issues with my user parameter and ran the command: zabbix_get -s localhost -k “MyUserParameter” and got: ZBX_NOTSUPPORTED: Timeout while executing a shell script. I went to the zabbix_client.conf and set the timeout to 15. Now everything is OK […]

Zabbix 3 + Adding VMWare hosts

Create vSphere host Add 4 macros: – {$USERNAME} – username which has an administrative privileges on VMware – {$PASSWORD) – password for username – {$URL} – https://10.10.10.10/sdk (where 10.10.10.10 is the address of vSphere host, not VMware supervisor) – {$UUID} – $UUID can be obtain by requesting the hypervisor webservices like https://hostname/mob/?moid=ha-host&…are.systemInfo You will see […]

Zabbix 3 Appliance + Extend disk space

Extend HDD in your VM on Hyper-V, ESXi, … Rescan drives in VM: echo “- – -” > /sys/class/scsi_host/host#/scan Check it: fdisk -l Create a new partition with code 8E (Linux LVM): cfdisk /dev/sda Reboot (or reread info about disks) Create new partition for LVM: pvcreate /dev/sda6 Extend LVM (vg_name was zabbix-vg in my case): […]