Changing the alert disk setting
Hi,
i'm trying to change disk alerting for one host. (using 4.1.2 on the server , 4.1.2p1 deb client on the client).
in my hobbit-clients.cfg
DEFAULT UP 1h LOAD 5.0 10.0 DISK * 90 95 SWAP 20 40 MEMPHYS 100 101 MEMSWAP 50 80 MEMACT 90 97
and
HOST=%arkeia.* DISK %.*baie.* 98 100
output of the command gives :
df -Pl -x none -x tmpfs -x shmfs -x unknown | sed -e '/^[^ ][^ ]*$/{
N s/[ ]*\n[ ]*/ / }' Sys. de fich. 1024-blocs Occupé Disponible Capacité Monté sur /dev/sda1 1921020 573272 1250164 32% / /dev/sda3 4031680 1648928 2177952 44% /usr /dev/sda4 28939400 3752944 25186456 13% /opt /dev/sdb1 1470656664 1206425916 264230748 83% /baie1 /dev/sdc1 1470649576 1329252012 141397564 91% /baie2 /dev/sdd1 1953455832 404995500 1548460332 21% /baie3 /dev/sde1 1953532632 178712980 1774819652 10% /baie4
But i get :
/baie2 (91 %) has reached the WARNING level (90 %)
Did i missed something ?
Regards,
-- Etienne Roulland --- CVF Bordeaux
On Fri, Dec 09, 2005 at 11:28:16AM +0100, Etienne Roulland wrote:
i'm trying to change disk alerting for one host. (using 4.1.2 on the server , 4.1.2p1 deb client on the client).
in my hobbit-clients.cfg
DEFAULT UP 1h LOAD 5.0 10.0 DISK * 90 95 SWAP 20 40 MEMPHYS 100 101 MEMSWAP 50 80 MEMACT 90 97
and
HOST=%arkeia.* DISK %.*baie.* 98 100
Make sure you put DEFAULT section at the BOTTOM of the file.
If that doesn't help, run "bbcmd hobbitd_client --test" and do this:
henrik at osiris:~$ bbcmd hobbitd_client --test 2005-12-09 11:32:27 Using default environment file /usr/lib/hobbit/server/etc/hobbitserver.cfg Hostname (.=end, ?=dump, !=reload) []: arkeia Test (cpu, mem, disk, proc): disk Filesystem: /baie1 Yellow at 90%, red at 95% Hostname (.=end, ?=dump, !=reload) [arkeia]: ? UP 3600 -1 (line: 156) LOAD 5.00 10.00 (line: 157) DISK * 90% 95% 0 -1 red (line: 158) MEMSWAP 20 40 (line: 159) MEMREAL 100 101 (line: 160) MEMSWAP 50 80 (line: 161) MEMACT 90 97 (line: 162)
Henrik
Make sure you put DEFAULT section at the BOTTOM of the file.
ok ok ok ok ok
But i only saw that in changelog :
NOTE: If you are upgrading from 4.1.1, you MUST change the ~hobbit/server/etc/hobbit-clients.cfg file and add a line with the text "DEFAULT" before the default settings in the file.
Now it works thanks Henrik.
Rgds,
-- Etienne Roulland --- CVF Bordeaux
participants (2)
-
Etienne.Roulland@cvf.fr
-
henrik@hswn.dk