This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Graylog Docker Compose Service | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
WorkingDirectory=/home/dockeradmin/graylog-docker | |
ExecStart=/usr/bin/docker compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/graylog/server/server.conf | |
echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1 | |
root_password_sha2 = | |
< /dev/urandom tr -dc A-Z-a-z-0-9 | head -c${1:-96};echo; | |
password_secret = | |
http_bind_address = 0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
binlog_format=ROW | |
default-storage-engine=innodb | |
innodb_autoinc_lock_mode=2 | |
bind-address=0.0.0.0 | |
# Galera Provider Configuration | |
wsrep_on=ON | |
wsrep_provider=/usr/lib/galera/libgalera_smm.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_arrays_with_application($device, $app_id, $app_name, $category = null) | |
{ | |
$entries = []; | |
$apparray = []; | |
$separator = '-'; | |
if ($category) { | |
$pattern = sprintf('%s/%s-%s-%s-%s-*.rrd', Rrd::dirFromHost($device['hostname']), 'app', $app_name, $app_id, $category); | |
} else { | |
$pattern = sprintf('%s/%s-%s-%s-*.rrd', Rrd::dirFromHost($device['hostname']), 'app', $app_name, $app_id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put this file in /etc/systemd/system. | |
# | |
# To set OXIDIZED_HOME instead of the default, | |
# ~oxidized/.config/oxidized, uncomment (and modify as required) the | |
# "Environment" variable below so systemd sets the correct | |
# environment. | |
[Unit] | |
Description=Oxidized - Network Device Configuration Backup Tool | |
After=network-online.target multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
username: username | |
password: password | |
model: junos | |
resolve_dns: false | |
interval: 3600 | |
use_syslog: false | |
debug: false | |
threads: 30 | |
timeout: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Docker Compose Application Service | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
WorkingDirectory=/home/librenmsadmin/DockerComposeFile | |
ExecStart=/usr/local/bin/docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# These groups are read by MariaDB server. | |
# Use it for options that only the server (but not clients) should see | |
# | |
# See the examples of server my.cnf files in /usr/share/mysql | |
# this is read by the standalone daemon and embedded servers | |
[server] | |
# this is only for the mysqld standalone daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TZ=America/New_York | |
PUID=1000 | |
PGID=1000 | |
MYSQL_DATABASE=librenms | |
MYSQL_USER=librenms | |
MYSQL_PASSWORD=password |