forked from Cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal_settings.php
More file actions
2903 lines (2878 loc) · 113 KB
/
global_settings.php
File metadata and controls
2903 lines (2878 loc) · 113 KB
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
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2022 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDtool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/
$dir = dir($config['base_path'] . '/include/themes/');
while (false !== ($entry = $dir->read())) {
if ($entry != '.' && $entry != '..') {
if (is_dir($config['base_path'] . '/include/themes/' . $entry)) {
$themes[$entry] = __(ucwords($entry));
}
}
}
asort($themes);
$dir->close();
/* tab information */
$tabs = array(
'general' => __('General'),
'path' => __('Paths'),
'snmp' => __('Device Defaults'),
'poller' => __('Poller'),
'data' => __('Data'),
'visual' => __('Visual'),
'authentication' => __('Authentication'),
'boost' => __('Performance'),
'spikes' => __('Spikes'),
'mail' => __('Mail/Reporting/DNS')
);
$tabs_graphs = array(
'general' => __('General Settings'),
'timespan' => __('Time Spanning/Shifting'),
'thumbnail' => __('Graph Thumbnail Settings'),
'tree' => __('Tree Settings'),
'fonts' => __('Graph Fonts')
);
if (db_table_exists('plugin_config')) {
$logplugins = array_rekey(db_fetch_assoc('SELECT directory AS id, name
FROM plugin_config
WHERE status = 1
ORDER BY name'), 'id', 'name');
} else {
$logplugins = array();
}
/* get the files for selective logging */
$realm_files = array_keys($user_auth_realm_filenames);
$nohead_files = array_values($no_http_header_files);
foreach($realm_files as $file) {
$logfiles[$file] = $file;
}
foreach($nohead_files as $file) {
$logfiles[$file] = $file;
}
$logfiles['poller_realtime.php'] = 'poller_realtime.php';
$logfiles['cmd_realtime.php'] = 'cmd_realtime.php';
asort($logfiles);
$mail_methods = array(
CACTI_MAIL_PHP => __('PHP Mail() Function'),
CACTI_MAIL_SENDMAIL => __('Sendmail'),
CACTI_MAIL_SMTP => __('SMTP')
);
if ($config['cacti_server_os'] == 'win32') {
unset($mail_methods[CACTI_MAIL_SENDMAIL]);
}
/* cache the admin account */
$admin_account = '0';
if (isset($_SESSION['admin_account']) && isset($_SESSION['sess_user_id'])) {
$admin_account = $_SESSION['admin_account'];
} elseif (isset($_SESSION['sess_user_id'])) {
$admin_account = db_fetch_cell('SELECT value FROM settings WHERE name="admin_user"');
if (!empty($admin_account)) {
$_SESSION['admin_account'] = db_qstr($admin_account) . ', ' . $_SESSION['sess_user_id'];
} else {
$_SESSION['admin_account'] = $_SESSION['sess_user_id'];
}
}
/* setting information */
$settings = array(
'path' => array(
'dependent_header' => array(
'friendly_name' => __('Required Tool Paths'),
'collapsible' => 'true',
'method' => 'spacer',
),
'path_snmpwalk' => array(
'friendly_name' => __('snmpwalk Binary Path'),
'description' => __('The path to your snmpwalk binary.'),
'method' => 'filepath',
'file_type' => 'binary',
'max_length' => '255'
),
'path_snmpget' => array(
'friendly_name' => __('snmpget Binary Path'),
'description' => __('The path to your snmpget binary.'),
'method' => 'filepath',
'file_type' => 'binary',
'max_length' => '255'
),
'path_snmpbulkwalk' => array(
'friendly_name' => __('snmpbulkwalk Binary Path'),
'description' => __('The path to your snmpbulkwalk binary.'),
'method' => 'filepath',
'file_type' => 'binary',
'max_length' => '255'
),
'path_snmpgetnext' => array(
'friendly_name' => __('snmpgetnext Binary Path'),
'description' => __('The path to your snmpgetnext binary.'),
'method' => 'filepath',
'file_type' => 'binary',
'max_length' => '255'
),
'path_snmptrap' => array(
'friendly_name' => __('snmptrap Binary Path'),
'description' => __('The path to your snmptrap binary.'),
'method' => 'filepath',
'file_type' => 'binary',
'max_length' => '255'
),
'path_rrdtool' => array(
'friendly_name' => __('RRDtool Binary Path'),
'description' => __('The path to the rrdtool binary.'),
'method' => 'filepath',
'file_type' => 'binary',
'max_length' => '255'
),
'path_php_binary' => array(
'friendly_name' => __('PHP Binary Path'),
'description' => __('The path to your PHP binary file (may require a php recompile to get this file).'),
'method' => 'filepath',
'file_type' => 'binary',
'max_length' => '255'
),
'logging_header' => array(
'friendly_name' => __('Logging'),
'collapsible' => 'true',
'method' => 'spacer',
),
'path_cactilog' => array(
'friendly_name' => __('Cacti Log Path'),
'description' => __('The path to your Cacti log file (if blank, defaults to <path_cacti>/log/cacti.log)'),
'method' => 'filepath',
'file_type' => 'ascii',
'default' => $config['base_path'] . '/log/cacti.log',
'max_length' => '255',
'install_check' => 'writable',
'install_blank' => true
),
'path_stderrlog' => array(
'friendly_name' => __('Poller Standard Error Log Path'),
'description' => __('If you are having issues with Cacti\'s Data Collectors, set this file path and the Data Collectors standard error will be redirected to this file'),
'method' => 'filepath',
'file_type' => 'ascii',
'default' => $config['base_path'] . '/log/cacti_stderr.log',
'max_length' => '255',
'install_check' => 'writable',
'install_optional' => true
),
'logrotate_enabled' => array(
'friendly_name' => __('Rotate the Cacti Log'),
'description' => __('This option will rotate the Cacti Log periodically.'),
'method' => 'checkbox',
'default' => 'on',
),
'logrotate_frequency' => array(
'friendly_name' => __('Rotation Frequency'),
'description' => __('At what frequency would you like to rotate your logs?'),
'method' => 'drop_array',
'default' => '1',
'array' => $logrotate_frequency
),
'logrotate_retain' => array(
'friendly_name' => __('Log Retention'),
'description' => __('How many log files do you wish to retain? Use 0 to never remove any logs. (0-365)'),
'method' => 'textbox',
'default' => '7',
'max_length' => 3,
'size' => 4
),
'pollerpaths_header' => array(
'friendly_name' => __('Alternate Poller Path'),
'collapsible' => 'true',
'method' => 'spacer',
),
'path_spine' => array(
'friendly_name' => __('Spine Binary File Location'),
'description' => __('The path to Spine binary.'),
'method' => 'filepath',
'file_type' => 'binary',
'max_length' => '255',
'install_optional' => true,
),
'path_spine_config' => array(
'friendly_name' => __('Spine Config File Path'),
'description' => __('The path to Spine configuration file. By default, in the cwd of Spine, or /etc if not specified.'),
'method' => 'filepath',
'file_type' => 'ascii',
'max_length' => '255',
'install_optional' => true,
),
'rrdclean_header' => array(
'friendly_name' => __('RRD Cleaner'),
'method' => 'spacer',
'collapsible' => 'true'
),
'rrd_autoclean' => array(
'friendly_name' => __('RRDfile Auto Clean'),
'description' => __('Automatically archive or delete RRDfiles when their corresponding Data Sources are removed from Cacti'),
'method' => 'checkbox',
'default' => ''
),
'rrd_autoclean_method' => array(
'friendly_name' => __('RRDfile Auto Clean Method'),
'description' => __('The method used to Clean RRDfiles from Cacti after their Data Sources are deleted.'),
'method' => 'drop_array',
'array' => array(
'1' => __('Delete'),
'3' => __('Archive')
),
'default' => '1'
),
'rrd_archive' => array(
'friendly_name' => __('Archive directory'),
'description' => __('This is the directory where RRDfiles are <strong>moved</strong> for archiving'),
'method' => 'dirpath',
'default' => $config['base_path'] . '/rra/archive/',
'max_length' => 255,
),
),
'general' => array(
'poller_specific_header' => array(
'friendly_name' => __('Log Settings'),
'collapsible' => 'true',
'method' => 'spacer',
),
'log_destination' => array(
'friendly_name' => __('Log Destination'),
'description' => __('How will Cacti handle event logging.'),
'method' => 'drop_array',
'default' => 1,
'array' => $logfile_options,
),
'log_verbosity' => array(
'friendly_name' => __('Generic Log Level'),
'description' => __('What level of detail do you want sent to the log file. WARNING: Leaving in any other status than NONE or LOW can exhaust your disk space rapidly.'),
'method' => 'drop_array',
'default' => POLLER_VERBOSITY_LOW,
'array' => $logfile_verbosity,
),
'log_validation' => array(
'friendly_name' => __('Log Input Validation Issues'),
'description' => __('Record when request fields are accessed without going through proper input validation'),
'method' => 'checkbox',
'default' => ''
),
'data_source_trace' => array(
'friendly_name' => __('Data Source Tracing'),
'description' => __('A developer only option to trace the creation of Data Sources mainly around checks for uniqueness'),
'method' => 'checkbox',
'default' => ''
),
'selective_debug' => array(
'friendly_name' => __('Selective File Debug'),
'description' => __('Select which files you wish to place in Debug mode regardless of the Generic Log Level setting. Any files selected will be treated as they are in Debug mode.'),
'method' => 'drop_multi',
'array' => $logfiles,
'default' => ''
),
'selective_plugin_debug' => array(
'friendly_name' => __('Selective Plugin Debug'),
'description' => __('Select which Plugins you wish to place in Debug mode regardless of the Generic Log Level setting. Any files used by this plugin will be treated as they are in Debug mode.'),
'method' => 'drop_multi',
'array' => $logplugins,
'default' => ''
),
'selective_device_debug' => array(
'friendly_name' => __('Selective Device Debug'),
'description' => __('A comma delimited list of Device ID\'s that you wish to be in Debug mode during data collection. This Debug level is only in place during the Cacti polling process.'),
'method' => 'textbox',
'size' => '30',
'max_length' => 30,
'default' => ''
),
'poller_log' => array(
'friendly_name' => __('Syslog/Eventlog Item Selection'),
'description' => __('When using Syslog/Eventlog for logging, the Cacti log messages that will be forwarded to the Syslog/Eventlog.'),
'method' => 'checkbox_group',
'tab' => 'poller',
'items' => array(
'log_pstats' => array(
'friendly_name' => __('Statistics'),
'default' => ''
),
'log_pwarn' => array(
'friendly_name' => __('Warnings'),
'default' => ''
),
'log_perror' => array(
'friendly_name' => __('Errors'),
'default' => 'on'
)
)
),
'i18n_header' => array(
'friendly_name' => __('Internationalization (i18n)'),
'collapsible' => 'true',
'method' => 'spacer',
),
'i18n_language_support' => array(
'friendly_name' => __('Language Support'),
'description' => __('Choose \'enabled\' to allow the localization of Cacti. The strict mode requires that the requested language will also be supported by all plugins being installed at your system. If that\'s not the fact everything will be displayed in English.'),
'method' => 'drop_array',
'default' => '1',
'array' => $i18n_modes
),
'i18n_default_language' => array(
'friendly_name' => __('Language'),
'description' => __('Default language for this system.'),
'method' => 'drop_language',
'default' => 'en-US',
'array' => get_installed_locales()
),
'i18n_auto_detection' => array(
'friendly_name' => __('Auto Language Detection'),
'description' => __('Allow to automatically determine the \'default\' language of the user and provide it at login time if that language is supported by Cacti. If disabled, the default language will be in force until the user elects another language.'),
'method' => 'drop_array',
'default' => '1',
'array' => array(
'0' => __('Disabled'),
'1' => __('Enabled')
)
),
'i18n_language_handler' => array(
'friendly_name' => __('Preferred Language Processor'),
'description' => __('Cacti includes support for multiple alternate Language Translation Processors. If none is selected Cacti will attempt to use the first one found.'),
'method' => 'drop_array',
'default' => CACTI_LANGUAGE_HANDLER_DEFAULT,
'array' => $i18n_supported_languages
),
'client_timezone_support' => array(
'friendly_name' => __('Client TimeZone Support'),
'description' => __('How should Cacti support Client Dates based upon the Client browsers timezone.'),
'method' => 'drop_array',
'array' => array(
'0' => __('Disabled'),
'1' => __('Enabled')
),
'default' => '0'
),
'default_date_format' => array(
'friendly_name' => __('Date Display Format'),
'description' => __('The System default date format to use in Cacti.'),
'method' => 'drop_array',
'array' => $dateformats,
'default' => GD_Y_MO_D
),
'default_datechar' => array(
'friendly_name' => __('Date Separator'),
'description' => __('The System default date separator to be used in Cacti.'),
'method' => 'drop_array',
'array' => $datechar,
'default' => GDC_HYPHEN
),
'other1_header' => array(
'friendly_name' => __('Other Settings'),
'collapsible' => 'true',
'method' => 'spacer',
),
'default_has' => array(
'friendly_name' => __('Has Graphs/Data Sources Checked'),
'description' => __('Should the Has Graphs and Has Data Sources be Checked by Default.'),
'method' => 'checkbox',
'default' => ''
),
'rrdtool_version' => array(
'friendly_name' => __('RRDtool Version'),
'description' => __('The version of RRDtool that you have installed.'),
'method' => 'drop_array',
'default' => '1.4.0',
'array' => $rrdtool_versions,
),
'enable_rrdtool_gradient_support' => array(
'friendly_name' => __('Enable Gradient Support'),
'description' => __('Enabled Gradient Support for AREA and STACK charts.'),
'default' => '',
'method' => 'checkbox',
),
'graph_auth_method' => array(
'friendly_name' => __('Graph Permission Method'),
'description' => __('There are four methods for determining a User\'s Graph Permissions. The first is \'Permissive\'. Under the \'Permissive\' setting, a User only needs access to either the Graph, Device or Graph Template to gain access to the Graphs that apply to them. Under \'Restrictive\', the User must have access to the Graph, the Device, and the Graph Template to gain access to the Graph. These first two methods have scalability problems for very large installs. So, two additional options are available. They are \'Device Based\', which means if you have access to the Device, you get access to it\'s Graphs. And lastly \'Graph Template Based\', which means if you have access to the \'Graph Template\' you get access to all Device Graphs of that Template.'),
'method' => 'drop_array',
'default' => '1',
'array' => array(
'1' => __('Permissive'),
'2' => __('Restrictive'),
'3' => __('Device Based'),
'4' => __('Graph Template Based'),
)
),
'grds_creation_method' => array(
'method' => 'drop_array',
'friendly_name' => __('Graph/Data Source Creation Method'),
'description' => __('If set to Simple, Graphs and Data Sources can only be created from New Graphs. If Advanced, legacy Graph and Data Source creation is supported.'),
'default' => '0',
'array' => array(
'0' => __('Simple'),
'1' => __('Advanced')
)
),
'hide_form_description' => array(
'friendly_name' => __('Show Form/Setting Help Inline'),
'description' => __('When checked, Form and Setting Help will be show inline. Otherwise it will be presented when hovering over the help button.'),
'default' => '',
'method' => 'checkbox',
),
'local_documentation' => array(
'friendly_name' => __('Local Page Help Only'),
'description' => __('By default Cacti page help is located at docs.cacti.net. However, if your system does not have access to the Internet, you may download the documentation locally in HTML format and host it in the \'docs\' location of you Cacti server. If you choose only to leverage the local location for page help documentation, check this checkbox.'),
'default' => '',
'method' => 'checkbox',
),
'deletion_verification' => array(
'friendly_name' => __('Deletion Verification'),
'description' => __('Prompt user before item deletion.'),
'default' => 'on',
'method' => 'checkbox',
),
'ds_preselected_delete' => array(
'friendly_name' => __('Data Source Preservation Preset'),
'description' => __('When enabled, Cacti will set Radio Button to Delete related Data Sources of a Graph when removing Graphs. Note: Cacti will not allow the removal of Data Sources if they are used in other Graphs.'),
'method' => 'checkbox',
'default' => 'on'
),
'graphs_auto_unlock' => array(
'friendly_name' => __('Graphs Auto Unlock'),
'description' => __('When enabled, Cacti will not lock Graphs. This allow a faster manual modification of Data Sources related to a Graph.'),
'method' => 'checkbox',
'default' => ''
),
'hide_console' => array(
'friendly_name' => __('Hide Cacti Dashboard'),
'description' => __('For use with Cacti\'s External Link Support. Using this setting, you can hide the Cacti Dashboard, so you can display just your own page.'),
'default' => '',
'method' => 'checkbox'
),
'drag_and_drop' => array(
'friendly_name' => __('Enable Drag-N-Drop'),
'description' => __('Some of Cacti\'s interfaces support Drag-N-Drop. If checked this option will be enabled. Note: For visually impaired user, this option may be disabled.'),
'method' => 'checkbox',
'default' => 'on',
),
'security_header' => array(
'friendly_name' => __('Site Security'),
'method' => 'spacer',
'collapsible' => 'true'
),
'force_https' => array(
'friendly_name' => __('Force Connections over HTTPS'),
'description' => __('When checked, any attempts to access Cacti will be redirected to HTTPS to ensure high security.'),
'default' => '',
'method' => 'checkbox',
),
'content_security_policy_script' => array(
'method' => 'drop_array',
'friendly_name' => __('Content-Security Allow Unsafe JavaScript eval() calls'),
'description' => __('Certain Cacti plugins require the use of unsafe JavaScript eval() calls. If you select this option, they will be allowed in Cacti.'),
'default' => '',
'array' => array(
'0' => __('No'),
'unsafe-eval' => __('Yes')
)
),
'content_security_alternate_sources' => array(
'friendly_name' => __('Content-Security Alternate Sources'),
'description' => __('Space delimited domain names that will be permitted to be accessed outside of the Web Server itself. This is important for users choosing to use a CDN, or hosting site. Sources can includes wildcards for example: *.mydomain.com, or a protocol, for example: https://*.example.com. These Alternate Sources include Image, CSS and JavaScript types only.'),
'method' => 'textbox',
'default' => '',
'size' => '100',
'max_length' => '255',
),
'automation_header' => array(
'friendly_name' => __('Automation'),
'method' => 'spacer',
'collapsible' => 'true'
),
'automation_graphs_enabled' => array(
'method' => 'checkbox',
'friendly_name' => __('Enable Automatic Graph Creation'),
'description' => __('When disabled, Cacti Automation will not actively create any Graph. This is useful when adjusting Device settings so as to avoid creating new Graphs each time you save an object. Invoking Automation Rules manually will still be possible.'),
'default' => 'on',
),
'automation_tree_enabled' => array(
'method' => 'checkbox',
'friendly_name' => __('Enable Automatic Tree Item Creation'),
'description' => __('When disabled, Cacti Automation will not actively create any Tree Item. This is useful when adjusting Device or Graph settings so as to avoid creating new Tree Entries each time you save an object. Invoking Rules manually will still be possible.'),
'default' => 'on',
),
'automation_email' => array(
'friendly_name' => __('Automation Notification To Email'),
'description' => __('The Email Address to send Automation Notification Emails to if not specified at the Automation Network level. If either this field, or the Automation Network value are left blank, Cacti will use the Primary Cacti Admins Email account.'),
'method' => 'textbox',
'default' => '',
'max_length' => '128',
),
'automation_fromname' => array(
'friendly_name' => __('Automation Notification From Name'),
'description' => __('The Email Name to use for Automation Notification Emails to if not specified at the Automation Network level. If either this field, or the Automation Network value are left blank, Cacti will use the system default From Name.'),
'method' => 'textbox',
'default' => '',
'max_length' => '32',
'size' => '30'
),
'automation_fromemail' => array(
'friendly_name' => __('Automation Notification From Email'),
'description' => __('The Email Address to use for Automation Notification Emails to if not specified at the Automation Network level. If either this field, or the Automation Network value are left blank, Cacti will use the system default From Email Address.'),
'method' => 'textbox',
'default' => '',
'max_length' => '100',
),
'other_header' => array(
'friendly_name' => __('Graph Template Defaults'),
'collapsible' => 'true',
'method' => 'spacer',
),
'default_test_source' => array(
'method' => 'checkbox',
'friendly_name' => __('Graph Template Test Data Source'),
'description' => __('Check this checkbox if you wish to test the Data Sources prior to their creation for new and newly imported Graph Templates. With Test Data Sources enabled, if the Data Source does not return valid data, the Graph will not be created. This setting is important if you wish to have a more generic Device Template that can include more Graph Templates that can be selectively applied depending on the characteristics of the Device itself. Note: If you have a long running script as a Data Source, the time to create Graphs will be increased.'),
'default' => '',
),
'default_image_format' => array(
'friendly_name' => __('Graph Template Image Format'),
'description' => __('The default Image Format to be used for all new Graph Templates.'),
'method' => 'drop_array',
'default' => '1',
'array' => $image_types,
),
'default_graph_height' => array(
'friendly_name' => __('Graph Template Height'),
'description' => __('The default Graph Height to be used for all new Graph Templates.'),
'method' => 'textbox',
'default' => '150',
'size' => '5',
'max_length' => '5'
),
'default_graph_width' => array(
'friendly_name' => __('Graph Template Width'),
'description' => __('The default Graph Width to be used for all new Graph Templates.'),
'method' => 'textbox',
'default' => '500',
'size' => '5',
'max_length' => '5'
)
),
'snmp' => array(
'general_header' => array(
'friendly_name' => __('General Defaults'),
'method' => 'spacer',
'collapsible' => 'true'
),
'default_template' => array(
'friendly_name' => __('Template'),
'description' => __('The default Device Template used on all new Devices.'),
'method' => 'drop_sql',
'default' => '1',
'none_value' => __('None'),
'sql' => 'SELECT id, name FROM host_template ORDER BY name',
),
'default_site' => array(
'friendly_name' => __('Site'),
'description' => __('The default Site for all new Devices.'),
'method' => 'drop_sql',
'default' => '1',
'none_value' => __('None'),
'sql' => 'SELECT id, name FROM sites ORDER BY name',
),
'default_poller' => array(
'friendly_name' => __('Poller'),
'description' => __('The default Poller for all new Devices.'),
'method' => 'drop_sql',
'default' => '1',
'none_value' => __('None'),
'sql' => 'SELECT id, name FROM poller ORDER BY name',
),
'device_threads' => array(
'friendly_name' => __('Device Threads'),
'description' => __('The default number of Device Threads. This is only applicable when using the Spine Data Collector.'),
'method' => 'drop_array',
'default' => '1',
'array' => array(
1 => __('%s Thread', 1),
2 => __('%s Threads', 2),
3 => __('%s Threads', 3),
4 => __('%s Threads', 4),
5 => __('%s Threads', 5),
6 => __('%s Threads', 6),
7 => __('%s Threads', 7),
8 => __('%s Threads', 8),
9 => __('%s Threads', 9),
10 => __('%s Threads', 10)
)
),
'reindex_method' => array(
'friendly_name' => __('Re-index Method for Data Queries'),
'description' => __('The default Re-index Method to use for all Data Queries.'),
'method' => 'drop_array',
'default' => '1',
'array' => $reindex_types,
),
'default_interface_speed' => array(
'friendly_name' => __('Default Interface Speed'),
'description' => __('If Cacti can not determine the interface speed due to either ifSpeed or ifHighSpeed not being set or being zero, what maximum value do you wish on the resulting RRDfiles.'),
'method' => 'drop_array',
'default' => '1000',
'array' => array(
'100' => __('100 Mbps Ethernet'),
'1000' => __('1 Gbps Ethernet'),
'10000' => __('10 Gbps Ethernet'),
'25000' => __('25 Gbps Ethernet'),
'40000' => __('40 Gbps Ethernet'),
'56000' => __('56 Gbps Ethernet'),
'100000' => __('100 Gbps Ethernet')
)
),
'snmp_header' => array(
'friendly_name' => __('SNMP Defaults'),
'method' => 'spacer',
'collapsible' => 'true'
),
'snmp_version' => array(
'friendly_name' => __('Version'),
'description' => __('Default SNMP version for all new Devices.'),
'method' => 'drop_array',
'default' => '2',
'array' => $snmp_versions,
),
'snmp_community' => array(
'friendly_name' => __('Community'),
'description' => __('Default SNMP read community for all new Devices.'),
'method' => 'textbox',
'default' => 'public',
'max_length' => '100',
),
'snmp_security_level' => array(
'friendly_name' => __('Security Level'),
'description' => __('Default SNMP v3 Security Level for all new Devices.'),
'method' => 'drop_array',
'default' => 'authPriv',
'array' => $snmp_security_levels,
),
'snmp_auth_protocol' => array(
'method' => 'drop_array',
'friendly_name' => __('Auth Protocol (v3)'),
'description' => __('Default SNMPv3 Authorization Protocol for all new Devices.'),
'default' => 'MD5',
'array' => $snmp_auth_protocols,
),
'snmp_username' => array(
'friendly_name' => __('Auth User (v3)'),
'description' => __('Default SNMP v3 Authorization User for all new Devices.'),
'method' => 'textbox',
'default' => '',
'max_length' => '50',
'size' => '40'
),
'snmp_password' => array(
'friendly_name' => __('Auth Passphrase (v3)'),
'description' => __('Default SNMP v3 Authorization Passphrase for all new Devices.'),
'method' => 'textbox_password',
'default' => '',
'max_length' => '50',
'size' => '40'
),
'snmp_priv_protocol' => array(
'method' => 'drop_array',
'friendly_name' => __('Privacy Protocol (v3)'),
'description' => __('Default SNMPv3 Privacy Protocol for all new Devices.'),
'default' => 'DES',
'array' => $snmp_priv_protocols,
),
'snmp_priv_passphrase' => array(
'method' => 'textbox_password',
'friendly_name' => __('Privacy Passphrase (v3)'),
'description' => __('Default SNMPv3 Privacy Passphrase for all new Devices.'),
'default' => '',
'max_length' => '200',
'size' => '80'
),
'snmp_context' => array(
'method' => 'textbox',
'friendly_name' => __('SNMP Context (v3)'),
'description' => __('Enter the SNMP v3 Context for all new Devices.'),
'value' => '|arg1:snmp_context|',
'default' => '',
'max_length' => '64',
'size' => '40'
),
'snmp_engine_id' => array(
'method' => 'textbox',
'friendly_name' => __('SNMP Engine ID (v3)'),
'description' => __('Default SNMP v3 Engine Id for all new Devices. Leave this field empty to use the SNMP Engine ID being defined per SNMPv3 Notification receiver.'),
'value' => '|arg1:snmp_engine_id|',
'default' => '',
'max_length' => '64',
'size' => '40'
),
'snmp_port' => array(
'friendly_name' => __('Port Number'),
'description' => __('Default UDP Port for all new Devices. Typically 161.'),
'method' => 'textbox',
'default' => '161',
'max_length' => '10',
'size' => '5'
),
'snmp_timeout' => array(
'friendly_name' => __('Timeout'),
'description' => __('Default SNMP timeout in milli-seconds for all new Devices.'),
'method' => 'textbox',
'default' => '500',
'max_length' => '10',
'size' => '5'
),
'snmp_retries' => array(
'friendly_name' => __('Retries'),
'description' => __('Default SNMP retries for all new Devices.'),
'method' => 'textbox',
'default' => '3',
'max_length' => '10',
'size' => '5'
),
'availability_header' => array(
'friendly_name' => __('Availability/Reachability'),
'method' => 'spacer',
'collapsible' => 'true'
),
'availability_method' => array(
'friendly_name' => __('Downed Device Detection'),
'description' => __('Default Availability/Reachability for all new Devices. The method Cacti will use to determine if a Device is available for polling. <br><i>NOTE: It is recommended that, at a minimum, SNMP always be selected.</i>'),
'method' => 'drop_array',
'default' => AVAIL_SNMP,
'array' => $availability_options,
),
'ping_method' => array(
'friendly_name' => __('Ping Type'),
'description' => __('Default Ping type for all new Devices.</i>'),
'method' => 'drop_array',
'default' => PING_UDP,
'array' => $ping_methods,
),
'ping_port' => array(
'friendly_name' => __('Ping Port'),
'description' => __('Default Ping Port for all new Devices. With TCP, Cacti will attempt to Syn the port. With UDP, Cacti requires either a successful connection, or a \'port not reachable\' error to determine if the Device is up or not.'),
'method' => 'textbox',
'default' => '23',
'max_length' => '10',
'size' => '5'
),
'ping_timeout' => array(
'friendly_name' => __('Ping Timeout Value'),
'description' => __('Default Ping Timeout value in milli-seconds for all new Devices. The timeout values to use for Device SNMP, ICMP, UDP and TCP pinging. ICMP Pings will be rounded up to the nearest second. TCP and UDP connection timeouts on Windows are controlled by the operating system, and are therefore not recommended on Windows.'),
'method' => 'textbox',
'default' => '400',
'max_length' => '10',
'size' => '5'
),
'ping_retries' => array(
'friendly_name' => __('Ping Retry Count'),
'description' => __('The number of times Cacti will attempt to ping a Device before marking it as down.'),
'method' => 'textbox',
'default' => '1',
'max_length' => '10',
'size' => '5'
),
'updown_header' => array(
'friendly_name' => __('Up/Down Settings'),
'collapsible' => 'true',
'method' => 'spacer',
),
'ping_failure_count' => array(
'friendly_name' => __('Failure Count'),
'description' => __('The number of polling intervals a Device must be down before logging an error and reporting Device as down.'),
'method' => 'textbox',
'default' => '2',
'max_length' => '10',
'size' => '5'
),
'ping_recovery_count' => array(
'friendly_name' => __('Recovery Count'),
'description' => __('The number of polling intervals a Device must remain up before returning Device to an up status and issuing a notice.'),
'method' => 'textbox',
'default' => '3',
'max_length' => '10',
'size' => '5'
)
),
'visual' => array(
'themes_header' => array(
'friendly_name' => __('Theme Settings'),
'method' => 'spacer',
'collapsible' => 'true'
),
'selected_theme' => array(
'friendly_name' => __('Theme'),
'description' => __('Please select one of the available Themes to skin your Cacti with.'),
'method' => 'drop_array',
'default' => 'modern',
'array' => $themes
),
'table_header' => array(
'friendly_name' => __('Table Settings'),
'collapsible' => 'true',
'method' => 'spacer',
),
'num_rows_table' => array(
'friendly_name' => __('Rows Per Page'),
'description' => __('The default number of rows to display on for a table.'),
'method' => 'drop_array',
'default' => '30',
'array' => $item_rows
),
'autocomplete_enabled' => array(
'friendly_name' => __('Autocomplete Enabled'),
'description' => __('In very large systems, select lists can slow the user interface significantly. If this option is enabled, Cacti will use autocomplete callbacks to populate the select list systematically. Note: autocomplete is forcibly disabled on the Classic theme.'),
'method' => 'drop_array',
'default' => '1',
'array' => array(
1 => __('Yes'),
0 => __('No')
)
),
'autocomplete_rows' => array(
'friendly_name' => __('Autocomplete Rows'),
'description' => __('The default number of rows to return from an autocomplete based select pattern match.'),
'method' => 'drop_array',
'default' => '30',
'array' => $item_rows
),
'tree_header' => array(
'friendly_name' => __('Tree Settings'),
'collapsible' => 'true',
'method' => 'spacer',
),
'min_tree_width' => array(
'friendly_name' => __('Minimum Tree Width'),
'description' => __('The Minimum width of the Tree to contract to.'),
'method' => 'textbox',
'default' => '170',
'max_length' => '5',
'size' => '7'
),
'max_tree_width' => array(
'friendly_name' => __('Maximum Tree Width'),
'description' => __('The Maximum width of the Tree to expand to, after which time, Tree branches will scroll on the page.'),
'method' => 'textbox',
'default' => '300',
'max_length' => '5',
'size' => '7'
),
'filter_header' => array(
'friendly_name' => __('Filter Settings'),
'collapsible' => 'true',
'method' => 'spacer',
),
'strip_domain' => array(
'friendly_name' => __('Strip Domains from Device Dropdowns'),
'description' => __('When viewing Device name filter dropdowns, checking this option will strip to domain from the hostname.'),
'method' => 'checkbox',
'default' => ''
),
'object_creation_header' => array(
'friendly_name' => __('Graph/Data Source/Data Query Settings'),
'collapsible' => 'true',
'method' => 'spacer',
),
'max_title_length' => array(
'friendly_name' => __('Maximum Title Length'),
'description' => __('The maximum allowable Graph or Data Source titles.'),
'method' => 'textbox',
'default' => '110',
'max_length' => '10',
'size' => '5'
),
'max_data_query_field_length' => array(
'friendly_name' => __('Data Source Field Length'),
'description' => __('The maximum Data Query field length.'),
'method' => 'textbox',
'default' => '40',
'max_length' => '10',
'size' => '5'
),
'graphs_new_header' => array(
'friendly_name' => __('Graph Creation'),
'collapsible' => 'true',
'method' => 'spacer',
),
'default_graphs_new_dropdown' => array(
'friendly_name' => __('Default Graph Type'),
'description' => __('When creating graphs, what Graph Type would you like pre-selected?'),
'method' => 'drop_array',
'default' => '-2',
'array' => array(
'-2' => __('All Types'),
'-1' => __('By Template/Data Query')
)
),
'logmgmt_header' => array(
'friendly_name' => __('Log Management'),
'collapsible' => 'true',
'method' => 'spacer',
),
'num_rows_log' => array(
'friendly_name' => __('Default Log Tail Lines'),
'description' => __('Default number of lines of the Cacti log file to tail.'),
'method' => 'drop_array',
'default' => 500,
'array' => $log_tail_lines,
),
'max_display_rows' => array(
'friendly_name' => __('Maximum number of rows per page'),
'description' => __('User defined number of lines for the CLOG to tail when selecting \'All lines\'.'),
'method' => 'textbox',
'max_length' => 5,
'size' => 5,
'default' => 1000
),
'log_refresh_interval' => array(
'friendly_name' => __('Log Tail Refresh'),
'description' => __('How often do you want the Cacti log display to update.'),
'method' => 'drop_array',
'default' => 60,
'array' => $page_refresh_interval,
),
'clog_header' => array(
'friendly_name' => __('Log Viewer Settings'),
'collapsible' => 'true',
'method' => 'spacer',
),
'clog_exclude' => array(
'friendly_name' => __('Exclusion Regex'),
'description' => __('Any strings that match this regex will be excluded from the user display. <strong>For example, if you want to exclude all log lines that include the words \'Admin\' or \'Login\' you would type \'(Admin || Login)\'</strong>'),
'method' => 'textarea',
'textarea_rows' => '4',
'textarea_cols' => '80',
'max_length' => 512
),
'realtime_header' => array(
'friendly_name' => __('Real-time Graphs'),
'method' => 'spacer',
'collapsible' => 'true',
),
'realtime_enabled' => array(
'friendly_name' => __('Enable Real-time Graphing'),
'description' => __('When an option is checked, users will be able to put Cacti into Real-time mode.'),
'method' => 'checkbox',
'default' => 'on'
),
'realtime_gwindow' => array(
'friendly_name' => __('Graph Timespan'),
'description' => __('This timespan you wish to see on the default graph.'),
'method' => 'drop_array',
'default' => 60,
'array' => $realtime_window,
),
'realtime_interval' => array(
'friendly_name' => __('Minimum Refresh Interval'),
'description' => __('This is the minimal supported time between Graph updates. This value is also used to set certain RRDfile attributes. If you have a Device that caches data and does not provide realtime updates, you may have to increase the default Minimum Refresh Interval to prevent creating Graphs with gaps.'),
'method' => 'drop_array',
'default' => 10,
'array' => $realtime_refresh,