[Xymon] Downtime for disk check?
David Baldwin
david.baldwin at ausport.gov.au
Thu Mar 6 23:30:16 CET 2014
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
david.baldwin at ausport.gov.au 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.
-------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140307/c1fe0a8b/attachment.html>
More information about the Xymon
mailing list