ZFS Monitoring Script
Hello Mike + hobbits, i wanted to have a first line in the hobbit message, so that i can include this line in a sms alert. That's why i changed your script a little bit. It gives you "zfs - health: okay - capacity: okay" if all is okay Thanks Uwe Kirbach EnBW Energie Baden-Württemberg Systeme Infrastruktur Support GmbH Informationsverarbeitung Operations Infrastrukturbetrieb Unix Sitz der Gesellschaft: Karlsruhe Handelsregister: Amtsgericht Mannheim - HRB 108550 Vorsitzender des Aufsichtsrats: Dr. Bernhard Beck Geschäftsführer: Jochen Adenau, Dr. Peter Krampf -----Original Message----- From: Mike Rowell [mailto:user-63f3e97eb1de@xymon.invalid] Sent: Thursday, April 12, 2007 5:14 PM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] ZFS Monitoring Script Sorry made a typo when trying some new functionality, working version attached. Mike From: Mike Rowell [mailto:user-63f3e97eb1de@xymon.invalid] Sent: 12 April 2007 15:15 To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] ZFS Monitoring Script Okay here it is, it's small but does the following. File system HEALTH. ONLINE = green DEGRADED = yellow FAULTED = red File system sizes are set to alert yellow at 80% capacity and red at 90%, the variables to alter this are at the top of the file. It doesn't check scrub status as yet as I'm not to sure what the scrub will report back, so once I've got some scrubbing underway I'll adjust the script to take into account scrubbing. This was something I threw together in 15minutes as we just realized that UFS would not suit the requirements of a project and therefore we had to move to ZFS. Enhancements I'm working on are to display all the storage devices in the pools and their health and also read / write and checksum errors, but they will have to wait for a bit. Mike Rowell Systems Team Leader * Email: user-63f3e97eb1de@xymon.invalid * Tel: XXX XXXX XXXX * Fax: XXXX XXX XXXX www.rightmove.co.uk <http://www.rightmove.co.uk/> - the UK's number 1 property website This message (including any attachments) is confidential and may be legally privileged. The content and views expressed are those of the sender and not necessarily Rightmove plc. If you are not the intended recipient, you must not disclose, copy or use any part of it. Please delete all copies immediately and notify the sender. Rightmove plc is registered in England and Wales, No. 03997679. Registered Office: Rightmove plc, Grafton Court, Snowdon Drive, Milton Keynes, MK6 1AJ. This email has been scanned for all viruses by the MessageLabs service. This email has been scanned for all viruses by the MessageLabs service. This email has been scanned for all viruses by the MessageLabs service.
Attachments (1)