<?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: Disk Usage Alerts - Linux Disk Monitoring in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16531#M96</link>
    <description>&lt;P&gt;Shouldn't your "| fields -&lt;EM&gt;&lt;CODE&gt;" be "&lt;/CODE&gt;| fields - *`" (space between "-" and "&lt;/EM&gt;")&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2010 00:48:13 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-07-01T00:48:13Z</dc:date>
    <item>
      <title>Disk Usage Alerts - Linux Disk Monitoring</title>
      <link>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16529#M94</link>
      <description>&lt;P&gt;Utilizing the Splunk forwarder off of our SANS box we can see disk usage across all volumes that are attached.  Now that we have the data does anybody have a recommended way of alerting on a mount when it drops below x usage?&lt;/P&gt;

&lt;P&gt;Right now I would like to setup some sort of notification / email alert to send me an email when /mnt/sansmount drops below 2.0T available disk space or 90% UsePct but for some reason I can't seem to get it working.  &lt;/P&gt;

&lt;P&gt;Has anyone done this or have any ideas?  &lt;/P&gt;

&lt;P&gt;Thanks again to everyone&lt;/P&gt;

&lt;P&gt;Filesystem                                          Type              Size        Used       Avail      UsePct    MountedOn
/dev/sda5&lt;BR /&gt;                                           ext3              4.9G        1.4G        3.3G         31%    /
/dev/sda8&lt;BR /&gt;                                           ext3              164G         96G         60G         62%    /usr
/dev/sda7&lt;BR /&gt;                                           ext3              2.0G        763M        1.1G         41%    /opt
/dev/sda6&lt;BR /&gt;                                           ext3              3.9G         73M        3.7G          2%    /tmp
/dev/sda3&lt;BR /&gt;                                           ext3              4.9G        380M        4.3G          9%    /var
/dev/sda1&lt;BR /&gt;                                           ext3              2.0G         41M        1.8G          3%    /boot
/dev/cvfsctl1_sansmount                             cvfs               18T         15T        2.8T         84%    /mnt/sansmount&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 20:56:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16529#M94</guid>
      <dc:creator>travistrp</dc:creator>
      <dc:date>2010-06-30T20:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage Alerts - Linux Disk Monitoring</title>
      <link>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16530#M95</link>
      <description>&lt;P&gt;I'm using the following search for my alerting purposes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=df | multikv | dedup host,Filesystem | rex field=UsePct "(?&amp;lt;usage&amp;gt;\d+)" | where usage&amp;gt;90 | eval _raw="Filesystem "+Filesystem+" (mount point "+MountedOn+") on host "+host+" is "+UsePct+" full!" | fields - *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Explaination in detail:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;sourcetype=df&lt;/CODE&gt; - Lists all df Events&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;| multikv&lt;/CODE&gt; - Splits the table-formated event into an event for each line&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;| dedup host,Filesystem&lt;/CODE&gt; - only keep the latest event per host and filesystem&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;| rex field=UsePct "(?&amp;lt;usage&amp;gt;\d+)"&lt;/CODE&gt; - Extracts a clean number form the UsePct field (ie. without the %-character) into the 'usage' field&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;| where usage&amp;gt;90&lt;/CODE&gt; - Filters events by the given threashold&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;| eval _raw="Filesystem "+Filesystem+" (mount point "+MountedOn+") on host "+host+" is "+UsePct+" full!"&lt;/CODE&gt; - Overwrites the event text with a something that is better readable. This will be in the email, if the option include results is enabled&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;| fields - *&lt;/CODE&gt; Remove all fields&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you want to restict the alert/search to some specific mountpoints, then you would need to add another filter to your search, like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=df | multikv | dedup host,Filesystem | search MountedOn="/mnt/sansmount" | rex field=UsePct "(?&amp;lt;usage&amp;gt;\d+)" | where usage&amp;gt;90 | eval _raw="Filesystem "+Filesystem+" (mount point "+MountedOn+") on host "+host+" is "+UsePct+" full!" | fields - *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the alerting, I've created a saved search which runs every day for the last 24 hours (-24h) and sends an email if number of events is greater than 0.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2010 21:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16530#M95</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-06-30T21:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage Alerts - Linux Disk Monitoring</title>
      <link>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16531#M96</link>
      <description>&lt;P&gt;Shouldn't your "| fields -&lt;EM&gt;&lt;CODE&gt;" be "&lt;/CODE&gt;| fields - *`" (space between "-" and "&lt;/EM&gt;")&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2010 00:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16531#M96</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-07-01T00:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage Alerts - Linux Disk Monitoring</title>
      <link>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16532#M97</link>
      <description>&lt;P&gt;Yes, you're right. I've corrected it in the post. Using "field -*" actually works as well, it would be an include of all fields that start with a "-" character. I wasn't my intention, though &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2010 04:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16532#M97</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-07-01T04:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage Alerts - Linux Disk Monitoring</title>
      <link>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16533#M98</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to setup disk space alert for few servers but I am not getting any results with sourcetype="df".&lt;/P&gt;

&lt;P&gt;As I am very new splunk user, could you please let me know is there any other source type available for disk space or how can I set up alert on those servers where sourcetype=df not available?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 05:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Disk-Usage-Alerts-Linux-Disk-Monitoring/m-p/16533#M98</guid>
      <dc:creator>vinay_uim</dc:creator>
      <dc:date>2016-08-20T05:25:46Z</dc:date>
    </item>
  </channel>
</rss>

