mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-16 22:12:48 +01:00
enable/disable telegraf in ui
This commit is contained in:
@@ -274,6 +274,13 @@ function add_curator_to_minion() {
|
||||
" " >> $PILLARFILE
|
||||
}
|
||||
|
||||
function add_telegraf_to_minion() {
|
||||
printf '%s\n'\
|
||||
"telegraf:"\
|
||||
" enabled: True"\
|
||||
" " >> $PILLARFILE
|
||||
}
|
||||
|
||||
function create_fleet_policy() {
|
||||
|
||||
JSON_STRING=$( jq -n \
|
||||
@@ -324,6 +331,7 @@ function createEVAL() {
|
||||
add_elastalert_to_minion
|
||||
add_kibana_to_minion
|
||||
add_curator_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createSTANDALONE() {
|
||||
@@ -336,6 +344,7 @@ function createSTANDALONE() {
|
||||
add_kibana_to_minion
|
||||
add_redis_to_minion
|
||||
add_curator_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createMANAGER() {
|
||||
@@ -346,6 +355,7 @@ function createMANAGER() {
|
||||
add_kibana_to_minion
|
||||
add_redis_to_minion
|
||||
add_curator_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createMANAGERSEARCH() {
|
||||
@@ -356,12 +366,14 @@ function createMANAGERSEARCH() {
|
||||
add_kibana_to_minion
|
||||
add_redis_to_minion
|
||||
add_curator_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createIMPORT() {
|
||||
add_elasticsearch_to_minion
|
||||
add_sensor_to_minion
|
||||
add_kibana_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createFLEET() {
|
||||
@@ -370,10 +382,12 @@ function createFLEET() {
|
||||
create_fleet_policy
|
||||
update_fleet_host_urls
|
||||
update_logstash_outputs
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createIDH() {
|
||||
add_idh_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createHEAVYNODE() {
|
||||
@@ -383,16 +397,19 @@ function createHEAVYNODE() {
|
||||
add_strelka_strelka_to_minion
|
||||
add_redis_to_minion
|
||||
add_curator_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createSENSOR() {
|
||||
add_sensor_to_minion
|
||||
add_strelka_strelka_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
function createSEARCHNODE() {
|
||||
add_elasticsearch_to_minion
|
||||
add_logstash_to_minion
|
||||
add_telegraf_to_minion
|
||||
updateMine
|
||||
apply_ES_state
|
||||
}
|
||||
@@ -400,6 +417,7 @@ function createSEARCHNODE() {
|
||||
function createRECEIVER() {
|
||||
add_logstash_to_minion
|
||||
add_redis_to_minion
|
||||
add_telegraf_to_minion
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user