<?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 Unix server Apache instences monitering in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unix-server-Apache-instences-monitering/m-p/55737#M10902</link>
    <description>&lt;P&gt;How to moniter apache instance of a Unix server in splunk.&lt;BR /&gt;
There are 10 apache instances running every time in Unix server. and my idea is to check whether it is up or down through Splunk.&lt;BR /&gt;
Can anybody suggest me.&lt;BR /&gt;
I have a code to run manullay in Server as well&lt;BR /&gt;
Name : apache_serv&lt;BR /&gt;
If I run "apache_serv resident all", it list down all the apache instances. &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:28:44 GMT</pubDate>
    <dc:creator>marellasunil</dc:creator>
    <dc:date>2020-09-28T13:28:44Z</dc:date>
    <item>
      <title>Unix server Apache instences monitering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unix-server-Apache-instences-monitering/m-p/55737#M10902</link>
      <description>&lt;P&gt;How to moniter apache instance of a Unix server in splunk.&lt;BR /&gt;
There are 10 apache instances running every time in Unix server. and my idea is to check whether it is up or down through Splunk.&lt;BR /&gt;
Can anybody suggest me.&lt;BR /&gt;
I have a code to run manullay in Server as well&lt;BR /&gt;
Name : apache_serv&lt;BR /&gt;
If I run "apache_serv resident all", it list down all the apache instances. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unix-server-Apache-instences-monitering/m-p/55737#M10902</guid>
      <dc:creator>marellasunil</dc:creator>
      <dc:date>2020-09-28T13:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unix server Apache instences monitering</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unix-server-Apache-instences-monitering/m-p/55738#M10903</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I am not sure how familiar you are will script inputs or what your deployment process.  This is my thought is to create a script input.  I assume that apache_serv is a perl, bash, python or some kind of script.  If so I would create a .sh file to be ran using splunk script input method.  Splunk will then read the output from your command.  &lt;/P&gt;

&lt;P&gt;Going a little further I would create a Technology Add-on (TA) and deploy it via the Deployment Server.&lt;/P&gt;

&lt;P&gt;myApacheInstances.sh&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
#!/bin/bash&lt;BR /&gt;
/bin/&amp;lt;script_location&amp;gt;/ apache_serv resident all&lt;BR /&gt;
done&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;If I created a TA this call apache_default&lt;/P&gt;

&lt;P&gt;Outputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[script://$SPLUNK_HOME/apache_default/bin/myApacheInstance.sh] &lt;BR /&gt;
index = &amp;lt;myIndex&amp;gt;&lt;BR /&gt;
source = myApacheInstances.sh&lt;BR /&gt;
sourcetype = &amp;lt;mySourceType&amp;gt;&lt;BR /&gt;
#My interval for collection&lt;BR /&gt;
interval = 0 0 * * *&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Additional Reading:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Setupcustominputs"&gt;Setupcustominputs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/ES/latest/CreateTA/CreatingaTechnologyAdd-on"&gt;CreatingaTechnologyAdd-on&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps or gets you started.  Dont forget to thumbs up and/or accept answers.&lt;BR /&gt;&lt;BR /&gt;
Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2013 18:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unix-server-Apache-instences-monitering/m-p/55738#M10903</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-03-08T18:32:31Z</dc:date>
    </item>
  </channel>
</rss>

