Cacti Satellite link Timeout while doing SNMP

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

Moderators: Developers, Moderators

Post Reply
charlesrg
Posts: 3
Joined: Wed Apr 06, 2005 5:39 pm
Contact:

Cacti Satellite link Timeout while doing SNMP

Post by charlesrg »

We have a Cacti working fine for our LAN, but for remote routers over Satellite cacti can't get the Interface Statiscs SNMP walk. The delay is around 500ms Round-Trip

It tries to do it, but dies, and doesn't populate the database with the SNMP Interfaces Information.
To do a snmpwalk in a Cisco 5400 remotely over satellite can take a few minutes.
What can I do to fix that problem ?
Increasing the PHP running timeout will not be enough, the browser doesn't wait forever for an answer. Disabling PHP Buffering will help ? Or there is other way that will be better ?

I'm using the lastest version with the lastest patches.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

.5 second response time on a packet is, well, not good, as you probably know. I don't think you are going to have much luck.

Sorry,
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
charlesrg
Posts: 3
Joined: Wed Apr 06, 2005 5:39 pm
Contact:

Post by charlesrg »

It's .5 seconds round trip, and it's normal with any satellite link. It's a normal delay. The problem isn't the SNMP, but the big query that cacti have to do populate the interfaces database.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You are probably running into the php servers timeout. I don't recall, but I don't think cacti attempts to set it before it runs a data query against a host. The only suggestion I have is set the timeout in the php configuration.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, I had a senior moment..... Forgot about snmp timeout.

You can and should increase the SNMP timeout on the hosts that are being queried over the Satelite. Something like 2000 ms would be enough. And in 0.8.6c, that is configurable per host.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In addition to the snmp, you should also increase the php timeout anyway.

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
Mees
Posts: 8
Joined: Thu Nov 17, 2005 2:38 am
Location: Oslo

Post by Mees »

TheWitness wrote:In addition to the snmp, you should also increase the php timeout anyway.

TheWitness
Meaning the
default_socket_timeout = 180
in php.ini ?

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

Post by TheWitness »

max_execution_time

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
Mees
Posts: 8
Joined: Thu Nov 17, 2005 2:38 am
Location: Oslo

Post by Mees »

TheWitness wrote:max_execution_time

TheWitness
Thanks, I just witnessed the traffic stats of my sub-sahara router (C2600) via satellite!
Polling the 5 interfaces took a good 2 minutes, so I did adjust the max_execution_time to 180 sec.

The voice router behind it with 107 interfaces did not give any result though..
Would it help to use cactid here instead of the php-poller? Using interface query in GetIF, the 107 interfaces are listes in less than 80 seconds..
Also, is it possible to set a max number of interfaces in the query. Typically, the eth interfaces are the ones to plot, and they always list up among the first 20.

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

Post by TheWitness »

1) Change to Cactid
2) If the devices are SNMPv2, then you will like Cacti 0.8.6h which will query with the bulkwalk command.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests