Commit cb3dedd9 authored by Rene Hadler's avatar Rene Hadler

pve6-installer: Fixes issue #49

parent 974f4343
......@@ -14,7 +14,7 @@ import subprocess
import requests
# Globale Variablen
VERSION = "1.0.0"
VERSION = "1.0.1"
TITLE = "iteas Proxmox Installer " + VERSION
CHECK_INTERNET_IP = "77.235.68.39"
VM_TEMPLATE_CIFS_SHARE = "//srv-backup01.iteas.at/archiv-replica"
......@@ -702,7 +702,10 @@ class Installer():
file_append("/etc/nagios/nrpe.cfg", "command[check_backuppc_hosts]=sudo -u backuppc /usr/lib/nagios/plugins/check_backuppc")
file_append("/etc/nagios/nrpe.cfg", "command[check_backuppc]=/usr/lib/nagios/plugins/check_proc_backuppc.sh")
file_replace_line("/etc/nagios/nrpe.cfg", "check_total_procs", "command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 600 -c 650")
if self.filesystem == "zfs":
file_replace_line("/etc/nagios/nrpe.cfg", "check_total_procs", "command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 800 -c 1000")
else:
file_replace_line("/etc/nagios/nrpe.cfg", "check_total_procs", "command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 600 -c 650")
elif self.monitoring == "checkmk":
......@@ -793,7 +796,6 @@ class Installer():
run_cmd('zfs create rpool/sicherung')
run_cmd('apt install zfs-zed -y')
file_replace_line("/etc/samba/smb.conf", "path = /var/lib/vz/sicherung", "\tpath = /rpool/sicherung")
file_replace_line("/etc/nagios/nrpe.cfg", "check_total_procs", "command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 800 -c 1000")
backup_root = "/rpool/sicherung"
else:
run_cmd('mkdir /var/lib/vz/sicherung')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment