<commit_before># Icinga
Monitoring Software
https://hub.docker.com/r/jordan/icinga2/
Creates a config file for ssmtp in /var/data/icinga.vcp.sh/conf/ssmtp.conf

``` bash
#!/bin/bash
source $(dirname $0)/config.cfg

mkdir -p /var/data/icinga.vcp.sh/
mkdir -p /var/data/icinga.vcp.sh/sql
mkdir -p /var/data/icinga.vcp.sh/conf/
echo "
root=<EMAIL>
mailhub=mxf960.netcup.net:587
UseSTARTTLS=YES
AuthUser=<EMAIL>
AuthPass=<PASSWORD>
FromLineOverride=NO
" > /var/data/icinga.vcp.sh/conf/ssmtp.conf



subdomains[0]="icinga"
subdomains[1]="monitoring"
createDomainNames $subdomains

docker create \
 --expose 80 \
 --name icinga.vcp.sh \
 -e "VIRTUAL_HOST=$myresult" \
 -e "LETSENCRYPT_HOST=$myresult" \
 -e "LETSENCRYPT_EMAIL=$adminmail" \
 --link graphite:graphite \
  -e ICINGA2_FEATURE_GRAPHITE=true \
  -e ICINGA2_FEATURE_GRAPHITE_HOST=graphite \
  -e ICINGA2_FEATURE_GRAPHITE_PORT=2003 \
  -e "ICINGA2_FEATURE_GRAPHITE_URL=http://graphite" \
  -e "ICINGA_PASSWORD=$<PASSWORD>" \
  -e "ICINGAWEB2_PASSWORD=$IC<PASSWORD>" \
  -e "DIRECTOR_PASSWORD=$<PASSWORD>" \
  -e "IDO_PASSWORD=$<PASSWORD>" \
  -e "ICINGAWEB2_ADMIN_USER=admin" \
  -e "ICINGAWEB2_ADMIN_PASS=$ICINGAWEB2_ADMIN_PASS" \
  -v /var/data/icinga.vcp.sh/sql:/var/lib/mysql \
  -v /var/data/icinga.vcp.sh/conf/ssmtp.conf:/etc/ssmtp/ssmtp.conf:ro \
  jordan/icinga2:latest

```<commit_msg>mail alias for icinga<commit_after># Icinga
Monitoring Software
https://hub.docker.com/r/jordan/icinga2/
Creates a config file for ssmtp in /var/data/icinga.vcp.sh/conf/ssmtp.conf

``` bash
#!/bin/bash
source $(dirname $0)/config.cfg

mkdir -p /var/data/icinga.vcp.sh/
mkdir -p /var/data/icinga.vcp.sh/sql
mkdir -p /var/data/icinga.vcp.sh/conf/
echo "
root=<EMAIL>
mailhub=mxf960.netcup.net:587
UseSTARTTLS=YES
AuthUser=<EMAIL>
AuthPass=<PASSWORD>
FromLineOverride=NO
" > /var/data/icinga.vcp.sh/conf/ssmtp.conf

echo "root:<EMAIL>:<EMAIL>
nagios:<EMAIL>:<EMAIL>
www-data:<EMAIL>:<EMAIL>" > /var/data/icinga.vcp.sh/conf/revaliases

subdomains[0]="icinga"
subdomains[1]="monitoring"
createDomainNames $subdomains

docker create \
 --expose 80 \
 --name icinga.vcp.sh \
 -e "VIRTUAL_HOST=$myresult" \
 -e "LETSENCRYPT_HOST=$myresult" \
 -e "LETSENCRYPT_EMAIL=$adminmail" \
 --link graphite:graphite \
  -e ICINGA2_FEATURE_GRAPHITE=true \
  -e ICINGA2_FEATURE_GRAPHITE_HOST=graphite \
  -e ICINGA2_FEATURE_GRAPHITE_PORT=2003 \
  -e "ICINGA2_FEATURE_GRAPHITE_URL=http://graphite" \
  -e "ICINGA_PASSWORD=$<PASSWORD>" \
  -e "ICINGAWEB2_PASSWORD=$<PASSWORD>" \
  -e "DIRECTOR_PASSWORD=$<PASSWORD>" \
  -e "IDO_PASSWORD=$<PASSWORD>" \
  -e "ICINGAWEB2_ADMIN_USER=admin" \
  -e "ICINGAWEB2_ADMIN_PASS=$<PASSWORD>" \
  -v /var/data/icinga.vcp.sh/sql:/var/lib/mysql \
  -v /var/data/icinga.vcp.sh/conf/ssmtp.conf:/etc/ssmtp/ssmtp.conf:ro \
  -v /var/data/icinga.vcp.sh/conf/revaliases:/etc/ssmtp/revaliases:ro \
  jordan/icinga2:latest

```
{'fraction_non_alphanumeric': 0.16643502432244614, 'fraction_numerical': 0.017025712300208478, 'mean_word_length': 4.234545454545454, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 27, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, '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': '899696', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1295, 'n_words': 166}