Xymon Mailing List Archive search

Downtime for disk check?

3 messages in this thread

list Eric Jacobs · Thu, 6 Mar 2014 12:02:16 -0500 ·
Every morning, sometime between 5 and 7, a particvular machine fills up a
disk and then, after a while it goes back down (backups followed by clean
up). Can I use "Downtime" for the disk alert?

-- 
Eric Jacobs
Thomas Publishing Company
Infrastructure and operations
Information Technology Group
Phone: XXX-XXX-XXXX
Email: user-2ad24e73f3d4@xymon.invalid
list Torsten Richter · Thu, 06 Mar 2014 18:32:48 +0100 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

yes you can. Just put DOWNTIME=disk:*:0500:0700:"Every morning" or
something like that in hosts.cfg on the line of that particular host and
if the disk is filling up to yellow and/or red the disk test goes blue
and if the disk space is going back to green the test will go back to green.
But you won't be able to be alerted if another disk in this machine is
filling up during this time too, well at least not until 7.

HTH
Torsten
quoted from Eric Jacobs

On 06.03.2014 18:02, Eric Jacobs wrote:
Every morning, sometime between 5 and 7, a particvular machine fills up a
disk and then, after a while it goes back down (backups followed by clean
up). Can I use "Downtime" for the disk alert?

- -- 
+---------------------------------------------------------+

| E-mail  : user-c862b499d9fa@xymon.invalid			  |
|							  |
| Homepage: http://www.richter-it.net/			  |
+---------------------------------------------------------+
Download my public key from:
http://gpg-keyserver.de/pks/lookup?search=0x899093AC&op=get
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iEYEARECAAYFAlMYsUAACgkQ7DlmxomQk6ycKgCcC4GLXJHi08V86cEjxukvO4hS
bPAAmQH/cgIzovW78BlM3cKhhO1kvPza
=Lfuf
-----END PGP SIGNATURE-----
list David Baldwin · Fri, 7 Mar 2014 09:30:16 +1100 ·
quoted from Eric Jacobs
On 7/03/14 4:02 AM, Eric Jacobs wrote:
Every morning, sometime between 5 and 7, a particvular machine fills
up a disk and then, after a while it goes back down (backups followed
by clean up). Can I use "Downtime" for the disk alert?
If it's the alerts rather than the actual colour that is the issue,
another option is in alerts.cfg to add an IGNORE rule - this still
preserves the colour status being reported by the test (rather than
making it blue for the duration of the DOWNTIME), but just stops the
alerts. With judicious use of regular expressions this can be very flexible.

Some examples:

PAGE=%(esx|infra|storage|win|dmz|gw|wansites|external|pabx|site).*
      IGNORE PAGE=win TIME=234:0000:0355 # WSUS update window
      IGNORE PAGE=dmz TIME=234:0000:0355 # WSUS update window
      IGNORE PAGE=interstate SERVICE=%(msgs|svcs) TIME=234:0000:0355 #
WSUS update window
      IGNORE PAGE=interstate SERVICE=%(ldap|dns|conn) DURATION<5m
      IGNORE HOST=%(backup[12]).* SERVICE=files TIME=*:1900:2100
      IGNORE HOST=%(host1).* SERVICE=msgs TIME=*:0100:0115
      IGNORE HOST=%(sihotvsv).* SERVICE=svcs TIME=45:0500:0535
      IGNORE HOST=%(\.ilo\.).* EXHOST=%(dr4100.*)
      IGNORE HOST=%(^webfilter\..*) SERVICE=%(http|wwwproxy)
DURATION<10m  # a bit noisy so only notify on multiple
      IGNORE HOST=%(^(flakyweb)\..*) SERVICE=%(http) DURATION<3m  # flapping
      IGNORE PAGE=%(win|interstate|dmz|gw)
EXHOST=%(^(host1|ns\d|wwwproxy.*|.*\.ilo)($|\..*)) SERVICE=msgs
      IGNORE SERVICE=%(adlock) # adlock notification unecessary
      IGNORE SERVICE=%(cpu|imap|pop3|smb|smtp|ftp|svcs|ports)
DURATION<10m # wait for multiple reds
      IGNORE SERVICE=%(conn|ssh) DURATION<2m # wait for multiple reds,
short test cycle time
      SCRIPT /usr/lib/xymon/server/ext/html_mail.pl pg-net
HOST=%((.*gw\d*|(dmz|sw|ext)[^.]*)\..*\.my\.domain) REPEAT=1440
COLOR=RED STOP   # network devices
      SCRIPT /usr/lib/xymon/server/ext/html_mail.pl pg-sysadmins
REPEAT=1440 COLOR=RED


-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission          http://ausport.gov.au
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid          1 Leverrier Street Bruce ACT 2617
Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE


Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au

This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.