I just upgraded to the newest RPM of cactid for FC3. I have been using cmd.php and would like to switch off to cactid as I am anticipating many more devices on the network and would like to avoid any future problems.
I went into the settings of cacti, and saved the correct path to the cactid binary (/usr/bin/cactid) in the "Paths" section. Next I went into the "Poller" section and selected cactid as the Type and saved the information.
Here are the settings for the poller page:
Maximum Concurrent Poller Processes 7
Maximum Threads per Process: 1
Script and Script Server Timeout Value: 25
The Maximum SNMP OID's Per SNMP Get Request: 10
Downed Host Detection: SNMP - Reliable
Ping Type: UDP
Ping Timeout Value: 400
Ping Retry Count: 1
Failure Count: 2
Recovery Count: 3
When I enable cactid, I noticed that everything on my Devices page was in a "Down" state. Looking at the cacti.log I found this in there after the poller was completed:
10/17/2005 01:15:18 PM - SYSTEM STATS: Time:16.3625 Method:cactid Processes:7 Threads:1 Hosts:44 HostsPerProcess:7 DataSources:6142 RRDsProcessed:0
10/17/2005 01:20:18 PM - SYSTEM STATS: Time:16.7475 Method:cactid Processes:7 Threads:1 Hosts:44 HostsPerProcess:7 DataSources:6142 RRDsProcessed:0
I promptly switched back to cmd.php and it looked like:
10/17/2005 01:30:26 PM - SYSTEM STATS: Time:24.8617 Method:cmd.php Processes:7 Threads:N/A Hosts:44 HostsPerProcess:7 DataSources:6142 RRDsProcessed:2236
10/17/2005 01:35:27 PM - SYSTEM STATS: Time:25.2604 Method:cmd.php Processes:7 Threads:N/A Hosts:44 HostsPerProcess:7 DataSources:6142 RRDsProcessed:2248
As you can see, the RRDsProcessed for the cactid entries is 0.
I was looking at some of the other posts about cactid and wasn't sure if any of this relates to them. My next step is to run cactid manually w/DEBUG on (as stated in another thread), but before I did that I was hoping perhaps you might be able to suggest something before I did that.
Thanks
Switching to cactid from cmd.php
Moderators: Developers, Moderators
I figured I'd go ahead and run the set the DEBUG option and run cactid manually. The only thing I would like to know is how do you determine what the "hostid" number is? I was going off the number based off the id= in the "Devices" page:
/cacti/host.php?action=edit&id=65
#/usr/bin/cactid 65 66
CACTID: Using cactid config file [/etc/cactid.conf]
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: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is /usr/bin/php
CACTID: DEBUG: The availability_method variable is 2
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 7
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: StartHost='65', EndHost='66', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: The Maximum SNMP OID Get Size is 10
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: Parent pid=10326, 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: Host[65] SNMP Result: Host did not respond to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='1', status_fail_date='2005-10-17 14:26',status_rec_date='2005-10-17 01:25:05',status_last_error='Host did not respond to SNMP',min_time='3.940000',max_time='999.999990',cur_time='5.930000',avg_time='22.971480',total_polls='3338',failed_polls='26',availability='99.2211' where id='65'
CACTID: Host[65] 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: Host[66] SNMP Result: Host did not respond to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='1', status_fail_date='2005-10-17 14:26',status_rec_date='2005-10-17 01:25:05',status_last_error='Host did not respond to SNMP',min_time='1.950000',max_time='999.999990',cur_time='3.900000',avg_time='16.969480',total_polls='3338',failed_polls='28',availability='99.1612' where id='66'
CACTID: Host[66] 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: Time: 6.4994 s, Threads: 1, Hosts: 3
/cacti/host.php?action=edit&id=65
#/usr/bin/cactid 65 66
CACTID: Using cactid config file [/etc/cactid.conf]
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: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is /usr/bin/php
CACTID: DEBUG: The availability_method variable is 2
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 7
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: StartHost='65', EndHost='66', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: The Maximum SNMP OID Get Size is 10
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: Parent pid=10326, 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: Host[65] SNMP Result: Host did not respond to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='1', status_fail_date='2005-10-17 14:26',status_rec_date='2005-10-17 01:25:05',status_last_error='Host did not respond to SNMP',min_time='3.940000',max_time='999.999990',cur_time='5.930000',avg_time='22.971480',total_polls='3338',failed_polls='26',availability='99.2211' where id='65'
CACTID: Host[65] 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: Host[66] SNMP Result: Host did not respond to SNMP
CACTID: DEBUG: SQLCMD: update host set status='3',status_event_count='1', status_fail_date='2005-10-17 14:26',status_rec_date='2005-10-17 01:25:05',status_last_error='Host did not respond to SNMP',min_time='1.950000',max_time='999.999990',cur_time='3.900000',avg_time='16.969480',total_polls='3338',failed_polls='28',availability='99.1612' where id='66'
CACTID: Host[66] 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: Time: 6.4994 s, Threads: 1, Hosts: 3
I think im having similar problems. I had to switch to cactid from cmd because of the 5 minute timeframe. here is my output... makes no sense:
03/02/2006 05:40:07 PM - CACTID: Poller[0] Host[10] DS[577] SCRIPT: /usr/bin/perl /var/www/html/cacti/scripts/nt_perfmon.pl 10.10.10.8 "\\\\Terminal Services\\Active Sessions", output: U
Then I ran the command...
[cacti@ajax log]$ /usr/bin/perl /var/www/html/cacti/scripts/nt_perfmon.pl 10.10.10.8 "\\\\Terminal Services\\Active Sessions"
1
Ridiculous!
03/02/2006 05:40:07 PM - CACTID: Poller[0] Host[10] DS[577] SCRIPT: /usr/bin/perl /var/www/html/cacti/scripts/nt_perfmon.pl 10.10.10.8 "\\\\Terminal Services\\Active Sessions", output: U
Then I ran the command...
[cacti@ajax log]$ /usr/bin/perl /var/www/html/cacti/scripts/nt_perfmon.pl 10.10.10.8 "\\\\Terminal Services\\Active Sessions"
1
Ridiculous!
Switching to cactid from cmd.php
Did anybody solve the problem?
I'm having the same phenomenon as the one stated by alive.
When the data is being collected by cactid, I'm getting the partial result error and no data is displayed in the graphs. When I run nt_perfmon.pl manually under the cactiuser account, the result is valid.
Does anybody have a solution for this? My cacti installation has worked flawlessly for a long time, but now I'm having this problem. Quite frankly, I'm getting desperate.
Thanks, Sebastian
I'm having the same phenomenon as the one stated by alive.
When the data is being collected by cactid, I'm getting the partial result error and no data is displayed in the graphs. When I run nt_perfmon.pl manually under the cactiuser account, the result is valid.
Does anybody have a solution for this? My cacti installation has worked flawlessly for a long time, but now I'm having this problem. Quite frankly, I'm getting desperate.
Thanks, Sebastian
Who is online
Users browsing this forum: No registered users and 1 guest