[CentOS] Disk space warning ("gdu-notification-daemon" type) for remote systems

Tris Hoar trishoar at bgfl.org
Wed Mar 12 12:46:04 UTC 2014


On 12/03/2014 09:07, Toralf Lund wrote:
> On 11/03/14 16:16, Les Mikesell wrote:
>> On Tue, Mar 11, 2014 at 9:49 AM, Toralf Lund <toralf.lund at pgs.com> wrote:
>>>>        I think you should build a
>>>> monitoring system (nagios, xymon, opennms, several others or perhaps
>>>> your own if you're feeling far too adventurous) instead.  right now
>>>> all you care about is disk space, but eventually someone will want to
>>>> also check for certain processes, open ports, logfile entries,
>>>> something and you could spend the time now to put in the hooks for
>>>> more advanced things and get people in the habit of checking a
>>>> monitoring system on a regular basis.
>>> In general, that might make sense, but please consider the fact that I'm
>>> not talking about a "general" server system. It's a machine dedicated to
>>> running a "server" component on one specific software package, and will
>>> only ever be contacted by a handful of "display" machines running a GUI
>>> component of the same piece of software.
>> Then you need to look at the features of the specific GUI and its
>> transport to the server to see what options it provides for popup
>> messages.
> I can easily add a check to software itself. But like I said, I want to
> avoid re-inventing the wheel. So if there is something built into the
> system that will do the job for me...
>
>>       Personally, I'd still recommend something more general
>> that would generate email or text message alerts to the right set of
>> people.  It is fairly rare for 'users' to be interested in fixing
>> system problems and even if that happens to be the case now for this
>> particular box it may not always be.
> Trust me, this is a highly customised setup with very special users, and
> this won't change just like that.
>
> A more general system is not an entirely bad idea, but I think it would
> only make sense if implemented at a larger scale based on a system-wide
> policy (there is much else going on in the same network.) Which I'm not
> sure will happen right now...
>
> - Toralf
>
>
>>
>
>
You could use the Nagios check_disk plugin to monitor the disk usage. 
This gives easy to use response codes and could be wrapped in a script 
that sends an email if if runs low on space. put in cron to run every 10 
minutes or something like that and it will do what you are looking for.
You can get the plugin from epel and it is trivial to install and use.

Tris


*************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity 
to whom they are addressed. If you have received this email 
in error please notify postmaster at bgfl.org

The views expressed within this email are those of the 
individual, and not necessarily those of the organisation
*************************************************************


More information about the CentOS mailing list