Hi,
Does anyone have a script that monitor the diskusage on netapp box and sends an email or sends a pager notification.
We have: Solaris 5.5.1 and netapp F520 and F230
If you have one please email it to me Thanks
Madhu Chandra (617)374-3418
Madhu,
Does anyone have a script that monitor the diskusage on netapp box and sends an email or sends a pager notification.
I have a perl script that does (a) remote shell to a filer and does "quota report" (b) if disk usage is over 80% (command line option) of quota, send an e-mail to user. We run this every Sunday midnight. If you want it I will mail it directly to you. Philip Thomas Motorola - ATL, M/S M350 2200 W. Broadway M350 Mesa, AZ 85202 rxjs80@email.sps.mot.com (602) 655-3678 (602) 655-2285 (fax)
-- Begin original message --
From: Madhu Chandra mnc@numeric.com Date: Wed, 22 Jul 1998 11:01:26 -0400 Subject: Disk usage script To: toasters@mathworks.com
Hi,
Does anyone have a script that monitor the diskusage on netapp box and sends an email or sends a pager notification.
We have: Solaris 5.5.1 and netapp F520 and F230
If you have one please email it to me Thanks
Madhu Chandra (617)374-3418
-- End original message --
Philip,
I would be really grateful for this also in -email format.
:)
Philip Thomas wrote:
Madhu,
Does anyone have a script that monitor the diskusage on netapp box and sends an email or sends a pager notification.
I have a perl script that does (a) remote shell to a filer and does "quota report" (b) if disk usage is over 80% (command line option) of quota, send an e-mail to user. We run this every Sunday midnight. If you want it I will mail it directly to you. Philip Thomas Motorola - ATL, M/S M350 2200 W. Broadway M350 Mesa, AZ 85202 rxjs80@email.sps.mot.com (602) 655-3678 (602) 655-2285 (fax)
-- Begin original message --
From: Madhu Chandra mnc@numeric.com Date: Wed, 22 Jul 1998 11:01:26 -0400 Subject: Disk usage script To: toasters@mathworks.com
Hi,
Does anyone have a script that monitor the diskusage on netapp box and sends an email or sends a pager notification.
We have: Solaris 5.5.1 and netapp F520 and F230
If you have one please email it to me Thanks
Madhu Chandra (617)374-3418
-- End original message --
Hi,
Does anyone have a script that monitor the diskusage on netapp box and sends an email or sends a pager notification.
We have: Solaris 5.5.1 and netapp F520 and F230
If you have one please email it to me Thanks
Madhu Chandra (617)374-3418
See http://now.netapp.com/download/tools/filer_watch_df/ on the NOW (NetApp on the Web) site. Let me know if you don't have NOW access...
It can be configured to send email (to any specified address, including a pager) based on a low disk space condition (vs. currently observed rates of consumption).
I'd be interested in knowing whether anybody out there is actually using this, and in hearing suggestions for improving it. (Note that a new version 2.0, was recently published).
(It used "rsh <filer> df"s to gather data.. I've considered making it use SNMP, but am currently an SNMP ignoramus and would have to learn it... would this be important to people?)
Richard Geiger rmg@netapp.com
(It used "rsh <filer> df"s to gather data.. I've considered making it use SNMP, but am currently an SNMP ignoramus and would have to learn it... would this be important to people?)
Trust me. It's worth your time to learn basic snmp stuff (ie it will make your life easier). I don't use any of the snmp trap stuff. I just use "snmpget" when I need to get information.
Here's an example of using snmpget to get the disk space available on a small toaster:
rootd 80> ./snmpget -a fs22:snmp:udp 1.3.6.1.4.1.789.1.5.4.1.4.1 1.3.6.1.4.1.789.1.5.4.1.4.1: INTEGER: 26183144 rootd 81> ./snmpget -a fs22:snmp:udp 1.3.6.1.4.1.789.1.5.4.1.3.1 1.3.6.1.4.1.789.1.5.4.1.3.1: INTEGER: 27421288
The "26183144" is the disk space used. The "27421288" is the disk space available. Here's the "df" output for comparison:
<root./pub/generic/wks/adm: 169> rsh fs22 df Filesystem kbytes used avail capacity Mounted on / 27421288 26183144 1238144 95% / /.snapshot 0 56 0 ---% /.snapshot
Which one is easier to parse? Especially when there's a snmpget perl library which will throw "27421288" right into a scalar variable for you. No need for rsh parsing, no need to deal with "if the server is down and my cron job rsh's to the server every 5 minutes..."
Of course, this all works because Netapp has a good MIB for fileservers, with CPU and filesystem space info.
In short, the snmp docs are scary. Ignore them. Just spend a day with the snmp FAQ, build snmpget (sorry, I can't remember the site where I got libSNMPt from, gawd, you think the distribution would have a README file or something). Learn how to use snmpget from the command line and from perl.
Then all you need to do is figure out which MIB number to use (ie that wierd 1.3.6.1.4.1.789.1.5.4.1.4.1 refers to a specific piece of data). If you check the archives of this mailing list, you'll find an email from me with a translation of most of the netapp ONTAP4 MIB. The guy at Netapp working on the MRTG stuff should know some good MIB numbers too.
Oh, did I mention that using snmp will make your life easier? :-)
Darrell Root rootd@nas.nasa.gov