blob: e3a8bc05f2e09da85b926631628b61bce7a3d0ac (
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')) or ($msg contains 'quorum') then :omprog:;GLFS_NAG_Template
#
## discard logs where app-name is 'gluster' as we processed already
#
#if $app-name contains 'gluster' then ~
|