April 26, 2024, 02:57:51 AM

News : LinuxSolved.com Linux Help Community Forum..


Recent Posts

Pages: 1 ... 8 9 [10]
91
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




92
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...
93
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 .....
94
Linux Audio Support / Re: sound problem with suse
« Last post by aktiwari4u on September 21, 2014, 04:33:10 PM »
Best Of Luck ......:)
95
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
96
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!
97
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.
98
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
99
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
100
Linux Servers Support / service vpnserver does not support chkconfig
« Last post by tuxi on July 26, 2014, 05:21:45 PM »
Hi, I am trying to setup vpn server using softether and following this guide : https://www.softether.org/4-docs/1-manual/7._Installing_SoftEther_VPN_Server/7.3_Install_on_Linux_and_Initial_Configurations

Now problem is that when I go to step where I have to add it as server it gives following error:

Code: [Select]
$chkconfig --add vpnserver
service vpnserver does not support chkconfig

I have checked permission of /etc/rc.d/init.d/vpnserver , its as desired.. donno where is the problem , but I can use command :
Code: [Select]
service vpnserver start
Pages: 1 ... 8 9 [10]