SNMP Timeout after increasing timout value

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
scarlson
Posts: 5
Joined: Thu Apr 06, 2006 9:25 am

SNMP Timeout after increasing timout value

Post by scarlson »

Hello, we're running cacti 0.8.6h and cactid 0.8.6g on Fedora Core 5.

We were having some trouble monitoring a 7206 router... it turns out that it's SNMP response was so slow that it was timing out and making the graphs choppy. I increase the amount of memory allocated to PHP to 128m and increase the Cacti SNMP timeout value to 1500ms, which fixed the problem.

However, since doing that, an HP 2524 switch we were monitoring now get's a timeout error when polled... below is the debug output from the poller:

Code: Select all

CACTID: Host[6] DS[114] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[115] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[116] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[117] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[118] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[106] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[119] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[107] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[108] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[109] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[110] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[111] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[112] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[113] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[114] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[115] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[116] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[117] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[118] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[106] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[119] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[107] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[108] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[109] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[110] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[6] DS[111] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
I've tried increasing and decreasing the SNMP timeout for the individual device, but I just haven't had any success at all with that.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Hmm, I'm not quite sure, whether changing the timeouts will automatically change the poller cache (storing the commands to be executed by the poller). But you may try to

Code: Select all

php rebuild_poller_cache.php
after changing the timeouts.
Reinhard
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Rebuild the poller cache.

Sometimes things don't get rebuilt or corrupted on larger devices, because there was not enough memory or execution time to process all the interfaces.
[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]
scarlson
Posts: 5
Joined: Thu Apr 06, 2006 9:25 am

Post by scarlson »

Ok, I rebuilt the poller cache, but I still receive the same exact results.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

As you're running cactid, you may manually execute it for only that failing host to get more debug info. So please run

Code: Select all

time cactid 6 6
to et an idea about runtimes. To increase logging level, please use

Code: Select all

cactid --verbosity=5 6 6
Reinhard
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Also, please report the following from the Settings->Poller tab.

Concurrent Porcesses,
Concurrent SS Processes,
Threads
Max OID per Get Request

Then describe your hardware, what are your polling times, how many RRD's and Data Sources.

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?
scarlson
Posts: 5
Joined: Thu Apr 06, 2006 9:25 am

Post by scarlson »

Concurrent Poller Processes: 1
Maximum Threads: 15
Max OID: 25

Cactid Output:

Code: Select all

[root@monitoring cactid]# ./cactid --verbosity=5 6 6
CACTID: Using cactid config file [cactid.conf]
CACTID: DEBUG: MySQL Query ID '0': 'SELECT value FROM settings WHERE name = 'path_webroot''
CACTID: DEBUG: MySQL Query ID '0': OK
CACTID: DEBUG: MySQL Query ID '1': 'SELECT value FROM settings WHERE name = 'path_cactilog''
CACTID: DEBUG: MySQL Query ID '1': OK
CACTID: DEBUG: The path_php_server variable is /var/www/html/cacti/script_server.php
CACTID: DEBUG: The path_cactilog variable is /var/www/html/cacti/log/cacti.log
CACTID: DEBUG: MySQL Query ID '2': 'SELECT value FROM settings WHERE name = 'log_destination''
CACTID: DEBUG: MySQL Query ID '2': OK
CACTID: DEBUG: The log_destination variable is 1 (FILE)
CACTID: DEBUG: MySQL Query ID '3': 'SELECT value FROM settings WHERE name = 'path_php_binary''
CACTID: DEBUG: MySQL Query ID '3': OK
CACTID: DEBUG: The path_php variable is /usr/bin/php
CACTID: DEBUG: MySQL Query ID '4': 'SELECT value FROM settings WHERE name = 'availability_method''
CACTID: DEBUG: MySQL Query ID '4': OK
CACTID: DEBUG: The availability_method variable is 2
CACTID: DEBUG: MySQL Query ID '5': 'SELECT value FROM settings WHERE name = 'ping_recovery_count''
CACTID: DEBUG: MySQL Query ID '5': OK
CACTID: DEBUG: The ping_recovery_count variable is 1
CACTID: DEBUG: MySQL Query ID '6': 'SELECT value FROM settings WHERE name = 'ping_failure_count''
CACTID: DEBUG: MySQL Query ID '6': OK
CACTID: DEBUG: The ping_failure_count variable is 5
CACTID: DEBUG: MySQL Query ID '7': 'SELECT value FROM settings WHERE name = 'ping_method''
CACTID: DEBUG: MySQL Query ID '7': OK
CACTID: DEBUG: The ping_method variable is 1
CACTID: DEBUG: MySQL Query ID '8': 'SELECT value FROM settings WHERE name = 'ping_retries''
CACTID: DEBUG: MySQL Query ID '8': OK
CACTID: DEBUG: The ping_retries variable is 4
CACTID: DEBUG: MySQL Query ID '9': 'SELECT value FROM settings WHERE name = 'ping_timeout''
CACTID: DEBUG: MySQL Query ID '9': OK
CACTID: DEBUG: The ping_timeout variable is 6000
CACTID: DEBUG: MySQL Query ID '10': 'SELECT value FROM settings WHERE name = 'log_perror''
CACTID: DEBUG: MySQL Query ID '10': OK
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: MySQL Query ID '11': 'SELECT value FROM settings WHERE name = 'log_pwarn''
CACTID: DEBUG: MySQL Query ID '11': OK
CACTID: DEBUG: The log_pwarn variable is 1
CACTID: DEBUG: MySQL Query ID '12': 'SELECT value FROM settings WHERE name = 'log_pstats''
CACTID: DEBUG: MySQL Query ID '12': OK
CACTID: DEBUG: The log_pstats variable is 0
CACTID: DEBUG: MySQL Query ID '13': 'SELECT value FROM settings WHERE name = 'max_threads''
CACTID: DEBUG: MySQL Query ID '13': OK
CACTID: DEBUG: The threads variable is 15
CACTID: DEBUG: MySQL Query ID '14': 'SELECT value FROM settings WHERE name = 'poller_interval''
CACTID: DEBUG: MySQL Query ID '14': OK
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: MySQL Query ID '15': 'SELECT value FROM settings WHERE name = 'concurrent_processes''
CACTID: DEBUG: MySQL Query ID '15': OK
CACTID: DEBUG: The number of concurrent processes is 1
CACTID: DEBUG: MySQL Query ID '16': 'SELECT value FROM settings WHERE name = 'script_timeout''
CACTID: DEBUG: MySQL Query ID '16': OK
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: MySQL Query ID '17': 'SELECT value FROM settings WHERE name = 'php_servers''
CACTID: DEBUG: MySQL Query ID '17': OK
CACTID: DEBUG: The number of php script servers to run is 1
CACTID: DEBUG: MySQL Query ID '18': 'SELECT action FROM poller_item WHERE action=2 AND host_id BETWEEN 6 AND 6 LIMIT 1'
CACTID: DEBUG: MySQL Query ID '18': OK
CACTID: DEBUG: StartHost='6', EndHost='6', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: MySQL Query ID '19': 'SELECT value FROM settings WHERE name = 'max_get_size''
CACTID: DEBUG: MySQL Query ID '19': OK
CACTID: DEBUG: The Maximum SNMP OID Get Size is 25
CACTID: CACTID: Version 0.8.6f starting
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: CACTID: Initializing Net-SNMP API
CACTID: CACTID: Initializing PHP Script Server
CACTID: DEBUG: MySQL Query ID '20': 'SELECT id FROM host WHERE disabled='' AND id BETWEEN 6 AND 6 ORDER BY id'
CACTID: DEBUG: MySQL Query ID '20': OK
CACTID: DEBUG: Initial Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: DEBUG: MySQL Query ID '21': 'SELECT action,hostname,snmp_community,snmp_version,snmp_username,snmp_password,rrd_name,rrd_path,arg1,arg2,arg3,local_data_id,rrd_num,snmp_port,snmp_timeout FROM poller_item WHERE host_id=0 ORDER BY arg1'
CACTID: DEBUG: MySQL Query ID '21': OK
CACTID: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: MySQL Insert ID '0': 'replace into settings (name,value) values ('date',NOW())'
CACTID: DEBUG: MySQL Insert ID '0': OK
CACTID: DEBUG: MySQL Insert ID '1': 'insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())'
CACTID: DEBUG: MySQL Insert ID '1': OK
CACTID: DEBUG: Thread Cleanup Complete
CACTID: DEBUG: PHP Script Server Pipes Closed
CACTID: DEBUG: Allocated Variable Memory Freed
CACTID: CACTID: Net-SNMP API Shutdown Completed
CACTID: DEBUG: MYSQL Free & Close Completed
CACTID: Time: 0.2746 s, Threads: 15, Hosts: 1

Code: Select all

[root@monitoring cactid]# /usr/bin/php /var/www/html/cacti/poller.php
CACTID: Host[2] DS[16] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[2] DS[18] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[2] DS[16] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[2] DS[18] WARNING: Result from SNMP not valid. Partial Result: ...
CACTID: Host[13] DS[202] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[211] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[212] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[213] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[214] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[215] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[203] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[216] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[204] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[205] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[206] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[207] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[208] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[209] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[210] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[202] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[211] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[212] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[213] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[214] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[215] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[203] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[216] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[204] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[205] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[206] WARNING: SNMP timeout detected [300 ms], ignoring host '192.168.14.138'
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
04/11/2006 09:17:45 AM - SYSTEM STATS: Time:1.1158 Method:cactid Processes:1 Threads:15 Hosts:9 HostsPerProcess:9 DataSources:295 RRDsProcessed:157
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.00 r:0.10
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The first output shows *nothing* for HOST[6], the one you posted in the very first post. Did you delete this host? The second oiutput shows the same things we already know about, the timeouts (apart from the fact that you decreased the timeout from 500 to 300 ms).
Reinhard
scarlson
Posts: 5
Joined: Thu Apr 06, 2006 9:25 am

Post by scarlson »

HOST[13] is the same host as HOST[6]... another admin on the box deleted the device and re-created it. This, of course, did not solve the problem.

The server it's running on is a Dell PowerEdge 850 with a 3 GHz Pentium D Processor, 1 GB of Memory and 2 80 Gb Hard Drives (SCSI).
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So please retry

Code: Select all

cactid --verbosity=5 13 13
and post. And please do an snmpwalk -c <community> -v 1 <target host 13> system. If this takes considerable time, please time it using

Code: Select all

time snmpwalk -c <community> -v 1 <target host 13> system
and post the result
Reinhard
scarlson
Posts: 5
Joined: Thu Apr 06, 2006 9:25 am

Post by scarlson »

cactid output:

Code: Select all

CACTID: DEBUG: The Value of Active Threads is 1
CACTID: Host[13] DS[202] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[202] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: U
CACTID: Host[13] DS[211] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[211] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.10, value: U
CACTID: Host[13] DS[212] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[212] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.11, value: U
CACTID: Host[13] DS[213] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[213] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, value: U
CACTID: Host[13] DS[214] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[214] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, value: U
CACTID: Host[13] DS[215] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[215] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.19, value: U
CACTID: Host[13] DS[203] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[203] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: U
CACTID: Host[13] DS[216] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[216] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, value: U
CACTID: Host[13] DS[204] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[204] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: U
CACTID: Host[13] DS[205] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[205] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, value: U
CACTID: Host[13] DS[206] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[206] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, value: U
CACTID: Host[13] DS[207] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[207] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, value: U
CACTID: Host[13] DS[208] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[208] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.7, value: U
CACTID: Host[13] DS[209] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[209] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.8, value: U
CACTID: Host[13] DS[210] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[210] SNMP: v1: 192.168.14.138, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.9, value: U
CACTID: Host[13] DS[202] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[202] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: U
CACTID: Host[13] DS[211] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[211] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.10, value: U
CACTID: Host[13] DS[212] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[212] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.11, value: U
CACTID: Host[13] DS[213] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[213] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, value: U
CACTID: Host[13] DS[214] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[214] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13, value: U
CACTID: Host[13] DS[215] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[215] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.19, value: U
CACTID: Host[13] DS[203] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[203] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: U
CACTID: Host[13] DS[216] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[216] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.24, value: U
CACTID: Host[13] DS[204] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[204] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: U
CACTID: Host[13] DS[205] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[205] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, value: U
CACTID: Host[13] DS[206] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[206] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, value: U
CACTID: Host[13] DS[207] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[207] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, value: U
CACTID: Host[13] DS[208] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[208] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.7, value: U
CACTID: Host[13] DS[209] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[209] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.8, value: U
CACTID: Host[13] DS[210] WARNING: SNMP timeout detected [500 ms], ignoring host '192.168.14.138'
CACTID: Host[13] DS[210] SNMP: v1: 192.168.14.138, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.9, value: U
CACTID: Time: 0.4325 s, Threads: 25, Hosts: 2

snmpwalk output: system only

Code: Select all

real    0m0.154s
user    0m0.048s
sys     0m0.000s
snmpwalk output: full walk

Code: Select all

real    2m18.246s
user    0m0.352s
sys     0m0.212s
Now, one note... these time values are almost identicle (actually, slightly faster) than an identical switch on the same network.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Well, I addionally need the output from the snmpwalk itself against OID .1.3.6.1.2.1.2.2.1.10 and .1.3.6.1.2.1.2.2.1.16
Reinhard
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Similar issue perhaps? Just about all of my snmp commands like snmpwalk seem to time out if ran manually (though they appear to work fine running through cacti). I am now looking at the TCP connects script but have ran into the problem again with the snmpnetstat command:

Code: Select all

# snmpnetstat -v 2c -c public localhost
No log handling enabled - turning on stderr logging
SNMP request failed: Timeout
SNMP request failed: Timeout
SNMP request failed
SNMP request failed
Can't figure it out... but haven't added the connects template/script to Cacti to see if it works yet.
phrawzty
Posts: 12
Joined: Fri Apr 21, 2006 3:01 pm
Location: Montreal, Canada

update mysql table directly

Post by phrawzty »

I literally had the same problem today, namely that increasing the "timeout" value in the Cacti settings interface didn't appear to do anything. I ran the rebuild_poller_cache.php, cleared the poller cache, and so forth; no matter what, cactid was stuck on using the 500ms default timeout.

So i simply changed the timeout value directly in mysql:

mysql> use cacti;
mysql> update host set snmp_timeout="5000" where hostname="1.2.3.4"

Works like a charm now! :)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests