
24th June 2012, 14:36
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
CPU usage
I have a huge cpu usage on PERL? What could be causing this?
Quote:
|
13799 www-data 20 0 4720 2408 980 R 99 0.1 3958:33 perl
|
|

24th June 2012, 16:44
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Its a perl script running in one of your websites.
|

26th June 2012, 12:51
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
Is there a way to find out which script is causing this?
|

4th July 2012, 20:15
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
klogd -x is eating my CPU.
What can I do about it?
Quote:
|
32131 www-data 20 0 4720 2336 912 R 101 0.1 93:06.68 klogd -x
|
|

5th July 2012, 09:28
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Try to find the program file with the find command, I guess it must be somwhere in /var/www or /tmp (not in /usr or other system directories). This is most likely a hcked or trojan script that uses the name of a common Linux application (klogd) to hide itself. But the real klogd would never run as www-data, so this fake program must be somewhere in one of your sites or in the tmp folder.
|

5th July 2012, 12:40
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
Till,
Tnx when the CPU is high again will try fo FIND it. (with "FIND KLOGD" right?)
Btw when I reboot the server the high usage and the klogd is stopped.
|

5th July 2012, 17:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Linux is case sensitive, so the find command as well as the name of the application have to be in lowercase. See:
man find
for all options of the find command.
|

18th July 2012, 06:51
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
Tried to find klogd but
"find: `klogd': No such file or directory"
This issue is not always running, 1 per 2 weeks this issue is there.
|

18th July 2012, 10:20
|
|
ISPConfig Developer
|
|
Join Date: Oct 2011
Location: NRW, Germany
Posts: 233
Thanks: 27
Thanked 56 Times in 31 Posts
|
|
Quote:
Originally Posted by skoena
Tried to find klogd but
"find: `klogd': No such file or directory"
This issue is not always running, 1 per 2 weeks this issue is there.
|
if it is malware then there is some kind of vulnerability to let it get uploaded and started. When you restart the process is not run on startup but the vulnerability is still there. It might be exploited again when the "hacker" realizes it is not running anymore.
|

18th July 2012, 10:27
|
|
Senior Member
|
|
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 327
Thanks: 62
Thanked 9 Times in 8 Posts
|
|
Tnx.
Any tips for locating the script that is causing this?
Because "find klogd" is not working.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 12:48.
|
|
Recent comments
11 hours 26 min ago
16 hours 31 min ago
20 hours 55 min ago
22 hours 44 min ago
1 day 12 hours ago
1 day 13 hours ago
1 day 17 hours ago
2 days 40 min ago
2 days 1 hour ago
2 days 2 hours ago