Simple Perl Progam To Save Server Load Every 30 Minutes To A File

Sep 2, 2007

i use the following perl script(created by me) to save server load every 30 minutes to a log file i just keep it running in the background(probably would be more effective using cron)


while(1) {
$w = `w`;
#print $w;
$w =~ /load average: (.+)
$log = $1;
my ($sec, $min, $hour, $mday, $mon, $year) = localtime;
my $rightnow = sprintf("%04d-%02d-%02d %02d:%02d:%02d ", $year + 1900, $mon + 1, $mday, $hour, $min, $sec);
$log = $rightnow . ": " . $log ."
open (OUTFILE, ">>top_logfile.txt");
print OUTFILE "$log
close (OUTFILE);
#sleep for 30 minutes

View 11 Replies


How Can Save My Server From Shells Perl

Nov 4, 2007

for save my server from perl shells , many hakers can haked by cgi-telnet & r57 shell with perl how can save perl without stop it because if i stop it cpanels was disabled any one have any way to save my server from shell perl?

View 11 Replies View Related

Save Grep To Txt File

Jan 28, 2008

I grepped an IP address on a domain log and it showed thousands of lines. How do I save this grep result to a txt file so I can send it to someone?

View 4 Replies View Related

How Can I Save My /etc/passwd File

Nov 3, 2007

how can i save /etc/passwd there is many linux order which show my users on server
such as :

cat /etc/passwd
cat /var/cpanel/acounting.log
ls -la /etc/valiases
ls /var/named

and how can i disable the geting orders
such as :

curl -o

View 8 Replies View Related

Load Spikes Every Morning, Every 30 Minutes, Host Can't Solve

May 4, 2007

We've had a VPS for just over a month now. I am not going to mention the host by name (yet) but they advertise here and other people here reported liking them.

Sadly it's not my experience and I regret my purchase.

Every morning for the past few weeks, we get load spikes every 30 minutes that make our site unusable for a minute (on our VPS, any load over 1.0 is sluggish, over 2.0 is virtually unusable, over 3 is unresponsive)

Here's a series of days as an example:

The worst part about this is the host insists 1. either it's not happening or 2. they can't find it

I know it's happening because when I try to load a page on the half-hour, it takes over 13 seconds (less than 1 second normally). And it's fairly obvious it's someone doing a cron job with some nasty downloading, uploading, or maybe a massive mysql update.

Someone tell me what to tell them because this is driving me out of my mind. The load is NOT being caused by ourselves, I've made sure all our cron jobs don't happen on the exact half hour and we get lots of traffic later in the day without loads.

View 14 Replies View Related

Simpleish PHP/flat Files - Create File, Edit, Save

Nov 24, 2007

Display some text in a web browser from a file called text.txt

text.txt will have many lines and some of them I do not want users to be able to modify and overwrite.

config_item_1=user can edit
config_item_2=user should see but not edit (could be on any line)
config_item_3=user can edit
config_item_4=user can edit

The user has made their changes in the web browser and clicks submit. I then need this info to be saved as the text.txt file however some checking needs to be done first. Anything matching config_item_2 should be removed. This could be on any line. Anything not matching should be permitted and added.

View 1 Replies View Related

Plesk 12.x / Linux :: Downloading Backups To Local Computer - Save File In TAR Format?

Jul 27, 2014

If I try to download a plesk backup to my local machine it saves a file a few bytes in size in .xml.tar.html format

My other non plesk 12 machines correctly save the file in .tar format ....

View 11 Replies View Related

Load, Bandwidth, Processes, CPU With Simple Php Script

Jun 25, 2007

I am thinking about making a little php file that will print a flash game with a link to my site below the actual game. Other webmasters can use this php file on their site to embed this game.

I'm on shared hosting with Bluehost at the moment. What will be the implications on bandwidth and CPU if these php files which serve the games become popular (get hit quite frequently per day/hour/second)?

View 4 Replies View Related

Perl File 500 Error

May 25, 2009

I'm getting a internal 500 on a test perl file that I placed inside cgi-bin

This is a cpanel box with suphp enabled ....

View 2 Replies View Related

Error 500 While Loading Perl File

Mar 24, 2009

We have a perl script that is located under cgi-bin/yabb/

Everytime it's loaded is causing an error 500, suexec logs shows everything correct but error_log shows this: ...

View 6 Replies View Related

Pervent User To Run Perl File

Apr 19, 2009

How can pervent users ro run scripts start with #!/usr/bin/perl in anywhere.

Its a big security issue for run shell.

View 13 Replies View Related

New Server Crashing After Some Minutes - Mysql

Dec 27, 2007

Our new server crashes about every 30',causing high high load(80!)

After mysql restart,everything its ok.

Dual Core @ 3Ghz
1GB Ram
Sata Drives
Centos 5
My.Cnf config:

socket = /var/lib/mysql/mysql.sock


old-passwords = 1



# Remove the next comment character if you are not familiar with SQL



Top Process,showing in whm and status2k:
/usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ --skip-external-locking --socket=/var/lib/mysql/mysql.sock

View 11 Replies View Related

Plesk 12.x / Linux :: Save Access Logs Of Websites On External Server

Oct 24, 2014

I want to save the access logs of our websites on an external server. If I do this now with the default setup, the gets overwritten every day. The desired file name format whould be: websitedomain-tld-access-2014-10-24.log

How can I tell Plesk to do this and how can I make sure the statistics keep working?

On our other servers we use rotatelogs for this.

View 3 Replies View Related

Setting Up A Simple Server

May 21, 2009

when I get a server it comes with cPanel and I don't have to do much to get it going, but this time I don't need all the bells and whistles. What should I do to get a server with only CentOS to start running a pretty simple web server that just listens on whatever ip? I just want it to run php,mysql, and a web server which I know how to setup already. What I want to know is what else is necessary to setup? Resolvers, the hostname, bind, named, etc?

View 2 Replies View Related

Simple LAMP Server

Nov 20, 2007

to set up a little server that will have LAMP installed on it. All it will do is host a small program that runs on PHP and mySQL and will only be used on an office network with about 50 employees.

How well would this server run if the hardware was rather modest (667Mhz, 128mb RAM, 10GB HDD)?

View 4 Replies View Related

Simple Server Monitor Tool

Sep 3, 2008

Is there a simple server monitor tool that can monitor the status of a server and preferably produce a nice graph?

I am using ubuntu linux 8.04

View 4 Replies View Related

Building A Simple LAMP Dev Server

Jul 18, 2007

I currently dev locally on a cobalt RAQ (ollld!) and would like to upgrade this setup.

I'm looking for a simple way of getting a linux system setup for internal dev work with the basics... mysql, apache, php5, and some kind of version control - subversion / cvs.

Are there any linux liveCDs that I could use to make something like this quite easily?
For our production server we use plesk, so a control panel similar to that for setting up new dev domains would be useful. Open source of couse tho.

View 3 Replies View Related

Simple Script To [ Check Server Information ]

Nov 9, 2007

does anyone know any simple script such as php script which can check server information such as type processor(s) .. size of memory ..?
or any other simple way I can check it.

this the following paste from WHM for my server. but 'm kinda new to this dedicated server stuff


Memory Information
Memory: 2073028k/2096592k available (1884k kernel code, 22672k reserved, 759k data, 188k init, 1179088k highmem)

is that mean 2GB RAM?


Current Memory Usage
total used free shared buffers cached
Mem: 2074416 1670208 404208 0 798076 621524
-/+ buffers/cache: 250608 1823808
Swap: 2040212 0 2040212
Total: 4114628 1670208 2444420

View 4 Replies View Related

When Sending Mail To New Server, 550 Relay Not Permitted Is Returned. Simple Fix?

Mar 15, 2006

I've been working on this for some time now, but I'm not sure on how the settings were transfered over to this server. I wish I was there when it was done.

Anyways, we got a new server and we transfered all the accounts to the new one. The old one is gone. When people send emails to their email accounts on the server, this is returned:

This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 9): 550 relay not permitted ....

View 6 Replies View Related

Perl Processess On A Cpanel Server

Mar 27, 2007

Its a cpanel server with latest version.

I have been noticing that several perl process are running most of the times which takes a lot CPU resource percentage, The server wads deployed som 5 months back but i have been noticing these perl processess from like 10-15 days, it looks like this

31097 nobody 25 0 7188 3284 1176 R 46 0.2 1322:57 perl
25122 nobody 25 0 8988 4104 1160 R 45 0.2 620:22.34 perl
28144 nobody 25 0 7852 3712 1232 R 34 0.2 600:18.11 perl
6878 nobody 25 0 9316 4064 1104 R 33 0.2 1007:38 perl
25120 nobody 25 0 8980 4068 1128 R 33 0.2 623:28.04 perl
8263 nobody 15 0 8496 4308 1260 S 2 0.2 0:28.21 perl

What should i do to close them all and to make them occur not anymore, I dont think there is any perl based script working on the server. Not even much PHP based functionalit, Only static HTML pages.

View 2 Replies View Related

Load Balancing / File Mirroring & Replication - Microsoft IIS Servers

Jul 30, 2009

Hello, we have a few web servers that run Windows 2003 Server and IIS for web page hosting. We develop custom applications and don't do "web hosting" per se.

What is the best way to do this in a load balanced environment? We have a Cisco load balancer out in front of these servers, but I'm curious about the following:

1) Is there a way to replicate IIS entries instead of having to configure the site on each server?

2) How does everyone handle file replication (hopefully in real time) across all servers?

View 2 Replies View Related

Parser Error Message: Could Not Load File Or Assembly System

Nov 9, 2008

I am getting this error for one of my website. This site is working fine on the old server from which it has been migrated:

Server Error in '/' Application.

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (c:Inetpubvhosts<>httpdocsweb.config line 59)
Source Error:
Line 57: <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
Line 58: <httpModules>
Line 59: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 60: </httpModules>
Line 61: </system.web>
Source File: c:Inetpubvhosts<>httpdocsweb.config Line: 59

Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

I am attaching the web.config file as attachment. Can anyone tell me how do I fix this.

View 5 Replies View Related

Apache :: HTTP Load Balancer File Does Not Exist Exception

Mar 5, 2013

I am using single Apache HTTP Server (2.2.23) as a Load Balancer with two IBM Websphere application server nodes (other machines). I have deployed the simple text based helloWorld application and it works fine with load balancer. But When I deploy the real application that contains images,css file , java script file. It loads the page without images and show me simple text and gives me the following Exception on error_logs and similar kind of exceptions

[error] [client] File does not exist: /usr/local/apache2/htdocs/application, referer:

Interestingly, when I access the application without load balancer, it also works fine.

Here are the load balancer settings

View 1 Replies View Related

Load Testing :: Server Load Testers ( Commercial )?

May 6, 2008

Anyone know of some good server load testers ( commercial )?

Im not looking for application based load testing, I need real web server load testing... need to see how much traffic this one site can take before it cries.

View 1 Replies View Related

Plesk 12.x / Linux :: File Sharing Stops - Unable To Load Folders List

Apr 6, 2015

After enabling File Sharing in Plesk 12, the service appears to function correctly. If only a few files are uploaded, they are ok. However, after uploading a directory structure with a handful of MB, and subdirectories, File Sharing stops. It shows at the top of the screen:

"Internal error: The File Sharing service is temporarily unavailable because the site is down for maintenance."

it also says in the main window:

"Unable to load folders list."

Clicking on Upload Files, that dialog also shows "Unable to load folders list."

I have checked that the ownership of those files on the server is www-data:www-data , and that permissions are 755 for directories and 644 for files, because it seems like ownership and permissions could be an issue, however that doesn't fix it. Removing all the files in the share does fix it, however that's not useful if the files should be available for sharing.

View 17 Replies View Related

Plesk 11.x / Linux :: Health Monitor Installed But Unable To Load Configuration File

Aug 31, 2013

I just installed the Health Monitor add-on in a brand new Plesk 11.5.30 on CentOS 6.4 but all that it's area in Plesk displays is this funky looking error:

{"status":"error","statusMessages":[{"status":"error","class":"","content":"Unable to load configuration file.Click to expand...

View 11 Replies View Related

Plesk 12.x / Linux :: Health Monitor Error - Unable To Load Configuration File

Apr 27, 2015

I have a one problem in my server . I use in Parallels Plesk v12.0.18_build1200140606.15 os_CentOS 6 I vps in systemOS CentOS6.6 Final Minimal and installing plesk health monitor show error in :

{"status":"error","statusMessages":[{"status":"error","class":"","content":"Unable to load configuration file.

And I try the command

/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/scripts/setup-health-monitor.php

output problem is :

Error: Unable to read /proc/partitions

View 11 Replies View Related

Copyrights 2005-15, All rights reserved