Cactid not working

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

Moderators: Developers, Moderators

Post Reply
CoolAcid
Posts: 4
Joined: Sun Jan 16, 2005 1:34 am

Cactid not working

Post by CoolAcid »

Ok. I'm at a loss. I have done everything to get this to work.

I'm running cactid 0.8.6c with the new poller.c listed on the forums.
Everything runs fine with cmd.php just really slowly :)

Last line of log:

Code: Select all

01/16/2005 02:03:14 AM - RECACHE: Poller[0] STATS: Time: 14.1717 s, Hosts Recached: 1
One of the reporting lines:

Code: Select all

01/16/2005 02:02:59 AM - CACTID: Poller[0] Host[8] ERROR: SNMP timeout detected [50000 milliseconds], ignoring host '192.168.1.5'
If it's been 50000 ms timeout, then it should have taken longer then 14.1717s to run right?

I haven't cleaned out the database since ensuring all devices was moved to 50000 so will to that tomorrow.

A bit tired so will continue later.

Any help would be great.

See log attached.
Attachments
cacti.rar
Cacti Log
(2.02 KiB) Downloaded 61 times
CoolAcid
Posts: 4
Joined: Sun Jan 16, 2005 1:34 am

Post by CoolAcid »

Oh..
I just manually removed stuff from the db as listed in forums in different sponts and cleared the pollercache

Before you say it, yes, I know pollor.php creates the rdd files. But this is a quick and dirty way to see if the snmp is still failing.

Running ./cactid 1 3 yeilds this:

Code: Select all

CACTID: Using cactid config file [cactid.conf]
WARNING: Unrecongized directive: LogFile=/var/log/cactid.log in cactid.conf
CACTID: DEBUG: The path_php_server variable is /Web/cacti/script_server.php
CACTID: DEBUG: The path_cactilog variable is /Web/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 3
CACTID: DEBUG: The ping_recovery_count variable is 2
CACTID: DEBUG: The ping_failure_count variable is 5
CACTID: Non Window envrionment, running as root, ICMP Ping available
CACTID: DEBUG: The ping_method variable is 1
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: CACTID: Version 0.8.6c starting
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: DEBUG: PHP Script Server Routine Started
CACTID: DEBUG: PHP Script Server About to FORK Child Process
CACTID: DEBUG: PHP Script Server Child FORK Success
CACTID: DEBUG: Confirmed PHP Script Server Running
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: Host[1] PING: Result ICMP: Host is Alive
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='0000-00-00 00:00:00',status_rec_date='0000-00-00 00:00:00',status_last_error='',min_time='0.000000',max_time='0.888000',cur_time='0.521030',avg_time='0.522110',total_polls='56',failed_polls='0',availability='100.0000' 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: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: Host[3] PING: Result ICMP: Host is Alive
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='2005-01-15 10:45:00',status_rec_date='2005-01-15 10:59:00',status_last_error='Host did not respond to SNMP',min_time='0.206110',max_time='999.999990',cur_time='1.047960',avg_time='241.768339',total_polls='78',failed_polls='10',availability='87.0000' where id='3'

CACTID: Host[3] ERROR: SNMP timeout detected [50000 milliseconds], ignoring host '192.168.2.2'
CACTID: Host[3] SNMP: v2: 192.168.2.2, dsname: load_15min, oid: .1.3.6.1.4.1.2021.10.1.3.3, value: U
CACTID: DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (12,'load_15min','2005-01-16 02:12:35','U')
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 Shutdown Started
CACTID: DEBUG: PHP Script Server Pipes Closed
CACTID: DEBUG: Allocated Variable Memory Freed
CACTID: DEBUG: MYSQL Free & Close Completed
CACTID: Time: 5.3411 s, Threads: 1, Hosts: 2
CoolAcid
Posts: 4
Joined: Sun Jan 16, 2005 1:34 am

Post by CoolAcid »

Seems I may have corrected my problems.

Cactid does not complain very well.

I had two versions of libnetsnmp Got rid of all the versions and reinstalled snmpd and its working now.

Irronicly I tested once and it worked. After that it would just wait on processes, but the cactid would just sit in a suspended state. Running it manually showed a missing cactid.conf file and then the process just stopped again.

Yep. Seems with the correct LIB and a working conf file all is working.

Now to just get the weatherbug module/graph working....
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests