diff --git a/bin/zbx_discover_oradbs b/bin/zbxora_discover_dbs similarity index 93% rename from bin/zbx_discover_oradbs rename to bin/zbxora_discover_dbs index 54f1467..72d09df 100755 --- a/bin/zbx_discover_oradbs +++ b/bin/zbxora_discover_dbs @@ -32,7 +32,7 @@ list_listener() fi } -cat $HOME/etc/$ME.cfg|while read group cluster nodes +cat $HOME/etc/$ME.cfg|grep -v " *#"|while read group cluster nodes do echo nodes $nodes >&2 list_listener "$group" "$cluster" "$nodes" diff --git a/etc/zbx_discover_oradbs.cfg b/etc/zbx_discover_oradbs.cfg deleted file mode 100644 index c7d7a73..0000000 --- a/etc/zbx_discover_oradbs.cfg +++ /dev/null @@ -1,3 +0,0 @@ -customerA clusterA nodeA1.intra.customerA.nl nodeA2.intra.customerA.nl -customerA clusterB nodeB1.intra.customerA.nl nodeB2.intra.customerA.nl -customerA "" srv-ora-001.intra.customerA.nl diff --git a/etc/zbxora_discover_dbs.cfg b/etc/zbxora_discover_dbs.cfg new file mode 100644 index 0000000..3182110 --- /dev/null +++ b/etc/zbxora_discover_dbs.cfg @@ -0,0 +1,12 @@ +# just a blank separated list +# col1 group +# col2 clusterID +# col3- machines that need to be discovered +# conventions are: +# 1) hostname will be {group}_{clusterID}_{dbname} +# 2) hostname will be {group}_{instance_name} when clusterID is "" +# 3) dbname the instance_names without the trailing digit +# so instance orcl1 and orcl2 will form dbname orcl when in cluster +customerA clusterA nodeA1.intra.customerA.nl nodeA2.intra.customerA.nl +customerA clusterB nodeB1.intra.customerA.nl nodeB2.intra.customerA.nl +customerA "" srv-ora-001.intra.customerA.nl diff --git a/zbxora_alertlog_template_zabbix-3.0.xml b/zbxora_alertlog_template_zabbix-3.0.xml new file mode 100644 index 0000000..b6328b6 --- /dev/null +++ b/zbxora_alertlog_template_zabbix-3.0.xml @@ -0,0 +1,200 @@ + + + 3.0 + 2018-02-15T08:52:30Z + + + TEMPLATES + + + + + + diff --git a/zbx_export_templates.xml b/zbxora_template_zabbix-2.0.xml similarity index 100% rename from zbx_export_templates.xml rename to zbxora_template_zabbix-2.0.xml diff --git a/zbxora_template_zabbix-3.0.xml b/zbxora_template_zabbix-3.0.xml new file mode 100644 index 0000000..64d6ec1 --- /dev/null +++ b/zbxora_template_zabbix-3.0.xml @@ -0,0 +1,5168 @@ + + + 3.0 + 2018-02-15T08:50:04Z + + + TEMPLATES + + + + + + + + {template zbxORA:blocked[count].min(10m)}>0 + blocked during > 10m + + 0 + 1 + + 0 + + + + {template zbxORA:fra[usable,pct].timeleft(1h,,0)}<4h + fra loop snel vol(<4h) + + 0 + 3 + aan de hand van de gegevens van afgelopen 6 uur is de schatting dat fra binnen 4 uur volloopt + 0 + + + fra zit vol + {template zbxORA:fra[usable,pct].last()}<2 + + + + + {template zbxORA:fra[usable,pct].last()}<2 + fra zit vol + + 0 + 5 + fra heeft minder dan 2% bruikbare ruimte + 0 + + + + {template zbxORA:db[current_scn].max(2m,{$ZBXORA_SCN_INCREASE})}= +{template zbxORA:db[current_scn].last(0)} + no SCN increase since {$ZBXORA_SCN_INCREASE} + + 0 + 3 + SCN's are not increasing since {$ZBXORA_SCN_INCREASE}. Is this a standby database? Check redo transport and redo apply. + 0 + + + zbxora Connect nodata {HOSTNAME} since {$ZBXORA_NODATA} + {template zbxORA:zbxora[connect,status].nodata({$ZBXORA_NODATA})}<>0 + + + zbxora Connect {HOSTNAME} failed + {template zbxORA:zbxora[connect,status].last(0)}<>0 + + + + + {template zbxORA:zbxora[connect,status].nodata({$ZBXORA_NODATA})}<>0 + zbxora Connect nodata {HOSTNAME} since {$ZBXORA_NODATA} + + 0 + 2 + no info received during a long period + 0 + + + + {template zbxORA:zbxora[connect,status].last(0)}<>0 + zbxora Connect {HOSTNAME} failed + + 0 + 3 + Connect to database failed. Could be any thing from listener down to database down, account locked etc. + 0 + + + zbxora connect {HOSTNAME} failed >{$ZBXORA_CONNECT_FAILED} + {template zbxORA:zbxora[connect,status].last(,{$ZBXORA_CONNECT_FAILED})}<>0 +and +{template zbxORA:zbxora[connect,status].last({$ZBXORA_CONNECT_FAILED})}<>0 + + + + + {template zbxORA:zbxora[connect,status].last(,{$ZBXORA_CONNECT_FAILED})}<>0 +and +{template zbxORA:zbxora[connect,status].last({$ZBXORA_CONNECT_FAILED})}<>0 + zbxora connect {HOSTNAME} failed >{$ZBXORA_CONNECT_FAILED} + + 0 + 4 + failed {$ZBXORA_CONNECT_FAILED} ago and still fails. + 0 + + + + + + zbxora cpu + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + C80000 + 0 + 2 + 0 + + template zbxORA + zbxora[cpu,sys] + + + + 1 + 0 + 00C800 + 0 + 2 + 0 + + template zbxORA + zbxora[cpu,user] + + + + + + zbxora mem + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 00C800 + 0 + 2 + 0 + + template zbxORA + zbxora[mem,maxrss] + + + + + + zbxora query ela + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 00C800 + 0 + 2 + 0 + + template zbxORA + zbxora[query,,,ela] + + + + + + + + zbxora arl_dest + + + 0 + OK + + + 1 + DEFERRED + + + 2 + ERROR + + + 3 + UNK + + + + + zbxora db.openstatus + + + 0 + *unknown* + + + 1 + MOUNTED + + + 2 + READ ONLY + + + 3 + READ WRITE + + + 4 + READ ONLY WITH APPLY + + + + + zbxora rman status + + + 0 + COMPLETED + + + 1 + FAILED + + + 2 + COMPLETED WITH WARNINGS + + + 3 + COMPLETED WITH ERRORS + + + 4 + noinfo + + + 5 + RUNNING + + + 9 + unk + + + + + zbxora[bct,status] + + + 0 + ENABLED + + + 1 + DISABLED + + + 2 + unknown + + + + + zbxora[checks,status] + + + 0 + OK + + + 11 + unreadable + + + 13 + parse error[s] + + + + + zbxora[connect,status] + + + 0 + OK + + + + + zbxora[query,,,status] + + + 0 + OK + + + + +