Commit 2c356e29 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): Added these parameters:

    Free space warning level
    Free space warning percent
    Free inodes warning level
    Free inodes warning percent
    Free space critical level
    Free space critical percent
    Free inodes critical level
    Free inodes critical percent
parent 1cf4591c
/*
* $Id: server-config.c,v 0.100 2003/08/29 10:40:46 ceder Exp $
* $Id: server-config.c,v 0.101 2003/10/03 07:33:41 ceder Exp $
* Copyright (C) 1991-1999, 2001-2003 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -532,6 +532,48 @@ static const struct parameter parameters[] = {
assign_path, unassign_path, 0, 1, SAVECORE_PATH,
&param.savecore_path,
NULL},
/* checkspace configuration */
{"Free space warning level",
assign_double, NULL, 0, 1, "10e6",
&param.chkspc_warn_space_abs,
NULL},
{"Free space warning percent",
assign_double, NULL, 0, 1, "10",
&param.chkspc_warn_space_percent,
NULL},
{"Free inodes warning level",
assign_double, NULL, 0, 1, "100",
&param.chkspc_warn_inode_abs,
NULL},
{"Free inodes warning percent",
assign_double, NULL, 0, 1, "5",
&param.chkspc_warn_inode_percent,
NULL},
{"Free space critical level",
assign_double, NULL, 0, 1, "1e6",
&param.chkspc_crit_space_abs,
NULL},
{"Free space critical percent",
assign_double, NULL, 0, 1, "2",
&param.chkspc_crit_space_percent,
NULL},
{"Free inodes critical level",
assign_double, NULL, 0, 1, "10",
&param.chkspc_crit_inode_abs,
NULL},
{"Free inodes critical percent",
assign_double, NULL, 0, 1, "0",
&param.chkspc_crit_inode_percent,
NULL},
/* end marker */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment