summaryrefslogtreecommitdiffstats
path: root/config/glusternagios.conf.in
blob: b845b559c52bb689221552fbe189716beb373117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 (($msg contains 'quorum' or $msg contains 'quota_log_usage') and not ($msg contains '@cee')) then :omprog:;GLFS_NAG_Template


#
## discard logs where app-name is 'gluster' as we processed already
#
#if $app-name contains 'gluster' then ~