Poller zombies

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
chanzy
Posts: 3
Joined: Fri Oct 09, 2015 5:31 am

Poller zombies

Post by chanzy »

Hello, I'm running Cacti 0.8.8b on Windows Server 2008. Recently Cacti started to create zombie proccesses. It's able to create over 100 zombie proccesses. Proccess name was php.exe and command was "php -q cmd.php 0 42". I have tried change poller to Spine, but different is only in proccess name "sh.exe". Cacti stopped with collecting data except a few devices. I have added 24 devices and only 6 are ok. Do you have any idea where could be the problem? Thank you
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Poller zombies

Post by BSOD2600 »

1) upgrade to the latest cacti. lots of bug/security fixes.
2) how many custom scripts are you running? Typically there is one misbehaving which is causing the poller to stay hanging open as it doesnt not gracefully close.
chanzy
Posts: 3
Joined: Fri Oct 09, 2015 5:31 am

Re: Poller zombies

Post by chanzy »

I use two scripts. One is from this forum and second is mine. My script is very simple written in php, just get snmp value and edit it to better format. In snmpget function I use timeout.

I upgraded to the newest version so I'll check behavior now. But I'm getting access denied error when I try to use web based authentication (I used it with older version and it worked). I use IIS.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Poller zombies

Post by BSOD2600 »

php script doing snmp? I would highly recommend updating it to use the Cacti PHP Script server - http://docs.cacti.net/manual:088:3a_adv ... ipt_server in addition to using the native cacti snmp functions for efficiency.

what does the 2nd script do? If poorly written and doesnt include a timeout or self terminate, that could be the likely cause if the zombie procs. Possibly Sysinternals Process Explorer will show you what those are doing and/or running for further debug this problem.

Specifically what/where are you getting the access denied errors? Certain your user account has access?
chanzy
Posts: 3
Joined: Fri Oct 09, 2015 5:31 am

Re: Poller zombies

Post by chanzy »

Yes, php script which gets the value by snmp. It gets time in seconds when the self test on UPS started. I need to have # days from last self test. So I do some counts to get my value. I'm not able to get this value by snmp itself. I'll try script server, but from last update to 0.8.8f I have no zombie proccess.

Second script is this one: http://forums.cacti.net/viewtopic.php?f=12&t=35907

I'm getting access denied error when I type <server>/cacti to my browser. It worked with the older version. I have added all users. All users have access, I didn't change anything from upgrade.

Edit: I tried to recreate user and now web basic works. So it seems it's solved.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests