Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions metron-deployment/roles/monit/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ monit_user: admin
monit_pass: monit
topology_start_timeout: 120
topology_stop_timeout: 120
topology_status_timeout: 60

bro_pid_file: /usr/local/bro/spool/bro/.pid
elasticsearch_pid_file: /var/run/elasticsearch/elasticsearch.pid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
check program enrichment with path "{{ monit_home }}/status_enrichment_topology.sh"
check program enrichment with path "{{ monit_home }}/status_enrichment_topology.sh" with timeout {{ topology_status_timeout }} seconds
start program "{{ metron_directory }}/bin/start_enrichment_topology.sh" with timeout {{ topology_start_timeout }} seconds
stop program "{{ monit_home }}/stop_enrichment_topology.sh" with timeout {{ topology_stop_timeout }} seconds
if status != 0 then restart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
check program indexing with path "{{ monit_home }}/status_indexing_topology.sh"
check program indexing with path "{{ monit_home }}/status_indexing_topology.sh" with timeout {{ topology_status_timeout }} seconds
start program "{{ metron_directory }}/bin/start_elasticsearch_topology.sh" with timeout {{ topology_start_timeout }} seconds
stop program "{{ monit_home }}/stop_indexing_topology.sh" with timeout {{ topology_stop_timeout }} seconds
if status != 0 then restart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
check program indexing with path "{{ monit_home }}/status_indexing_topology.sh"
check program indexing with path "{{ monit_home }}/status_indexing_topology.sh" with timeout {{ topology_status_timeout }} seconds
start program "{{ metron_directory }}/bin/start_solr_topology.sh" with timeout {{ topology_start_timeout }} seconds
stop program "{{ monit_home }}/stop_indexing_topology.sh" with timeout {{ topology_stop_timeout }} seconds
if status != 0 then restart
Expand Down
8 changes: 4 additions & 4 deletions metron-deployment/roles/monit/templates/monit/parsers.monit
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@
# limitations under the License.
#

check program pcap-parser with path "{{ monit_home }}/status_pcap_topology.sh"
check program pcap-parser with path "{{ monit_home }}/status_pcap_topology.sh" with timeout {{ topology_status_timeout }} seconds
start program "{{ metron_directory }}/bin/start_pcap_topology.sh" with timeout {{ topology_start_timeout }} seconds
stop program "{{ monit_home }}/stop_pcap_topology.sh" with timeout {{ topology_stop_timeout }} seconds
if status != 0 then restart
group pcap
group parsers
group metron

check program yaf-parser with path "{{ monit_home }}/status_yaf_topology.sh"
check program yaf-parser with path "{{ monit_home }}/status_yaf_topology.sh" with timeout {{ topology_status_timeout }} seconds
start program "{{ monit_home }}/start_yaf_topology.sh" with timeout {{ topology_start_timeout }} seconds
stop program "{{ monit_home }}/stop_yaf_topology.sh" with timeout {{ topology_stop_timeout }} seconds
if status != 0 then restart
group yaf
group parsers
group metron

check program bro-parser with path "{{ monit_home }}/status_bro_topology.sh"
check program bro-parser with path "{{ monit_home }}/status_bro_topology.sh" with timeout {{ topology_status_timeout }} seconds
start program "{{ monit_home }}/start_bro_topology.sh" with timeout {{ topology_start_timeout }} seconds
stop program "{{ monit_home }}/stop_bro_topology.sh" with timeout {{ topology_stop_timeout }} seconds
if status != 0 then restart
group bro
group parsers
group metron

check program snort-parser with path "{{ monit_home }}/status_snort_topology.sh"
check program snort-parser with path "{{ monit_home }}/status_snort_topology.sh" with timeout {{ topology_status_timeout }} seconds
start program "{{ monit_home }}/start_snort_topology.sh" with timeout {{ topology_start_timeout }} seconds
stop program "{{ monit_home }}/stop_snort_topology.sh" with timeout {{ topology_stop_timeout }} seconds
if status != 0 then restart
Expand Down