Visit The New, Modern Unix Linux Community

Script to automate NAS space alerts

Thread Tools Search this Thread
Operating Systems Solaris Script to automate NAS space alerts
# 1  
Script to automate NAS space alerts

Hello Everyone,

I need your expertise in creating script on how to automate sending of alert/notification of NAS Space and also File counts with the following requirements.

1. Automatically send to assigned sysadmin if it crosses threshold level.
2. Threshold is 80% utilization of the total capacity (e.g. 70GB used out of 100GB.

Thanks in Advance.

# 2  
# 3  
Script to automate NAS space alerts

Hi sb008,

Yes..i need to get alerts in mail..plz help me..!!

Thanks in Advance.

# 4  
Build a script which gathers your the volume information of your NAS using SNMP.

Check your NAS documentation or NAS MIBs for the OID's to use.

If it would be a Linux box, something like:

snmpwalk -v2c -c <somecommuntystring> <somehost> hrStorage

would provide the required info.

Ofcourse SNMP needs to be enabled on your NAS.

If you have no idea about the OID's, run a full walk to find them.

snmpwalk -v2c -c <somecommuntystring> <somehost> .

Notice the dot "." at the end.

The SNMP output, in case of a walk, are indexed tables.

Combine "Description", "Size", "Used" or whatever in the script to calculate the used percentage for each volume.

Define a treshhold in your script and if the used percentage for a voulme exceeds the treshhold, send out an e-mail.

Run the script as a Cron job


Or use some monitoring tool like Nagios. Nagios is capable to send out alerts by e-mail.
# 5  
Script to automate NAS space alerts

Hi sb008,

Thanks for your reply.

But I need script for Solaris box.

A script which sends NAS Space Alerts & File counts & also large space occupied filename in the same alerts.

Thanks in advance.


Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #496
Difficulty: Easy
Many programming languages assign special meaning to keywords such as for, if, and while (for example) that are used to define various control structures.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Send email attachment using Operating System Script(UNIX) in Oracle Alerts

Good Day Kindly assist: I am creating an Alert that will notify supervisors of staff members who are due for probation report. I am using Operating System Script(Unix) as source.I have already developed the script. Now the challenge is if there are 3 employee records then the alert... (2 Replies)
Discussion started by: nosi27
2 Replies

2. Shell Programming and Scripting

UNIX script to find alerts for swap space

Can someone get me script to find swap space for linux servers (1 Reply)
Discussion started by: Moon1234
1 Replies

3. Shell Programming and Scripting

Need help fix my script to get alerts when the command produce n expected output

Hi, Below is my script, which is used to invoke a test using curl command. #/usr/bin/sh URL='' SOAPFILE=/tmp/soap.txt curl -k -s -S --header 'Content-Type: text/xml;charset=UTF-8' --data @"${SOAPFILE}" "${URL}" ... (3 Replies)
Discussion started by: System Admin 77
3 Replies

4. Shell Programming and Scripting

Startup script wont execute on NAS

Hi, So I've created /etc/rc.local #!/bin/sh polipo -c /opt/etc/polipo/polipo.conf exit 0 if I run it with ./rc.local it does what its supposed to do and the proxy starts but not at startup. any idea whats wrong? thanks (1 Reply)
Discussion started by: deon
1 Replies

5. AIX

How to write a script to send these alerts?

Hello AIXians :) I want to complete this task using a script. The task is: We have a file called (alerts.log), this file is receiving all new alerts from ORACLE application all the day, I want to send email to a specific mail address when this file receives all alerts that starts with... (5 Replies)
Discussion started by: Mohannad
5 Replies

6. Windows & DOS: Issues & Discussions

automate the script

Dear all, I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies

7. Shell Programming and Scripting

mail script to automate

Hi, Here below the logs from the mail server: less /var/log/messages: Sep 6 04:03:31 server-59 out: 1252227811|||2175|success|1 Sep 6 04:03:33 server-59 in: 1252227813|||30376|success|1 Sep 6 04:03:35 server-59... (8 Replies)
Discussion started by: gsiva
8 Replies

8. Shell Programming and Scripting

How can I automate a script?

Hi All, Can I automate a script when some one trying to 'vi' (open) a file. For Example, I am having a file named ''. when a user types " vi " in unix command prompt a script named needs to be automated. Can this be possible. if Yes please guide... (2 Replies)
Discussion started by: little_wonder
2 Replies

9. Shell Programming and Scripting

Looking for help with a script to automate VLC

Hi, New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate. I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in... (2 Replies)
Discussion started by: uncertain
2 Replies

10. Shell Programming and Scripting

here document to automate perl script that call script

I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl call, input is no longer entered into this subscript. here is my script $ cat #ksh for testcase do program <<-EOF | tee -a funcscnlog.log y... (3 Replies)
Discussion started by: hogger84
3 Replies

Featured Tech Videos