HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script to send email alert
Operating System - HP-UX
1838048
Members
3806
Online
110124
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-07-2007 02:50 AM
02-07-2007 02:50 AM
Hi Super experts out there.
I was wondering if there was a small script out there that could send an email alert before nfiles reaches its maximum. The column under file-sz.
10:14:26 text-sz ov proc-sz ov inod-sz ov file-sz ov
10:14:31 N/A N/A 1101/4096 0 2198/34816 0 97264/220010 0
10:14:36 N/A N/A 1100/4096 0 2196/34816 0 97289/220010 0
10:14:41 N/A N/A 1100/4096 0 2196/34816 0 97404/220010 0
10:14:46 N/A N/A 1101/4096 0 2197/34816 0 97517/220010 0
10:14:51 N/A N/A 1099/4096 0 2197/34816 0 97403/220010 0
Our Database crashed the other day with the "file table full" and "file table overflow" errors. nfils is already set at 22000, maxfiles at 4000 and maxfiles_lim at 4096.
Any ideas would be greatly appreciated.
I was wondering if there was a small script out there that could send an email alert before nfiles reaches its maximum. The column under file-sz.
10:14:26 text-sz ov proc-sz ov inod-sz ov file-sz ov
10:14:31 N/A N/A 1101/4096 0 2198/34816 0 97264/220010 0
10:14:36 N/A N/A 1100/4096 0 2196/34816 0 97289/220010 0
10:14:41 N/A N/A 1100/4096 0 2196/34816 0 97404/220010 0
10:14:46 N/A N/A 1101/4096 0 2197/34816 0 97517/220010 0
10:14:51 N/A N/A 1099/4096 0 2197/34816 0 97403/220010 0
Our Database crashed the other day with the "file table full" and "file table overflow" errors. nfils is already set at 22000, maxfiles at 4000 and maxfiles_lim at 4096.
Any ideas would be greatly appreciated.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 02:59 AM
02-07-2007 02:59 AM
Solution
Ray,
in principle:
cron a process that does
#!/usr/bin/sh
# Monitor the system and re-direct the output
sar -v 2 2> x.x
# Pick the last line and get the count
count=`tail -2 x.x | head -1 | awk '{print $4}' | awk -F'/' '{print $1}'`
# Send a messages if above a level
if ( $count -ge 3500 )
then
mailx -s"Warning on proc-sz" a.b@aol.com
fi
in principle:
cron a process that does
#!/usr/bin/sh
# Monitor the system and re-direct the output
sar -v 2 2> x.x
# Pick the last line and get the count
count=`tail -2 x.x | head -1 | awk '{print $4}' | awk -F'/' '{print $1}'`
# Send a messages if above a level
if ( $count -ge 3500 )
then
mailx -s"Warning on proc-sz" a.b@aol.com
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 03:03 AM
02-07-2007 03:03 AM
Re: Script to send email alert
Another way if you have glance.
You can configure the alarmdef to monitor the table usage metric. The alarm would then exec any script you would like, i.e. send an email.
You can configure the alarmdef to monitor the table usage metric. The alarm would then exec any script you would like, i.e. send an email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2007 03:05 AM
02-07-2007 03:05 AM
Re: Script to send email alert
Shalom,
http://www.hpux.ws/mailfile2
This includes all needed code. I can also do attachments.
SEP
http://www.hpux.ws/mailfile2
This includes all needed code. I can also do attachments.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP