[rsyslog-notify] Forum Thread: Re: RainerScript filters and output channels - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Thu Sep 18 20:52:52 CEST 2014
User: balar
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24944#p24944
Message:
----------
Thanks for the reply.
I turned on debug with setting the RSYSLOG_DEBUGLOG and RSYSLOG_DEBUG
environment variables, and it turns out that the problem was due to
permission on the directory /var/log/agalaxy. For example, from the debug
output:
4744.676175987:7ff5ceb94700: omfile: start of data: 'Sep 18 11:25:44
balar-lnx 2014-09-18 18:25:44,660 INFO [ag_slb] pid=26880, tn=MainThread,
qn=slb.device_configuration.backup, mn'
4744.676178533:7ff5ceb94700: write to stream, pData->pStrm 0x7ff5c80077b0,
lenBuf 263
4744.676181082:7ff5ceb94700: action 0xb469c0 call returned -2121
4744.676183587:7ff5ceb94700: entering actionCalldoAction(), state: itx
4744.676186010:7ff5ceb94700: file to log to: /var/log/agalaxy/slb.log
4744.676188400:7ff5ceb94700: omfile: start of data: 'Sep 18 11:25:44
balar-lnx 2014-09-18 18:25:44,660 INFO [ag_slb] pid=26880, tn=MainThread,
qn=slb.device_configuration.backup, mn'
4744.676190869:7ff5ceb94700: write to stream, pData->pStrm 0x7ff5c80077b0,
lenBuf 263
4744.676193328:7ff5ceb94700: action 0xb469c0 call returned -2121
4744.676195777:7ff5ceb94700: entering actionCalldoAction(), state: itx
4744.676198177:7ff5ceb94700: file to log to: /var/log/agalaxy/slb.log
4744.676200643:7ff5ceb94700: omfile: start of data: 'Sep 18 11:25:44
balar-lnx 2014-09-18 18:25:44,660 INFO [ag_slb] pid=26880, tn=MainThread,
qn=slb.device_configuration.backup, mn'
4744.676203172:7ff5ceb94700: write to stream, pData->pStrm 0x7ff5c80077b0,
lenBuf 263
4744.676205627:7ff5ceb94700: action 0xb469c0 call returned -2121
4744.676208393:7ff5ceb94700: strm 0x7ff5c80077b0: file -1(slb.log) flush,
buflen 2158
4744.676211047:7ff5ceb94700: strmPhysWrite, stream 0x7ff5c80077b0, len 2158
4744.676215288:7ff5ceb94700: file '/var/log/agalaxy/slb.log' opened as #-1
with mode 416
4744.676218711:7ff5ceb94700: strm 0x7ff5c80077b0:[color=#FF0040:1tvqoxxn]
open error 13, file '/var/log/agalaxy/slb.log': Permission
denied[/color:1tvqoxxn]
This was owned by root:
ls -ld /var/log/agalaxy
drwxr-xr-x 2 root root 4096 Sep 11 11:41 /var/log/agalaxy
After I changed the ownership on this directory to syslog, the output
channels are working fine with RainerScript.
Thanks for the help.
More information about the rsyslog-notify
mailing list