Skip to content

Instantly share code, notes, and snippets.

@binsky08
binsky08 / PluginManager.php
Created September 21, 2020 10:15
PluginManager.php#L93
if (is_file(PLUGIN . $moduleName . DS . 'vendor/autoload.php')){
require PLUGIN . $moduleName . DS . 'vendor/autoload.php';
}
# /opt/openitc/frontend/bin/cake gearman_worker
PHP Notice: Undefined index: USER in /opt/openitc/frontend/config/paths.php on line 77
PHP Notice: Undefined index: USER in /opt/openitc/frontend/config/paths.php on line 93
PHP Notice: Undefined index: USER in /opt/openitc/frontend/config/paths.php on line 107
2020-08-18 11:39:52 Info: GearmanWorker: Deleted orphaned Pidfile "/var/run/oitc_gearmanworker.pid". Did the gearman_worker died?
GearmanWorker: Fork new worker child
GearmanWorker: Fork new worker child
GearmanWorker: Fork new worker child
GearmanWorker: Fork new worker child
Exception: Failed to set exception option
@binsky08
binsky08 / gist:74a32f0ef3301e009c91479eb9e7a8cf
Created August 18, 2020 09:19
Statusengine error with oitc in docker
# /opt/openitc/statusengine2/cakephp/app/Console/cake statusengine_legacy -w
Welcome Statusengine v2.2.2
---------------------------------------------------------------
Statusengine runs in legacy mode right now...
Visit https://statusengine.org/documentation.php#What-is-legacy-mode for more information
---------------------------------------------------------------
2020-08-18 09:14:29 Info: Starting Statusengine in legacy mode.
2020-08-18 09:14:29 Info: Forking a new worker child
2020-08-18 09:14:29 Info: Forking a new worker child
#!/bin/bash
############### configuration
minFreeSpaceGB=5
betterFreeSpaceGB=7
enableLog=1
#irgnore root rights and mysql configuration file
testing=0
#!/bin/bash
############### configuration
minFreeSpaceGB=3
betterFreeSpaceGB=5
pathToCheckForFreeSpace="$PWD"
enableLog=1
v3MysqlIni="/etc/openitcockpit/mysql.cnf"
#!/bin/bash
set -e
cp /opt/openitc/frontend-modules/SnmpTrapModule/src/nagios_plugin/check_snmptraps.pl /opt/openitc/nagios/libexec/
chmod 755 /opt/openitc/nagios/libexec/check_snmptraps.pl
if [ -f "/usr/share/snmp/mibs/ietf/SNMPv2-PDU" ] ; then
cp /opt/openitc/frontend-modules/SnmpTrapModule/src/SNMPv2-PDU_fixed /usr/share/snmp/mibs/ietf/SNMPv2-PDU
fi