Skip to content

A sensu plugin to monitor filesystems availability and mount points (fstab)

License

Notifications You must be signed in to change notification settings

m4ce/sensu-plugins-fsmounts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sensu plugin for monitoring mount points

A sensu plugin to monitor whether entries listed in /etc/fstab are mounted and the other way around, as in currently mounted volumes have an entry in /etc/fstab.

The plugin generates multiple OK/WARN/CRIT/UNKNOWN events via the sensu client socket (https://sensuapp.org/docs/latest/clients#client-socket-input) so that you do not miss state changes when monitoring multiple mountpoints.

Usage

The plugin accepts the following command line options:

Usage: check-fsmounts.rb (options)
        --fstype <TYPE>              Comma separated list of file system type(s) (default: all)
        --ignore-fstype <TYPE>       Comma separated list of file system type(s) to ignore
        --ignore-mount <MOUNTPOINT>  Comma separated list of mount point(s) to ignore
        --ignore-mount-regex <MOUNTPOINT>
                                     Comma separated list of mount point(s) to ignore (regex)
        --handlers <HANDLERS>        Comma separated list of handlers
        --mount <MOUNTPOINT>         Comma separated list of mount point(s) (default: all)
        --mount-regex <MOUNTPOINT>   Comma separated list of mount point(s) (regex)
    -w, --warn                       Warn instead of throwing a critical failure

Use the --handlers command line option to specify which handlers you want to use for the generated events.

Author

Matteo Cerutti - matteo.cerutti@hotmail.co.uk

About

A sensu plugin to monitor filesystems availability and mount points (fstab)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages