I'm going to be sending syslog from my one device/server to an Ubuntu server.
On the Ubuntu server (receiving the syslog), I want it to trigger a script when specific syslog messages arrive.
Is this possible?
|
I'm going to be sending syslog from my one device/server to an Ubuntu server. On the Ubuntu server (receiving the syslog), I want it to trigger a script when specific syslog messages arrive. Is this possible? |
|||||
|
|
Question seems to have changed a bit and targetted on scripting, rather than sending notifications. I might remove this answer later. It seems it is quite straightforward to set up real time triggering of shell scripts based on messages passed to rsyslog. If OP rewrites his answer to contain a better picture of what he is aiming for (as already posted in comments), I am willing to provide a high quality answer here. Not exactly sure what your requirements are, but one particular piece of software I could recommend is Its purpose is to send mail digests on specific matched (interesting) lines. I'm assuming basic mail configuration is working (e.g. Extracted some of the essential steps from this tutorial:
|
|||||
|