[opensuse] Any one tried in syslog-ng a "program() destination driver"?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



(repost after my unsubscribe by server)


Hi,

I'm trying to get a program executed or do something when certain message
is logged. I'm trying the following in syslog-ng:


filter f_router_got_ip { host("router") and match("Received valid IP address from server"); };


destination router2 { file("/var/log/router2"); };
log { source(ext); filter(f_router_got_ip); destination(router2); };



This does work, I get the expected entry in /var/log/router2. However, if
I try this, per the documentation:

destination routerip { program("/usr/local/syslog-askandlogrouterip"); };
log { source(ext); filter(f_router_got_ip); destination(routerip); };



The destination program (a script) never runs. According to the
documentation, the program should be loaded only once right at the start:



program()

This driver executes the specified program with the specified
arguments and sends messages to the standard input (stdin) of the
child.

The program() driver has a single required parameter, specifying a
program name to start. The program is executed with the help of the
current shell, so the command may include both file patterns and
I/O redirection, they will be processed.

Declaration:
program(commandtorun);

Note

The program is executed once at startup, and kept running until


- -- Cheers,
Carlos R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHoKGUtTMYHG2NR9URAr4OAJ9WbNn2fgvPNil5rt4XnuPS8OS5xwCdEJBU
tjaXr3SVAQPupE0mtRP5Mu8=
=sSSq
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Printing the date just before execution of commands in bash
    ... command executed. ... it looks like tcsh has a lot more than bash in this area. ... command has been read by the shell but just before it executes the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: find -execdir + sed problem
    ... find but for some reason sed doesn't match the string in this manner, ... executed by the shell before it executes find ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Search Path in bash2
    ... and reads and executes commands from the first ... application dependent env vars - in Linux, ... To unsubscribe, ...
    (freebsd-questions)
  • Re: OT: Linux Interview Questions
    ... executes them sequentially as long as none of them fail, ... return a 1 and the whole statement will fail. ... I find bash scripting very cryptic and I don't mean that as ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Adding a right click option from within a folder
    ... shellnew supports another method, which executes an application. ... Command - Executes an application. ... This is a REG_SZ value specifying the path of the application to be executed. ...
    (microsoft.public.windowsxp.customize)