<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Syslog actions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619285#M925477</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I do think it is easier to do a seach on config file and theire dates. &lt;BR /&gt;&lt;BR /&gt;Start by creating a file that includes all the config files you like to monitor, use that file to compair the dates and if the are not simular, execute an script.&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;</description>
    <pubDate>Fri, 23 Nov 2001 16:06:05 GMT</pubDate>
    <dc:creator>G. Vrijhoeven</dc:creator>
    <dc:date>2001-11-23T16:06:05Z</dc:date>
    <item>
      <title>Syslog actions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619284#M925476</link>
      <description>Is it possible to cause actions to be executed upon the receipt of a given string of text in the body of a syslog message. (i.e., I have a device that sends a syslog message to my HP-UX box and if the words "config change" occur in the body of the message, then I want the HP-UX box to execute a pre-defined shell script.</description>
      <pubDate>Fri, 23 Nov 2001 15:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619284#M925476</guid>
      <dc:creator>Nial Gunn</dc:creator>
      <dc:date>2001-11-23T15:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog actions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619285#M925477</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I do think it is easier to do a seach on config file and theire dates. &lt;BR /&gt;&lt;BR /&gt;Start by creating a file that includes all the config files you like to monitor, use that file to compair the dates and if the are not simular, execute an script.&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Nov 2001 16:06:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619285#M925477</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-11-23T16:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog actions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619286#M925478</link>
      <description>I think I understand what you are saying but such a mecanism would mean doing some kind of regular polling of the files. I am looking for something that reacts upon the receipt of a syslog message from an external source. Some kind of interceptor utility that examines the text for a string as and when the messages are received as opposed to a periodic check, say for example,every 10 minutes.</description>
      <pubDate>Fri, 23 Nov 2001 16:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619286#M925478</guid>
      <dc:creator>Nial Gunn</dc:creator>
      <dc:date>2001-11-23T16:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog actions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619287#M925479</link>
      <description>Hi Rob,&lt;BR /&gt;&lt;BR /&gt;This script may do what you want, albeit simplistically:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;tail -1f /var/adm/syslog/syslog.log | while read line ; do&lt;BR /&gt;echo $line | grep -q "search string" &amp;amp;&amp;amp; your_script&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Fri, 23 Nov 2001 16:11:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619287#M925479</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-11-23T16:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog actions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619288#M925480</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Robins script will work fine. I tried to create a simular script but forgot the -1 option (tail).:-( &lt;BR /&gt;&lt;BR /&gt;Have a nice weekend.&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Fri, 23 Nov 2001 16:19:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syslog-actions/m-p/2619288#M925480</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-11-23T16:19:41Z</dc:date>
    </item>
  </channel>
</rss>

