Skip to content

Simple zabbix mysql/mariadb housekeeping script to maintain zabbix.history and zabbix.history_uint tables

I've just finished a simple houseskeeping/maintenance script for zabbix if you use mariadb or mysql as database.

You can find it here.

It installs a systemd timer to automatically run optimize on the two tables zabbix.history and zabbix.history_uint.

All you have to do is to add your username and passwort to the created file /etc/net.bazzline/zabbix/housekeeping/local_configuration.sh.

Check which version and fix pack of your HCL Notes / IBM Notes is installed

Today I needed to create a skript that automatically installes a Notes FP (Fix-Pack) to all our clients.

The windows registry, as example, does not tell which of if there is a FP installed. After a while, my current solution is to check which value the variable FaultRecovery_Build inside the notes.ini is containing.

#pseudo code
$fp5IsInstalled = (cat notes.ini | grep -q "Release 10.0.1FP5")
If ($fp5IsInstalled) {
    //... do something or nothing
}

Hope this helps.