File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ See [modules/base/collector.go](modules/base/collector.go) for details.
55
55
Module: ` icinga2 `
56
56
57
57
* Configuration from ` /etc/icinga2 `
58
- * Files in ` /usr/lib64/nagios/plugins `
58
+ * Files in PluginDir
59
59
* Package information
60
60
* Service status
61
61
* Config check result
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ const ModuleName = "icinga2"
12
12
var files = []string {
13
13
"/etc/icinga2" ,
14
14
"/var/log/icinga2/icinga2.log" ,
15
+ }
16
+
17
+ var pluginFiles = []string {
15
18
"/usr/lib64/nagios/plugins" ,
19
+ "/usr/lib/nagios/plugins" ,
16
20
}
17
21
18
22
var optionalFiles = []string {
@@ -65,6 +69,7 @@ func Collect(c *collection.Collection) {
65
69
for _ , file := range files {
66
70
c .AddFiles (ModuleName , file )
67
71
}
72
+ c .AddFilesAtLeastOne (ModuleName , pluginFiles ... )
68
73
69
74
for _ , file := range optionalFiles {
70
75
if _ , err := os .Stat (file ); err != nil {
You can’t perform that action at this time.
0 commit comments