修改 clotho 为 package_dump

This commit is contained in:
fumingwei
2020-10-16 16:57:20 +08:00
parent 451677775d
commit f0725b0e02
7 changed files with 44 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ pangu_log_level: DEBUG
doh_log_level: DEBUG doh_log_level: DEBUG
certstore_log_level: 10 certstore_log_level: 10
clotho_log_level: 10 packet_dump_log_level: 10
######################################### #########################################
#Sapp Performance Config #Sapp Performance Config

View File

@@ -111,7 +111,7 @@
dest: /opt/mrzcpd/etc/mrtunnat.conf dest: /opt/mrzcpd/etc/mrtunnat.conf
when: when:
- nic_traffic_mirror is not defined - nic_traffic_mirror is not defined
- tsg_access_type == 3 - == 3
- name: "update mrtunnat.conf.ATCA_Vlan_Flipping" - name: "update mrtunnat.conf.ATCA_Vlan_Flipping"
template: template:

View File

@@ -0,0 +1,19 @@
[Unit]
Description=packet dump service
After=After=network.target
[Service]
Type=fork
WorkingDirectory=/home/mesasoft/packet_dump
ExecStart=/home/mesasoft/packet_dump/packet_dump
TimeoutSec=60s
RestartSec=10s
Restart=always
LimitNOFILE=524288
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
Delegate=yes
[Install]
WantedBy=multi-user.target

View File

@@ -11,4 +11,4 @@ disable_coredump=0
enable_breakpad=1 enable_breakpad=1
breakpad_minidump_dir=/tmp/packet_dump/crashreport breakpad_minidump_dir=/tmp/packet_dump/crashreport
enable_breakpad_upload=0 enable_breakpad_upload=0
breakpad_upload_url={{ breakpad_upload }} breakpad_upload_url={{ breakpad_upload_url }}

View File

@@ -0,0 +1,16 @@
####################
#Uninstall packet_dump
- name: "[uninstall packet_dump] stop packet_dump"
systemd:
name: packet_dump
state: stopped
enabled: no
when: uninstall.packet_dump == 1
ignore_errors: true
- name: "[uninstall packet_dump] uninstall packet_dump"
yum:
name:
- "{{ packet_dump }}"
state: absent
when: uninstall.packet_dump == 1

View File

@@ -41,6 +41,7 @@ tfe=`rpm -qa |grep ^tfe-4`
tfe_kmod=`rpm -qa |grep ^tfe-kmod` tfe_kmod=`rpm -qa |grep ^tfe-kmod`
http_healthcheck=`rpm -qa |grep ^http_healthcheck` http_healthcheck=`rpm -qa |grep ^http_healthcheck`
clotho=`rpm -qa |grep ^clotho` clotho=`rpm -qa |grep ^clotho`
packet_dump=`rpm -qa |grep ^packet_dump`
certstore=`rpm -qa |grep ^certstore` certstore=`rpm -qa |grep ^certstore`
@@ -125,6 +126,9 @@ http_healthcheck: $http_healthcheck
#clotho #clotho
clotho: $clotho clotho: $clotho
#packet_dump
packet_dump: $packet_dump
##################### #####################
#certstore #certstore
certstore: $certstore certstore: $certstore

View File

@@ -17,6 +17,7 @@
- certstore - certstore
- cert_redis - cert_redis
- clotho - clotho
- packet_dump
- http_healthcheck - http_healthcheck
- framework - framework
- telegraf_statistic - telegraf_statistic
@@ -45,6 +46,7 @@
- certstore - certstore
- cert_redis - cert_redis
- clotho - clotho
- packet_dump
- http_healthcheck - http_healthcheck
- framework - framework
- telegraf_statistic - telegraf_statistic