Professional Documents
Culture Documents
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
// Connectivity Preparation
From Zenoss Server to internet
Outbound http/s (80/443) to update zenoss packages Outbound ssh (22) if zenoss interactive support is desired
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
Dell Servers
Dell Open Manage installed
HP/Compaq Servers
Insight Manager installed
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
// Preparation Testing
Testing SNMP connections from Zenoss server
snmpwalk -v1 -c COMMUNITY HOST ip Should return listing of IP addresses
// Section 2: Administration
What this section will cover:
Detailed Architecture (Review) Controlling Zenoss Daemons Minimal Zenoss for Debugging Backup and Restore Troubleshooting Daemons Escalating Issues and Contacting Support
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
Detailed Architecture
//
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
ZEO
Zope
MySQL
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
10
ZenRRD
zenbackup
ZEO
MySQL
backup_19680101.tgz
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
11
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
12
// Administration Activities
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
13
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
14
ZenDisc Auto-Discovery
ZenModel
Unified Configuration ZEO Model
ICMP
SNMP/SSH/Telnet
WMI
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
15
// Modeling Process
ZenModeler
Collector Plug-ins
ZenModel
Track Changes
interface
service Transports
disk
Normalize Data
SNMP
SSH
Telnet
WMI
Collect Data
80
3601
8080
switch
1 2 3 4 5 6 7 8
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
16
// Controlling Modeling
Plugin Names
zenoss.snmp.InterfaceMap, zenoss.cmd.ifconfig_an Stored in $ZENHOME/Products/DataCollector/plugins
Plugin Selection
zCollectorCollectPlugins - Regular expression that explicitly selects plugins to be run. zCollectorIgnorePlugins - Regular expression that excludes a plugin zTransportPreference - if two plugins perform the same function which one should be used
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
17
zSnmpCommunity
Community that will be used to connect to a device
zSnmpPort
Port to use when connecting to a device
zSnmpTimeout
Timeout in seconds before retransmit of an SNMP command. Should never be over 15 seconds
zSnmpTries
Number of times to retry a command before marking it as failed. On a poor quality link this value should be increased. High end is 4 - 5
zSnmpVer
SNMP version v1 or v2c. V2c must be used if 64-bit counters are being collected. Also v2c allows for bulk walks which improves modeling performance significantly
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
18
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
19
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
20
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
21
zLinks
Any HTML markup evaluated in device context
Performance Templates
Command field evaluated in device context
Event Commands
Evaluated in an event context with device evt == the event dev == the device
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
22
// Using zLinks
zProperty like any other zProperty in /Devices Uses TALES expressions Any HTML text can be added Used for many things
Create link to external management system Insert graph on to front page of device
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
23
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
24
// TALES Activities
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
25
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
26
// Event Architecture
SNMP Traps
ZenActions
Email and Pager Alerts Command Execution Event Aging
Events DB MySQL
ZenEventlog
WMI
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
27
// Begin/End Correlation
Ping Down
Status
Severity = Critical Class = /Status/Ping Device = build.zenoss.loc Severity = Clear Class = /Status/Ping Device = build.zenoss.loc History
Ping Up
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
28
// Classification Process
New Event
Parse Event
Tokenize Syslog
Find Class
Apply Context
Severity = Critical
Insert Event
Status
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
29
Parsed Event
eventClassKey
Transform
Apply Context
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
30
// Event Commands
Event Command
Where: class = /Status/Ping
Ping Down
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
31
apc OBJECT IDENTIFIER ::= { enterprises 318 } products OBJECT IDENTIFIER ::= { apc 1 } apcmgmt OBJECT IDENTIFIER ::= { apc 2 }
zenmib load
upsAdvBatteryCapacity OBJECT-TYPE SYNTAX Gauge ACCESS read-only STATUS mandatory DESCRIPTION "The remaining battery capacity expressed in percent of full capacity." ::= { upsAdvBattery 1 }
SNMP Trap
ZenTrap
Resolve
Event Database
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
32
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
33
// Section 6: ZenCommands
What this section will cover:
ZenCommand Templates Running a ZenCommand ZenCommand API Using ZenPlugins
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
34
// ZenCommand Templates
Data Source
Type = COMMAND Component = unique name on device Event Class = /Cmd/Fail SSH if desired
Data Point
One per monitored output value Make sure that data type is correct
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
35
// Running ZenCommand
ZenCommand
exec /bin/df avail:34554
Remote Box
SSH
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
36
// ZenPlugins
ZenCommand Plugins for Remote Monitoring Must be Installed on Remote Machine Executed over SSH Used for Devices
Outside the Firewall Without proper SNMP Agent
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
37
// ZenCommand Activities
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
38
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
39
// What is SNMP?
Simple Network Management Protocol
As in light weight not easy to understand :)
First Standard Management Protocol Widely implemented on network devices Servers implemented primarily at OS layer
Windows - Pretty OS support. Missing CPU, Memory, Disk I/O Net-SNMP - Good OS support. Varies on platform. Native OS agents vary widely.
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
40
// SNMP Tree
A tree structure like DNS Described by . delimited number sequence Each number in the OID has a corresponding name Schema defined in Management Information Base (MIB) Naming Conventions
RAW OID - .1.3.6.1.2.2.2.1.2 Full Name - iso.org.dod.internet.mib-2.interfaces.ifTable.ifEntry.ifDescr Short hand - SNMPv2-MIB::ifDescr
41
Tables
OID points to a table or table column OID ends with the row index Row indexes are often single numbers Row indexes are sometimes a series of numbers
An IP Address - RFC1213-MIB::ipAdEntAddr.172.16.56.1 An ASCII String - SNMPv2-SMI::enterprises.9600.1.1.5.1.2.6.95.84.111.116.97.108
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
42
// SNMP Tree
mib-2(1)
system(1)
interfaces(2)
sysDescr.0 = linux
sysUpTime.0 = 3 days
ifTable(2)
43
Host Resources
Things like Hardware, File Systems, Processes, and Software
Enterprises
Values defined by companies or other non-standard MIBs Company numbers assigned by IANA
http://www.iana.org/assignments/enterprise-numbers
Common Numbers
IBM = 2, Cisco = 9, HP = 11, Dell = 674, Net-SNMP = 2021 SNMP-Informant = 9600, Zenoss = 14296
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
44
// SNMP Commands
SNMP Get
Pull a single value from an agent Ends with index which often 0 for single item or row for table
SNMP Walk
Steps through the values published by an agent Used to investigate or trouble shoot agent
SNMP Trap
Message sent to management station Has unique OID based identifier Has a series of key value pares
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
45
46
// Performance Daemons
SNMP
ZenCommand Nagios/Cacti
Exec / SSH
XML-RPC
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
47
Device
Device: build
FileSystem
FileSystem: /
ethernetCsmacd
ethernetCsmacd: eth0
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
48
Device
SNMP sysUpTime
/Server/Linux
build.zenoss.loc
Device
SNMP sysUpTime SNMP ssCpuRawSystem SNMP memAvailReal
tilde.zenoss.loc
/Server/Linux/Remote
dev.zenoss.org
FileSystem
SSH disk_usedBlocks
Device
SSH uptime_sysUpTime SSH cpu_ssCpuRawSystem SSH mem_memAvailReal
www.zenoss.com
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
49
// Performance Templates
Data Source
How to collect information: SNMP, COMMAND, XMLRPC
Data Point
Parse Data Source output and assign type information Custom rrd creation command allowed
Threshold
Min / Max applied to Data Points Threshold Event Information
Graph
Combine Data Points into a graph Many graph attributes can be selected If default format doesnt work custom RRD command can be used
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
50
localhost
gate.zenoss.loc
bin/zenperfsnmp
remote1
build.zenoss.loc esx.zenoss.loc dev.zenoss.loc
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
51
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
52
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
53
54
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
55
// Device API
Device Add
/zport/dmd/DeviceLoader?deviceName=build.zenoss.loc&devicePath=/Server
Device Edit
Need to have the path to the device /zport/dmd/Devices/Server/devices/build.zenoss.loc?setLocation=/Maryland
Device Delete
/zport/dmd/Devices/Server/devices/build.zenoss.loc/deleteDevice
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
56
// Using ZenDMD
$ zendmd Welcome to zenoss dmd command shell! use zhelp() to list commands >>> d = find(build.zenoss.loc) >>> d.os.interfaces.objectIds() ['eth0', 'eth1', 'lo', 'sit0', 'vmnet1', 'vmnet8'] >>> for d in dmd.Devices.getSubDevices(): >>> print d.id, d.getManageIp()
DMD
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
57
// Report Plugins
Build any report possible with information in DMD Consists of two parts
Python code to collect information ZPT to display information
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
58
// Creating ZenCommands
ZenCommands implement Nagios and Cacti APIs Input are command line arguments Output is exit code and one line of standard out Standard output line
Nagios = message|key=value[UOM];[warn];[crit];[min];[max] Cacti = key:value key2:value
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
59
// Programming Activities
Copyright 2009 Zenoss, Inc. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA.
60