No graphs

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

Moderators: Moderators, Developers

Post Reply
Author
Message
renegade310
Posts: 10
Joined: Mon Jan 14, 2019 2:54 am

No graphs

#1 Post by renegade310 » Wed Jan 16, 2019 6:25 am

Hello.
I got fresh cacti 1.2.0 install on FreeBSD 11.2 from ports. But I can`t get any graphs.

My /etc/cron.d/cacti:

Code: Select all

*/5 * * * *  /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
Files and folders perm:

Code: Select all

# ll
total 2444
-rw-r--r--  1 root   wheel  166049 Jan 15 18:50 CHANGELOG
-rw-r--r--  1 root   wheel   15141 Jan 15 18:50 LICENSE
-rw-r--r--  1 root   wheel    8034 Jan 15 18:50 README.md
-rw-r--r--  1 root   wheel    4341 Jan 15 18:50 about.php
-rw-r--r--  1 root   wheel   56513 Jan 15 18:50 aggregate_graphs.php
-rw-r--r--  1 root   wheel   18147 Jan 15 18:50 aggregate_items.php
-rw-r--r--  1 root   wheel   24127 Jan 15 18:50 aggregate_templates.php
-rw-r--r--  1 root   wheel   13637 Jan 15 18:50 auth_changepassword.php
-rw-r--r--  1 root   wheel   28543 Jan 15 18:50 auth_login.php
-rw-r--r--  1 root   wheel   18029 Jan 15 18:50 auth_profile.php
-rw-r--r--  1 root   wheel   22533 Jan 15 18:50 automation_devices.php
-rw-r--r--  1 root   wheel   36740 Jan 15 18:50 automation_graph_rules.php
-rw-r--r--  1 root   wheel   42673 Jan 15 18:50 automation_networks.php
-rw-r--r--  1 root   wheel   30251 Jan 15 18:50 automation_snmp.php
-rw-r--r--  1 root   wheel   18709 Jan 15 18:50 automation_templates.php
-rw-r--r--  1 root   wheel   38726 Jan 15 18:50 automation_tree_rules.php
-rw-r--r--  1 root   wheel    2958 Jan 15 18:50 boost_rrdupdate.php
drwxr-xr-x  6 cacti  wheel     512 Jan 15 19:00 cache/
-rw-r--r--  1 root   wheel  121218 Jan 15 18:50 cacti.sql
-rw-r--r--  1 root   wheel   29116 Jan 15 18:50 cdef.php
drwxr-xr-x  2 root   wheel    2048 Jan 15 19:00 cli/
-rw-r--r--  1 root   wheel    1934 Jan 15 18:50 clog.php
-rw-r--r--  1 root   wheel    1940 Jan 15 18:50 clog_user.php
-rw-r--r--  1 root   wheel   30603 Jan 15 18:50 cmd.php
-rw-r--r--  1 root   wheel    8837 Jan 15 18:50 cmd_realtime.php
-rw-r--r--  1 root   wheel   24323 Jan 15 18:50 color.php
-rw-r--r--  1 root   wheel   22119 Jan 15 18:50 color_templates.php
-rw-r--r--  1 root   wheel   13200 Jan 15 18:50 color_templates_items.php
-rw-r--r--  1 root   wheel   26269 Jan 15 18:50 data_debug.php
-rw-r--r--  1 root   wheel   34636 Jan 15 18:50 data_input.php
-rw-r--r--  1 root   wheel   49269 Jan 15 18:50 data_queries.php
-rw-r--r--  1 root   wheel   34361 Jan 15 18:50 data_source_profiles.php
-rw-r--r--  1 root   wheel   60941 Jan 15 18:50 data_sources.php
-rw-r--r--  1 root   wheel   41528 Jan 15 18:50 data_templates.php
drwxr-xr-x  3 root   wheel    4096 Jan 15 19:00 docs/
drwxr-xr-x  2 root   wheel     512 Jan 15 19:00 formats/
-rw-r--r--  1 root   wheel   14244 Jan 15 18:50 gprint_presets.php
-rw-r--r--  1 root   wheel   21318 Jan 15 18:50 graph.php
-rw-r--r--  1 root   wheel    5510 Jan 15 18:50 graph_image.php
-rw-r--r--  1 root   wheel    8884 Jan 15 18:50 graph_json.php
-rw-r--r--  1 root   wheel   13608 Jan 15 18:50 graph_realtime.php
-rw-r--r--  1 root   wheel   38068 Jan 15 18:50 graph_templates.php
-rw-r--r--  1 root   wheel    9521 Jan 15 18:50 graph_templates_inputs.php
-rw-r--r--  1 root   wheel   25486 Jan 15 18:50 graph_templates_items.php
-rw-r--r--  1 root   wheel   29600 Jan 15 18:50 graph_view.php
-rw-r--r--  1 root   wheel   11955 Jan 15 18:50 graph_xport.php
-rw-r--r--  1 root   wheel   81118 Jan 15 18:50 graphs.php
-rw-r--r--  1 root   wheel   24962 Jan 15 18:50 graphs_items.php
-rw-r--r--  1 root   wheel   31660 Jan 15 18:50 graphs_new.php
-rw-r--r--  1 root   wheel   60365 Jan 15 18:50 host.php
-rw-r--r--  1 root   wheel   30008 Jan 15 18:50 host_templates.php
drwxr-xr-x  2 root   wheel    3584 Jan 15 19:00 images/
drwxr-xr-x  8 root   wheel    1024 Jan 16 12:35 include/
-rw-r--r--  1 root   wheel    5554 Jan 15 18:50 index.php
drwxr-xr-x  4 root   wheel     512 Jan 15 19:00 install/
drwxr-xr-x  2 root   wheel    2048 Jan 15 19:00 lib/
-rw-r--r--  1 root   wheel    2933 Jan 15 18:50 link.php
-rw-r--r--  1 root   wheel   21909 Jan 15 18:50 links.php
drwxr-xr-x  4 root   wheel     512 Jan 15 19:00 locales/
drwxr-xr-x  2 cacti  www       512 Jan 16 13:42 log/
-rw-r--r--  1 root   wheel    4408 Jan 15 18:50 logout.php
-rw-r--r--  1 root   wheel   38211 Jan 15 18:50 managers.php
drwxr-xr-x  2 root   wheel     512 Jan 15 19:00 mibs/
-rw-r--r--  1 root   wheel    3241 Jan 15 18:50 permission_denied.php
drwxr-xr-x  2 root   wheel     512 Jan 15 19:00 plugins/
-rw-r--r--  1 root   wheel   24854 Jan 15 18:50 plugins.php
-rw-r--r--  1 root   wheel   30536 Jan 15 18:50 poller.php
-rw-r--r--  1 root   wheel   36126 Jan 15 18:50 poller_automation.php
-rw-r--r--  1 root   wheel   14607 Jan 15 18:50 poller_boost.php
-rw-r--r--  1 root   wheel    6835 Jan 15 18:50 poller_commands.php
-rw-r--r--  1 root   wheel    7874 Jan 15 18:50 poller_dsstats.php
-rw-r--r--  1 root   wheel   18439 Jan 15 18:50 poller_maintenance.php
-rw-r--r--  1 root   wheel    9750 Jan 15 18:50 poller_realtime.php
-rw-r--r--  1 root   wheel    8737 Jan 15 18:50 poller_recovery.php
-rw-r--r--  1 root   wheel    5284 Jan 15 18:50 poller_reports.php
-rw-r--r--  1 root   wheel    6919 Jan 15 18:50 poller_spikekill.php
-rw-r--r--  1 root   wheel   33544 Jan 15 18:50 pollers.php
-rw-r--r--  1 root   wheel   14235 Jan 15 18:50 remote_agent.php
-rw-r--r--  1 root   wheel    3279 Jan 15 18:50 reports_admin.php
-rw-r--r--  1 root   wheel    3180 Jan 15 18:50 reports_user.php
drwxr-xr-x  5 root   wheel     512 Jan 15 19:00 resource/
-rw-r--r--  1 root   wheel   19216 Jan 15 18:50 rrdcleaner.php
-rw-r--r--  1 root   wheel   10776 Jan 15 18:50 script_server.php
drwxr-xr-x  2 www    www      1536 Jan 16 13:30 scripts/
-rw-r--r--  1 root   wheel   37032 Jan 15 18:50 settings.php
-rw-r--r--  1 root   wheel   18769 Jan 15 18:50 sites.php
-rw-r--r--  1 root   wheel    2416 Jan 15 18:50 snmpagent_mibcache.php
-rw-r--r--  1 root   wheel    3728 Jan 15 18:50 snmpagent_mibcachechild.php
-rw-r--r--  1 root   wheel    5510 Jan 15 18:50 snmpagent_persist.php
-rw-r--r--  1 root   wheel    3969 Jan 15 18:50 spikekill.php
-rw-r--r--  1 root   wheel    6468 Jan 15 18:50 templates_export.php
-rw-r--r--  1 root   wheel    5809 Jan 15 18:50 templates_import.php
-rw-r--r--  1 root   wheel   63140 Jan 15 18:50 tree.php
-rw-r--r--  1 root   wheel  101842 Jan 15 18:50 user_admin.php
-rw-r--r--  1 root   wheel   29701 Jan 15 18:50 user_domains.php
-rw-r--r--  1 root   wheel   87606 Jan 15 18:50 user_group_admin.php
-rw-r--r--  1 root   wheel   92463 Jan 15 18:50 utilities.php
-rw-r--r--  1 root   wheel   28815 Jan 15 18:50 vdef.php
Data collector from webui:
Image

And last log from webui:

Code: Select all

2019/01/16 14:34:07 - AUTOM8 NOTE: Graph Added - Device[Cisco], Graph[Cisco - CPU Usage], DS[Cisco - 5 Minute CPU] Graphs[Cisco - CPU Usage]
2019/01/16 14:34:07 - REINDEX WARNING: Sort Field has Changed for Device[Cisco] and DQ[SNMP - Interface Statistics]. Old Sort:, New Sort:ifName. Re-mapping issues may occur!
2019/01/16 14:30:46 - INSTALL: always: Installation was started at 2019-01-16 12:30:25, completed at 2019-01-16 12:30:46

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

Re: No graphs

#2 Post by netniV » Wed Jan 16, 2019 7:07 am

From what I can see, your cron.d/cacti file is missing the username between the last * and the php command.

renegade310
Posts: 10
Joined: Mon Jan 14, 2019 2:54 am

Re: No graphs

#3 Post by renegade310 » Wed Jan 16, 2019 8:13 am

netniV wrote:From what I can see, your cron.d/cacti file is missing the username between the last * and the php command.
Yes, I make it works, but another problem is that I have zero graphs. But, when I click on Real time graph, I got correct counters.

renegade310
Posts: 10
Joined: Mon Jan 14, 2019 2:54 am

Re: No graphs

#4 Post by renegade310 » Wed Jan 16, 2019 8:19 am

Changes I made:
change poller to spine and set Poller Interval - 1 minute and Cron Interval - 1 minute.
And log looks like:
https://pastebin.com/6PuDtGh4

User avatar
Osiris
Cacti Pro User
Posts: 863
Joined: Mon Jan 05, 2015 10:10 am

Re: No graphs

#5 Post by Osiris » Wed Jan 16, 2019 8:06 pm

Too much noise. Put it in low first.
Before history, there was a paradise, now dust.

Post Reply