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 mod_radacct | |
# Dictionary path (can be relative or absolute): | |
dictionary = "dictionary" | |
# If missing a user domain in the syslog msg, this is provided: | |
default_domain = "DefaultDomain" | |
# List of CDA identity maintainers. Can include legacy AD Agent servers: | |
servers = [ "cda1", "cda2", "ada1", "ada2" ] |
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
#!/usr/bin/env python | |
import logging, re, sys, time | |
import mod_cda | |
PYTHONUNBUFFERED = "true" | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.DEBUG) |
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
############################ | |
#AUTHOR: JR Morgan | |
#CREATED: 20120417 | |
#MODIFIED: 20140611 | |
############################ | |
<# | |
.Synopsis | |
Adds DHCP Scope to ALL specified DHCP servers. If split-scope is desired | |
the script uses IP Math to automatically add the desired exlcude ranges. |
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
@echo off | |
REM Note that SysNative is available on x86 2008, and on x86 2003 with KB942589 applied | |
set CONSOLE_WIDTH=500 | |
CD %ProgramFiles(x86)%\check_mk\local-64 | |
FOR /R %%X IN ("*") DO ( %WINDIR%\SysNative\windowspowershell\v1.0\powershell.exe -File "%%X") |
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
$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size(900,900) | |
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin | |
$check_name = "Exchange_SG_CopyStatus" | |
$OK = 0 | |
$Warn = 1 |
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
$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size(900,900) | |
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin | |
$check_name = "Exchange_SG_LogTrunc" | |
$OK = 0 | |
$Warn = 1 | |
$Crit = 2 | |
$Unk = 3 |
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
$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size(500,300) | |
$server = $env:COMPUTERNAME | |
$global:debug = "" | |
$global:n_stat = "" | |
$global:n_stattext = "" | |
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 | |
# ############################################################################## | |
# check_dhcp_all_pools.sh - Nagios plugin | |
# | |
# This script querys a MS Windows DHCP-Server via SNMP v2 to fetch informations about the given DHCP-Pool. | |
# | |
# Copyright (C) 2006, 2007 Lars Michelsen <[email protected]>, | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License |
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
<# | |
.Synopsis | |
Synchronizes DHCP reservations to all or select authorized DHCP servers in a given domain. | |
.Description | |
This script utilizes a user-specified source (master) DHCP server and synchronizes | |
all or some scope reservations between other, authorized DHCP servers for a given domain. | |
Netsh commands can be generated for manual execution or executed automatically. | |
.Parameter Source |
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 random, socket, sys, logging | |
import pyrad.packet | |
from pyrad.client import Client | |
from pyrad.dictionary import Dictionary | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.DEBUG) | |
#Logger Console Handler |