Only 1 Process with 1.2

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

Moderators: Developers, Moderators

Post Reply
rich9000
Posts: 10
Joined: Fri Jul 17, 2015 9:54 am

Only 1 Process with 1.2

Post by rich9000 »

I can't seem to get more then one process going with spine or cmd.php. It is a fresh install on ubuntu.

Code: Select all

Date 	Mon, 13 Aug 2018 13:59:36 -0500
Cacti Version 	1.2.0
Cacti OS 	unix
RSA Fingerprint 	e4:b7:46:f7:7c:18:99:4c:53:a0:aa:e2:0a:7d:ae:9f
NET-SNMP Version 	NET-SNMP version: 5.7.3
RRDtool Version Configured 	1.3.0+
RRDtool Version Found 	1.7.0
Devices 	3,671
Graphs 	14,670
Data Sources 	Script/Command: 3,675
SNMP Query: 3,656
Script Server: 7,340
Total: 14,671
Poller Information
Interval 	300
Type 	SPINE 1.1.38 Copyright 2004-2017 by The Cacti Group (Different version of Cacti and Spine!)
Items 	Action[0]: 7,312
Action[1]: 3,675
Action[2]: 7,340
Total: 18,327
Concurrent Processes 	10
Max Threads 	70
PHP Servers 	20
Script Timeout 	10
Max OID 	10
Last Run Statistics 	Time:299.1570 Method:spine Processes:1 Threads:100 Hosts:3678 HostsPerProcess:3678 DataSources:18356 RRDsProcessed:13457
My spine is 1.1.38. When I tried spine 1.2 it wouldn't run.

My problem is the poller is not starting up multiple processes like it should for spine or cmd.

Code: Select all

2018/08/13 12:10:00 - SYSTEM STATS: Time:299.0612 Method:cmd.php [b]Processes:1[/b] Threads:N/A Hosts:3678 HostsPerProcess:3678 DataSources:18356 RRDsProcessed:1416
2018/08/13 12:05:00 - SYSTEM STATS: Time:298.5084 Method:cmd.php [b]Processes:1[/b] Threads:N/A Hosts:3678 HostsPerProcess:3678 DataSources:18356 RRDsProcessed:1280 
2018/08/13 13:45:00 - SYSTEM STATS: Time:299.5688 Method:spine [b]Processes:1[/b] Threads:100 Hosts:3678 HostsPerProcess:3678 DataSources:18356 RRDsProcessed:14476
2018/08/13 13:40:00 - SYSTEM STATS: Time:298.6218 Method:spine [b]Processes:1[/b] Threads:70 Hosts:3678 HostsPerProcess:3678 DataSources:18356 RRDsProcessed:14003 
What did I miss? Anyone else having this issue with clean install? I will get better logs if there are no shoot from the hip solutions.

Rich
Attachments
cacti_poller_settings.png
cacti_poller_settings.png (39.13 KiB) Viewed 1650 times
rich9000
Posts: 10
Joined: Fri Jul 17, 2015 9:54 am

Re: Only 1 Process with 1.2

Post by rich9000 »

logs:

Code: Select all

root@cacti:/var/www/cacti/log# php /var/www/cacti/poller.php -d --force
2018/08/13 14:58:56 - POLLER: Poller[1] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '916.16', Max Runtime '298', Poller Runs: '1'
2018/08/13 14:58:56 - POLLER: Poller[1] WARNING: Cron is out of sync with the Poller Interval!  The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 916.2 seconds have passed since the last poll!
2018/08/13 14:58:56 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS:  --poller=1 --first=0 --last=3679 --mibs]
2018/08/13 14:58:56 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/local/spine/bin/spine, ARGS:  --poller=1 --first=3680 --last=3680 --mibs]
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Only 1 Process with 1.2

Post by netniV »

Check out this issue that was resolved: https://github.com/Cacti/cacti/issues/1674
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
rich9000
Posts: 10
Joined: Fri Jul 17, 2015 9:54 am

Re: Only 1 Process with 1.2

Post by rich9000 »

netniV wrote:Check out this issue that was resolved: https://github.com/Cacti/cacti/issues/1674
I don't think this is the issue. That talks about the values not migrating and once they were set correctly it worked. Mine has the correct settings where they are supposed to be. I downloaded the cacti-master from github this morning. I checked the poller table and it correctly says 4 processes and 100 threads.

Main Poller 2 America/Chicago localhost 0 41.6522 299.94375991821 27.792448043823 280.58455993677 838 4 100 356 180 360 2018-08-13 14:59:37 2018-08-13 14:59:37


Rich
Attachments
cacti-poller-info.png
cacti-poller-info.png (11.43 KiB) Viewed 1645 times
rich9000
Posts: 10
Joined: Fri Jul 17, 2015 9:54 am

Re: Only 1 Process with 1.2

Post by rich9000 »

It may be related. The temp fix is to just set the concurrent processes in the poller.php after it gets the concurrent_processes value.


about line 200 or so
$concurrent_processes = 200;

I will keep digging.
rich9000
Posts: 10
Joined: Fri Jul 17, 2015 9:54 am

Re: Only 1 Process with 1.2

Post by rich9000 »

Here is the code that is messed up from poller.php:

// retreive the number of concurrent process settings
if (sizeof($poller)) {
$concurrent_processes = $poller['processes'];
} else {
$concurrent_processes = read_config_option('concurrent_processes');
}
if (!isset($concurrent_process) || inval($concurrent_processes) < 1) {
$concurrent_processes = 1;
}

I am not sure what inval is. I think its supposed to be intval but thats not the whole problem. It should be $concurrent_processes not $concurrent_process. $concurrent_process is NOT set so it will fire off and set concurrent processes = 1.

I am not sure how to do a patch.

Rich
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Only 1 Process with 1.2

Post by netniV »

Just to be clear, you should be using Cacti-Develop not Master. I'm not even sure when Master was last updated.

inval will be a typo, I'll go check it out.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Only 1 Process with 1.2

Post by netniV »

This is indeed a bug. If you would like to open it as an issue on the GitHub repo, it can be tracked so you can see when it's fixed.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest