- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unix machine notify my beeper
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 12:11 AM
09-29-2004 12:11 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 12:26 AM
09-29-2004 12:26 AM
Solutionif [[ $percent -ge 90 ]] ; then
mailx -s "File system full-`hostname`:$dir is at $percent%" root < /dev/null
if [[ $percent -ge 95 ]] ; then
mailx -s "File system full-`hostname`:$dir is at $percent%" your@pager.com < /dev/null
fi
fi
You may want to look here to find some good scripts:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 12:28 AM
09-29-2004 12:28 AM
Re: unix machine notify my beeper
Something like this.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1096460806741+28353475&threadId=93994
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 12:35 AM
09-29-2004 12:35 AM
Re: unix machine notify my beeper
Kind of diagonisis softwares and configure the thresholds,so that u will get alerts once the.
regards
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 12:56 AM
09-29-2004 12:56 AM
Re: unix machine notify my beeper
)
then it is easy to do this as,
# if you want to alert when a file system running more space usage 90 then,
bdf | awk '{ if ( $5 >= 90 ) print $0 }' | mailx -S "file system Out of space`hostname;date`"
It will give hostname and time there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:47 AM
09-29-2004 01:47 AM
Re: unix machine notify my beeper
bdf | awk '{ if ( $5 >= 90 ) print $0 }' | mailx -S "file system Out of space`hostname;date`"
You would need to add:
you@yourpager.com < /dev/null
So:
bdf | awk '{ if ( $5 >= 90 ) print $0 }' | mailx -S "file system Out of space`hostname;date`" you@yourpager.com < /dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:00 AM
09-29-2004 02:00 AM
Re: unix machine notify my beeper
if you are using storage like xp 1024 then there is an package called c-track through which you can get a alerts by beep or by leds . other wise if you can inform to the suport center automatically by configuring a modem and pc anywhere doftware . it will call the remote support center . and give the event detail in xml format.
2.
you can also use HP openview node manager through which you can get email alerts.
3. if u are using small setup with out open view and xp then u can enable quotas on the files system and assign the quotas to each user . if their quotas exceed administrator and user will be intimated .
Thanks
Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 06:25 AM
09-29-2004 06:25 AM
Re: unix machine notify my beeper
Take a look at these threads:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=86289
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=8544
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=107064
HTH.
Regards,
Sri Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 08:41 PM
09-29-2004 08:41 PM
Re: unix machine notify my beeper
To configure the EMS notifications, run SAM, and then select Resource Managment, then Event Monitoring Service. Under "Actions" you can add a new monitoring request. To select freespace on a filesystem, navigate down the Resource Hierarchy to /system/filesystem/availMb and then set the parameters for the filesystems you are interested in monitoring.
More information is in the EMS manual which is online at http://www.docs.hp.com/hpux/onlinedocs/B7612-90015/B7612-90015.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 08:17 AM
09-30-2004 08:17 AM
Re: unix machine notify my beeper
#!/bin/sh
# /usr/local/bin/sa.hp.fs
#
# Checks size of filesystems and pages when thresholds exceeded
#
umask 177
MAX_PERCENT=90
#MAX_PERCENT2=96
HOST=`hostname`
MAILLIST="root youremail@pagercompany.com"
ALARM=/var/tmp/sa.hp.checkfs.alarm
#
# NOTE: THIS SCRIPT DOES NOT LEAVE YOU ALONE UNTIL PROBLEM IS FIXED!!
#
# exclude filesystems checked by adding it to the grep in the next line.
#
for FILESYSTEM in `cat /etc/mnttab | egrep -Ev "cdrom|net" |awk '{print $2}'`;
do
PERCENT_FULL=`bdf $FILESYSTEM | tail -1 | awk '{print $5}' | sed -e 's/%//g'`
if [ $PERCENT_FULL -gt $MAX_PERCENT ]; then
echo "$FILESYSTEM on $HOST is at $PERCENT_FULL% full" >> $ALARM
fi
done
#
## Check other filesystems at different percentage
#
#for FILESYSTEM in `cat /etc/mnttab | grep ldu | awk '{print $2}'`;
#do
#PERCENT_FULL=`bdf $FILESYSTEM | tail -1 | awk '{print $5}' | sed -e 's/%//g'`
#if [ $PERCENT_FULL -gt $MAX_PERCENT2 ]; then
#echo "$FILESYSTEM on $HOST is at $PERCENT_FULL% full" >> $ALARM
#fi
#done
# Notify someone!
if [ -f $ALARM ]; then
mailx -s "$HOST SYSALARM" "$MAILLIST" < $ALARM
rm $ALARM
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2004 08:48 AM
09-30-2004 08:48 AM
Re: unix machine notify my beeper
Assuming this can be done, you have all kinds of script examples to work with.
Essentially you will discover a potential issue, send that message out using sendmail to the email address of the beeper.
If you have ATT, #@att.mobile.net
If you have skytel, #@skytel.net
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:53 AM
10-01-2004 08:53 AM