how to extend timeout

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

Moderators: Developers, Moderators

Post Reply
sirprotos
Posts: 20
Joined: Mon Aug 22, 2005 9:15 pm

how to extend timeout

Post by sirprotos »

i'm using cacti under windows and using windows snmp services with apache server. but i'm having a problem to grab an interface info from certain routers. but when i test with MRTG it can be done. i think that this must be some sort of timeout reason. cam someone tell me how to fixs this ! thank u very much !
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You need to increase the SNMP timeout? If so, for the router configuration page in cacti, increase the snmp timeout. What is the error message you receive when you try to poll this problem router?
sirprotos
Posts: 20
Joined: Mon Aug 22, 2005 9:15 pm

Post by sirprotos »

the problem is, cacti always bring me a black page. i'm having this problem for every router that have a high respone time when i test using PING.

hope u can help me with this !?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Increase the timeout value in your php.ini file.
Antel
Posts: 3
Joined: Wed Oct 05, 2005 11:32 am
Location: Miami, Florida

SNMPget Timeout

Post by Antel »

Windows 2003
IIS 6.0
PHP 5.0.4
Cacti 0.8.6f
Cactid 0.8.6e
RRDTool 1.2.11
Net-snmp 5.1.3

Cacti are working ok..! But I have problem trying to monitoring a Cisco 5850 (Gateway). I add de Device successfully but, on Data Queries (SNMP – Interface Statistics) appear 0 Items, 0 Rows. When I run a VQ and wait 10 sec the page go to timeout and display a blank screen (white screen).

I run manually on DOS snmpwalk to check the communicaction with the routes:

snmpwalk –v 1 –c community –m 0.0.0.0 .1.3.6.1.2.1.2.2.1.1 (ok)
snmpwalk –v 1 –c community –m 0.0.0.0 .1.3.6.1.2.1.2.2.1.8 (ok)
snmpwalk –v 1 –c community –m 0.0.0.0 .1.3.6.1.2.1.2.2.1.2 (ok)

And working fine.

I think that the problem is related to the snmpget processes that take almost an hour to complete de process in this particular Router (gateway) who has many Virtual interface.

I was trying to void this issue change de SNMP interval from de default (500ms) to (12000) and increase the timeouts interval on PHP.INI , but still doesn’t work.

Any Idea whoa change the timeouts on the QV process or a another way to run the QV.

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

Post by TheWitness »

look for the work "execution" in your php.ini file and you will have found your solution. Make it 300. Then restart apache. Don't forget to save the php.ini file first though.

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?
Antel
Posts: 3
Joined: Wed Oct 05, 2005 11:32 am
Location: Miami, Florida

Scripts timeout

Post by Antel »

TheWitness

Could be any issue If I change the this scripts timeout to 1 hour.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Only on rare occasions.
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?
Antel
Posts: 3
Joined: Wed Oct 05, 2005 11:32 am
Location: Miami, Florida

SNMPget Timeout

Post by Antel »

TheWitness:
BSOD2600:

I change the timeout value on PHP.INI

max_execution_time = 30 to (7200)
max_input_time = 60 to (7200)
memory_limit = 8M

After that the VQ was run complete and succefully.

Thank you for you helps.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please increase your memory limit to 64Mbytes.

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 2 guests