LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 08-20-2004, 01:17 PM   #1
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
Post DISCUSSION: Monitoring Harddrive usage automatically


This thread is to discuss the article titled: Monitoring Harddrive usage automatically
 
Old 08-20-2004, 08:30 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hope you don't mind my editing too much :)
I corrected a few flaws in your cron explanation
and changed grep to egrep and made it match
100 as well.


Cheers,
Tink
 
Old 08-29-2004, 03:03 PM   #3
ddstyles
LQ Newbie
 
Registered: Nov 2001
Location: Auckland NZ
Distribution: Linux Mint
Posts: 18

Rep: Reputation: 0
just a note on the first part of the cron entry:
the * means: run every possible time for this field.

i.e. 5 22 * * * means minute 5, hour 22, and then every day of the month, every month, and every day of the week.
If you added 5 22 15 * * the cron would only run on the 15th day of the month.

Duncan
 
Old 08-29-2004, 08:24 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
But then his tutorial isn't on cron, it's on automated
disk-space monitoring... ;)


Cheers,
Tink
 
Old 08-30-2004, 03:15 AM   #5
circlecreek
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Thumbs up Monitoring hard-drive usage

I've been to a demo of a very impressive Monitoring solution by MetaMind in Basel. It's very efficient since even when everything fails, agents (they call metamon) continue to trace why this happened and will fill logs as soon as back online...

Worth a check at: www.metamindsolutions.com
 
Old 08-30-2004, 03:30 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Wonder where that logs to when both hdd's and a
network-connections are gone :)

Btw, the homepage is atrocious.
 
Old 09-02-2004, 06:54 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Nice as a whole. Being me and thus being lazy, I'd want to know in the mail which drive was how full without having to run the job again on my screen.

My first idea was to "tee" the second pipe and by that means insert the egrep-results into the mail. Could this be done by variables as well and how would they get their values assigned and introduced into the mail?
 
Old 09-02-2004, 09:28 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Nichts leichter als das :}
[Nothing more easy than that :}]

Code:
0 22 * * * full=`df | egrep "(100%|[89][09]%)"` && mail -s "Warning, $full is filling up."  you@emailaddr.com


Wirsing,
Tink

Last edited by Tinkster; 09-02-2004 at 10:06 PM.
 
Old 09-03-2004, 02:06 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Guten Morgen
[good morning ... ahm, should rather be good night in NZ]

Whoa, we are on the economic trip here .
Thank you for the solution.

Wirsing? Grütze an die Kiwis!

Last edited by JZL240I-U; 09-03-2004 at 02:10 AM.
 
Old 09-03-2004, 02:17 AM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I take it you liked my solution? :)


One is glad to be of service ...



Cheers,
Tink

Und Danke fuer die Gruetze ;}
 
Old 04-12-2005, 01:22 AM   #11
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
I sort have made my own rendition of this script. I only have it monitoring one volume though.

Code:
FS=/dev/hd2
USAGE=`df | grep $FS | awk '{ print $4 }' | sed "s/%//"`
PERCENT=90

if [ $USAGE -gt $PERCENT ]
        then
                echo $FS Filesystem on $HOSTNAME has reached "$PERCENT"% capacity | mail -s $HOSTNAME kristijan@fake.com
fi
Seems to do the job

-Kristijan
 
Old 05-12-2005, 10:38 AM   #12
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
This is neat! (We get emails like this over the main mailing list my office uses, and I've always wondered how they were doing it... )

Cheers
 
Old 12-14-2007, 08:34 AM   #13
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Graphical Monitoring

Here is a thread in which a monitoring with gnuplot and the S.M.A.R.T. suite is explained:

http://www.linuxquestions.org/questi...eports-559184/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Track Bandwidth Usage with RTG jeremy LinuxAnswers Discussion 2 08-24-2006 09:14 AM
HardDrive monitoring exkor5000 Linux - Software 2 08-06-2005 01:31 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
Monitoring System Usage dunmarie Linux - Newbie 2 11-11-2003 12:37 AM
Monitoring processor usage bananaman Linux - General 3 04-22-2003 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration