1#
2# Generic template for unix server running NRPE client
3#
4# Global relpace: SHNAME short host name
5#                 LHNAME long host name
6#                 IPADDR IP address
7#                 NRPEOPTS  -n if there is no SSL available
8#                           -M if you are using the Perl version
9
10# Dont forget to set Workdir: correctly first
11
12##########################################################################
13# Globals
14Workdir: /u01/rrdtool
15LogFormat: rrdtool
16routers.cgi*Icon: linux-sm.gif
17#routers.cgi*Icon: aix-sm.gif
18#routers.cgi*Icon: solaris-sm.gif
19routers.cgi*Desc: LHNAME (IPADDR)
20routers.cgi*ShortName: SHNAME
21
22##########################################################################
23# Defaults
24
25routers.cgi*Mode[_]: generic
26
27##########################################################################
28# Targets
29# nrpe agents
30#
31# Load average
32Target[SHNAME-load]: `mrtg-nrpe NRPEOPTS -H LHNAME -v check_load`
33Title[SHNAME-load]: SHNAME Load Average
34MaxBytes[SHNAME-load]: 100
35PageTop[SHNAME-load]: null
36LegendI[SHNAME-load]: load:
37Options[SHNAME-load]: gauge growright noo
38Ylegend[SHNAME-load]: queue
39ShortLegend[SHNAME-load]:  
40Legend1[SHNAME-load]: Load average
41Legend3[SHNAME-load]: Peak load average
42SetEnv[SHNAME-load]: MRTG_INT_DESCR="LoadAvg"
43routers.cgi*Options[SHNAME-load]: fixunit nototal nopercent nomax
44routers.cgi*Icon[SHNAME-load]: list-sm.gif
45routers.cgi*InCompact[SHNAME-load]: no
46
47# CPU usage
48Target[SHNAME-cpu-us]: `mrtg-nrpe NRPEOPTS -H LHNAME -v check_cpu -o 2`
49Title[SHNAME-cpu-us]: SHNAME CPU Activity (user)
50MaxBytes[SHNAME-cpu-us]: 100
51PageTop[SHNAME-cpu-us]: null
52LegendI[SHNAME-cpu-us]: user:
53Options[SHNAME-cpu-us]: gauge growright noo
54Ylegend[SHNAME-cpu-us]: percent
55ShortLegend[SHNAME-cpu-us]: %
56Legend1[SHNAME-cpu-us]: user
57Legend3[SHNAME-cpu-us]: Peak utilisation
58SetEnv[SHNAME-cpu-us]: MRTG_INT_DESCR="CPU"
59routers.cgi*Options[SHNAME-cpu-us]: fixunit nototal nopercent
60routers.cgi*Icon[SHNAME-cpu-us]: chip-sm.gif
61routers.cgi*InMenu[SHNAME-cpu-us]: no
62routers.cgi*InCompact[SHNAME-cpu-us]: yes
63routers.cgi*InSummary[SHNAME-cpu-us]: yes
64routers.cgi*Graph[SHNAME-cpu-us]: CPU total
65
66Target[SHNAME-cpu-sy]: `mrtg-nrpe NRPEOPTS -H LHNAME -v check_cpu -o 3`
67Title[SHNAME-cpu-sy]: SHNAME CPU Activity (system)
68MaxBytes[SHNAME-cpu-sy]: 100
69PageTop[SHNAME-cpu-sy]: null
70LegendI[SHNAME-cpu-sy]: sys:
71Options[SHNAME-cpu-sy]: gauge growright noo
72Ylegend[SHNAME-cpu-sy]: percent
73ShortLegend[SHNAME-cpu-sy]: %
74Legend1[SHNAME-cpu-sy]: system
75Legend3[SHNAME-cpu-sy]: Peak utilisation
76SetEnv[SHNAME-cpu-sy]: MRTG_INT_DESCR="CPU"
77routers.cgi*Options[SHNAME-cpu-sy]: fixunit nototal nopercent
78routers.cgi*Icon[SHNAME-cpu-sy]: chip-sm.gif
79routers.cgi*InMenu[SHNAME-cpu-sy]: no
80routers.cgi*InCompact[SHNAME-cpu-sy]: yes
81routers.cgi*InSummary[SHNAME-cpu-sy]: yes
82routers.cgi*Graph[SHNAME-cpu-sy]: CPU total
83
84Target[SHNAME-cpu-wa]: `mrtg-nrpe NRPEOPTS -H LHNAME -v check_cpu -o 4`
85Title[SHNAME-cpu-wa]: SHNAME CPU Activity (wait)
86MaxBytes[SHNAME-cpu-wa]: 100
87PageTop[SHNAME-cpu-wa]: null
88LegendI[SHNAME-cpu-wa]: wait:
89Options[SHNAME-cpu-wa]: gauge growright noo
90Ylegend[SHNAME-cpu-wa]: percent
91ShortLegend[SHNAME-cpu-wa]: %
92Legend1[SHNAME-cpu-wa]: wait
93Legend3[SHNAME-cpu-wa]: Peak utilisation
94SetEnv[SHNAME-cpu-wa]: MRTG_INT_DESCR="CPU"
95routers.cgi*Options[SHNAME-cpu-wa]: fixunit nototal nopercent
96routers.cgi*Icon[SHNAME-cpu-wa]: chip-sm.gif
97routers.cgi*InMenu[SHNAME-cpu-wa]: no
98routers.cgi*InCompact[SHNAME-cpu-wa]: yes
99routers.cgi*InSummary[SHNAME-cpu-wa]: yes
100routers.cgi*Graph[SHNAME-cpu-wa]: CPU total
101
102routers.cgi*ShortName[CPU]: CPU
103routers.cgi*Description[CPU]: CPU Usage on SHNAME
104routers.cgi*Title[CPU]: CPU Usage on SHNAME
105routers.cgi*Graphstyle[CPU]: stack
106routers.cgi*Unscaled[CPU]: none
107routers.cgi*Icon[CPU]: chip-sm.gif
108routers.cgi*Insummary[CPU]: yes
109routers.cgi*MaxBytes[CPU]: 100
110routers.cgi*LegendTI[CPU]: Total CPU usage on SHNAME
111
112# Swap activity
113Target[SHNAME-swap]: `mrtg-nrpe NRPEOPTS -H LHNAME -v check_swap`
114Title[SHNAME-swap]: SHNAME Swap activity
115MaxBytes[SHNAME-swap]: 100000
116Factor[SHNAME-swap]: 1024
117PageTop[SHNAME-swap]: null
118LegendI[SHNAME-swap]: in:
119Options[SHNAME-swap]: gauge growright noo
120Ylegend[SHNAME-swap]: bytes swap in
121ShortLegend[SHNAME-swap]: b
122Legend1[SHNAME-swap]: Swap in
123Legend3[SHNAME-swap]: Peak swap in
124SetEnv[SHNAME-swap]: MRTG_INT_DESCR="Swap"
125routers.cgi*Options[SHNAME-swap]: nopercent nomax bytes
126routers.cgi*Icon[SHNAME-swap]: disk-sm.gif
127routers.cgi*InCompact[SHNAME-swap]: no
128
129# Free memory
130Target[SHNAME-memory]: `mrtg-nrpe NRPEOPTS -H LHNAME -v check_memory`
131Title[SHNAME-memory]: SHNAME Free Memory
132MaxBytes[SHNAME-memory]: 10000000
133Factor[SHNAME-memory]: 1024
134PageTop[SHNAME-memory]: null
135LegendI[SHNAME-memory]: free:
136Options[SHNAME-memory]: gauge growright noo
137Ylegend[SHNAME-memory]: bytes free
138ShortLegend[SHNAME-memory]: b
139Legend1[SHNAME-memory]: Free memory
140Legend3[SHNAME-memory]: Peak free memory
141SetEnv[SHNAME-memory]: MRTG_INT_DESCR="Memory"
142routers.cgi*Options[SHNAME-memory]: nopercent nomax nototal bytes
143routers.cgi*Icon[SHNAME-memory]: chip-sm.gif
144routers.cgi*InCompact[SHNAME-memory]: no
145
146# Processes
147Target[SHNAME-procs]: `mrtg-nrpe NRPEOPTS -H LHNAME -v check_total_procs`
148Title[SHNAME-procs]: SHNAME processes
149MaxBytes[SHNAME-procs]: 10000
150PageTop[SHNAME-procs]: null
151LegendI[SHNAME-procs]: procs:
152Options[SHNAME-procs]: gauge growright noo
153Ylegend[SHNAME-procs]: processes
154ShortLegend[SHNAME-procs]:  
155Legend1[SHNAME-procs]: All processes
156Legend3[SHNAME-procs]: Peak processes
157SetEnv[SHNAME-procs]: MRTG_INT_DESCR="Processes"
158routers.cgi*Options[SHNAME-procs]: nopercent nomax nototal
159routers.cgi*Icon[SHNAME-procs]: cog-sm.gif
160routers.cgi*InCompact[SHNAME-procs]: no
161
162
163