Benutzer-Werkzeuge

Webseiten-Werkzeuge


nagiosgraph_-_konfiguration

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte Überarbeitung Beide Seiten der Revision
nagiosgraph_-_konfiguration [2015/07/23 10:49]
admin [rrdopts.conf]
nagiosgraph_-_konfiguration [2016/03/08 16:29]
admin [nagiosgraph.conf]
Zeile 3: Zeile 3:
  
 ===== 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 ​werdenDarü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 38:
 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
  
 # ... # ...
Zeile 91: Zeile 101:
 DD Filesystem Available=-l 0 -b 1024 DD Filesystem Available=-l 0 -b 1024
 DD MTree: backup=-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
  
nagiosgraph_-_konfiguration.txt · Zuletzt geändert: 2016/03/08 16:29 von admin