New install - but no graphs for localhost

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

Moderators: Developers, Moderators

Post Reply
jmcgranahan
Posts: 3
Joined: Wed Feb 17, 2021 11:47 am

New install - but no graphs for localhost

Post by jmcgranahan »

OK, I recently installed Cacti on a CentOS 7 VM. I followed the necessary steps and fulfilled all of the requirements (i.e., installed missing packages). However, even though it has been "running" for several days, we still show no data for the localhost, and I do not understand why. The cacti.log file contains little helpful information:

Code: Select all

2021-02-18 04:22:03 - WEBUI Fetch InitRows:0, Hash:80273e08c9e5f93672b7986f82875b97
2021-02-18 04:22:03 - WEBUI Fetch InitRows:0, Hash:80273e08c9e5f93672b7986f82875b97
2021-02-18 04:22:03 - WEBUI Fetch InitRows:-2, Hash:80273e08c9e5f93672b7986f82875b97
2021-02-18 04:22:04 - WEBUI Obtaining 'Graph Template' cache
2021-02-18 04:22:04 - WEBUI Fetch InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:22:04 - WEBUI Store InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:22:04 - WEBUI Obtaining 'Graph Template' cache
2021-02-18 04:22:04 - WEBUI Fetch InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:22:04 - WEBUI Store InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:31:13 - WEBUI Fetch InitRows:0, Hash:80273e08c9e5f93672b7986f82875b97
2021-02-18 04:31:13 - WEBUI Fetch InitRows:0, Hash:80273e08c9e5f93672b7986f82875b97
2021-02-18 04:31:13 - WEBUI Fetch InitRows:-2, Hash:80273e08c9e5f93672b7986f82875b97
2021-02-18 04:31:13 - WEBUI Obtaining 'Graph Template' cache
2021-02-18 04:31:13 - WEBUI Fetch InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:31:13 - WEBUI Store InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:31:13 - WEBUI Obtaining 'Graph Template' cache
2021-02-18 04:31:13 - WEBUI Fetch InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:31:13 - WEBUI Store InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:31:19 - WEBUI Obtaining 'Graph Template' cache
2021-02-18 04:31:19 - WEBUI Fetch InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:31:19 - WEBUI Store InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:31:19 - WEBUI Obtaining 'Graph Template' cache
2021-02-18 04:31:19 - WEBUI Fetch InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
2021-02-18 04:31:19 - WEBUI Store InitRows:-1, Hash:1597d7f033a83a19f5b1a2356ce08ea0
What am I missing?
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: New install - but no graphs for localhost

Post by Osiris »

Missed crontab.
Before history, there was a paradise, now dust.
jmcgranahan
Posts: 3
Joined: Wed Feb 17, 2021 11:47 am

Re: New install - but no graphs for localhost

Post by jmcgranahan »

Unfortunately, that's not it. I've had this in the cron since installing it:

*/5 * * * * cactiuser php /apps/cacti/cacti/poller.php > /dev/null 2>&1

But I'm still getting 0 graphs. I thought I should have at least something for the Localhost. Other ideas? Anyone?
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: New install - but no graphs for localhost

Post by macan »

jmcgranahan wrote: Tue Mar 09, 2021 11:06 am Unfortunately, that's not it. I've had this in the cron since installing it:

*/5 * * * * cactiuser php /apps/cacti/cacti/poller.php > /dev/null 2>&1

But I'm still getting 0 graphs. I thought I should have at least something for the Localhost. Other ideas? Anyone?
Configuration->settings->general tab-> set log level to debug and run
sudo cactiuser
/path/to/php /apps/cacti/cacti/poller.php
And show the result
Let the Cacti grow!
jmcgranahan
Posts: 3
Joined: Wed Feb 17, 2021 11:47 am

Re: New install - but no graphs for localhost

Post by jmcgranahan »

Here are the results:

Code: Select all

2021-03-11 07:11:09 - POLLER: Poller[1] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '0', Max Runtime '298', Poller Runs: '1'
2021-03-11 07:11:09 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/apps/cacti-1.2.16/cacti/cmd.php' --poller=1 --first=0 --last=2 --mibs]
2021-03-11 07:11:09 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/apps/cacti-1.2.16/cacti/cmd.php' --poller=1 --first=3 --last=3 --mibs]
Waiting on 1 of 2 pollers.
2021-03-11 07:11:11 - SYSTEM STATS: Time:1.2390 Method:cmd.php Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0
2021-03-11 07:11:11 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /apps/cacti-1.2.16/cacti/poller_dsstats.php]
2021-03-11 07:11:11 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /apps/cacti-1.2.16/cacti/poller_reports.php]
2021-03-11 07:11:11 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/apps/cacti-1.2.16/cacti/poller_spikekill.php']
2021-03-11 07:11:11 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS:  -q '/apps/cacti-1.2.16/cacti/poller_automation.php' -M]
2021-03-11 07:11:11 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS:  -q '/apps/cacti-1.2.16/cacti/poller_maintenance.php']
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: New install - but no graphs for localhost

Post by cigamit »

DataSources:0
Did you actually create any graphs? Because that is saying it has nothing to poll.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest