Sponsored Content
Top Forums Shell Programming and Scripting [Solved] File System Monitoring Script Post 302462520 by indrajit_renu on Thursday 14th of October 2010 11:35:14 AM
Old 10-14-2010
[Solved] File System Monitoring Script

Hello Scripts Guru

I had created a shell script to monitor the threshold of the file system, but some where it is not giving the correct output. Request to all to hel me out

I am getting the following output
Code:
/dev/vg00/lvol3 mounted on 1865224 10% / is 2097152%
/dev/vg00/lvol1 mounted on 1494288 18% /stand is 1835008%
/dev/vg00/lvol7 mounted on 2614408 75% /var is 10485760%
/dev/vg00/lvol8 mounted on 7469647 6% /var/adm/crash is 8454144%
/dev/vg00/lvol6 mounted on 2189632 58% /usr is 5242880%
/dev/vg00/lvol5 mounted on 2059336 1% /tmp is 2097152%
/dev/vg00/lvol4 mounted on 5109456 59% /opt is 12582912%
/dev/vg00/lv_app mounted on 121818 1% /app is 131072%
31457280 mounted on 72% /app/common is 22302271%

But I need a output, where if file system goes beyond 50% threshold, It should shows me output

Last edited by vbe; 10-14-2010 at 12:36 PM.. Reason: code tags please
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

file system monitoring script

Hi Does anyone know any website which contains examples of unix system monitoring scripts example? cheers (1 Reply)
Discussion started by: g-e-n-o
1 Replies

2. Shell Programming and Scripting

File monitoring script

Team, Attached 2 scripts for your validation(main script,mail script) Problem description: When its red it should wait for 10 seconds and then send a mail. If not red it should not send the mail i have done the below changes in the main script: if then if ... (4 Replies)
Discussion started by: whizkidash
4 Replies

3. Shell Programming and Scripting

Shell Script for monitoring File system.

Hi, need help to write one shell script to monitor UNIX file systems and if any changes happend like deletion of any file, adding new file, time stamp changed, permisson changed etc. Script need to send alert mail to defined person/mail id. I request someone to help me to create the... (1 Reply)
Discussion started by: vjauhari
1 Replies

4. Shell Programming and Scripting

ZFS file system - memory monitoring

I am working on a server where the 'root' user ZFS filesystem. Now when I do Top commands it says only 750M free .But when I count the actual memory utilized it comes only to 12 GB and the total size of the server is 32G. I think rest of the space is held up by ZFS file system. Is there a... (5 Replies)
Discussion started by: prasperl
5 Replies

5. Shell Programming and Scripting

system monitoring script

Hi, Does anyone have an example system monitoring script to monitor drives, memory, etc. Need a good example. Cheers Walnutpony (4 Replies)
Discussion started by: walnutpony123
4 Replies

6. Shell Programming and Scripting

Help with File Monitoring Script

I am getting errors when I try to run the script I just made, any suggestiongs would be helpful. Please be gentle, Im still a newbie and learning on the go at an entry level position. #!/usr/bin/ksh # PURPOSE: This script is going to view the top 10 largest home directory Folders, then go in each... (11 Replies)
Discussion started by: gkelly1117
11 Replies

7. UNIX for Dummies Questions & Answers

[Solved] Filesystem getting full. Need a monitoring script

Hi, I am new to shell scripting in unix HP-UX. I need to determine how much a perticular file system is full and if it goes over 80% it should notify through mail about which are the files which are greater than 1 GB size. I used df -k command it is showing the alloocated KB and the %used... (14 Replies)
Discussion started by: Soma Das
14 Replies

8. HP-UX

[Solved] Mount HP-UX File System in Windows 7

Hello, We just got a rx4640 that is running on: HP-UX B.11.31 U ia64 2426088954 unlimited-user license There is a plenty of space in it and we would like to use it for storage. I can access with ftp and place the files in there but i need to mount the file system in every PC that is running... (7 Replies)
Discussion started by: gjk
7 Replies

9. HP-UX

[Solved] Increase the file system size

Dear Friends, I would like to increase the size of a file system from 10GB to 15GB. System is runing on HP-UX 11.31. Please help in the matter. Regards, Bhagawati Pandey (3 Replies)
Discussion started by: BPANDEY
3 Replies

10. Shell Programming and Scripting

[Solved] Process dies when launched in system startup script

Good morning! I'm trying to add Maven to the system boot by the moment without success. Testing the operation of the script I realize that the process isn't persistent when the program is launched with the start option. ---- #Startup Script ---- #! /bin/sh # chkconfig: 345 99 1 #... (5 Replies)
Discussion started by: carpannav
5 Replies
envmond(8)						      System Manager's Manual							envmond(8)

NAME
envmond - Environmental Monitoring daemon SYNOPSIS
/usr/sbin/envmond DESCRIPTION
Environmental Monitoring provides a means of detecting system threshold conditions, that if exceeded, could result in a loss of data or damage to the system itself. Using the envmond daemon, thresholds levels can be checked and corrective action can ensue before any damage occurs. The envmond daemon performs the following: Queries the system for exceeded threshold levels. Broadcasts a message to users warning of high threshold conditions or fan failure, and suggests corrective action. Sends a message to users when a high temperature condition has been resolved. Notifies all users that an orderly shutdown is to be initiated if recovery is not possible. To enable Environmental Monitoring, the envmond daemon must be started during the system boot, but after the eSNMP and Server System MIB agents have started. Before starting Environmental Monitoring, a system check is performed. If the system hardware does not support Envi- ronmental Monitoring, the envmond daemon and Server System MIB are not started. You can customize, start, and stop the envmond daemon using the envconfig utility. For more information, see the envconfig reference page. FILES
A database that contains the values of the Environmental Monitoring variables. SEE ALSO
Commands: envconfig(8) envmond(8)
All times are GMT -4. The time now is 01:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy