Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-13-2002, 07:38 AM   #1 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
load management/samba

on our fileserver we are running samba (among other things). every couple of days samba starts eating up all our CPU cycles. i simply stop & start the samba daemon and everything goes back to normal.

is there anything i can run that will send me an alert when the load on the machine hits a certain level?

anyone use samba and have this problem? i have found a couple of things online that i wanna try, but nothing too solid...
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 09-13-2002, 08:39 AM   #2 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
technobard is on a distinguished road
Admin, you can cron a shell script using the output from "uptime" to do this.

Something like:
Code:
#!/bin/ksh

MAXLOAD=8.5

loadavg=`uptime | awk '{print $11}' | awk -F"," '{print $1}'`

if [ $loadavg -eq $MAXLOAD ]
then
     mailx ......  # send email notification
     # optionally, restart Samba process
fi
If you go this route, check the format of uptime on your system to make sure you "awk" the correct column.

Of course this only fixes the symptom. I'd post the problem to the samba newsgroup (assuming there is one).
technobard is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can not load php_ldap.dll sde PHP 2 03-28-2006 03:25 PM
page wont load under IE? Admin HTML, XML, Javascript, AJAX 4 03-06-2003 03:11 PM
GeForce 4 w00t Lounge 5 01-26-2003 08:10 PM
php/mysql take 2 minutes to load externally sde Linux / BSD / OS X 0 07-14-2002 09:33 AM


All times are GMT -8. The time now is 10:59 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting