Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
nagiosgraph_-_konfiguration [2015/07/23 08:40] admin [nagiosgraph.conf] |
nagiosgraph_-_konfiguration [2016/03/08 16:29] (aktuell) admin [nagiosgraph.conf] |
||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
Um die Graphen von Nagiosgraph etwas optisch ansprechender zu gestalten, sind folgende Konfigurationen sinnvoll. | Um die Graphen von Nagiosgraph etwas optisch ansprechender zu gestalten, sind folgende Konfigurationen sinnvoll. | ||
- | ==== nagiosgraph.conf ==== | + | ===== nagiosgraph.conf ===== |
- | In der ''nagiosgraph.conf'' sollte das rrdoptsfile konfiguriert werden, um Service-bezogen zusätzliche RRD-Optionen konfigurieren zu können. | + | In der ''nagiosgraph.conf'' sollte das rrdoptsfile konfiguriert werden, um Service-bezogen zusätzliche RRD-Optionen konfigurieren zu können. Außerdem wird definiert, welche Werte als AREA dargestellt werden. Darüber hinaus kann für einzelne Service mit "lineformat" eine spezielle Darstellung (abweichend vom Default) gewählt werden. |
- | Außerdem werden verschiedene Werte als AREA dargestellt. | + | |
<code bash> | <code bash> | ||
# ... vi /usr/local/nagiosgraph/etc/nagiosgraph.conf | # ... vi /usr/local/nagiosgraph/etc/nagiosgraph.conf | ||
Zeile 11: | Zeile 11: | ||
# ... | # ... | ||
plotasAREA = idle,data;system,data;user,data;nice,data;cpu_prct_used,data;storagesize,data;storageused,data | plotasAREA = idle,data;system,data;user,data;nice,data;cpu_prct_used,data;storagesize,data;storageused,data | ||
+ | # ... | ||
+ | lineformat = warn=LINE1,D0D050;crit=LINE1,D05050;storagesize,data=AREA,AFECEDcc;storageused,data=AREA,2175D9dd;result,data=AREA,FF7D00aa | ||
+ | # ... | ||
+ | </code> | ||
+ | |||
+ | Eine erweiterte 'lineformat' Konfiguration sieht dann wie folgt aus: | ||
+ | <code bash> | ||
+ | # ... vi /usr/local/nagiosgraph/etc/nagiosgraph.conf | ||
+ | # ... | ||
+ | lineformat = warn=LINE1,D0D050;crit=LINE1,D05050;storagesize,data=AREA,AFECEDcc; | ||
+ | storageused,data=AREA,2175D9dd;result,data=AREA,FF7D00aa;centera_capacity,max=AREA,AFECEDcc; | ||
+ | centera_capacity,data=AREA,2175D9dd;datastore_usage,data=AREA,2175D9ff;datastore_usage,max=AREA,AFECEDaa; | ||
+ | signalquality,data=LINE2,2211A0cc;NUMSVCWARN,data=AREA,FFFF00dd,STACK;NUMSVCCRIT,data=AREA,FF0000dd,STACK; | ||
+ | NUMSVCUNKN,data=AREA,FFAB00dd,STACK;NUMHSTCHECKED,data=LINE2,002A8Fcc;NUMSVCCHECKED,data=AREA,96E78Add; | ||
+ | NUMSVCPSVCHK5M,data=AREA,77AAEEcc;vnxreadio,data=AREA,87cefacc,STACK;vnxwriteio,data=AREA,00008Bcc,STACK; | ||
+ | ISIdiskused,max=AREA,AFECEDcc;ISIdiskused,data=AREA,2175D9dd;ISInetin,data=AREA,00CF00cc; | ||
+ | ISInetout,data=AREA,002A97cc | ||
# ... | # ... | ||
</code> | </code> | ||
Zeile 28: | Zeile 45: | ||
service=DD Ops CIFS&db=DDcifsOps,data&db=DDcifsOps,warn&db=DDcifsOps,crit | service=DD Ops CIFS&db=DDcifsOps,data&db=DDcifsOps,warn&db=DDcifsOps,crit | ||
service=DD Ops NFS&db=DDnfsOps,data&db=DDnfsOps,warn&db=DDnfsOps,crit | service=DD Ops NFS&db=DDnfsOps,data&db=DDnfsOps,warn&db=DDnfsOps,crit | ||
- | service=DD MTree: <mtree-name>&db=DDmtreeGBtotal,data&db=DDmtreeGBtotal,warn&db=DDmtreeGBtotal,crit&db=DDmtreeGB24h,data&db=DDmtreeGB7d | + | service=DD MTree: backup&db=DDmtreeGBtotal,data&db=DDmtreeGBtotal,warn&db=DDmtreeGBtotal,crit&db=DDmtreeGB24h,data&db=DDmtreeGB7d |
# ... | # ... | ||
</code> | </code> | ||
+ | |||
+ | ===== labels.conf ===== | ||
+ | Für sprechendere Anzeigen in der Graph-Legende können entsprechende Einträge in der ''labels.conf'' gemacht werden. | ||
+ | |||
+ | <code bash> | ||
+ | #vi /usr/local/nagiosgraph/etc/labels.conf | ||
+ | # ... | ||
+ | # - loghost2nagios.pl | ||
+ | Laufzeit,data=Verarbeitungszeit Loghost | ||
+ | # - check_snmp_load.pl | ||
+ | LoadAVG,load1= 1min AVG | ||
+ | LoadAVG,load5= 5min AVG | ||
+ | LoadAVG,load15=15min AVG | ||
+ | # - check_disk.pl | ||
+ | storagesize,data=Speicher gesamt | ||
+ | storageused,data=Speicher genutzt | ||
+ | # - check_emc_dd.pl | ||
+ | DDcpu,data=DD CPU Usage (%) | ||
+ | DDcomp7d,data=DD Compression Factor (last 7d) | ||
+ | DDcomp24h,data=DD Compression Factor (last 24h) | ||
+ | DDdiskused,data=DD Disk Usage | ||
+ | DDfsavail,data=DD Filesystem Available | ||
+ | DDcifsOps,data=DD Ops CIFS | ||
+ | DDnfsOps,data=DD Ops NFS | ||
+ | DDReplReceivedBytes,data=DD Replication Received Bytes | ||
+ | DDReplSentBytes,data=DD Replication Sent Bytes | ||
+ | DDReplSentBytesPrecomp,data=DD Replication Sent Bytes PreCompress | ||
+ | DDmtreeGBtotal,data=DD MTree GB PreComp (total) | ||
+ | DDmtreeGB24h,data=DD MTree GB PreComp (last 24h) | ||
+ | DDmtreeGB7d,data=DD MTree GB PreComp (last week) | ||
+ | #- check_emc_vnx.pl | ||
+ | vnxsumio,data=VNX total IO/s | ||
+ | vnxreadio,data=VNX read IO/s | ||
+ | vnxwriteio,data=VNX write IO/s | ||
+ | vnxspload,data=VNX SP Load (%) | ||
+ | </code> | ||
+ | |||
+ | ===== rrdopts.conf ===== | ||
+ | Für die richtige Darstellung der Zahlenwerte bei Speichergrößen und Transferraten (MB, GB, TB, MBit, GBit usw) muss dem rrdtool mitgeteilt werden, dass es sich um Zahlen mit einer 1024er Basis handelt. | ||
+ | Genauso kann in der 'rrdopts.conf'' konfiguriert werden, dass bestimmte werde nicht mit der 1000er Umrechnung (Mega, Giga...) angezeigt werden, sondern der absolute Wert gezeigt wird. | ||
+ | |||
+ | <code bash> | ||
+ | # vi /usr/local/nagiosgraph/etc/rrdopts.conf | ||
+ | # ... | ||
+ | # - check_disk.pl | ||
+ | Diskspace C:=-l 0 -b 1024 | ||
+ | Diskspace D:=-l 0 -b 1024 | ||
+ | Diskspace E:=-l 0 -b 1024 | ||
+ | Diskspace /=-l 0 -b 1024 | ||
+ | Diskspace /opt=-l 0 -b 1024 | ||
+ | Diskspace /var=-l 0 -b 1024 | ||
+ | # - check_emc_vnx.pl | ||
+ | IO per sec=-X 0 | ||
+ | # - check_emc_dd.pl | ||
+ | DD Ops CIFS=-X 0 | ||
+ | DD Ops NFS=-X 0 | ||
+ | DD Disk Usage=-l 0 -b 1024 | ||
+ | DD Filesystem Available=-l 0 -b 1024 | ||
+ | DD MTree: backup=-l 0 -b 1024 | ||
+ | </code> | ||
+ | |||
+ | Über weitere Optionen können auch die Farben oder der Titel angepasst werden. | ||
+ | |||
+ | <code bash> | ||
+ | # ... | ||
+ | # vi /usr/local/nagiosgraph/etc/rrdopts.conf | ||
+ | MySQL=--border 1 --color BACK#cccccc | ||
+ | Syslog=--color BACK#ffffff --color CANVAS#eeeeee --color FONT#000000 -t LOGHOST | ||
+ | #... | ||
+ | </code> | ||
+ | Eine Übersicht möglicher Optionen findet sich unter: https://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html | ||