Dies ist eine alte Version des Dokuments!
Um die Graphen von Nagiosgraph etwas optisch ansprechender zu gestalten, sind folgende Konfigurationen sinnvoll.
In der nagiosgraph.conf
sollte das rrdoptsfile konfiguriert werden, um Service-bezogen zusätzliche RRD-Optionen konfigurieren zu können.
Außerdem werden verschiedene Werte als AREA dargestellt.
# ... vi /usr/local/nagiosgraph/etc/nagiosgraph.conf # ... rrdoptsfile=/usr/local/nagiosgraph/etc/rrdopts.conf # ... plotasAREA = idle,data;system,data;user,data;nice,data;cpu_prct_used,data;storagesize,data;storageused,data # ...
In der datasetdb.conf
werden die Datenquellen konfiguiert. Hier kann dann auch „entschieden“ werden, ob alle perfdata-Werte zur Anzeige kommen - und in welcher Reihenfolge (bei plotasAREA wichtig). Dies ist natürlich abhängig von den perdata-Werten und damit von die Plugins, die die Werte liefern.
# ... vi /usr/local/nagiosgraph/etc/datasetdb.conf # ... # - check_disk.pl service=Disk_C&db=storagesize,data&db=storageused,data&db=storageused,crit&db=storageused,warn # - check_emc_dd.pl service=DD CPU&db=DDcpu,data&db=DDcpu,warn&db=DDcpu,crit service=DD Compression Factor&db=DDcomp7d,data&db=DDcomp7d,warn&db=DDcomp7d,crit&db=DDcomp24h,data service=DD Disk Usage&db=DDdiskused,max&db=DDdiskused,data&db=DDdiskused,warn&db=DDdiskused,crit service=DD Filesystem Available&db=DDfsavail,data&db=DDfsavail,warn&db=DDfsavail,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 MTree: <mtree-name>&db=DDmtreeGBtotal,data&db=DDmtreeGBtotal,warn&db=DDmtreeGBtotal,crit&db=DDmtreeGB24h,data&db=DDmtreeGB7d # ...
Für sprechendere Anzeigen in der Graph-Legende können entsprechende Einträge in der labels.conf
gemacht werden.
#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 (%)