Cactid issues

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

Moderators: Developers, Moderators

Post Reply
ChuckP23
Posts: 2
Joined: Sat Oct 01, 2005 3:50 am

Cactid issues

Post by ChuckP23 »

Hey guys my setup was running fine under cmd.php but when I switched to cactid I am not getting rra files gernerated and when I "php poller.php" I get

10/01/2005 04:49:36 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/cactid, ARGS: 0 6]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
...........................................forever

when I run /usr/local/cactid I get:

CACTID: DEBUG: The path_php_server variable is /home/cacti/public_html/cacti/script_server.php
CACTID: DEBUG: The path_cactilog variable is /home/cacti/public_html/cacti/log/cacti.log
CACTID: DEBUG: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is /usr/bin/php
CACTID: DEBUG: The availability_method variable is 3
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 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 1
CACTID: DEBUG: The log_pstats variable is 1
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='1'
CACTID: DEBUG: The PHP Script Server is 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
DEBUG: Current Max Memory Allocation is '8388608' bytes
DEBUG: Maximum Max Memory Allocation is '8388608' bytes
DEBUG: Current Address Space Allocation is '-1' bytes
DEBUG: Maximum Address Space Allocation is '-1' bytes
CACTID: DEBUG: PHP Script Server Routine Starting
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: Parent pid=480, Script Server pid=481
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: 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: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: Host[6] 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='9.999990',max_time='37.550000',cur_time='35.191890',avg_time='35.229447',total_polls='24',failed_polls='0',availability='100.0000' where id='6'

CACTID: Host[6] RECACHE: Processing 1 items in the auto reindex cache for 'jan-proorlando.homeip.net'
CACTID: Host[6] 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: CACTID: Shutting down Net-SNMP API
CACTID: DEBUG: MYSQL Free & Close Completed
CACTID: Execution Time: 0.5052 s, Threads: 1, Hosts: 2


Any ideas why this is happening?
ChuckP23
Posts: 2
Joined: Sat Oct 01, 2005 3:50 am

Post by ChuckP23 »

I was able to get it working by not having cactid in /usr/local instead in the home directory.

The default 127.0.0.1 works fine, however when I add a new host it just ignores it when processing data, any ideas? The hosts, and data sources change but the RDRsProcessed remain the same.

When I run as user "root" it allows 127.0.0.1 and no SNMP servers. When I run as the user that is suppose to run it, it doesn't create any RRA files.

When I switch back to cmd.php everything in RRA graphs, but once I switch to the cactid it stops anything based on SNMP traffic. My load was getting too high with the cmd.php.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try making Cactid086f-rc12 in the following location:

http://forums.cacti.net/viewtopic.php?t=9594

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