-
Notifications
You must be signed in to change notification settings - Fork 167
/
monitorix.conf
1500 lines (1362 loc) · 35.8 KB
/
monitorix.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Monitorix - configuration file
#
# See monitorix.conf(5) manpage for a detailed description of each option.
#
title = Place a title here
hostname =
theme_color = black
refresh_rate = 150
iface_mode = graph
enable_zoom = y
netstats_in_bps = n
netstats_mode = overlapped
disable_javascript_void = n
temperature_scale = c
show_gaps = n
global_zoom = 1
max_historic_years = 1
accept_selfsigned_certs = y
image_format = PNG
enable_parallelizing = y
enable_rrd_lock = n
include_dir = /etc/monitorix/conf.d
base_dir = /var/lib/monitorix/www/
base_lib = /var/lib/monitorix/
base_url = /monitorix
base_cgi = /monitorix-cgi
<httpd_builtin>
enabled = y
host =
port = 8080
user = nobody
group = nobody
log_file = /var/log/monitorix-httpd
hosts_deny =
hosts_allow =
autocheck_responsiveness = y
<auth>
enabled = n
hosts_deny = all
msg = Monitorix: Restricted access
htpasswd = /var/lib/monitorix/htpasswd
</auth>
</httpd_builtin>
# Log files pathnames
# -----------------------------------------------------------------------------
log_file = /var/log/monitorix
secure_log = /var/log/secure
mail_log = /var/log/maillog
milter_gl = /var/milter-greylist/greylist.db
imap_log = /var/log/imap
hylafax_log = /var/spool/hylafax/etc/xferfaxlog
cups_log = /var/log/cups/page_log
ftp_log = /var/log/proftpd/access.log # Check monitorix.conf(5) manpage how to edit your ProFTPD server.
fail2ban_log = /var/log/fail2ban.log
spamassassin_log = /var/log/maillog
clamav_log = /var/log/clamav/clamav.log
cg_logdir = /var/CommuniGate/SystemLogs/
squid_log = /var/log/squid/access.log
imap_log_date_format = %b %d
secure_log_date_format = %b %e
<piwik_tracking>
enabled = n
url = "://example.com/piwik/"
sid = "1"
img = "http://example.com/piwik/piwik.php?idsite=1"
</piwik_tracking>
# Graphs (de)activation
# -----------------------------------------------------------------------------
<graph_enable>
system = y
kern = y
proc = y
amdenergy = n
intelrapl = n
hptemp = n
lmsens = n
gensens = n
ipmi = n
ambsens = n
amdgpu = n
nvidiagpu = n
nvidia = n
disk = n
nvme = n
fs = y
zfs = n
du = n
net = y
netstat = y
tinyproxy = n
tc = n
libvirt = n
process = n
serv = y
mail = n
port = y
user = y
ftp = n
apache = n
nginx = n
lighttpd = n
mysql = n
pgsql = n
mongodb = n
varnish = n
pagespeed = n
squid = n
nfss = n
nfsc = n
bind = n
unbound = n
ntp = n
chrony = n
fail2ban = n
icecast = n
raspberrypi = n
phpapc = n
memcached = n
redis = n
phpfpm = n
apcupsd = n
nut = n
wowza = n
int = y
verlihub = n
</graph_enable>
# SYSTEM graph
# -----------------------------------------------------------------------------
<system>
<alerts>
loadavg_enabled = n
loadavg_timeintvl = 3600
loadavg_threshold = 5.0
loadavg_script = /path/to/script.sh
</alerts>
rigid = 1, 0, 0, 0, 0
limit = 1, 1000, 1000, 1000, 1000
</system>
# KERN graph
# -----------------------------------------------------------------------------
<kern>
graph_mode = r
<list>
user = y
nice = y
sys = y
iow = y
irq = y
sirq = y
steal = y
guest = y
</list>
rigid = 2, 1, 2
limit = 100, 1000, 100
</kern>
# PROC graph
# -----------------------------------------------------------------------------
<proc>
max = 4
graphs_per_row = 2
size = medium
data = y
rigid = 2
limit = 100
</proc>
# AMD power consumption graph
# -----------------------------------------------------------------------------
<amdenergy>
<list>
0 = amd_energy-isa-0000
</list>
<map>
amd_energy-isa-0000 = AMD CPU
</map>
<number_of_cores>
amd_energy-isa-0000 = 32
</number_of_cores>
<desc>
</desc>
rigid = 0
limit = 100
use_nan_for_missing_data = n
gap_on_all_nan = n
</amdenergy>
# INTELRAPL graph
# -----------------------------------------------------------------------------
<intelrapl>
<list>
0 = core, uncore, package, dram
1 = dram
</list>
<list_item_names>
0 = CPU 1
1 = DRAM modules
</list_item_names>
<sensors>
core = /sys/class/powercap/intel-rapl:0:0/energy_uj
uncore = /sys/class/powercap/intel-rapl:0:1/energy_uj
package = /sys/class/powercap/intel-rapl:0/energy_uj
dram = /sys/class/powercap/intel-rapl:0:2/energy_uj
</sensors>
<sensor_names>
package = Package
core = Cores
uncore = IGP
dram = DRAM
</sensor_names>
<package_sensors>
0 = package
</package_sensors>
<package_content>
0 = core, uncore
</package_content>
<noncore_names>
0 = Non-Core
</noncore_names>
<desc>
0 = CPU power distribution
1 = Memory power distribution
</desc>
<sum>
</sum>
<sum_names>
</sum_names>
rigid = 0
limit = 100
use_nan_for_missing_data = n
gap_on_all_nan = n
show_noncore_info = n
max_number_of_values_per_group = 10
</intelrapl>
# HPTEMP graph
# -----------------------------------------------------------------------------
<hptemp>
graph_0 = 2, 3
graph_1 = 1, 6
graph_2 = 16, 18, 19, 20, 21, 22
<alerts>
</alerts>
</hptemp>
# LMSENS graph
# -----------------------------------------------------------------------------
<lmsens>
<list>
core0 = Core 0
core1 = Core 1
mb0 = M/B Temp
cpu0 = CPU Temp
fan0 = fan1
fan1 = fan2
fan2 = fan3
volt0 = VCore 1
volt1 = VCore 2
volt2 = \+3.3V
volt3 = \+5V
volt4 = \+12V
volt5 = \-12V
volt6 = \-5V
volt7 = Battery
gpu0 = nvidia
</list>
<desc>
</desc>
<alerts>
</alerts>
</lmsens>
# GENSENS graph
# -----------------------------------------------------------------------------
<gensens>
<list>
0 = temp0
1 = cpu0
2 = bat0
</list>
<title>
0 = Temperatures
1 = CPU frequency
2 = Battery status
</title>
<desc>
temp0 = /sys/devices/virtual/thermal/thermal_zone0/temp
cpu0 = /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
bat0 = /sys/class/power_supply/BAT0/capacity
</desc>
<unit>
temp0 = 1000
cpu0 = 0.001
bat0 = 1
</unit>
<map>
temp0 = Temperature Zone 0
cpu0 = CPU0 frequency
bat0 = Battery 0
</map>
<alerts>
</alerts>
rigid = 0, 0, 2
limit = 100, 100, 100
</gensens>
# IPMI graph
# -----------------------------------------------------------------------------
<ipmi>
list = Temperatures, Fans, Voltages
<desc>
0 = CPU Temp, System Temp
1 = FAN 1
2 = Vcore, 3.3VCC, 12V, VDIMM, 5VCC, CPU VTT, VBAT, VSB, AVCC
</desc>
<units>
0 = degrees C
1 = RPM
2 = Volts
</units>
<map>
</map>
<alerts>
</alerts>
graphs_per_row = 2
rigid = 0
limit = 100
</ipmi>
# AMBSENS graph
# -----------------------------------------------------------------------------
<ambsens>
list = Ambient Temperature
<desc>
0 = at1
</desc>
<units>
0 = Celsius
</units>
<cmd>
at1 = /path/to/script.sh
</cmd>
<map>
at1 = Gold TEMPer PC USB
</map>
<alerts>
</alerts>
graphs_per_row = 2
rigid = 0
limit = 100
</ambsens>
# AMDgpu graph
# -----------------------------------------------------------------------------
<amdgpu>
<list>
0 = amd-w6800, amd-wx5100
</list>
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100, 100, 100
use_nan_for_missing_data = y
gap_on_all_nan = y
accept_invalid_amdgpu = n
show_current_values = y
<map>
amd-w6800 = W 6800
amd-wx5100 = WX 5100
</map>
<sensors>
amd-w6800 = /dev/device1/gpu_busy_percent, /dev/device1/mem_busy_percent, /dev/device1/freq1_input, /dev/device1/freq2_input, /dev/device1/mem_info_vram_used, /dev/device1/power1_average, /dev/device1/power1_cap, /dev/device1/pwm1, /dev/device1/temp1_input, /dev/device1/temp2_input, /dev/device1/temp3_input
amd-wx5100 = /dev/device2/gpu_busy_percent, /dev/device2/mem_busy_percent, /dev/device2/freq1_input, /dev/device2/freq2_input, /dev/device2/mem_info_vram_used, /dev/device2/power1_average, /dev/device2/power1_cap, /dev/device2/pwm1, /dev/device2/temp1_input, ,
</sensors>
respect_power_state = n
<power_states>
amd-w6800 = /dev/device1/power_state
amd-wx5100 = /dev/device2/power_state
</power_states>
<alerts>
coretemp_enabled = n
coretemp_timeintvl = 0
coretemp_threshold = 1
coretemp_script = /path/to/script.sh
memorytemp_enabled = n
memorytemp_timeintvl = 0
memorytemp_threshold = 1
memorytemp_script = /path/to/script.sh
</alerts>
</amdgpu>
# NVIDIAgpu graph
# -----------------------------------------------------------------------------
<nvidiagpu>
<list>
0 = 0, 1
</list>
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100, 100, 100
use_nan_for_missing_data = y
gap_on_all_nan = y
show_current_values = y
<map>
0 = RTX 3090
1 = RTX 3080
</map>
<alerts>
coretemp_enabled = n
coretemp_timeintvl = 0
coretemp_threshold = 1
coretemp_script = /path/to/script.sh
memorytemp_enabled = n
memorytemp_timeintvl = 0
memorytemp_threshold = 1
memorytemp_script = /path/to/script.sh
</alerts>
</nvidiagpu>
# NVIDIA graph
# -----------------------------------------------------------------------------
<nvidia>
max = 1
<alerts>
</alerts>
rigid = 1, 2, 2
limit = 50, 100, 100
</nvidia>
# DISK graph
# -----------------------------------------------------------------------------
<disk>
<list>
0 = /dev/sda, /dev/sdb, /dev/sdc
</list>
<desc>
</desc>
<alerts>
realloc_enabled = n
realloc_timeintvl = 0
realloc_threshold = 1
realloc_script = /path/to/script.sh
pendsect_enabled = n
pendsect_timeintvl = 0
pendsect_threshold = 1
pendsect_script = /path/to/script.sh
</alerts>
</disk>
# NVMe graph
# -----------------------------------------------------------------------------
<nvme>
<list>
0 = /dev/nvme0
</list>
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 10, 100, 100, 100, 100, 100, 100, 100, 100
show_extended_plots = y
<alerts>
availspare_enabled = n
availspare_timeintvl = 0
availspare_threshold = 10
availspare_script = /path/to/script.sh
percentused_enabled = n
percentused_timeintvl = 0
percentused_threshold = 90
percentused_script = /path/to/script.sh
</alerts>
</nvme>
# FS graph
# -----------------------------------------------------------------------------
<fs>
<list>
0 = /, swap, /boot
</list>
<desc>
</desc>
<devmap>
</devmap>
rigid = 2, 0, 2, 0
limit = 100, 1000, 100, 1000
<alerts>
</alerts>
</fs>
# ZFS graph
# -----------------------------------------------------------------------------
<zfs>
max_pools = 5
list = pool1, pool2
rigid = 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0
limit = 1000, 1000, 1000, 1000, 100, 1000, 1000, 1000, 100, 1000, 1000
</zfs>
# DU graph
# -----------------------------------------------------------------------------
<du>
list = System, Users
<desc>
0 = /var/spool/mail, /var/spool/mqueue, /etc, /var/ftp, /tmp
1 = /home/ace, /home/gene, /home/paul, /home/peter
</desc>
<type>
0 = size
1 = files
</type>
<dirmap>
/var/spool/mail = Mail boxes
/var/spool/mqueue = Mail queue
</dirmap>
graphs_per_row = 2
rigid = 0
limit = 100
</du>
# NET graph
# -----------------------------------------------------------------------------
<net>
max = 10
list = eth0
<desc>
eth0 = FastEthernet LAN, 0, 10000000
</desc>
gateway = eth0
</net>
# NETSTAT graph
# -----------------------------------------------------------------------------
<netstat>
cmd = ss
rigid = 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100
</netstat>
# TINYPROXY graph
# -----------------------------------------------------------------------------
<tinyproxy>
list = http://your.proxy.com/
<desc>
http://your.proxy.com/ = http://tinyproxy.stats
</desc>
show_url = y
rigid = 0, 0, 0
limit = 1000, 1000, 1000
</tinyproxy>
# TC graph
# -----------------------------------------------------------------------------
<tc>
list = eth0
<desc>
eth0 = cbq 1, sfq 10, sfq 20, sfq 30, ingress ffff
</desc>
<map>
</map>
rigid = 0, 0, 0, 0
limit = 1000, 1000, 1000, 1000
</tc>
# LIBVIRT graph
# -----------------------------------------------------------------------------
<libvirt>
cmd = virsh
<list>
0 = centos6, winxp
</list>
<desc>
centos6 = CentOS 6, vda, 52:54:00:45:d0:e7
winxp = MS Windows XP, hda, 52:54:00:97:1c:e5
</desc>
rigid = 2, 0, 0, 0
limit = 100, 1000, 1000, 1000
</libvirt>
# PROCESS graph
# -----------------------------------------------------------------------------
<process>
<list>
0 = httpd, sshd, ntpd, mysqld, proftpd, clamd, imap, sendmail, named, smbd
</list>
<desc>
httpd = Apache
imap = Dovecot
named = Bind
</desc>
rigid = 2, 0, 0, 0, 0, 0, 0, 0
limit = 100, 1000, 1000, 1000, 1000, 1000, 1000, 1000
</process>
# SERV graph
# -----------------------------------------------------------------------------
<serv>
<list>
Default = SSH, FTP, TELNET, IMAP, Samba, Fax, CUPS, POP3, SMTP, Spam, Virus, Fail2ban
</list>
<desc>
SSH = C, file:/var/log/secure, "^%b %e", "sshd\[.*\]: Accepted "
FTP = C, file:/var/log/secure, "%b %e", "START: ftp" + " proftpd\[.*Login successful." + "\"PASS .*\" 230"
FTP = C, file:/var/log/secure, "%b %e", "OK LOGIN:"
FTP = C, file:/var/log/secure, "%b %e", "\[INFO\] .*? is now logged in"
TELNET = C, file:/var/log/secure, "^%b %e", "START: telnet"
Samba = G, exec:/usr/local/bin/samba.sh, "", ""
Fax = C, file:/var/spool/hylafax/etc/xferfaxlog, "^%m/%d/%y", "SEND"
CUPS = C, file:/var/log/cups/page_log, "\[%d/%b/%Y:", ""
Fail2ban = C, file:/var/log/fail2ban.log, "^%Y-%m-%d", " fail2ban.actions .* Ban "
IMAP = C, file:/var/log/imap, "%b %d", " imapd\[.* Login user="
POP3 = C, file:/var/log/imap, "%b %d", " ipop3d\[.* Login user="
IMAP = C, file:/var/log/imap, "%b %d", " imap-login: .* Login: "
POP3 = C, file:/var/log/imap, "%b %d", " pop3-login: .* Login: "
SMTP = C, file:/var/log/maillog, "^%b %e", i:"to=.*stat(us)?=sent"
Spam = C, file:/var/log/maillog, "^%b %e", "MailScanner.*Spam Checks:.*Found.*spam messages" + "amavis\[.* SPAM"
Spam = C, file:/var/log/maillog, "^%b %e", "spamd: identified spam"
Virus = C, file:/var/log/maillog, "^%b %e", "MailScanner.*Virus Scanning:.*Found.*viruses" + "amavis\[.* INFECTED|amavis\[.* BANNED"
Virus = C, file:/var/log/messages, "^%b %e", " clamd\[.* FOUND$"
</desc>
mode = i
graphs_per_row = 2
rigid = 0, 0, 0
limit = 1000, 1000, 1000
</serv>
# MAIL graph
# -----------------------------------------------------------------------------
<mail>
mta = sendmail
greylist = milter-greylist
stats_rate = real
rigid = 0, 0, 0, 0, 0
limit = 1, 1000, 1000, 1000, 1000
<alerts>
delvd_enabled = n
delvd_timeintvl = 60
delvd_threshold = 100
delvd_script = /path/to/script.sh
mqueued_enabled = n
mqueued_timeintvl = 3600
mqueued_threshold = 100
mqueued_script = /path/to/script.sh
</alerts>
</mail>
# PORT graph
# -----------------------------------------------------------------------------
<port>
max = 9
rule = 24000
list = 25, 21, 80, 22, 110, 139, 3306, 53, 143
<desc>
25 = SMTP, tcp, in, 0, 1000, L
21 = FTP, tcp, in, 0, 1000, L
80 = HTTP, tcp, in, 0, 1000, L
22 = SSH, tcp, in, 0, 1000, L
110 = POP3, tcp, in, 0, 1000, L
139 = NETBIOS, tcp, in, 0, 1000, L
3306 = MYSQL, tcp, in, 0, 1000, L
53 = DNS, udp, in, 0, 1000, L
143 = IMAP, tcp, in, 0, 1000, L
</desc>
graphs_per_row = 3
</port>
# USER graph
# -----------------------------------------------------------------------------
<user>
rigid = 0, 0, 0
limit = 1000, 1000, 1000
</user>
# FTP graph
# -----------------------------------------------------------------------------
<ftp>
server = proftpd
anon_user = anonymous, ftp
rigid = 0, 0, 0
limit = 1000, 1000, 1000
</ftp>
# APACHE graph
# -----------------------------------------------------------------------------
<apache>
list = http://localhost/server-status?auto
<alerts>
</alerts>
rigid = 0, 0, 2, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</apache>
# NGINX graph
# -----------------------------------------------------------------------------
<nginx>
url = http://localhost/nginx_status
port = 80
rule = 24100
rigid = 0, 0, 0
limit = 100, 100, 100
</nginx>
# LIGHTTPD graph
# -----------------------------------------------------------------------------
<lighttpd>
list = http://localhost/server-status?auto
rigid = 0, 0, 0
limit = 100, 100, 100
</lighttpd>
# MYSQL graph
# -----------------------------------------------------------------------------
<mysql>
conn_type = host
list = localhost
# list = /var/lib/mysql/mysql.sock
<desc>
localhost = 3306, user, secret
</desc>
rigid = 0, 2, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</mysql>
# PGSQL graph
# -----------------------------------------------------------------------------
<pgsql>
list = localhost
<desc>
<localhost>
host = localhost
port = 5432
username = user
password = secret
db_list =
</localhost>
</desc>
rigid = 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</pgsql>
# MONGODB graph
# -----------------------------------------------------------------------------
<mongodb>
list = localhost
max_db = 1
cmd = mongo
cmd_db_serverstatus = "--eval \"printjson(db.serverStatus()),printjson(db.stats(1))\""
cmd_db_stats = "--eval \"printjson(db.stats(1))\""
<desc>
<localhost>
host = 127.0.0.1
db_list = mydb
</localhost>
</desc>
rigid = 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100
</mongodb>
# VARNISH graph
# -----------------------------------------------------------------------------
<varnish>
rigid = 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</varnish>
# PAGESPEED graph
# -----------------------------------------------------------------------------
<pagespeed>
list = http://modpagespeed.com/mod_pagespeed_statistics
rigid = 0, 0, 2, 0, 0, 0, 0, 0
limit = 1000, 1000, 100, 1000, 1000, 1000, 1000, 1000
</pagespeed>
# SQUID graph
# -----------------------------------------------------------------------------
<squid>
cmd = squidclient -h 127.0.0.1
graph_0 = TCP_MISS, TCP_DENIED, TCP_REFRESH_HIT, TCP_IMS_HIT, TCP_HIT, TCP_REFRESH_MISS, TCP_MEM_HIT, TCP_NEGATIVE_HIT, TCP_CLIENT_REFRESH_MISS
graph_1 = 200, 403, 304, 204, 302, 000, 404, 301, 206
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100, 100
</squid>
# NFSS graph
# -----------------------------------------------------------------------------
<nfss>
version = 3
graph_0 = readlink, create, mkdir, symlink, rmdir, remove, rename, link, readdir
graph_1 = mknod, readdirplus, fsstat, fsinfo, pathconf, access, lookup, commit, null
graph_2 = read, write, getattr, setattr
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100, 100
</nfss>
# NFSC graph
# -----------------------------------------------------------------------------
<nfsc>
version = 3
graph_0 = readlink, create, mkdir, symlink, rmdir, remove, rename, link, readdir
graph_1 = mknod, readdirplus, fsstat, fsinfo, pathconf
graph_2 = read, write
graph_3 = getattr, setattr
graph_4 = access, lookup, commit, null
rigid = 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</nfsc>
# BIND graph
# -----------------------------------------------------------------------------
<bind>
list = http://localhost:8053/
<in_queries_list>
http://localhost:8053/ = A, AAAA, ANY, DS, MX, NS, PTR, SOA, SRV, TXT, NAPTR, A6, CNAME, SPF, KEY, DNSKEY, HINFO, WKS, PX, NSAP
</in_queries_list>
<out_queries_list>
http://localhost:8053/ = A, AAAA, ANY, DS, MX, NS, PTR, SOA, SRV, TXT, NAPTR, A6, CNAME, SPF, KEY, DNSKEY, HINFO, WKS, PX, NSAP
</out_queries_list>
<server_stats_list>
http://localhost:8053/ = Requestv4, Requestv6, ReqEdns0, ReqBadEDNSVer, ReqTSIG, ReqSIG0, ReqBadSIG, ReqTCP, Response, QrySuccess, QryAuthAns, QryNoauthAns, QryReferral, QryNxrrset, QrySERVFAIL, QryNXDOMAIN, QryRecursion, QryDuplicate, QryDropped, QryFailure
</server_stats_list>
<resolver_stats_list>
http://localhost:8053/ = Queryv4, Queryv6, Responsev4, Responsev6, NXDOMAIN, SERVFAIL, FORMERR, OtherError, EDNS0Fail, Truncated, Lame, Retry, QueryTimeout, GlueFetchv4, GlueFetchv6, GlueFetchv4Fail, GlueFetchv6Fail, ValAttempt, ValOk, ValNegOk
</resolver_stats_list>
<cache_rrsets_list>
http://localhost:8053/ = A, !A, AAAA, !AAAA, DLV, !DLV, DS, !DS, MX, NS, CNAME, !CNAME, SOA, !SOA, !ANY, PTR, RRSIG, NSEC, DNSKEY, NXDOMAIN
</cache_rrsets_list>
rigid = 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100
</bind>
# UNBOUND graph
# -----------------------------------------------------------------------------
<unbound>
cmd = unbound-control
queries_type = A, AAAA, ANY, DS, MX, NS, PTR, SOA, SRV, TXT, NAPTR, A6, CNAME, SPF, KEY, DNSKEY, HINFO, WKS, PX, NSAP
rigid = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100, 100, 100, 100
</unbound>
# NTP graph
# -----------------------------------------------------------------------------
<ntp>
list = localhost
<desc>
localhost = AUTH, AUTO, CRYP, DENY, GPS, INIT, NKEY, RATE, RMOT, RSTR
</desc>
rigid = 0, 0, 0
limit = 100, 100, 100
</ntp>
# CHRONY graph
# -----------------------------------------------------------------------------
<chrony>
list = localhost
rigid = 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</chrony>
# FAIL2BAN graph
# -----------------------------------------------------------------------------
<fail2ban>
list = Security, Overload / Abuse
<desc>
0 = [apache], [apache-mod-security], [apache-overflows], [courierauth], [sshd], [pam-generic], [php-url-fopen], [vsftpd]
1 = [apache-evasive], [apache-badbots], [named-refused-udp], [named-refused-tcp]
</desc>
graphs_per_row = 2
rigid = 0
limit = 100
</fail2ban>
# ICECAST graph
# -----------------------------------------------------------------------------
<icecast>
list = http://localhost:8000/status.xsl
<desc>
http://localhost:8000/status.xsl = stream1, stream2, stream3
</desc>
graph_mode = r
rigid = 0, 0
limit = 100, 100
</icecast>
# RASPBERRYPI graph
# -----------------------------------------------------------------------------
<raspberrypi>
cmd = /usr/bin/vcgencmd
clocks = arm, core, h264, isp, v3d, uart, emmc, pixel, hdmi
volts = core, sdram_c, sdram_i, sdram_p
rigid = 0, 0, 0
limit = 100, 100, 100
</raspberrypi>
# PHPAPC graph
# -----------------------------------------------------------------------------
<phpapc>
list = http://localhost/apc.php?auto
rigid = 2, 2, 0
limit = 100, 100, 100
</phpapc>
# MEMCACHED graph
# -----------------------------------------------------------------------------
<memcached>
list = localhost:11211
rigid = 0, 0, 0, 0, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100, 100
</memcached>
# REDIS graph
# -----------------------------------------------------------------------------
<redis>
list = localhost:6379
rigid = 0, 0, 0, 0, 0, 0
limit = 1000, 1000, 1000, 1000, 1000, 1000
</redis>
# PHP-FPM graph
# -----------------------------------------------------------------------------
<phpfpm>
<group>
0 = First group of domains
</group>
<list>
0 = example1, example2, example3
</list>
<desc>
example1 = http://www.example1.com/php_fpm_status
example2 = http://www.example2.com/php_fpm_status
example3 = http://www.example3.com/php_fpm_status
</desc>
<map>
</map>
rigid = 0, 0, 2, 0, 0, 0
limit = 100, 100, 100, 100, 100, 100
</phpfpm>
# APCUPSD graph
# -----------------------------------------------------------------------------
<apcupsd>
cmd = apcaccess
list = localhost:3551