Hi Ian,
On Thu, Aug 24, 2023 at 10:46:59AM +0700, Ian Hobson via BitFolk Users wrote:
This morning I find that it ran out of disk space on
22nd
Did you manage to work out where all the space went?
How can I set up something to alert me of this problem
before it becomes
critical? Say disk space used over 75%.
As Adam mentioned, if you'd rather not set up something yourself
then BitFolk's own free monitoring can alert on such things. Have a
read of:
https://tools.bitfolk.com/wiki/Monitoring
and then ask support(a)bitfolk.com to set it up if you want that.
There's no escaping you having to install something in your VM if
you want disk space monitoring. An NRPE server is probably the
easiest, but if you already run snmpd then it can be done through
that.
On Debian/Ubuntu the package name is nagios-nrpe-server, then
monitoring-plugins-basic for the actual plugins that your NRPE
server would execute. Adam already showed you a typical config line:
command[check_disks]=/usr/lib/nagios/plugins/check_disk -w 25% -c 10% -W 25% -K 10% -A
-L -i udev -i tmpfs -i none
You can see what all that means by running the plugin directly:
$ /usr/lib/nagios/plugins/check_disk --help
After adding that to your NRPE you'd tell BitFolk support that your
command name is "check_disks" and we'd start triggering the checks.
You can of course come up with NRPE checks for anything that can be
checked by a command line.
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting