Hi,
I am trying to write a script to Count Files in a directory located on a remote server and send an email Notification if it exceeds a limit. The code given below doesnot check the condition and sends the mail everytime irrespective of the condition. I have put this script in the cron. Can... (10 Replies)
I searched through the forum and couldn't quite find what I was looking for. I have a script that looks for a process "DW" to be running. If it is not it will email a notice to an account. I would like to add the functionality to have it also email a seperate notice if there is more that one of... (1 Reply)
shell script to send email with usage of space in the directory as description :
Please any one help me in writing a script to send email with usage of space in the directory as description . (3 Replies)
I am very new to Linux and learning to script. This is for one of my servers at work that I have to keep track off as far as disk space and how it is used. I have tried to go line by line but little things keep chewing me up. I would appreciate any and all help or advice, and Mutt is installed on... (3 Replies)
Please help! I am really new to Linux, and my colleague who usually deals with these things isnt here to help me out.
We are running Scalix mail services on CentOS 6.0. Email users with IMAP folders are getting an error message stating the server cannot be reached, however POP3 mail users are... (13 Replies)
Hello Everyone,
I am new to this forum and also unix/linux. Our application today threw an alert whcih read as
"The users active count on host has crossed the threshold limit of 50
and is standing at 65."
This was although cleared when I restarted tomcat. But I am not sure why this count... (0 Replies)
autorep -m bogus
Machine Name Max Load Current Load Factor O/S Status
___________ ________ ___________ ______ ________ ______
bogus --- --- 1.00 Sys Agent Online
Status
______
Online
Offline
Missing
Unqualified
The "Status" always "Online". I like create a script execute run... (6 Replies)
Hi,
I am getting the error su: cannot set user id: Resource temporarily unavailable.
In limits.conf, it shows soft nproc 2047 for this user. ps H -u | wc -l shows 508 processes only.
Linux flavour is Red Hat Enterprise Linux Server release 5.10 (Tikanga)
Any advice will be much... (1 Reply)
Please help!!
This code works perfect but the only problem I am having is that is treats eg SQL Developer as separate cell/column which makes the formatting bad. I want to put SQL Developer in one cell. I attached a sample of how the output looks like.
report.txt
USERNAME OSUSER ... (5 Replies)
Discussion started by: lpoolfc
5 Replies
LEARN ABOUT DEBIAN
swatch::threshold
Swatch::Threshold(3pm) User Contributed Perl Documentation Swatch::Threshold(3pm)NAME
Swatch::Threshold - Perl extension for thresholding in swatch(1)SYNOPSIS
use Swatch::Threshold;
&Swatch::threshold( SWID => <int>,
TYPE => <limit|threshold|both>,
TRACK_BY => <key>, # like an IP addr
COUNT => <int>,
SECONDS => <int>
);
SWATCH SYNTAX
threshold track_by=<key>,
type=<limit|threshold|both>,
count=<int>,
seconds=<int>
DESCRIPTION
SWID is swatch's internal ID number for the watchfor block
TYPE can be limit, threshold, or both
Limit - Alert on the 1st COUNT events during the time interval,
then ignore events for the rest of the time interval.
Threshold - Alert every COUNT times we see this event during the
time interval.
Both
Alert once per time interval after seeing COUNT occurrences of the
event, then ignore any additional events during the time interval.
SECONDS is the time interval
AUTHOR
E. Todd Atkins, todd.atkins@stanfordalumni.org
SEE ALSO perl(1), swatch(1).
perl v5.10.0 2006-07-21 Swatch::Threshold(3pm)