This file contains 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/sh | |
function USAGE { | |
cat <<EOL | |
Script for output NewKEY file and CSR file | |
Usage $0 | |
$0 www.example.jp | |
Output | |
KEYFILE: ${KEYDIR}/www.example.jp.2018.nopass.key | |
CSRFILE: ${CSRFILE}/www.example.jp.2018.csr |
This file contains 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
#!/usr/bin/env perl | |
############################################################################## | |
# Program to check to make sure milter is running and report back to nrpe | |
# for nagios. The defalt port here is for DKIM which is commonly found on | |
# port 8891 and default host is localhost | |
# Created: 2015-06-18 | |
# Version: 1.0.1 | |
# Author: Alex Schuilenburg | |
############################################################################## |
This file contains 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 | |
# | |
# Origin https://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_http_curl-2Esh/details | |
# | |
# This script connects to a site via curl and searches for a string in the web page. | |
# If the string is not found it throws out an error and Nagios exit is set to 'critical'. | |
## | |
# Ver. 0.1a | |
# Last modified by Roberto Carraro on 20150528 | |
# |
This file contains 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
############################################################################### | |
# The MIT License | |
# | |
# Copyright 2012-2014 Jakub Jirutka <[email protected]>. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
This file contains 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/sh | |
function USAGE { | |
cat <<EOL | |
Script for create password. | |
Usage | |
$0 [count] | |
EOL | |
exit 0 |
This file contains 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/sh | |
# Version 140624_1534 | |
NAGIOS_CHECK_DNS_COMMAND='/usr/local/nagios/libexec/check_dns' | |
HOSTNAME=$1 | |
EXITSTATUS='1' # Defaults | |
function usage { | |
cat <<-EOF | |
$(basename ${0}) is check HOSTMANE and IPAddress on DNS server. |
This file contains 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/sh -f | |
# version 20140623.1146 | |
DNSCHECK_SH='/root/scripts/onetime/dns_check_existence.sh' | |
CONF_FROM_DIR=$(find /etc/httpd/conf.d/ -name *.conf -print) | |
HTTPDCONF="/etc/httpd/conf/httpd.conf $CONF_FROM_DIR" | |
GREP_VIRTUAL=$(cat $HTTPDCONF | grep -v ^# |grep -iE 'Virtual|alias |servername|documentroot'|grep -v ScriptAlias|sed -e "s/^[[:space:]]*//"|grep -v ^# |grep -v ^$) |
This file contains 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/sh | |
# For stat version: 2.2 | |
# If you use New Version maybe can use printf Option. | |
function usage { | |
cat <<-EOF | |
$(basename ${0}) is a tool for file copy same parmission, owner and group as DEST. | |
Usage: $(basename ${0}) from_file to_file | |
EOF | |
} |
This file contains 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 | |
### User Settings (things you must set) | |
## Location of the dnscurl.pl script | |
DNSCurl="/path/to/route53DynDNS/dnscurl.pl" | |
## The host name you wish to update/create | |
myHostName="*" | |
## Zone/domain in which host (will) reside(s) | |
myDomainName="example.com" |