Logging and Poller Paths Issue
Moderators: Developers, Moderators
Logging and Poller Paths Issue
Hello Guys...
I just installed Cacti on my Debian Linux box and is not showing any data on graphs.
I found some paths' error on attached screenshot...
Please, can someone help and tell me how to fix this error?
I just installed Cacti on my Debian Linux box and is not showing any data on graphs.
I found some paths' error on attached screenshot...
Please, can someone help and tell me how to fix this error?
Re: Logging and Poller Paths Issue
Well the poller standard error path, you wrote /varlcacti/og
instead of /var/cacti/log
you l is before cacti, instead of after the / and before the o
Has for the spine process, where did you install it ?
if it's not under /usr/sbin/spine
or maybe you apache process dosen't have access to it.
instead of /var/cacti/log
you l is before cacti, instead of after the / and before the o
Has for the spine process, where did you install it ?
if it's not under /usr/sbin/spine
or maybe you apache process dosen't have access to it.
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Re: Logging and Poller Paths Issue
I don't know much about the cacti installation and just executed this command "apt-get install cacti" on my new Debian 12 Linux box. The installation shown that successfully, and I don't really understand the installation or cacti files paths.Has for the spine process, where did you install it ?
Please tell me how to check the correct paths.
Re: Logging and Poller Paths Issue
hmm, if I'm right that install cacti, and cmd.php, not spine.
so far this is not a problem, you will need spine later if the number of device or polled objects is big.
did you correct this:
Well the poller standard error path, you wrote /var/lcacti/og
instead of /var/cacti/log
And what did you have under Poller ?
Did you setup the cron entry ?
Did you read any documentation on how to install cacti ? (after the apt-get install cacti)
so far this is not a problem, you will need spine later if the number of device or polled objects is big.
did you correct this:
Well the poller standard error path, you wrote /var/lcacti/og
instead of /var/cacti/log
And what did you have under Poller ?
Did you setup the cron entry ?
Did you read any documentation on how to install cacti ? (after the apt-get install cacti)
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Re: Logging and Poller Paths Issue
I just start the Cacti installation afresh on Ubuntu 22.04 Server, and following this Cacti installation manual... https://docs.cacti.net/Installing-Under ... i-software
Got the following error....
root@cacti-server:~# apt-get install -y apache2 rrdtool mariadb-server snmp snmpd php7.0 php-mysql php7.0-snmp php7.0-xml php7.0-mbstring php7.0-json php7.0-gd php7.0-gmp php7.0-zip php7.0-ldap php7.0-mc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
E: Unable to locate package php7.0-snmp
E: Couldn't find any package by glob 'php7.0-snmp'
E: Couldn't find any package by regex 'php7.0-snmp'
E: Unable to locate package php7.0-xml
E: Couldn't find any package by glob 'php7.0-xml'
E: Couldn't find any package by regex 'php7.0-xml'
E: Unable to locate package php7.0-mbstring
E: Couldn't find any package by glob 'php7.0-mbstring'
E: Couldn't find any package by regex 'php7.0-mbstring'
E: Unable to locate package php7.0-json
E: Couldn't find any package by glob 'php7.0-json'
E: Couldn't find any package by regex 'php7.0-json'
E: Unable to locate package php7.0-gd
E: Couldn't find any package by glob 'php7.0-gd'
E: Couldn't find any package by regex 'php7.0-gd'
E: Unable to locate package php7.0-gmp
E: Couldn't find any package by glob 'php7.0-gmp'
E: Couldn't find any package by regex 'php7.0-gmp'
E: Unable to locate package php7.0-zip
E: Couldn't find any package by glob 'php7.0-zip'
E: Couldn't find any package by regex 'php7.0-zip'
E: Unable to locate package php7.0-ldap
E: Couldn't find any package by glob 'php7.0-ldap'
E: Couldn't find any package by regex 'php7.0-ldap'
E: Unable to locate package php7.0-mc
E: Couldn't find any package by glob 'php7.0-mc'
E: Couldn't find any package by regex 'php7.0-mc'
root@cacti-server:~#
Got the following error....
root@cacti-server:~# apt-get install -y apache2 rrdtool mariadb-server snmp snmpd php7.0 php-mysql php7.0-snmp php7.0-xml php7.0-mbstring php7.0-json php7.0-gd php7.0-gmp php7.0-zip php7.0-ldap php7.0-mc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'php7.0-thrift' for regex 'php7.0'
Note, selecting 'php7.0-common' for regex 'php7.0'
Note, selecting 'php7.0-curl' for regex 'php7.0'
E: Unable to locate package php7.0-snmp
E: Couldn't find any package by glob 'php7.0-snmp'
E: Couldn't find any package by regex 'php7.0-snmp'
E: Unable to locate package php7.0-xml
E: Couldn't find any package by glob 'php7.0-xml'
E: Couldn't find any package by regex 'php7.0-xml'
E: Unable to locate package php7.0-mbstring
E: Couldn't find any package by glob 'php7.0-mbstring'
E: Couldn't find any package by regex 'php7.0-mbstring'
E: Unable to locate package php7.0-json
E: Couldn't find any package by glob 'php7.0-json'
E: Couldn't find any package by regex 'php7.0-json'
E: Unable to locate package php7.0-gd
E: Couldn't find any package by glob 'php7.0-gd'
E: Couldn't find any package by regex 'php7.0-gd'
E: Unable to locate package php7.0-gmp
E: Couldn't find any package by glob 'php7.0-gmp'
E: Couldn't find any package by regex 'php7.0-gmp'
E: Unable to locate package php7.0-zip
E: Couldn't find any package by glob 'php7.0-zip'
E: Couldn't find any package by regex 'php7.0-zip'
E: Unable to locate package php7.0-ldap
E: Couldn't find any package by glob 'php7.0-ldap'
E: Couldn't find any package by regex 'php7.0-ldap'
E: Unable to locate package php7.0-mc
E: Couldn't find any package by glob 'php7.0-mc'
E: Couldn't find any package by regex 'php7.0-mc'
root@cacti-server:~#
Re: Logging and Poller Paths Issue
I think it's php70- not php7.0
But you can do a apt-get search php
and you will get the right syntax for your package
But you can do a apt-get search php
and you will get the right syntax for your package
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Re: Logging and Poller Paths Issue
I need Cacti professional guy that can help me install it on my server and get pay....
Re: Logging and Poller Paths Issue
If you have small installation, you don't need install spine.
Configuration->settings -> poller -> Poller type switch to cmd
Data collection -> data collectors -> Main poller -> increase processes from 1 to 2 or 4
Configuration->settings -> poller -> Poller type switch to cmd
Data collection -> data collectors -> Main poller -> increase processes from 1 to 2 or 4
Let the Cacti grow!
Re: Logging and Poller Paths Issue
This is where I am now... when I enter serverip/cacti
======================
FATAL: Connection to Cacti database failed. Please ensure:
the PHP MySQL module is installed and enabled.
the database is running.
the credentials in config.php are valid.
======================
Re: Logging and Poller Paths Issue
you need install more php modules, described here
https://docs.cacti.net/Install-Under-CentOS_LAMP.md
https://docs.cacti.net/Install-Under-CentOS_LAMP.md
Let the Cacti grow!
Re: Logging and Poller Paths Issue
But my Server OS is Ubuntu 22.04 not CentOS ?
Re: Logging and Poller Paths Issue
it doesn't matter. Howto contains a list of php modules that cacti needs. So install these modules on the system and restart the web server.
Let the Cacti grow!
Re: Logging and Poller Paths Issue
At this stage (vim /var/www/html/cacti/service/cactid.service (edit the path)), please what is the right path do I use for the following;
# +-------------------------------------------------------------------------+
# | Copyright (C) 2004-2024 The Cacti Group |
# | |
# | This program is free software; you can redistribute it and/or |
# | modify it under the terms of the GNU General Public License |
# | as published by the Free Software Foundation; either version 2 |
# | of the License, or (at your option) any later version. |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# +-------------------------------------------------------------------------+
# | Cacti: The Complete RRDtool-based Graphing Solution |
# +-------------------------------------------------------------------------+
# | This code is designed, written, and maintained by the Cacti Group. See |
# | about.php and/or the AUTHORS file for specific developer information. |
# +-------------------------------------------------------------------------+
# | http://www.cacti.net/ |
# +-------------------------------------------------------------------------+
[Unit]
Description=Cacti Daemon Main Poller Service
After=network.target
[Service]
Type=forking
User=apache
Group=apache
EnvironmentFile=/etc/sysconfig/cactid
ExecStart=/var/www/html/cacti/cactid.php
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
# +-------------------------------------------------------------------------+
# | Copyright (C) 2004-2024 The Cacti Group |
# | |
# | This program is free software; you can redistribute it and/or |
# | modify it under the terms of the GNU General Public License |
# | as published by the Free Software Foundation; either version 2 |
# | of the License, or (at your option) any later version. |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# +-------------------------------------------------------------------------+
# | Cacti: The Complete RRDtool-based Graphing Solution |
# +-------------------------------------------------------------------------+
# | This code is designed, written, and maintained by the Cacti Group. See |
# | about.php and/or the AUTHORS file for specific developer information. |
# +-------------------------------------------------------------------------+
# | http://www.cacti.net/ |
# +-------------------------------------------------------------------------+
[Unit]
Description=Cacti Daemon Main Poller Service
After=network.target
[Service]
Type=forking
User=apache
Group=apache
EnvironmentFile=/etc/sysconfig/cactid
ExecStart=/var/www/html/cacti/cactid.php
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target
Re: Logging and Poller Paths Issue
If the above path is right, how do I fix this below directory issue;
root@cacti-server:~# touch /etc/sysconfig/cactid
touch: cannot touch '/etc/sysconfig/cactid': No such file or directory
root@cacti-server:~#
root@cacti-server:~# touch /etc/sysconfig/cactid
touch: cannot touch '/etc/sysconfig/cactid': No such file or directory
root@cacti-server:~#
Who is online
Users browsing this forum: No registered users and 0 guests