84 lines
1.4 KiB
Bash
Executable file
84 lines
1.4 KiB
Bash
Executable file
GREP="/bin/grep"
|
|
ECHO="/bin/echo"
|
|
EMERGE="/usr/bin/emerge"
|
|
NSLOOKUP="/usr/bin/nslookup"
|
|
IP="/bin/ip"
|
|
HOSTNAME="/bin/hostname"
|
|
AWK="/bin/awk"
|
|
SED="/bin/sed"
|
|
CUT="/bin/cut"
|
|
TR="/bin/tr"
|
|
PING="/bin/ping"
|
|
|
|
# Packages to check (it's a list to simplify comment)
|
|
PACKAGES=(
|
|
# 'virtual/ssh'
|
|
# 'app-admin/rsyslog'
|
|
# 'net-misc/ntp'
|
|
# 'app-backup/borgbackup'
|
|
# 'virtual/cron'
|
|
# 'sys-process/cronie'
|
|
# 'net-analyzer/munin'
|
|
# 'app-portage/eix',
|
|
# 'app-portage/gentoolkit',
|
|
# 'app-portage/genlop',
|
|
# 'app-misc/tmux',
|
|
# 'net-analyzer/tcpdump',
|
|
# 'app-editors/vim',
|
|
# 'sys-process/htop-2.2.0',
|
|
# 'app-admin/sysklogd'
|
|
# 'dev-vcs/git'
|
|
# 'net-analyzer/nrpe'
|
|
# 'net-analyzer/net-snmp'
|
|
# 'net-dns/bind-tools'
|
|
# 'dev-vcs/git'
|
|
# 'mail-mta/postfix'
|
|
# 'mail-mta/eeeepostfix'
|
|
)
|
|
|
|
# Package to check if it's a physical machine
|
|
PACKAGES_PHYSICAL=(
|
|
'sys-apps/smartmontools'
|
|
)
|
|
|
|
NAMES_TO_RESOLV_AND_PING=(
|
|
'grifon.fr'
|
|
'arn-fai.net'
|
|
'grifonfesfdsfdsf.fr'
|
|
)
|
|
|
|
RESOLVERS=(
|
|
'2a00:5884::7'
|
|
'89.234.186.4'
|
|
)
|
|
|
|
SERVICES_TO_CHECK=(
|
|
'rsyslog'
|
|
'ntpd'
|
|
'munin-node'
|
|
'iptables'
|
|
'ip6tables'
|
|
'sshd'
|
|
'postfix'
|
|
'nrpe'
|
|
'snmpd'
|
|
'hostname'
|
|
)
|
|
|
|
SERVICES_TO_CHECK_PHYSICAL=(
|
|
'smard'
|
|
)
|
|
|
|
IPV4_ADMIN_NETWORK="172.16.0."
|
|
IPV6_ADMIN_NETWORK="fd01:1e02:40:"
|
|
|
|
NAME_MASTER_MONITORING=""
|
|
|
|
IPV4_MASTER_MUNIN='^172\\\.16\\\.0\\\.13\$'
|
|
IPV6_MASTER_MUNIN='^fd01:1e02:40::3\$'
|
|
IPV4_MASTER_MUNIN_PRINT='^172\.16\.0\.13$'
|
|
IPV6_MASTER_MUNIN_PRINT='^fd01:1e02:40::3$'
|
|
|
|
MAIL_ALIAS_ROOT="admin6@email.emailr"
|
|
|