fsmon

package
v0.0.0-...-37766d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2013 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Overview

Package fsmon provides the monitor to check current filesystem levels.

A configuration file defines the filesystems to check and the warning and critical levels. It also has an ignore flag should the filesystem usage be due to a known situation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChecks

func RunChecks() bool

RunChecks performs the checks required by this monitor. It returns a boolean value to denote whether an alert has been raised.

Types

type FileSystemInfo

type FileSystemInfo struct {
	FilesystemName string
	PercentUsed    int
}

Type FileSystemInfo contains the current usage of a filesystem.

type Filesystems

type Filesystems struct {
	FsConfigs []FsConfig
}

type FsConfig

type FsConfig struct {
	FilesystemName string
	Ignore         bool
	Warn           int
	Crit           int
}

Type FsConfig contains the relevant information for a filesystem.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL