Too many SNMP connections (on clients)

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
erik.costa
Posts: 12
Joined: Mon Feb 07, 2011 9:01 am

Too many SNMP connections (on clients)

Post by erik.costa »

Hi,

I have a CACTI 8.7a working and now I have to migrate it to a new machine (VM).

I have installed the 8.7g, apply all the patches and start to create all the hosts again (too many dirt in old DB)

But something is wrong, the 8.7a do about 6 connections snmp to get all information in one host and the new 8.7g do the same thing (same graphs) in 63 connections.

I changed the cmd.php to spine and change all possible in "settings" / "poller" but only changed from 63 connections to 58.

The log show this:

8.7a cacti.log

Code: Select all

06/28/2011 10:05:51 AM - SYSTEM STATS: Time:49.3117 Method:spine Processes:10 Threads:10 Hosts:223 HostsPerProcess:23 DataSources:2366 RRDsProcessed:1415
Example Host (messages log):

Code: Select all

snmpd[3178]: Connection from UDP: [x.x.x.x]:37556 
snmpd[3178]: Received SNMP packet(s) from UDP: [x.x.x.x]:37556 
snmpd[3178]: Connection from UDP: [x.x.x.x]:37556 
last message repeated 4 times

8.7g cacti.log

Code: Select all

06/28/2011 10:05:17 AM - SYSTEM STATS: Time:16.2066 Method:spine Processes:10 Threads:10 Hosts:29 HostsPerProcess:3 DataSources:515 RRDsProcessed:483
messages.log:

Code: Select all

snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:38222
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:38222
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:38222
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:38222
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:34342
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:34342
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:34342
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:58092
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:58092
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:58092
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:46241
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:46241
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:46241
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:35668
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:35668
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:35668
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:38776
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:38776
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:38776
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:52448
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:52448
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:52448
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:45457
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:45457
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:45457
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:54247
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:54247
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:54247
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:48712
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:48712
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:48712
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:60196
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:60196
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:60196
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:46339
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:46339
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:46339
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:55759
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:55759
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:55759
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:44290
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:44290
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:44290
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:42249
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:42249
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:42249
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:32921
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:32921
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:32921
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:34470
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:34470
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:34470
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:55011
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:55011
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:55011
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:41221
snmpd[3178]:ReceivedSNMPpacket(s)fromUDP:[y.y.y.y]:41221
snmpd[3178]:ConnectionfromUDP:[y.y.y.y]:41221
I think the key is the "HostsPerProcess" but i don't know were to change this.

Sorry about this question but I don't find anything about this in my searches.

Thanks for the help.
erik.costa
Posts: 12
Joined: Mon Feb 07, 2011 9:01 am

Re: Too many SNMP connections (on clients)

Post by erik.costa »

I changed the "HostsPerProcess" from 3 to 29 and still the same connections.

If I use cmd.php in one host always do 63 connections if I change to spine always do 58 connections.

No matter what I change in poller config or Device settings.

Any ideas???
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests