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 | |
MY_NAGIOS_HOSTNAME="http://<insert_nagios_here>" | |
SLACK_SERVICE_URL="https://hooks.slack.com/services/aaaaaa/aaaaa/aaaaaaa" | |
if [[ "${NAGIOS_SERVICEOUTPUT}" == *"CRITICAL"* ]] | |
then | |
COLOR="danger" | |
elif [[ "${NAGIOS_SERVICEOUTPUT}" == *"OK"* ]] | |
then |
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
worker_processes 5; | |
worker_rlimit_nofile 300000; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 10540; | |
# multi_accept on; | |
} | |
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
Import-Module NetworkLoadBalancingClusters | |
$CopyOrigin="C:\inetpub\wwwroot\xxxx" | |
$TimeOut=5 | |
$Servers = New-Object System.Collections.ArrayList | |
$Servers.Add(@{Ip="xxx.xxx.xxx";Path="E:\xxxx";Urls=("/","/appx")}) | |
$Servers.Add(@{Ip="xxx.xxx.xxx";Path="F:\xxxx";Urls=("/","/appx")}) | |
$Servers.Add(@{Ip="xxx.xxx.xxx";Path="G:\xxxx";Urls=("/","/appx")}) |
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
param([String] $User, [String] $Revision, [String] $Description, [String] $Changelog) | |
$appID = "<your app id here>" | |
$apiKey = "<your api key here>" | |
"Sending deploy to New Relic API..." | |
$command = "curl -k -H 'x-api-key:$apiKey' -d 'deployment[application_id]=$appID' -d 'deployment[description]=$Description' -d 'deployment[revision]=$Revision' -d 'deployment[changelog]=$Changelog' -d 'deployment[user]=$User' https://api.newrelic.com/deployments.xml" | |
Invoke-Expression $command |