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/python | |
import struct, sys, time, argparse | |
from socket import socket, AF_INET, SOCK_DGRAM | |
error_margin = 3 | |
def get_time(host): | |
sock = socket(AF_INET, SOCK_DGRAM) | |
sock.settimeout(2) |
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 | |
# Set Variables | |
EXIMLOG=/var/log/exim4/mainlog | |
MYLOG=/tmp/exim_status.log | |
OFFSETFILE=/tmp/eximstatusoffset.dat | |
EXIMSTATS=/usr/sbin/eximstats | |
LOGTAIL=/usr/sbin/logtail | |
ZABBIX_SENDER=/usr/bin/zabbix_sender | |
ZABBIX_CONF=/etc/zabbix/zabbix_agentd.conf |
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/python | |
# -*- coding: utf-8 -*- | |
import time, socket, sys, argparse | |
from multiprocessing.pool import ThreadPool | |
DNSRBL_LIST='/etc/zabbix/externalscripts/check-dnsrbl.txt' | |
result_list = [] | |
def reverse_host(host, separator='.'): |
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 -*- | |
__author__ = "Adrien Pujol - http://www.crashdump.fr/" | |
__copyright__ = "Copyright 2013, Adrien Pujol" | |
__license__ = "Mozilla Public License" | |
__version__ = "0.3" | |
__email__ = "[email protected]" | |
__status__ = "Development" | |
__doc__ = "Check a TLS certificate validity." |
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/perl | |
use strict; | |
use XML::Simple; | |
use WWW::Curl::Easy; | |
my $WOEID = 12215; # Yahoo! "Where On Earth Identifier" for Bedford, UK | |
my $ZABBIX_SENDER = "/usr/bin/zabbix_sender"; | |
my $ZABBIX_SERVER = "172.24.1.36"; |
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
.include /usr/local/etc/exim/macros.conf | |
hide pgsql_servers = PGSQL_SERVERS | |
#primary_hostname = | |
domainlist local_domains = @ : localhost : localhost.localdomain | |
domainlist relay_sql_domains = RELAY_SQL_DOMAINS | |
domainlist relay_sql_smtp_domains = SMTP_SQL_DOMAINS | |
domainlist relay_sql_lmtp_domains = LMTP_SQL_DOMAINS | |
domainlist ldap_domains = LDAP_DOMAINS | |
domainlist smtp_callback_domains = SMTP_CALLBACK_DOMAINS | |
domainlist whitelisted_domains = WHITELISTED_DOMAINS |
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
# This is a configuration for Logstash acting like that: | |
# | |
## INPUT | |
# - Syslog server listening on (custom >1024 as we don't run it as root) UDP/10514 | |
# - GELF event listening on (default) UDP/12201 | |
# | |
## FILTERING | |
# - Nothing here yet | |
# | |
## OUTPUT |
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 | |
### BEGIN INIT INFO | |
# Provides: logstash-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. |
NewerOlder