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
import logging | |
log = logging.getLogger('zen.ZenPack') | |
import Globals | |
from AccessControl import ClassSecurityInfo | |
from Products.ZenModel.Location import Location | |
from Products.ZenModel.ZenPack import ZenPack as ZenPackBase | |
from Products.ZenModel.ZenossSecurity import ZEN_COMMON, ZEN_VIEW | |
from Products.ZenWidgets.ZenossPortlets import ZenossPortlets |
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 an example Zenoss event transform that will escalate an event's | |
# severity to critical if it has occurred more than three (3) times in a row | |
# without clearing. | |
# | |
# It is compatible with all existing Zenoss versions which includes up to 4.1 | |
# at the time this was written. | |
# Initialize existing_count. | |
existing_count = 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
#!/usr/bin/env python | |
# Author: Jane Curry | |
# Date Sept 11th 2012 | |
# Description: Output all device classes with device instances to a file supplied by user | |
# Output gives device class and device id | |
# Output is sorted on device class and then device id | |
# Parameters: File name for output | |
# Updates: | |
# | |
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
#!/usr/bin/env python | |
# Author: Jane Curry | |
# Date Sept 11th 2012 | |
# Description: Output all devices to a file supplied by user | |
# Output gives id, title and manageIp | |
# Output is sorted on device id | |
# Parameters: File name for output | |
# Updates: | |
# | |
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
#!/usr/bin/env python | |
# | |
# Author: Jane Curry | |
# Date October 7th, 2013 | |
# Description: Generates Zenoss event using JSON API | |
# Lines at top may need modifying for Zenoss server, port and https | |
# Requires parameters for device, severity, evclasskey and summary where summary in format | |
# User=jane Rig=Rig3 Host=testdb33 App=DBS stop | |
# Updates: October 21st 2013 | |
# Modified user parameter to gather info directly from environment if ommited from summary string |
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 program is part of Zenoss Core, an open source monitoring platform. | |
# Copyright (C) 2007, 2009 Zenoss Inc. | |
# | |
# This program is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License version 2 as published by | |
# the Free Software Foundation. | |
# | |
# For complete information please visit: http://www.zenoss.com/oss/ |
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
############################################################################## | |
# | |
# Copyright (C) Zenoss, Inc. 2016, all rights reserved. | |
# | |
# This content is made available according to terms specified in | |
# License.zenoss under the directory where your Zenoss product is installed. | |
# | |
############################################################################## | |
#!/opt/zenoss/bin/python |
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 | |
# Driven by | |
# /z/scripts/snmpGetHrStorageAllocationUnits.sh ${device/manageIp} ${device/zSnmpCommunity} ${device/zSnmpVer} ${here/snmpindex} | |
set -x | |
# Nagios return codes | |
STATE_OK=0 | |
STATE_WARNING=1 | |
STATE_CRITICAL=2 | |
STATE_UNKNOWN=3 |
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 | |
# Author: Jane Curry | |
# Date: May 1st 2013 | |
# Description: Uses twisted SNMP to get process data from Host Resources MIB | |
# searching for supplied string (currently in attributes). | |
# Delivers process count, total mem used and total cpu used | |
# Requires parameters: | |
# -H <IP addr> -V <snmp ver> -c <community> -p <string in Path> -a <string in attrs> -v (for verbose} | |
# eg. -H 10.0.0.125 -V v2c -c public -p "/var/run/vmnet-netifup" | |
# Updated: April 14th, 2014 |
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 | |
# Author: Jane Curry | |
# Date: October 28th, 2016 | |
# Description: Takes a process name as a parameter and delivers | |
# all devices running that process | |
# Note that strictly the process parameter is a "Process Class name" | |
# - check your Process definitions from INFRASTRUCTURE -> Processes | |
# Also may take output file parameter - default is /tmp/get_devices_with_process.out | |
# Requires parameter: | |
# -p <process> |
OlderNewer