<commit_before>---
owner_slack: "#2ndline"
title: Asset master attachment processing
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-05-01
review_in: 6 months
---

When new assets get uploaded to asset-master-1, there is a script
(/usr/local/bin/process-uploaded-attachment.sh) run by the assets user
every minute in a cronjob. This kicks off a script (virus-scan-file.sh)
which scans files and then moves them into either a "clean" or
"infected" directory. If you have received an alert regarding this it
means that the job has not run for over half an hour and is probably
locked (or processing a large amount of files).<commit_msg>Review asset master attachment processing<commit_after>---
owner_slack: "#2ndline"
title: Asset master attachment processing
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-11-07
review_in: 3 months
---

When new assets get uploaded to asset-master-1, there is a script
(/usr/local/bin/process-uploaded-attachment.sh) run by the assets user
every minute in a cronjob. This kicks off a script (virus-scan-file.sh)
which scans files and then moves them into either a "clean" or
"infected" directory. If you have received an alert regarding this it
means that the job has not run for over half an hour and is probably
locked (or processing a large amount of files).
{'fraction_non_alphanumeric': 0.07380607814761216, 'fraction_numerical': 0.015918958031837915, 'mean_word_length': 4.644897959183673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3019135', 'n_tokens_mistral': 419, 'n_tokens_neox': 380, 'n_words': 191}