server load tracking


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting server load tracking
Prev   Next
# 1  
Old 03-13-2008
server load tracking

I have written a script which checks server load and emails me.
I am running into the error:
./load_alert.sh: line 8: [: 1.25: integer expression expected

What am i doing wrong here?

# Get the server load last minute
svrcpuload=`uptime|awk '{ print $11 }'|perl -pe 's/.$//'`
svrcpuload=`expr $svrcpuload`
threshold=10.00
threshold=`expr $threshold`
echo "Server cpu load " $svrcpuload
echo "Threshold is " $threshold
if [ $svrcpuload -gt $threshold ]; then
printf "WARNING - cpu load high in xyz server"
fi
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Linux

Server Load balancer

Hello Guys, Hope you all doing well . :) I was checking load balance command (uptime)on VM server and got below output. # uptime 07:08:40 up 52 min, 2 users,a load average: 0.45, 0.11, 0.03 A :How we can calculate load average? Thank you in advance !! Cheers:) Dont forget... (1 Reply)
Discussion started by: Nats
1 Replies

2. Solaris

Tracking Who Has Logged Into a Server?

I am running Solaris 10 on a variety of SUN servers. I need to be able to tell who has logged into the server. Is this info kept in any of the logs on the system? Thanks, LeonD (8 Replies)
Discussion started by: leond
8 Replies

3. Shell Programming and Scripting

Shell script in tracking both the passed and failed login in a unix server

Can you help me in providing the following output or a quite similar to this from a shell script ? *** Logins Summary Information ***** ---------------------------------- Failed Login Attempts for Invalid Accounts Date Time IP-ADD Account ... (0 Replies)
Discussion started by: linuxgeek
0 Replies

4. Solaris

CPU load -12.50 in server.

Friends I have noticed that the Sun Fire v490 server with Solaris9 OS in my office, is showing a load of 12.50 during peak time and the CPU showing a max of 75% and an average of 60%. The Application running in this machine hung last month(For reasons unknown) and is running fine after... (5 Replies)
Discussion started by: Renjesh
5 Replies

5. Shell Programming and Scripting

Load of Unix server

Hi Folks, I want to see the proper status of a low performance server. I tried using top command but it doesn't give all the details. Any help in this regard would be appreciated. Regards, Sagar (1 Reply)
Discussion started by: sagarjani
1 Replies

6. UNIX and Linux Applications

LSF Server: could not load license

Hi All, Please help me to solve the problem when i submit a job on the client: #bsub -q normal -(blah blah....) I got the error messages: #batch system daemon not responding ... still trying #batch system daemon not responding ... still trying #batch system daemon not responding ... still... (0 Replies)
Discussion started by: teppyvn
0 Replies

7. Solaris

Checking Server work load

Hey guys, I was task to look at a couple DNS servers for a co worker, Now they are running Solaris 2.6 on some Ultra 10 systems. How can I check the kind of load these systems are taking, I know that I can look at the network size and how many zones these servers are SOA of, but I looking in a... (3 Replies)
Discussion started by: aojmoj
3 Replies

8. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies
Login or Register to Ask a Question
INSTALLSIEVE(1) 					      General Commands Manual						   INSTALLSIEVE(1)

 *

NAME
installsieve - user utility for managing sieve scripts SYNOPSIS
installsieve DESCRIPTION
installsieve is a utility that allows users to manage their sieve scripts kept on the server. OPTIONS
-v <name> View script with the given name. The script if retrieved sucessfully is output to standard output. -l List all of the scripts currently on the server. If one of the scripts is active a arrow is printed indicating that it is the active script. -p <port> Port to connect to. If left off this defaults to "sieve" as defined in /etc/services. -i <file> Install a file onto the server. If a script with the same name already exists on the server it is overwritten. Upon sucessfully putting the script on the server the script is set active. If <file> has the extension .script it is chopped when put on the server since sieve names may not contain a '.'. -a <name> Set <name> as the active script. The list of available names can be obtained from the '-l' option.. -d <name> Delete the sieve script on the server with <name>. -m <mechanism> Force installsieve to use <mechanism> for authentication. If not specified the strongest authentication mechanism is chosen. -g <name> Get the sieve script with <name> and save it to disk with a ".script" extension. If a file with that name already exists it is overwritten. -u <user> Userid/Authname to use for authentication; by default, the current user. CMU
Project Cyrus INSTALLSIEVE(1)