Cactid time exceeded

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

Moderators: Developers, Moderators

Post Reply
area51
Posts: 12
Joined: Wed Jul 13, 2005 7:17 am

Cactid time exceeded

Post by area51 »

09/07/2005 09:25:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/include/cactid, ARGS: 0 3]
09/07/2005 09:24:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
09/07/2005 09:20:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/include/cactid, ARGS: 0 3]
09/07/2005 09:20:00 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting
how i can fix that problem ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Run cactid from the command prompt in DEBUG mode.

Larry
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?
area51
Posts: 12
Joined: Wed Jul 13, 2005 7:17 am

Post by area51 »

TheWitness wrote:Run cactid from the command prompt in DEBUG mode.

Larry
how i can do this. with wat command
FreeBSD 5.3-STABLE

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

Post by TheWitness »

cd <my_cactid_binary_directory>
./cactid

Logging is set from the user interface. Settings->General

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?
area51
Posts: 12
Joined: Wed Jul 13, 2005 7:17 am

Post by area51 »

sorry but i can't understand you there it is a screen shot of my general settings and my path to cactid is /usr/local/include/cactid
sorry about all trouble but i'm new with cacti
10x
Attachments
setting_general
setting_general
setting_general.JPG (153.34 KiB) Viewed 2507 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

area51 wrote:sorry but i can't understand you there it is a screen shot of my general settings and my path to cactid is /usr/local/include/cactid
sorry about all trouble but i'm new with cacti
10x
So you will have to cd to /usr/local/include/ and execute cactid from there.

Another approach: [edit]sorry, had aother look at your logging. My assumption was WRONG. Sorry for that[/edit]
Reinhard
Last edited by gandalf on Fri Sep 09, 2005 1:58 am, edited 1 time in total.
User avatar
MagnaChef
Cacti User
Posts: 164
Joined: Tue Nov 25, 2003 3:58 pm
Location: Buffalo, NY

Post by MagnaChef »

My recommendation would be to turn the poller logging level to NONE and uncheck the boxes for Poller Syslog/Eventlog Selection to increase your polling. Perhaps that'll put you under the 300 second mark - its a temp fix, not long term.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

MagnaChef wrote:My recommendation would be to turn the poller logging level to NONE and uncheck the boxes for Poller Syslog/Eventlog Selection to increase your polling. Perhaps that'll put you under the 300 second mark - its a temp fix, not long term.
MagnaChef,
sorry, but I don't support your statement. The log shows, that cactid starts polling 4 hosts. Assuming there are not only very bad running scripts, this 'should' definitely finish in some few seconds. Therefor I don't think that tuning is the solution.
Reinhard
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The gain from turning the logging to None is minimal to say the least. The only way it would help is if you are attempting to retrieve items that are causing errors, otherwise, there is no gain from turning logging to None.

I do however, suggest that you change Logging to Low, as this will help. Because only error, warning and statistics will be put in the log.
[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]
area51
Posts: 12
Joined: Wed Jul 13, 2005 7:17 am

Post by area51 »

# cactid
CACTID: Using cactid config file [/usr/local/etc/cactid.conf]
CACTID: DEBUG: The path_php_server variable is /usr/local/share/cacti/script_server.php
CACTID: DEBUG: The path_cactilog variable is /usr/local/share/cacti/log/cacti.log
CACTID: DEBUG: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is /usr/local/bin/php
CACTID: DEBUG: The availability_method variable is 1
CACTID: DEBUG: The ping_recovery_count variable is 3
CACTID: DEBUG: The ping_failure_count variable is 2
CACTID: DEBUG: The ping_method variable is 2
CACTID: DEBUG: The ping_retries variable is 1
CACTID: DEBUG: The ping_timeout variable is 400
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: The log_pwarn variable is 0
CACTID: DEBUG: The log_pstats variable is 0
CACTID: DEBUG: The threads variable is 1
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: The number of concurrent processes is 1
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: StartHost='0', EndHost='0', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: CACTID: Version 0.8.6e 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: Parent pid=53571, Script Server pid=0
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: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The 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: The UDP Ping return_code was -10, errno was 0, total_time was 400.7261
CACTID: Host[1] PING Result: UDP: Ping timed out
CACTID: Host[1] SNMP Result: SNMP not performed due to setting or ping result
CACTID: Host[1] ERROR: HOST EVENT: Host is DOWN Message: SNMP not performed due to setting or ping result, UDP: Ping timed out
CACTID: DEBUG: SQLCMD: update host set status='1',status_event_count='2', status_fail_date='2005-09-12 11:49:00',status_rec_date='2005-09-07 02:25:04',status_last_error='SNMP not performed due to setting or ping result, UDP: Ping timed out',min_time='0.000000',max_time='999.999990',cur_time='254.280000',avg_time='277.839570',total_polls='3042',failed_polls='1360',availability='55.2926' where id='1'

CACTID: Host[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The 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: The UDP Ping return_code was -10, errno was 0, total_time was 400.4190
CACTID: Host[2] PING Result: UDP: Ping timed out
CACTID: Host[2] SNMP Result: SNMP not performed due to setting or ping result
CACTID: DEBUG: SQLCMD: update host set status='1',status_event_count='3033', status_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_last_error='SNMP not performed due to setting or ping result, UDP: Ping timed out',min_time='9.999990',max_time='0.000000',cur_time='0.000000',avg_time='0.000000',total_polls='3034',failed_polls='3034',availability='0.0000' where id='2'

CACTID: Host[2] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The 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: The UDP Ping return_code was -10, errno was 0, total_time was 400.6460
CACTID: Host[3] PING Result: UDP: Ping timed out
CACTID: Host[3] SNMP Result: SNMP not performed due to setting or ping result
CACTID: DEBUG: SQLCMD: update host set status='1',status_event_count='1227', status_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_last_error='SNMP not performed due to setting or ping result, UDP: Ping timed out',min_time='9.999990',max_time='0.000000',cur_time='0.000000',avg_time='0.000000',total_polls='1228',failed_polls='1228',availability='0.0000' where id='3'

CACTID: Host[3] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: SQLCMD: replace into settings (name,value) values ('date',NOW())
CACTID: DEBUG: SQLCMD: insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())
CACTID: DEBUG: Thread Cleanup Complete
CACTID: DEBUG: PHP Script Server Pipes Closed
CACTID: DEBUG: Allocated Variable Memory Freed
CACTID: CACTID: Shutting down Net-SNMP API
CACTID: DEBUG: MYSQL Free & Close Completed
CACTID: Execution Time: 2.2241 s, Threads: 1, Hosts: 4
after i start cactid in /usr/local/include
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

area51,
your hosts are not reachable for udp ping (firewall??). So cacti does not even try to reach them. You may change this behaviour, if you choose "settings -> Poller -> Downed Host Detection" and select "SNMP - Reliable".
Reinhard

Code: Select all

CACTID: Host[3] PING Result: UDP: Ping timed out
CACTID: Host[3] SNMP Result: SNMP not performed due to setting or ping result 
area51
Posts: 12
Joined: Wed Jul 13, 2005 7:17 am

Post by area51 »

lvm wrote:area51,
your hosts are not reachable for udp ping (firewall??). So cacti does not even try to reach them. You may change this behaviour, if you choose "settings -> Poller -> Downed Host Detection" and select "SNMP - Reliable".
Reinhard

Code: Select all

CACTID: Host[3] PING Result: UDP: Ping timed out
CACTID: Host[3] SNMP Result: SNMP not performed due to setting or ping result 
it's right host 2 and 3 are pc's on winxp without smtp host 1 is freebsd with enabled udp ping and smtp
my firewall is enabled to udp ping at all time
when i switch between cmd.php and cactid there is no graphs at all hosts
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests