Cactid

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

Moderators: Developers, Moderators

Willie

Cactid

Post by Willie »

Witness / Rax,

I am running cactid on XP. I can run it fine with 1 thread but it runs slower than the poller.php set to cmd. When I increase the threads to 2, I start getting these messages:

10/13/2004 07:50:20 AM - CACTID: Poller[0] Host[27] WARNING: Result from SNMP not valid. Partial Result: U...
10/13/2004 07:50:20 AM - CACTID: Poller[0] Host[26] WARNING: Result from SNMP not valid. Partial Result: U...

Any hints on how to resolve this issue?

Regards,

Willie
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Manually poll and/or varify the two OIDs that are failing, are valid.
Willie

Cactid

Post by Willie »

Thanks for the reply. I am running cactid with 1 thread and it works fine. I ONLY get those messages if I up the thread count. 1 thread on CactiD work about the same speed as the php poller.

Regards,

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

Post by TheWitness »

Set logging to DEBUG and post your results from 1 poll cycle. Also, please download the CVS copy of CACTID 0.8.6c and try it. If you are polling the same IP address as multiple hosts, some SNMP hosts can't handle the volume of traffic comming from net-snmp.

For example, my test system has 4 hosts:

IP Address Hostname
192.168.0.2 BASEMENT1
192.168.0.2 BASEMENT2
192.168.0.2 BASEMENT3
192.168.0.2 BASEMENT4

As you can see, they are the same system. Things are pretty good until I add the 5th host, then things start to break.

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?
tapufd
Cacti User
Posts: 55
Joined: Thu Aug 19, 2004 9:14 am
Location: Belgium

Post by tapufd »

I have found the following, related to 'Result from SNMP not valid. Partial Result: U... '-problem :

* when Maximum Threads per Process for CACTID is to high, you get these SNMP errors. I mean : first had 4 cactid threads -> had sometimes these SNMP errors ; then tried 8 cactid threads -> a lot of SNMP errors ; then tried 2 cactid threads --> NO SNMP errors !!!

* I get these SNMP errors only on Netware servers. All NT servers are polled correctly!

Maybe this info helps you, TheWitness ?!
tapufd
Cacti User
Posts: 55
Joined: Thu Aug 19, 2004 9:14 am
Location: Belgium

Post by tapufd »

Am I the only one with these kind of problems, or is this indeed a problem with cactid?!?
:roll:
Willie

Cactid

Post by Willie »

tapufd,

I have sent logs of a good run (1 thread) and a bad run (2 threads) to the Witness with full debugging info. They are looking at it.

Regards,

Willie
tapufd
Cacti User
Posts: 55
Joined: Thu Aug 19, 2004 9:14 am
Location: Belgium

Post by tapufd »

Thanks!

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

Post by TheWitness »

This should work in Unix no problem. Concerned about pipes in Windows, but should work. Test, then post. If no lockups, I will commit to CVS.

TheWitness
Attachments
cactid_unix.zip
(36.49 KiB) Downloaded 286 times
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?
Willie

cactid

Post by Willie »

Witness,

This has solved my "WARNING: Result from SNMP not valid. Partial Result: U... " errors.

With 1 thread, cactid is slower than the php cmd. But, with 10, I drop from 174 sec to run (461 hosts 3100 interfaces) to 48 secs!

Regards,

Willie
tapufd
Cacti User
Posts: 55
Joined: Thu Aug 19, 2004 9:14 am
Location: Belgium

Post by tapufd »

Hi TheWitness,

It also solved my 'Partial Result: U...' errors. Thanks! :D

Question: during a period of 24h polling, I had twice 'Dead Lock' in my cacti.log. Is this something serious or can it be ignored?

Many, many thanks.

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

Post by TheWitness »

Post Cacti log. Thanks!!

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?
tapufd
Cacti User
Posts: 55
Joined: Thu Aug 19, 2004 9:14 am
Location: Belgium

Post by tapufd »

Hello TheWitness,

See in attachment my log file. It's not in DEBUG mode, so i think it won't help that much. Maybe you can look at it and see what you can learn from it.
- It seems that I sometimes still have 'Partial Result: U...' errors.
- You can also find the 'Deadlock Occured' errors.
- Also sometimes 'The PHP Script Server Did not Respond in Time' errors.
If a log in DEBUG mode is necessary, please tell (problem will be that the log will be very big).

When browsing Cacti, my connection with MySQL is sometimes broken for a few seconds. When I press the refresh button, I get the webpage OK.
This is the error I get in IE :
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10048) in D:\Cacti\Website\lib\adodb\drivers\adodb-mysql.inc.php on line 324
Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.


I'm using mysql-4.0.20d-win for the moment. Should upgrading to latest mysql-4.0.21-win, solve this problem?

/tap
Attachments
cacti.txt
(40.21 KiB) Downloaded 334 times
Willie

cactid

Post by Willie »

I am getting the same thing with the errors. I have recently upgraded my server from an old laptop to a DL580 Dual Processor server. I am able to run the cmd version of poller but everytime I run cactid, I get the "cannot connect to mysql". I get this even if I reduce the thread count to 1. the higher the threads, the faster I get the errors.

Regards,

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

Post by TheWitness »

Guys, this is the latest and greatest not submitted to CVS. Also, increase your SNMP timeouts and retries, especially if you are getting problems with "U" results.

I am going to not provide every warning in 0.8.7 at LOW or below, I will simply provide counts because this error can be expected from time to time. You definately need to increase your timeouts though.

Let me know how it goes.

Larry
Attachments
cactid_unix.zip
0.8.6c BETA
(36.32 KiB) Downloaded 275 times
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest