PHP Process hanging

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

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is radical, the HostResourceMib is completely missing. What is the make and manufacturer of your box. Does it include any management agents already pre-installed? Some addons such as Compaq, now HP's, Insight manager does remove the HostMib.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hmm, also, check this setting:

snmpbulkwalk -c <your_communit> -v 2c -Cc <your_host>

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Attached are the logs from two PCs. Your on the money about the compaq machine. Any idea how to re-enable the hostmib?

The second machine though is a dell, and I still get the hanging process if I try to Add SNMP Processor Information for that machine.
Attachments
Drive_C.zip
(26.58 KiB) Downloaded 66 times
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Forgot to mention.. for some reason snmpbulkwalk falls over (consistantly) against swocmpq01 :

......
UDP-MIB::udpLocalPort.127.0.0.1.4926 = INTEGER: 4926
UDP-MIB::udpLocalPort.135.86.80.4.88 = INTEGER: 88
UDP-MIB::udpLocalPort.135.86.80.4.123 = INTEGER: 123
Error in packet.
Reason: (genError) A general failure occured
Failed object: UDP-MIB::udpLocalPort.135.86.80.4.123
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You got all that Compaq insite manager, snmp, and other crap they bundle with their computers installed? Very good chance that stuff is causing the problems.
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

But it shouldn't cause the same problem against the dell though.. that doesn't have anything but bog standard windows AS 2000 snmp daemon..
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Ok, So testing some more I have:

SWOCMPQ01 - W2KSP4, With HP software
SWODELL04 - W2KSP4 with Microsoft SNMP
SWODELL05 - W2KSP4 with Net-SNMP

They ALL cause a php process hang when I try "SNMP Process (or partition) inofrmation"

So it has to be the .php script. IS there anyway I can debug those (eg, put in marker lines to create flagfiles as it runs, so I can see what is going on inside the .php file) ??

For the net-snmp file, heres my snmpd.conf file: Is there anything more needed in it to enable the host mib ?

syslocation swindon
syscontact "uk utran lab"
rocommunity public
disk c:\
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Note: now tried upgrading to 0.8.6g - Still the php process hangs..
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Well, TheWitness was a great help and managed to get me up and running...

It appears I had php installed slightly wrong... I'm still not sure why, but this is what he changed:

backed up c:\php\php.exe
copied c:\php\cli\php.exe to c:\php
copied php4isapi.dll to c:\php
updated iis to use php4isapi.dll instead of php.exe

Since that was done, now:

- Logout works
- Cacti doesn't crash against SNMP Processor Info/Disk Info

I've still a few issues to sort out (now that disk/CPU doesn't crash, but I don't get a lot of info especially for disks..) but those are another topic.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmmm, sounds like someone didn't follow the install instructions properly ;-)
User avatar
adrianmarsh
Cacti User
Posts: 437
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

Post by adrianmarsh »

Actually - I think it was the magic PHP fairies that came along and moved all the files around... I've noticed they also seem to go to my house and move my CDs around too..

:wink:
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests