summaryrefslogtreecommitdiffstats
path: root/config/glusternagios.conf.in
blob: 1327c3153359dc25da001f4e003d6fc9931cd5f3 (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 ($app-name contains 'glusterfsd' or $programname startswith 'bricks') 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 ~