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 python | |
# | |
# import needed modules. | |
# pyzabbix is needed, see https://github.com/lukecyca/pyzabbix | |
# | |
import argparse | |
import ConfigParser | |
import os | |
import os.path | |
import time |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "geerlingguy/centos7" | |
config.vm.network "docs", guest: 8000, host: 8000, host_ip: "127.0.0.1" | |
config.vm.provision "shell", inline: <<-SHELL | |
set -e | |
yum -q -y install git vim-enhanced @development zlib-devel bzip2 bzip2-devel readline-devel sqlite \ | |
sqlite-devel openssl-devel xz xz-devel libffi-devel findutils |
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 python | |
# | |
# import needed modules. | |
# pyzabbix is needed, see https://github.com/lukecyca/pyzabbix | |
# | |
import argparse | |
import ConfigParser | |
import os | |
import os.path | |
import time |
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 python | |
# -*- coding: utf-8 -*- | |
# | |
# import needed modules. | |
# pyzabbix is needed, see https://github.com/lukecyca/pyzabbix | |
# | |
import argparse | |
import ConfigParser | |
import os | |
import os.path |
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 python | |
# -*- coding: utf-8 -*- | |
# | |
# import needed modules. | |
# pyzabbix is needed, see https://github.com/lukecyca/pyzabbix | |
# | |
import argparse | |
import ConfigParser | |
import os | |
import os.path |
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 python | |
# -*- coding: utf-8 -*- | |
# | |
# import needed modules. | |
# pyzabbix is needed, see https://github.com/lukecyca/pyzabbix | |
# | |
import argparse | |
import ConfigParser | |
import os | |
import os.path |
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
# Setup the mysql client | |
include: | |
- mysql.client | |
# Only setup mysql server if a root password has been set | |
{% if salt['pillar.get']('mysql:server:root_password',false) %} | |
- mysql.server | |
- mysql.remove_test_database | |
{% else %} | |
Mysql root password is not set, skipping Mysql installation: |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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 python | |
# -*- coding: utf-8 -*- | |
# vim: set ft=python : | |
try: | |
import readline | |
import ConfigParser | |
import os | |
import os.path | |
import sys |
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 | |
# | |
# This script counts the number of returned lines from an SNMP walk. | |
# | |
COMMUNITY="$1" | |
IP="$2" | |
OID="$3" | |
FILTER="$4" | |
# Disable mibs to save time |
NewerOlder