Being pretty busy the last days with a lot of work, mostly getting some Zabbix servers up & running once again, and also, on the boxes that Zabbix wasn't an option, making a whole make up.
A sample mrtg.cfg file:
Htmldir: /var/www/mrtg
Imagedir: /var/www/mrtg/images
Logdir: /var/www/mrtg/logs
Refresh: 600
XSize[_]: 250
Ysize[_]: 67
Colours[_]: --#7aafff,--#1000ff,--#006600,--#ff00ff
## -----------------------------------------------
Target[local_tcpopen]: `/usr/local/etc/scripts/dataGathering/stat.pl tcpopen`
Options[local_tcpopen]: nopercent,gauge,noinfo,nobanner,noi
Title[local_tcpopen]: Open TCP connections
MaxBytes[local_tcpopen]: 1000000
YLegend[local_tcpopen]: Connections
ShortLegend[local_tcpopen]:
LegendO[local_tcpopen]: Open TCP connections:
Legend2[local_tcpopen]: Connections
PageTop[local_tcpopen]: TCP Open connections
WithPeak[local_tcpopen]:wmy
Legend4[local_tcpopen]: Max number of open TCP connections
## -----------------------------------------------
Target[local_uptime]: `/usr/local/etc/scripts/dataGathering/stat.pl uptime`
Options[local_uptime]: nopercent,gauge,noinfo,nobanner,noi
Title[local_uptime]: Uptime
MaxBytes[local_uptime]: 1000000
YLegend[local_uptime]: Days
ShortLegend[local_uptime]: days
LegendO[local_uptime]: Uptime:
LegendI[local_uptime]:
Legend1[local_uptime]:
Legend2[local_uptime]: Server uptime (in days)
PageTop[local_uptime]: Uptime
WithPeak[local_uptime]: wmy
Legend4[local_uptime]: Server uptime (in days)
## -----------------------------------------------
Target[local_load]: `/usr/local/etc/scripts/dataGathering/stat.pl load`
Options[local_load]: nopercent,gauge,noinfo,nobanner,noi
Title[local_load]: DB server - Load
MaxBytes[local_load]: 100
YLegend[local_load]: Load
ShortLegend[local_load]: Load
LegendO[local_load]: Load:
Legend2[local_load]: load
PageTop[local_load]: Load
WithPeak[local_load]:wmy
Legend4[local_load]: Max system load
## -----------------------------------------------
Target[local_users]: `/usr/local/etc/scripts/dataGathering/stat.pl users`
Options[local_users]: nopercent,gauge,noinfo,nobanner,noi
Title[local_users]: DB server - Number of logged users
MaxBytes[local_users]: 1000
YLegend[local_users]: Users
ShortLegend[local_users]:
LegendO[local_users]:
LegendI[local_users]:
Legend1[local_users]:
Legend2[local_users]:
PageTop[local_users]: Users logged in
WithPeak[local_users]:wmy
Legend4[local_users]: Max number of users logged in
## -----------------------------------------------
Target[local_vol_eth0]: `/usr/local/etc/scripts/dataGathering/netVol.sh eth0`
Options[local_vol_eth0]: nopercent,noinfo,gauge,nobanner
Maxbytes[local_vol_eth0]: 10000000
kMG[local_vol_eth0]: M,G,T,P
Title[local_vol_eth0]: DB server - Incoming on eth0
PageTop[local_vol_eth0]: Volume on eth0
YLegend[local_vol_eth0]: Megabytes
ShortLegend[local_vol_eth0]:o
Legend1[local_vol_eth0]: Incoming
Legend2[local_vol_eth0]: Outgoing
LegendI[local_vol_eth0]: Incoming:
LegendO[local_vol_eth0]: Outgoing:
WithPeak[local_vol_eth0]: wmy
Legend3[local_vol_eth0]: Max incoming
Legend4[local_vol_eth0]: Max outgoing
## -----------------------------------------------
Target[local_perf]: `/usr/local/etc/scripts/dataGathering/getLoad2.sh`
Title[local_perf]: DB server - CPU load & memory stats
#MaxBytes[local_perf]: 1400000
MaxBytes[local_perf]: 100
PageTop[local_perf]: CPU / memory use
Options[local_perf]: noinfo,gauge,nopercent,nobanner
YLegend[local_perf]: Percentage
ShortLegend[local_perf]: %
WithPeak[local_perf]: wmy
Legend1[local_perf]: CPU
Legend2[local_perf]: Memory usage
LegendI[local_perf]: Load:
LegendO[local_perf]: Mem:
## -----------------------------------------------
Target[local_traffic]: `/usr/local/etc/scripts/dataGathering/mrtgstat-net.sh eth0`
Title[local_traffic]: DB server - Traffic analysis
MaxBytes[local_traffic]: 1400000
PageTop[local_traffic]: Traffic analysis on network interface eth0
Options[local_traffic]: bits,noinfo,nopercent,nobanner
YLegend[local_traffic]: eth0 use
WithPeak[local_traffic]: wmy
LegendI[local_traffic]: Incoming:
LegendO[local_traffic]: Outgoing:
Legend1[local_traffic]: Incoming
Legend2[local_traffic]: Outgoing
## -----------------------------------------------
Target[df-root]: `/usr/local/etc/scripts/dataGathering/mrtg-df.sh /`
Options[df-root]: nopercent,nobanner,nolegend,noinfo,integer,gauge
MaxBytes[df-root]: 5162796
kmg[df-root]: KB,MB,GB
Title[df-root]: Disk usage for /
PageTop[df-root]: Disk usage /
YLegend[df-root]: Megabytes
ShortLegend[df-root]:
LegendI[df-root]: avail
LegendO[df-root]: used
Target[df-boot]: `/usr/local/etc/scripts/dataGathering/mrtg-df.sh /boot`
Options[df-boot]: nopercent,nobanner,nolegend,noinfo,integer,gauge
MaxBytes[df-boot]: 101107
kmg[df-boot]: KB,MB,GB
Title[df-boot]: Disk usage for /boot
PageTop[df-boot]: Disk usage /boot
YLegend[df-boot]: Megabytes
ShortLegend[df-boot]:
LegendI[df-boot]: avail
LegendO[df-boot]: used
Target[df-home]: `/usr/local/etc/scripts/dataGathering/mrtg-df.sh /home`
Options[df-home]: nopercent,nobanner,nolegend,noinfo,integer,gauge
MaxBytes[df-home]: 10325780
kmg[df-home]: KB,MB,GB
Title[df-home]: Disk usage for /home
PageTop[df-home]: Disk usage /home
YLegend[df-home]: Megabytes
ShortLegend[df-home]:
LegendI[df-home]: avail
LegendO[df-home]: used
Target[df-tmp]: `/usr/local/etc/scripts/dataGathering/mrtg-df.sh /tmp`
Options[df-tmp]: nopercent,nobanner,nolegend,noinfo,integer,gauge
MaxBytes[df-tmp]: 2063504
kmg[df-tmp]: KB,MB,GB
Title[df-tmp]: Disk usage for /tmp
PageTop[df-tmp]: Disk usage /tmp
YLegend[df-tmp]: Megabytes
ShortLegend[df-tmp]:
LegendI[df-tmp]: avail
LegendO[df-tmp]: used
Target[df-usr]: `/usr/local/etc/scripts/dataGathering/mrtg-df.sh /usr`
Options[df-usr]: nopercent,nobanner,nolegend,noinfo,integer,gauge
MaxBytes[df-usr]: 25806268
kmg[df-usr]: KB,MB,GB
Title[df-usr]: Disk usage for /usr
PageTop[df-usr]: Disk usage /usr
YLegend[df-usr]: Megabytes
ShortLegend[df-usr]:
LegendI[df-usr]: avail
LegendO[df-usr]: used
Target[df-usr-ora]: `/usr/local/etc/scripts/dataGathering/mrtg-df.sh /usr/local/oracle`
Options[df-usr-ora]: nopercent,nobanner,nolegend,noinfo,integer,gauge
MaxBytes[df-usr-ora]: 14769076
kmg[df-usr-ora]: KB,MB,GB
Title[df-usr-ora]: Disk usage for /usr/local/oracle
PageTop[df-usr-ora]: Disk usage /usr/local/oracle
YLegend[df-usr-ora]: Megabytes
ShortLegend[df-usr-ora]:
LegendI[df-usr-ora]: avail
LegendO[df-usr-ora]: used
Target[df-var]: `/usr/local/etc/scripts/dataGathering/mrtg-df.sh /var`
Options[df-var]: nopercent,nobanner,nolegend,noinfo,integer,gauge
MaxBytes[df-var]: 6190664
kmg[df-var]: KB,MB,GB
Title[df-var]: Disk usage for /var
PageTop[df-var]: Disk usage /var
YLegend[df-var]: Megabytes
ShortLegend[df-var]:
LegendI[df-var]: avail
LegendO[df-var]: used
## -----------------------------------------------
Target[local_swap]:`/usr/local/etc/scripts/dataGathering/mrtg-swap.sh`
Unscaled[local_swap]: dwym
MaxBytes[local_swap]: 2799232
Title[local_swap]:Swap memory on server
ShortLegend[local_swap]:
kmg[local_swap]:kB,MB
kilo[local_swap]:1024
YLegend[local_swap]: Swap use
Legend1[local_swap]: Total swap
Legend2[local_swap]: Used swap
LegendI[local_swap]: Total swap:
LegendO[local_swap]: Used swap:
Options[local_swap]: gauge,nopercent,noinfo,nobanner
PageTop[local_swap]:Swap usage
## -----------------------------------------------
Target[local_diskperf-root]: `/usr/local/etc/scripts/dataGathering/mrtg-diskperf-root.sh`
Title[local_diskperf-root]: / (sda9) partition I/O usage
Unscaled[local_diskperf-root]: dwym
MaxBytes[local_diskperf-root]: 100
PageTop[local_diskperf-root]: / (sda9) partition I/O usage
kmg[local_diskperf-root]: KB,MB,GB
LegendI[local_diskperf-root]: Disk I/O KBread/sec:
LegendO[local_diskperf-root]: Disk I/O KBwrite/sec:
Legend1[local_diskperf-root]: Disk I/O KBread/sec
Legend2[local_diskperf-root]: Disk I/O KBwrite/sec
YLegend[local_diskperf-root]: Megabytes
ShortLegend[local_diskperf-root]:
Options[local_diskperf-root]: gauge,nopercent,noinfo,nobanner
Target[local_diskperf-boot]: `/usr/local/etc/scripts/dataGathering/mrtg-diskperf-boot.sh`
Title[local_diskperf-boot]: /boot (sda3) partition I/O usage
Unscaled[local_diskperf-boot]: dwym
MaxBytes[local_diskperf-boot]: 100
PageTop[local_diskperf-boot]: /boot (sda3) partition I/O usage
kmg[local_diskperf-boot]: KB,MB,GB
LegendI[local_diskperf-boot]: Disk I/O KBread/sec:
LegendO[local_diskperf-boot]: Disk I/O KBwrite/sec:
Legend1[local_diskperf-boot]: Disk I/O KBread/sec
Legend2[local_diskperf-boot]: Disk I/O KBwrite/sec
YLegend[local_diskperf-boot]: Megabytes
ShortLegend[local_diskperf-boot]:
Options[local_diskperf-boot]: gauge,nopercent,noinfo,nobanner
Target[local_diskperf-tmp]: `/usr/local/etc/scripts/dataGathering/mrtg-diskperf-tmp.sh`
Title[local_diskperf-tmp]: /tmp (sda6) partition I/O usage
Unscaled[local_diskperf-tmp]: dwym
MaxBytes[local_diskperf-tmp]: 100
PageTop[local_diskperf-tmp]: /tmp (sda6) partition I/O usage
kmg[local_diskperf-tmp]: KB,MB,GB
LegendI[local_diskperf-tmp]: Disk I/O KBread/sec:
LegendO[local_diskperf-tmp]: Disk I/O KBwrite/sec:
Legend1[local_diskperf-tmp]: Disk I/O KBread/sec
Legend2[local_diskperf-tmp]: Disk I/O KBwrite/sec
YLegend[local_diskperf-tmp]: Megabytes
ShortLegend[local_diskperf-tmp]:
Options[local_diskperf-tmp]: gauge,nopercent,noinfo,nobanner
Target[local_diskperf-usr]: `/usr/local/etc/scripts/dataGathering/mrtg-diskperf-usr.sh`
Title[local_diskperf-usr]: /usr (sda5) partition I/O usage
Unscaled[local_diskperf-usr]: dwym
MaxBytes[local_diskperf-usr]: 100
PageTop[local_diskperf-usr]: /usr (sda5) partition I/O usage
kmg[local_diskperf-usr]: KB,MB,GB
LegendI[local_diskperf-usr]: Disk I/O KBread/sec:
LegendO[local_diskperf-usr]: Disk I/O KBwrite/sec:
Legend1[local_diskperf-usr]: Disk I/O KBread/sec
Legend2[local_diskperf-usr]: Disk I/O KBwrite/sec
YLegend[local_diskperf-usr]: Megabytes
ShortLegend[local_diskperf-usr]:
Options[local_diskperf-usr]: gauge,nopercent,noinfo,nobanner
Target[local_diskperf-var]: `/usr/local/etc/scripts/dataGathering/mrtg-diskperf-var.sh`
Title[local_diskperf-var]: /var (sda10) partition I/O usage
Unscaled[local_diskperf-var]: dwym
MaxBytes[local_diskperf-var]: 100
PageTop[local_diskperf-var]: /var (sda10) partition I/O usage
kmg[local_diskperf-var]: KB,MB,GB
LegendI[local_diskperf-var]: Disk I/O KBread/sec:
LegendO[local_diskperf-var]: Disk I/O KBwrite/sec:
Legend1[local_diskperf-var]: Disk I/O KBread/sec
Legend2[local_diskperf-var]: Disk I/O KBwrite/sec
YLegend[local_diskperf-var]: Megabytes
ShortLegend[local_diskperf-var]:
Options[local_diskperf-var]: gauge,nopercent,noinfo,nobanner
Target[local_diskperf-home]: `/usr/local/etc/scripts/dataGathering/mrtg-diskperf-home.sh`
Title[local_diskperf-home]: /home (sda2) partition I/O usage
Unscaled[local_diskperf-home]: dwym
MaxBytes[local_diskperf-home]: 100
PageTop[local_diskperf-home]: /home (sda2) partition I/O usage
kmg[local_diskperf-home]: KB,MB,GB
LegendI[local_diskperf-home]: Disk I/O KBread/sec:
LegendO[local_diskperf-home]: Disk I/O KBwrite/sec:
Legend1[local_diskperf-home]: Disk I/O KBread/sec
Legend2[local_diskperf-home]: Disk I/O KBwrite/sec
YLegend[local_diskperf-home]: Megabytes
ShortLegend[local_diskperf-home]:
Options[local_diskperf-home]: gauge,nopercent,noinfo,nobanner
Target[local_diskperf-usr-oracle]: `/usr/local/etc/scripts/dataGathering/mrtg-diskperf-usr-oracle.sh`
Title[local_diskperf-usr-oracle]: /usr/local/oracle (sda10) partition I/O usage
Unscaled[local_diskperf-usr-oracle]: dwym
MaxBytes[local_diskperf-usr-oracle]: 100
PageTop[local_diskperf-usr-oracle]: /usr/local/oracle (sda10) partition I/O usage
kmg[local_diskperf-usr-oracle]: KB,MB,GB
LegendI[local_diskperf-usr-oracle]: Disk I/O KBread/sec:
LegendO[local_diskperf-usr-oracle]: Disk I/O KBwrite/sec:
Legend1[local_diskperf-usr-oracle]: Disk I/O KBread/sec
Legend2[local_diskperf-usr-oracle]: Disk I/O KBwrite/sec
YLegend[local_diskperf-usr-oracle]: Megabytes
ShortLegend[local_diskperf-usr-oracle]:
Options[local_diskperf-usr-oracle]: gauge,nopercent,noinfo,nobanner
## -----------------------------------------------
# EoF #
Labels: Linux, Monitoring, Network monitoring, Programs