Help!! Runaway processes from cacti scripts!!

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
phriday613
Posts: 32
Joined: Thu Aug 15, 2002 10:29 am
Location: ct
Contact:

Help!! Runaway processes from cacti scripts!!

Post by phriday613 »

Help!!!!!

for some odd reason, my cacti scripts are not properly exiting!
the scripts run, execute, but dont seem to exit, so my processes go from the average of 79 and slowly raise to as high as 1200!!!

i created a shell script to kill php, perl, awk and sh, and it will bring the number back down to the low 80s.

why are these processes not exiting properly??! any suggestions, because its killing my systems memory! :( because this happens, cacti stops graphing, and sometimes stops reporting, until i ssh and run the shell script to kill the procs..

Thanks!!

http://kickinitwitmilhouse.no-ip.com/ca ... h_view.php its in the Servers section..
Image
Image
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

I noticed very similar behaviour on my system. In my case default ping.pl was source of the problem. If you still use it (it's turned on by default, you may have graph removed but still active data source) try to change to newer version that does not use awk:

http://www.raxnet.net/board/viewtopic.php?t=773

- bulek
phriday613
Posts: 32
Joined: Thu Aug 15, 2002 10:29 am
Location: ct
Contact:

Post by phriday613 »

thank you bulek, i changed, so lets see how it works!

i hope that thats the case, however, php, perl and sh still stay on the system :(

awk may stop, but what about the others?! there will still be dozens of php and dozens of perl processes still there..


by the way, when i ran 'top", it shows that they arent currently running, and their "Time" field shows 0.02, so they stopped, but are still running processes? i dunno..
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

For some reason cmd.php is not finishing its run correctly. What happens if you manually run 'php cmd.php' from the command line? Doing that in conjunction with watching the log may give you a better idea about what data source is causing the hang.

-Ian
phriday613
Posts: 32
Joined: Thu Aug 15, 2002 10:29 am
Location: ct
Contact:

Post by phriday613 »

ok.. right now, i have 93 processes running.. i looked at the log, and it shows 2:51pm, then a jump to 3:50pm when all the scripts executed. I ran cmd.php, and got:

PHP fatal error: Unable to start session mm module in Unknown on line 0

i read up on this before.. http://www.raxnet.net/board/viewtopic.p ... =processes i use that script to help the semaphores, but its not working.. somehow something is killng my system i have.. grrr...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest