- Install package
$ yum install wget httpd php glibc glibc-common gd gd-devel
make net-snmp unzip openssl-devel gcc- Add user
$ useradd nagios -p nagios| #!/bin/bash | |
| usage() { | |
| echo "Usage:" | |
| echo " $(basename "$0") -u <username> -p <password> -a <api>" | |
| exit | |
| } | |
| if [ "$#" -ne 6 ]; then | |
| usage |
| subcmd = parser.add_subparsers(description='command description', | |
| title='command title', | |
| help='command help', | |
| dest='cmd', | |
| metavar='command metavar', | |
| prog='command prog') | |
| subcmd.add_parser('cmd1', help='cmd1 help') | |
| """ | |
| Author: Jonathan Cardasis | |
| """ | |
| import socket | |
| import signal # Allow socket destruction on Ctrl+C | |
| import sys | |
| import time | |
| import threading |
| @ECHO off | |
| SET APP_NAME=app | |
| REM Get Home Directory | |
| SET APP_PATH=%~dp0 | |
| SET APP_HOME=%APP_PATH:~0,-5% | |
| REM Project Information |