Logging and Poller Paths Issue

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

davidolaj
Posts: 18
Joined: Fri Sep 27, 2024 2:41 am

Logging and Poller Paths Issue

Post by davidolaj »

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?
Console-Cacti-Settings.jpg
Console-Cacti-Settings.jpg (119.91 KiB) Viewed 533 times
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Logging and Poller Paths Issue

Post by Rno »

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.
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
davidolaj
Posts: 18
Joined: Fri Sep 27, 2024 2:41 am

Re: Logging and Poller Paths Issue

Post by davidolaj »

Has for the spine process, where did you install it ?
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.

Please tell me how to check the correct paths.
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Logging and Poller Paths Issue

Post by Rno »

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)
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
davidolaj
Posts: 18
Joined: Fri Sep 27, 2024 2:41 am

Re: Logging and Poller Paths Issue

Post by davidolaj »

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:~#
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Logging and Poller Paths Issue

Post by Rno »

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
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
davidolaj
Posts: 18
Joined: Fri Sep 27, 2024 2:41 am

Re: Logging and Poller Paths Issue

Post by davidolaj »

I need Cacti professional guy that can help me install it on my server and get pay....
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Logging and Poller Paths Issue

Post by macan »

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
Let the Cacti grow!
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Logging and Poller Paths Issue

Post by macan »

install new cacti version, try php 7.4
Let the Cacti grow!
davidolaj
Posts: 18
Joined: Fri Sep 27, 2024 2:41 am

Re: Logging and Poller Paths Issue

Post by davidolaj »

Rno wrote: Mon Sep 30, 2024 8:27 am 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
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.
======================
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Logging and Poller Paths Issue

Post by macan »

you need install more php modules, described here
https://docs.cacti.net/Install-Under-CentOS_LAMP.md
Let the Cacti grow!
davidolaj
Posts: 18
Joined: Fri Sep 27, 2024 2:41 am

Re: Logging and Poller Paths Issue

Post by davidolaj »

But my Server OS is Ubuntu 22.04 not CentOS ?
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Logging and Poller Paths Issue

Post by macan »

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!
davidolaj
Posts: 18
Joined: Fri Sep 27, 2024 2:41 am

Re: Logging and Poller Paths Issue

Post by davidolaj »

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
davidolaj
Posts: 18
Joined: Fri Sep 27, 2024 2:41 am

Re: Logging and Poller Paths Issue

Post by davidolaj »

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:~#
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests