Permalink
Browse files

Oracle Database 2.0

  • Loading branch information...
1 parent 310f6ae commit ddbd8db9edbf2b329f9ef6d3ef6fcb21d23bc133 @mattray mattray committed Oct 1, 2010
View
4 ZenPacks.RomanTykhonov.OracleDB/ZenPacks/RomanTykhonov/OracleDB/__init__.py
@@ -15,7 +15,7 @@ class ZenPack(ZenPackBase):
packZProperties = [
('zOracleDBInstance','hpqc','string'),
('zOracleUser','sys', 'string'),
- ('zOraclePass','password','string'),
- ('zOracleHome','/u01/app/oracle/product/11.2.0/client_1','string'),
+ ('zOraclePass','','password'),
+ ('zOracleHome','/opt/oracle/client','string'),
]
View
19 ZenPacks.RomanTykhonov.OracleDB/ZenPacks/RomanTykhonov/OracleDB/libexec/oracle_status.sh 100644 → 100755
@@ -2,36 +2,35 @@
####################
# Roman@Tikhonov.org
####################
-#Sitronics
-#2009
#
#export CONNECT_STRING="sys/sys@DB as sysdba"
-export ORACLE_BASE=/opt/zenoss/oracle
+#export ORACLE_BASE=/opt/oracle
export CONNECT_STRING=$1
if [ x$2 == x ]
- then export ORACLE_HOME=$ORACLE_BASE/client
+ then echo First Parameter is connection string to DB and Second parameter have to be ORACLE_HOME variable && exit 1
else export ORACLE_HOME=$2
fi
export ORACLE_SID=OMEGA #fake
export PATH=$ORACLE_HOME/bin:$PATH
+RAND=$$
#USAGE : COMMAND CONNECT_STRING oracle_home
-sqlplus -s /nolog <<-EOF > /tmp/sql_out.temp
+sqlplus -s /nolog <<-EOF > /tmp/${RAND}.sql_out.temp
connect $CONNECT_STRING
set HEADING OFF
set PAGESIZE 0
set linesize 120
col metric_name format a40
col value format 999999990.9999
-select metric_name||':' Parameter,value from SYS.V\$SYSMETRIC where metric_id in (2003,2004,2006,2016,2018,2057,2067,2071,2075,2098,2101,2102,2103,2107,2108,2114,2135) and group_id=2 order by Parameter;
+select metric_name||':' Parameter,value from V\$SYSMETRIC where metric_id in (2003,2004,2006,2016,2018,2057,2067,2071,2075,2098,2101,2102,2103,2107,2108,2114,2135) and group_id=2 order by Parameter;
EOF
-sed -e 's/:\+\s\+/:/' -e 's/ /_/g' -e '/^$/d' -e 's/[(%)]//g' -e '/^1/d' -e 's/[(*)]// ' /tmp/sql_out.temp > /tmp/sql_out.temp.1
+sed -e 's/:\+\s\+/:/' -e 's/ /_/g' -e '/^$/d' -e 's/[(%)]//g' -e '/^1/d' -e 's/[(*)]// ' /tmp/${RAND}.sql_out.temp > /tmp/${RAND}.sql_out.temp.1
-sed -ni 'H;${x;s/\n/ /g;p}' /tmp/sql_out.temp.1
+sed -ni 'H;${x;s/\n/ /g;p}' /tmp/${RAND}.sql_out.temp.1
-cat /tmp/sql_out.temp.1
-rm /tmp/sql_out.*
+cat /tmp/${RAND}.sql_out.temp.1
+rm /tmp/${RAND}.sql_out.*
View
19 ...omanTykhonov.OracleDB/ZenPacks/RomanTykhonov/OracleDB/libexec/oracle_status_additional.sh 100644 → 100755
@@ -2,24 +2,19 @@
####################
# Roman@Tikhonov.org
####################
-#Sitronics
-#2009
#
export CONNECT_STRING=$1
-#export CONNECT_STRING="sys/sys@DB as sysdba"
-export ORACLE_BASE=/opt/zenoss/oracle
if [ x$2 == x ]
- then export ORACLE_HOME=$ORACLE_BASE/client
+ then echo First Parameter is connection string to DB and Second parameter have to be ORACLE_HOME variable && exit 1
else export ORACLE_HOME=$2
fi
export ORACLE_SID=OMEGA #fake
export PATH=$ORACLE_HOME/bin:$PATH
+RAND=$$
-#USAGE : COMMAND CONNECT_STRING
-
-sqlplus -s /nolog <<-EOF > /tmp/sql_add.temp
+sqlplus -s /nolog <<-EOF > /tmp/${RAND}.sql_add.temp
connect $CONNECT_STRING
set HEADING OFF
@@ -103,8 +98,8 @@ EOF
-sed -e '/^$/d' -e '/^[123456789]/d' -e 's/+/ASMVOLUME-/g' -e 's/\//-/g' -e 's/--/-/g' -e 's/ORA-12541:/ListenerIsOut:1 / ' /tmp/sql_add.temp > /tmp/sql_add.temp.1
-sed -ni 'H;${x;s/\n/ /g;p}' /tmp/sql_add.temp.1
+sed -e '/^$/d' -e '/^[123456789]/d' -e 's/+/ASMVOLUME-/g' -e 's/\//-/g' -e 's/--/-/g' -e 's/ORA-12541:/ListenerIsOut:1 / ' /tmp/${RAND}.sql_add.temp > /tmp/${RAND}.sql_add.temp.1
+sed -ni 'H;${x;s/\n/ /g;p}' /tmp/${RAND}.sql_add.temp.1
-cat /tmp/sql_add.temp.1
-rm /tmp/sql_add.*
+cat /tmp/${RAND}.sql_add.temp.1
+rm /tmp/${RAND}.sql_add.*
View
18 ...OracleDB/ZenPacks/RomanTykhonov/OracleDB/libexec/oracle_status_additional_userfriendly.sh 100644 → 100755
@@ -2,24 +2,19 @@
####################
# Roman@Tikhonov.org
####################
-#Sitronics
-#2009
#
export CONNECT_STRING=$1
-#export CONNECT_STRING="sys/sys@DB as sysdba"
-export ORACLE_BASE=/opt/zenoss/oracle
if [ x$2 == x ]
- then export ORACLE_HOME=$ORACLE_BASE/client
+ then echo First Parameter is connection string to DB and Second parameter have to be ORACLE_HOME variable && exit 1
else export ORACLE_HOME=$2
fi
export ORACLE_SID=OMEGA #fake
export PATH=$ORACLE_HOME/bin:$PATH
+RAND=$$
-#USAGE : COMMAND CONNECT_STRING
-
-sqlplus -s /nolog <<-EOF > /tmp/sql_add.temp
+sqlplus -s /nolog <<-EOF > /tmp/${RAND}.sql_add.temp
connect $CONNECT_STRING
set HEADING OFF
@@ -103,8 +98,7 @@ EOF
-sed -e '/^$/d' -e '/^[123456789]/d' -e 's/+/ASMVOLUME-/g' -e 's/\//-/g' -e 's/--/-/g' -e 's/ORA-12541:/ListenerIsOut:1 / ' /tmp/sql_add.temp > /tmp/sql_add.temp.1
-#sed -ni 'H;${x;s/\n/ /g;p}' /tmp/sql_add.temp.1
+sed -e '/^$/d' -e '/^[123456789]/d' -e 's/+/ASMVOLUME-/g' -e 's/\//-/g' -e 's/--/-/g' -e 's/ORA-12541:/ListenerIsOut:1 / ' /tmp/${RAND}.sql_add.temp > /tmp/${RAND}.sql_add.temp.1
-cat /tmp/sql_add.temp.1
-rm /tmp/sql_add.*
+cat /tmp/${RAND}.sql_add.temp.1
+rm /tmp/${RAND}.sql_add.*
View
18 ...anTykhonov.OracleDB/ZenPacks/RomanTykhonov/OracleDB/libexec/oracle_status_userfriendly.sh 100644 → 100755
@@ -2,36 +2,34 @@
####################
# Roman@Tikhonov.org
####################
-#Sitronics
-#2009
#
#export CONNECT_STRING="sys/sys@DB as sysdba"
-export ORACLE_BASE=/opt/zenoss/oracle
+#export ORACLE_BASE=/opt/oracle
export CONNECT_STRING=$1
if [ x$2 == x ]
- then export ORACLE_HOME=$ORACLE_BASE/client
+ then echo First Parameter is connection string to DB and Second parameter have to be ORACLE_HOME variable && exit 1
else export ORACLE_HOME=$2
fi
export ORACLE_SID=OMEGA #fake
export PATH=$ORACLE_HOME/bin:$PATH
+RAND=$$
#USAGE : COMMAND CONNECT_STRING oracle_home
-sqlplus -s /nolog <<-EOF > /tmp/sql_out.temp
+sqlplus -s /nolog <<-EOF > /tmp/${RAND}.sql_out.temp
connect $CONNECT_STRING
set HEADING OFF
set PAGESIZE 0
set linesize 120
col metric_name format a40
col value format 999999990.9999
-select metric_name||':' Parameter,value from SYS.V\$SYSMETRIC where metric_id in (2003,2004,2006,2016,2018,2057,2067,2071,2075,2098,2101,2102,2103,2107,2108,2114,2135) and group_id=2 order by Parameter;
+select metric_name||':' Parameter,value from V\$SYSMETRIC where metric_id in (2003,2004,2006,2016,2018,2057,2067,2071,2075,2098,2101,2102,2103,2107,2108,2114,2135) and group_id=2 order by Parameter;
EOF
-sed -e 's/:\+\s\+/:/' -e 's/ /_/g' -e '/^$/d' -e 's/[(%)]//g' -e '/^1/d' -e 's/[(*)]// ' /tmp/sql_out.temp > /tmp/sql_out.temp.1
+sed -e 's/:\+\s\+/:/' -e 's/ /_/g' -e '/^$/d' -e 's/[(%)]//g' -e '/^1/d' -e 's/[(*)]// ' /tmp/${RAND}.sql_out.temp > /tmp/${RAND}.sql_out.temp.1
-sed -ni 'H;${x;s/\n/ /g;p}' /tmp/sql_out.temp.1
-cat /tmp/sql_out.temp.1
-rm /tmp/sql_out.*
+cat /tmp/${RAND}.sql_out.temp.1
+rm /tmp/${RAND}.sql_out.*
View
7 ZenPacks.RomanTykhonov.OracleDB/ZenPacks/RomanTykhonov/OracleDB/libexec/tns_test.sh 100644 → 100755
@@ -2,19 +2,14 @@
####################
# Roman@Tikhonov.org
####################
-#Sitronics
-#2009
#
-#
-export ORACLE_BASE=/opt/zenoss/oracle
if [ x$2 == x ]
- then export ORACLE_HOME=$ORACLE_BASE/client
+ then echo First Parameter is ORACLE_SID and Second parameter have to be ORACLE_HOME variable && exit 1
else export ORACLE_HOME=$2
fi
export ORACLE_SID=XE #fake
export PATH=$PATH:$ORACLE_HOME/bin
-[ x$1 == x ] && echo USAGE: $0 "TNS_NAME" && exit 0
$ORACLE_HOME/bin/tnsping $1 10|tail -10 |awk -F " " 'BEGIN{MAX=0;MIN=0;i=0;SUM=0;ERROR=0} {if ($1=="OK") {ms=split($(NF-1),array,"\x28");i++;array2[i]=array[2]; } else {ERROR++}} END{for (i=1;i<=10;i++) {if (array2[i]<MIN){MIN=array2[i]}; if (array2[i]>MAX){MAX=array2[i]};SUM=array2[i]+SUM}; print "AVER:" SUM/10 " MAX:" MAX " MIN:" MIN " ERROR:" ERROR}'
View
64 ZenPacks.RomanTykhonov.OracleDB/ZenPacks/RomanTykhonov/OracleDB/modeler/plugins/oracle_ts.py
@@ -0,0 +1,64 @@
+###########################################################################
+#
+# This program is part of Zenoss Core, an open source monitoring platform.
+# Copyright (C) 2007, 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/
+#
+###########################################################################
+
+__doc__ = """memory
+Maps oracle tablespace layout
+"""
+
+import sys
+
+sys.path.append('/usr/local/zenoss/zenoss')
+
+from Products.DataCollector.plugins.CollectorPlugin import LinuxCommandPlugin
+from Products.DataCollector.plugins.DataMaps import ObjectMap
+
+#MULTIPLIER = {
+# 'kB' : 1024,
+# 'MB' : 1024 * 1024,
+# 'b' : 1
+#}
+
+
+class memory(LinuxCommandPlugin):
+ maptype = "FileSystemMap"
+ command = 'cat /tmp/oracle_ts'
+ compname = "os"
+ relname = "filesystems"
+ modname = "Products.ZenModel.FileSystem"
+
+
+ def process(self, device, results, log):
+ log.info('Collecting oracle tablespace for device %s' % device.id)
+
+ rm = self.relMap()
+ maps = []
+
+ for line in results.split("\n"):
+ vals = line.split(':')
+ if len(vals) != 2:
+ continue
+
+ name, value = vals
+ vals = value.split()
+ if len(vals) != 2:
+ continue
+
+ value, unit = vals
+ size = int(value)
+
+# if name == 'MemTotal':
+# maps.append(ObjectMap({"totalMemory": size}, compname="hw"))
+# if name == 'SwapTotal':
+# maps.append(ObjectMap({"totalSwap": size}, compname="os"))
+ maps.append(ObjectMap({"totalMemory": size}, compname="hw"))
+ return maps
View
87 ZenPacks.RomanTykhonov.OracleDB/ZenPacks/RomanTykhonov/OracleDB/objects/objects.xml
@@ -2,6 +2,9 @@
<objects>
<!-- ('', 'zport', 'dmd', 'Devices', 'Server', 'rrdTemplates', 'ORACLE_INSTANCE') -->
<object id='/zport/dmd/Devices/Server/rrdTemplates/ORACLE_INSTANCE' module='Products.ZenModel.RRDTemplate' class='RRDTemplate'>
+<property id='zendoc' type='string'>
+Oracle Base Perfomance and Monitoring Parameters from GV$SYSMETRIC
+</property>
<property type="text" id="description" mode="w" >
Oracle Base Perfomance and Monitoring Parameters from GV$SYSMETRIC
</property>
@@ -176,10 +179,10 @@ True
</tomanycont>
<tomanycont id='thresholds'>
<object id='Cluster get block time' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
-<property type="lines" id="dsnames" mode="w" >
+<property label="DataPoints" type="lines" id="dsnames" mode="w" >
['oracle_status.sh_Global_Cache_Average_CR_Get_Time']
</property>
-<property type="boolean" id="enabled" mode="w" >
+<property label="Enabled" type="boolean" id="enabled" mode="w" >
True
</property>
<property type="string" id="minval" mode="w" >
@@ -199,10 +202,10 @@ True
</property>
</object>
<object id='Database_Time_Ratio' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
-<property type="lines" id="dsnames" mode="w" >
+<property label="DataPoints" type="lines" id="dsnames" mode="w" >
['oracle_status.sh_Database_Wait_Time_Ratio']
</property>
-<property type="boolean" id="enabled" mode="w" >
+<property label="Enabled" type="boolean" id="enabled" mode="w" >
True
</property>
<property type="string" id="minval" mode="w" >
@@ -222,10 +225,10 @@ True
</property>
</object>
<object id='Inter-Cluster ERRORS' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
-<property type="lines" id="dsnames" mode="w" >
+<property label="DataPoints" type="lines" id="dsnames" mode="w" >
['oracle_status.sh_Global_Cache_Blocks_Lost']
</property>
-<property type="boolean" id="enabled" mode="w" >
+<property label="Enabled" type="boolean" id="enabled" mode="w" >
True
</property>
<property type="string" id="minval" mode="w" >
@@ -245,10 +248,10 @@ True
</property>
</object>
<object id='Shared Pool Free' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
-<property type="lines" id="dsnames" mode="w" >
+<property label="DataPoints" type="lines" id="dsnames" mode="w" >
['oracle_status.sh_Shared_Pool_Free_']
</property>
-<property type="boolean" id="enabled" mode="w" >
+<property label="Enabled" type="boolean" id="enabled" mode="w" >
True
</property>
<property type="string" id="minval" mode="w" >
@@ -268,10 +271,10 @@ True
</property>
</object>
<object id='User_Transaction_Per_Sec' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
-<property type="lines" id="dsnames" mode="w" >
+<property label="DataPoints" type="lines" id="dsnames" mode="w" >
['oracle_status.sh_User_Transaction_Per_Sec']
</property>
-<property type="boolean" id="enabled" mode="w" >
+<property label="Enabled" type="boolean" id="enabled" mode="w" >
True
</property>
<property type="string" id="minval" mode="w" >
@@ -959,6 +962,9 @@ AVERAGE
</object>
<!-- ('', 'zport', 'dmd', 'Devices', 'Server', 'rrdTemplates', 'ORACLE_INSTANCE_ADDITIONAL') -->
<object id='/zport/dmd/Devices/Server/rrdTemplates/ORACLE_INSTANCE_ADDITIONAL' module='Products.ZenModel.RRDTemplate' class='RRDTemplate'>
+<property id='zendoc' type='string'>
+Oracle Additional Perfomance ans Monitoring Parameters from different views.
+</property>
<property type="text" id="description" mode="w" >
Oracle Additional Perfomance ans Monitoring Parameters from different views.
</property>
@@ -1024,103 +1030,127 @@ GAUGE
True
</property>
</object>
-<object id='ASM-REDO3-Percent_Used' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='BackgroundProcesses' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='ASM-REDO4-Percent_Used' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='BackgroundProcessesActive' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='BackgroundProcesses' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='BackgroundProcessesInactive' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='BackgroundProcessesActive' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='BlockingSessions' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='BackgroundProcessesInactive' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='DbaInvalidObjects' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='BlockingSessions' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='FlashReclaimableSpacePercent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='DbaInvalidObjects' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='Flash_volume-ASMVOLUME-BACKUP-UsedPercent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='FlashReclaimableSpacePercent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='ListenerIsOut' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='Flash_volume-ASMVOLUME-BACKUP-UsedPercent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='SystemUsers' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='ListenerIsOut' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='SystemUsersActive' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='SystemUsers' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='SystemUsersInactive' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='SystemUsersActive' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='TBS-RDIDX-FILE_ID-10-Used_Percent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
<property type="boolean" id="isrow" mode="w" >
True
</property>
</object>
-<object id='SystemUsersInactive' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<object id='TBS-RDTAB-FILE_ID-9-Used_Percent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
+GAUGE
+</property>
+<property type="boolean" id="isrow" mode="w" >
+True
+</property>
+</object>
+<object id='TBS-SCPIDX-FILE_ID-8-Used_Percent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
+GAUGE
+</property>
+<property type="boolean" id="isrow" mode="w" >
+True
+</property>
+</object>
+<object id='TBS-SCPLOG-FILE_ID-7-Used_Percent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
+<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
+GAUGE
+</property>
+<property type="boolean" id="isrow" mode="w" >
+True
+</property>
+</object>
+<object id='TBS-SCPTAB-FILE_ID-6-Used_Percent' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
GAUGE
</property>
@@ -1205,10 +1235,10 @@ True
</tomanycont>
<tomanycont id='thresholds'>
<object id='Blocking_Sessions' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
-<property type="lines" id="dsnames" mode="w" >
+<property label="DataPoints" type="lines" id="dsnames" mode="w" >
['oracle_status_additional.sh_BlockingSessions']
</property>
-<property type="boolean" id="enabled" mode="w" >
+<property label="Enabled" type="boolean" id="enabled" mode="w" >
True
</property>
<property type="string" id="maxval" mode="w" >
@@ -2233,6 +2263,9 @@ AVERAGE
</object>
<!-- ('', 'zport', 'dmd', 'Devices', 'Server', 'rrdTemplates', 'TNS_TEST') -->
<object id='/zport/dmd/Devices/Server/rrdTemplates/TNS_TEST' module='Products.ZenModel.RRDTemplate' class='RRDTemplate'>
+<property id='zendoc' type='string'>
+Pinging DB listeners
+</property>
<property type="text" id="description" mode="w" >
Pinging DB listeners
</property>
@@ -2303,10 +2336,10 @@ True
</tomanycont>
<tomanycont id='thresholds'>
<object id='Negative_answer_TNS' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
-<property type="lines" id="dsnames" mode="w" >
+<property label="DataPoints" type="lines" id="dsnames" mode="w" >
['tns_test.sh_ERROR']
</property>
-<property type="boolean" id="enabled" mode="w" >
+<property label="Enabled" type="boolean" id="enabled" mode="w" >
True
</property>
<property type="string" id="minval" mode="w" >
View
4 ZenPacks.RomanTykhonov.OracleDB/setup.py
@@ -3,13 +3,13 @@
# or saved. Do not modify them directly here.
# NB: PACKAGES is deprecated
NAME = "ZenPacks.RomanTykhonov.OracleDB"
-VERSION = "1.4"
+VERSION = "2.0"
AUTHOR = "Roman Tykhonov"
LICENSE = "GPLv2"
NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.RomanTykhonov']
PACKAGES = ['ZenPacks', 'ZenPacks.RomanTykhonov', 'ZenPacks.RomanTykhonov.OracleDB']
INSTALL_REQUIRES = []
-COMPAT_ZENOSS_VERS = '>=2.4'
+COMPAT_ZENOSS_VERS = '>=3.0'
PREV_ZENPACK_NAME = ""
# STOP_REPLACEMENTS
################################

0 comments on commit ddbd8db

Please sign in to comment.