\x20\40\x20\40 HEX
HEX
Server: Apache
System: Linux web1.jenscom.net 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User: sps (1059)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //etc/cron.daily/lw-telegraf-upgrade-cron
#!/bin/bash

### script to install additioanl child packages forked from lw-telegraf
set -e

# this cron _should not_ update `lw-telegraf`
# but do everything in a function in case it does
# the function will be loaded into memory before executed
function package_checks() {
	## check for lw-telegraf-qemu-cgorups
	# only install on storm parents
	# remove after a few weeks
	if [[ $(hostname) =~ host[0-9]+\..*\.xvps.liquidweb.com ]]; then
		if ! rpm -q lw-telegraf-qemu-cgroups &>/dev/null; then
			yum install -y lw-telegraf-qemu-cgroups &>/dev/null
		fi
	fi

	if ! rpm -q lw-telegraf-ipmi &>/dev/null; then
		if lsmod | grep -q '^ipmi_si'; then
			yum install -y lw-telegraf-ipmi &>/dev/null
		fi
	fi
}

package_checks