[Nagiosplug-devel] additional function for check_disk [Virus checked]
Matthias.Eble at kaufland.de
Matthias.Eble at kaufland.de
Tue May 17 10:02:05 CEST 2005
Hi list,
at the moment, check_disk returns a state != STATE_OK if any of the
monitored filesystems has less than -w or -c freespace.
In our case, this doesn't meet our needs, since our Oracle databases use
more than just one filesystem to store their data.
So if there are n data-volumes available, it doesn't matter if one or n-1
volumes get filled 100% as long as one volume remains beyond
the warning level.
I've got three approaches for solve this problem.
First:
Introduce an option like -g (--group) followed by a comma_seperated_list
of partitions/lvols/mountpoints which are to group.
Second:
Use a own nrpe command for every group of filesystems and introduce a flag
like -g (in addition to multiple -p options) to tell check_disk to return
warn/error if all
filesystems monitored by this command get full
Third:
Build an ugly shellscript which executes check_disk for every
datafilesystem and return != 0 if all of these checks return !=0.
A further parameter could be sth like minimum_filesystems_ok to decide if
the state is ok if 1,2,3,... filesystems of a group have more than -w/-c
free space.
What do you think about it?
Is the check_disk plugin is the right place to reproduce a functionality
like this.
Does anybody know applications like Oracle which use more than one
filesystems for the same purpose?
Thanks a lot
Matthias
More information about the Devel
mailing list