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 subprocess | |
import socket | |
import datetime | |
import re | |
import sys | |
devices = '' | |
device_list = [] |
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 datetime | |
import Globals | |
from Products.ZenUtils.ZenScriptBase import ZenScriptBase | |
dmd = ZenScriptBase(connect=True).dmd | |
zenoss_url = "https://REPLACEURL.COM" | |
collector_file = "/opt/zenmodel/index.html" | |
f = open(collector_file, "w") |
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
location /zenmodel { | |
alias /opt/zenmodel; | |
} |
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
GO = True | |
log = open('/tmp/ZenDMD_Rename.txt', "w") | |
for d in dmd.Devices.Server.getSubDevices(): | |
new_sysname = ((d.snmpSysName).split(".", 1)[0]).lower() | |
if "@" in new_sysname: | |
new_sysname = new_sysname.split("@", 1)[1] | |
if d.id != new_sysname: | |
newid = new_sysname | |
print >>log, "Device ID: " + d.id |
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
__doc__='''Secure24HTTPMonitorDataSource.py | |
Defines datasource for Secure24HTTPMonitor. A slightly modified version of the | |
default HttpMonitor DataSource | |
''' | |
import os | |
import sys | |
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
name: ZenPacks.Secure24.NewNetworkMonitor | |
class_relationships: | |
- newNetworkDevice(FooComponent) 1:MC newNetworkComponent(FooDevice) | |
classes: | |
DEFAULTS: | |
base: [zenpacklib.Component] | |
icon: new_icon.png |
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
from . import zenpacklib | |
zenpacklib.load_yaml() | |
import logging | |
from Products.ZenUtils.Utils import unused | |
from . import schema | |
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
from . import schema | |
class ProgressExtentInfo(schema.ProgressExtentInfo): | |
@property | |
def progressAdminServer(self): | |
return self.progressDatabase.progressAdminServer |
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
getDeviceBayDevice: | |
label: Enclosure | |
label_width: 150 | |
details_display: false | |
renderer: Zenoss.render.default_uid_renderer | |
order: 5 | |
api_only: true | |
api_backendtype: method | |
grid_display: true |
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
nethack on | |
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]' | |
vbell on |
OlderNewer