Odroid XU-4 with Ubuntu 22.04 LTS Mate D'top attempting to Install Cacti with NO joy

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

Moderators: Developers, Moderators

Post Reply
dgb1951
Posts: 2
Joined: Fri Jul 05, 2024 7:16 pm

Odroid XU-4 with Ubuntu 22.04 LTS Mate D'top attempting to Install Cacti with NO joy

Post by dgb1951 »

Hello all, I need help please.. in advance apologies in advance for my rambling start.

This install is totally doing my head in, time is not my friend as I have a sick partner to support during daytime.

Ok, on to it, as a 73 years old Australian, I have been Trying (with NO Joy) for many 3+ days (actually late evenings 8pm to 1am) to install latest Cacti on a Fresh install of Ubuntu 22.04 LTS Mate D'top on a Single Board Computer, being an Odroid XU-4. with near no success. I want to run it headless to monitor my incoming Fiber to the Premice FTTP (my Home) 1Gbit Internet provided by Australia's NBN Network

I had got Monitorix to install and run in browser, but Cacti seems to have more capability to diagnose the network random freezing issue I am troubleshooting; so felt I would install that.

However I cannot get Cacti to come up in Browser. From reviewing other's post across the Net, I realize I am getting that standard error message in browser saying the common set of three conditions likely not correct.

OK I have broken by 2 Golden rules during any software install using a terminal or like being:

1. Write LONG HAND in a Paper Book each step, inc source of instructions, any results - messages, so I can back track.
I learn't a long while back not to simply to save "work" on same machine; in case it crashes and corrupts.

2. Not doing task when tired or late at night after a stressful day.

Now where I am up to.

Just did a power on of that Odroid XU-4; and:-

a. After last changes yesterday to Cacti components I not even getting Monitorix to run in a Browser window.

I just logged into root on my Odriod's Ubuntu 22.04 with su - and have prompt root@odroid:#

b. at root prompt typed systemctl status apache2 and get

Loaded: (/user/lib/systemd/system.apache2.service; ENABLED; preset: enabled)
Active: ACTIVE (RUNNING)since 5 second back
Process: 6533 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
MainPID: 6536
Memory: 9.9M
CPU: 287ms
CGroup: /system.slice/apache2.service
see 6 slices (cpu has 6 cores) 6536,6539,40,41.42,43 via /user/sbin/apache2 -k start

Following this I get 4 lines of message
Odroid systemd[1]: Starting apache2.service - The Apache HTTP Server....

Odriod apachect[6535]: date-time info [alis:warn] [pid 6535] AH00671: The Alias directive in /etc/apache2/sites-enabled/ cacti.conf at line 1 will probably never match as it overlaps an earlier Alias.

Odroid apachectl[6535]: AH00558: apache2 : That typical message Could not reliably determine the servers fully qualified domain name , using 127.0.0.1

Odroid systemd:[1]: Started apache2. service


c. at root prompt typed systemctl status mariadb qnd get

Jul 07 10:13:39 odroid mariadbd[1223]: 2024-07-07 10:13:39 0 [Note] Plugin 'FEEDBACK' is disabled.
Jul 07 10:13:39 odroid mariadbd[1223]: 2024-07-07 10:13:39 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Jul 07 10:13:39 odroid mariadbd[1223]: 2024-07-07 10:13:39 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
Jul 07 10:13:39 odroid mariadbd[1223]: 2024-07-07 10:13:39 0 [Note] Server socket created on IP: '127.0.0.1'.
Jul 07 10:13:39 odroid mariadbd[1223]: 2024-07-07 10:13:39 0 [Note] /usr/sbin/mariadbd: ready for connections.
Jul 07 10:13:39 odroid mariadbd[1223]: Version: '10.11.8-MariaDB-0ubuntu0.24.04.1' socket: '/run/mysqld/mysqld.sock' port: 3306 Ubuntu 24.04
Jul 07 10:13:39 odroid mariadbd[1223]: 2024-07-07 10:13:39 0 [Note] InnoDB: Buffer pool(s) load completed at 240707 10:13:39
Jul 07 10:13:39 odroid systemd[1]: Started mariadb.service - MariaDB 10.11.8 database server.
Jul 07 10:13:39 odroid /etc/mysql/debian-start[1300]: Upgrading MariaDB tables if necessary.
Jul 07 10:13:40 odroid /etc/mysql/debian-start[1334]: Triggering myisam-recover for all MyISAM tables and aria-recover for all Aria tables


So where to from here.

1/ pull the emmc card in Odroid and reformat it and load new copy of Ubuntu on it then start again trying to install Cacti'

2/ go into a root shell and delete all of the cacti and mariadb files and directories and try reinstalling them

3/ attempt to work out what was my last changes to the install yesterday and back track on it.

4/ attempt an install of Discord on the Odroid SBC and hope someone can help by logging in and sorting problem out.

5/ Forget the lot. Go and start my chain saw, cut some wood, build a box. Start my min excavator, dig a hole. Climb in box and via Bluetooth, get excavator to back fill hole. At least it would be no diff to now as I am completely in DARK about this install.


Am I computer literate enough to do this task

a. Obviously NOT as I am now 73
b. I populated-soldered-built my first computer in 1976 and programed it in 6800 machine code.
c. I hold a Post Grad in Robotics and Automation and have used many software languages.

anyway its bright sun here in my County town of Healesville Aust. so outdoor tasks are now required to be done.

thanks in advance for even reading the above rant of an old bloke.

regards
david


also terminal screen on status of Monitorix just after I did status on Apahe2 and mariadb for reference

root@odroid:~# systemctl status monitorix
● monitorix.service - Monitorix
Loaded: loaded (/usr/lib/systemd/system/monitorix.service; enabled; preset: enabled)
Active: active (running) since Sun 2024-07-07 10:13:39 AEST; 2h 36min ago
Docs: man:monitorix(8)
Process: 1070 ExecStart=/usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /run/monitorix.pid $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 1226 (/usr/bin/monito)
Tasks: 2 (limit: 4431)
Memory: 26.4M (peak: 60.2M)
CPU: 1min 16.241s
CGroup: /system.slice/monitorix.service
├─1226 "/usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /run/monitorix.pid"
└─1348 "monitorix-httpd listening on 8080"

Jul 07 10:13:38 odroid systemd[1]: Starting monitorix.service - Monitorix...
Jul 07 10:13:39 odroid systemd[1]: Started monitorix.service - Monitorix.
root@odroid:~#
dgb1951
Posts: 2
Joined: Fri Jul 05, 2024 7:16 pm

Re: Odroid XU-4 with Ubuntu 22.04 LTS Mate D'top attempting to Install Cacti with NO joy

Post by dgb1951 »

thought I add a few more notes

I started the new installation of Cacti after watching the following and reading the docs

How to install cacti on Ubuntu 22.04 - YouTube
https://www.youtube.com/watch?v=Lv14KyxRskc

https://github.com/Cacti/cacti/wiki/Linux-Installation

https://docs.vultr.com/install-cacti-on-ubuntu-20-04

One thing I noticed was the instruction

nano /etc/php/8.1/apache2.ini could not find 8.1 on going though the directories I realized the version that had been downloaded was 8.3 so corrected both instances of this in relevant files.

all appeared to run fine.

Just could not get Cacti to open in the Browser window. Yes I have the Apache Page showing in Browser
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Odroid XU-4 with Ubuntu 22.04 LTS Mate D'top attempting to Install Cacti with NO joy

Post by TheWitness »

The Debian repo normally has cacti available, but it installs it in a unique way. Otherwise Cacti should not be too difficult on Ubuntu. The big challenge is the Denian and it's variants have two versions of php.ini, one for the web server and one for the CLI. Otherwise it should be strait forward.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests