This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SWAPPING=`free -mo | grep Swap | { read a b c d; echo $c; }` | |
| if [[ $SWAPPING -gt 0 ]] | |
| then | |
| echo "swap space is showing being used by free" | |
| return 1 | |
| else | |
| echo "free is showing no swap space being used" | |
| return 0 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| vmstat 5 1|tail -1|awk '{print $7,$8}' | while read vmstatResults; | |
| do | |
| SI=$(echo $vmstatResults | awk '{Print $1}') | |
| SO=$(echo $vmstatResults | awk '{Print $1}') | |
| if [[ $SI -gt 0 || $SO -gt 0 ]] | |
| then | |
| echo "swapping is showing as greater than zero in vmstat" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [min] | |
| pattern = \.min$ | |
| xFilesFactor = 0.1 | |
| aggregationMethod = min | |
| [max] | |
| pattern = \.max$ | |
| xFilesFactor = 0.1 | |
| aggregationMethod = max |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: A simple Load Balanced AWS blog using the Amazon standard linux AMI | |
| hosts: localhost | |
| connection: local | |
| gather_facts: False | |
| tasks: | |
| - name: spin up the webserver instances | |
| ec2: | |
| key_name: my-aws-key | |
| group: web |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "2" | |
| services: | |
| sabnzbd: | |
| environment: | |
| - PGID=1000 | |
| - PUID=1000 | |
| image: linuxserver/sabnzbd | |
| container_name: sabnzbd | |
| # keeps servers up and running and starts on boot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt install default-jdk | |
| wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| apt install apt-transport-https | |
| echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list | |
| apt update && apt install elasticsearch | |
| sed -i "/# network.host: 192.168.0.1/c network.host: 0.0.0.0" /tmp/foo/etc/elasticsearch/elasticsearch.yml | |
| /bin/systemctl daemon-reload | |
| /bin/systemctl enable elasticsearch.service | |
| /bin/systemctl start elasticsearch.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget https://artifacts.elastic.co/downloads/kibana/kibana-5.6.0-amd64.deb | |
| dpkg -i kibana-5.6.0-amd64.deb | |
| systemctl daemon-reload | |
| systemctl enable kibana.service | |
| systemctl start kibana.service |