-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
20 lines (20 loc) · 994 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
apt-get install -y libsys-statistics-linux-perl libdbd-sqlite3-perl libmoo-perl libdatetime-format-strptime-perl libmoox-types-mooselike-perl libconfig-any-perl libjson-perl liblog-report-perl libyaml-perl libmail-box-perl libcpanel-json-xs-perl libfile-slurp-perl
mkdir -p /usr/local/share/perl/5.28.1/
cp -a lib/Admonitor /usr/local/share/perl/5.28.1/
chmod -R o+rX /usr/local/share/perl/
cp bin/admonitor-agent.pl /usr/local/bin/
chmod 755 /usr/local/bin/admonitor-agent.pl
cp etc/admonitor.service /etc/systemd/system/
chmod 644 /etc/systemd/system/admonitor.service
systemctl enable admonitor.service
groupadd --system admonitor
useradd --system -g admonitor admonitor
mkdir /etc/admonitor
chmod 755 /etc/admonitor/
cp etc/agent.yaml /etc/admonitor/
chmod 640 /etc/admonitor/agent.yaml
chown admonitor /etc/admonitor/agent.yaml
# Edit agent.yaml
ufw allow from 5.28.62.146 to any port 9099 proto tcp
ufw allow from 2001:41c9:1:41c::146 to any port 9099 proto tcp
systemctl start admonitor