summaryrefslogtreecommitdiffstats
path: root/config/glusternagios.conf.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/glusternagios.conf.in')
-rw-r--r--config/glusternagios.conf.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/glusternagios.conf.in b/config/glusternagios.conf.in
new file mode 100644
index 0000000..004b375
--- /dev/null
+++ b/config/glusternagios.conf.in
@@ -0,0 +1,17 @@
+##### glusternagios.conf #####
+
+$ModLoad omprog
+$actionomprogbinary @glusternagiospluginsdir@/check_gluster_syslog.py
+
+#
+## Pass logs to omprog if app-name is 'gluster'
+#
+$template GLFS_NAG_Template,"%msgid%/%syslogfacility-text:::uppercase%/%syslogseverity-text:::uppercase%/%app-name:::uppercase% [%TIMESTAMP:::date-rfc3339%] %msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
+
+if $app-name contains 'glusterfsd' then :omprog:;GLFS_NAG_Template
+
+
+#
+## discard logs where app-name is 'gluster' as we processed already
+#
+#if $app-name contains 'gluster' then ~