September 30, 2014, 11:49:47 AM

News : LinuxSolved.com Linux Help Community Forum..


Recent Posts

Pages: [1] 2 3 ... 10
1
I think he is then supposed to add it in cron to get executed regularly ?
2
there are many you may try anyone ...
here is one
#!/bin/bash

ADMIN=yermail@yerdom.com
ALERT=90
df -H | grep -vE 'abc:/xyz/pqr | tmpfs |cdrom|Used' | awk '{ print $5 " " $1 }' | while read output; do
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
echo $usep
partition=$(echo $output | awk '{ print $2 }' )
if [ $usep -ge $ALERT ]; then
  echo  "Alert: Almost out of disk space $usep"
  df -H | mail -s "Alert: out of disk space $usep"  $ADMIN
fi
done



you may try this or this one ...



message=$(awk -v ALERT="$ALERT" '
    NR == 1 {next}
    $1 == "abc:/xyz/pqr" {next}
    $1 == "tmpfs" {next}
    $1 == "/dev/cdrom" {next}
    1 {sub(/%/,"",$5)}
    $5 >= ALERT {printf "%s is almost full: %d%%\n", $1, $5}
')
if [ -n "$message" ]; then
  echo "$message" | mail -s "Alert: Almost out of disk space" "$ADMIN"
fi




3
Linux Kernel / Re: ERROR In DNS Configuration
« Last post by aktiwari4u on September 21, 2014, 04:38:08 PM »
You May Search the forum for dns configuration...
4
Os Talk / Re: Dreckig OS Commands
« Last post by aktiwari4u on September 21, 2014, 04:36:38 PM »
The best thing is that no need to recruit joker now ............My Friend is Here .....
5
Linux Audio Support / Re: sound problem with suse
« Last post by aktiwari4u on September 21, 2014, 04:33:10 PM »
Best Of Luck ......:)
6
Hi ,
I need a script and detailed procedure how to send an email automatically when the disk space is full in my Linux machine.
I have some scripts taken from Internet but I don't how to configure my email in the Linux box. Please help me
7
Os Talk / I want develop a linux distro
« Last post by cuizhaohua on September 03, 2014, 07:37:05 AM »
HI, all:

I am a Chinese. I want  develop a  linux distro  with  ARM arch for  edu  and some CRM based webbrowser .  like  ras Pi. 

but I think ras pi is slow for work .  and It is not very like mini PC for work and edu.

I want some knowledge about ARM  like ras Pi or have other product like ras PI but quicker.  and How can I finished my work !

Thanks for any help!
8
Linux Audio Support / Re: sound problem with suse
« Last post by OnArkTheMoon on August 21, 2014, 03:44:52 AM »

Hopefully there will be some winter. I'll keep my eyes open for a post. Sounds like

fun.
9
Os Talk / Re: Dreckig OS Commands
« Last post by OnArkTheMoon on August 21, 2014, 03:44:23 AM »

Can anyone tell me the start time and location.. It would be my first venture so

not sure how the handicap would work
10
Linux Kernel / Re: ERROR In DNS Configuration
« Last post by ranadastidar on July 31, 2014, 05:03:26 AM »
you have not create your zone file

visit linuxforum.in for dns setup help
Pages: [1] 2 3 ... 10