Hi Adam,
The issue seems to be the bash script itself I think?
The script is indeed detecting the distro and version correctly!
It just seems to be marking the statement as true when it gets the ‘if Debian and version 8.x’ step and marks it as true even tho the version is set as 10.x and not 8.x which is my eye would say its false, but it seems to think its true?
Regards
Simon - Hestor Ltd
On 3 Mar 2021, at 14:32, Adam Armstrong via observium observium@observium.org wrote:
I’m sure I recently updated the script for Debian 8.x, and it should probably be using newer packages.
I’ll have a look. Damn distros and their moving targets!
Adam.
From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org> On Behalf Of Polaris Networks Support via observium Sent: 03 March 2021 11:48 To: Observium <observium@observium.org mailto:observium@observium.org> Cc: Polaris Networks Support <support@polarisnetworks.co.uk mailto:support@polarisnetworks.co.uk> Subject: Re: [Observium] Observium Installation on Raspberry Pi 4 (Raspbian GNU/Linux 10 (buster))
Hi Simon,
Thanks for your input - I have the run these devices on premises so I can't move this instance into AWS or alternatives. Until recently (I suspect the Dec/Jan update to Raspbian), installations on Raspberry Pi have gone smoothly.
Perhaps the issue lies on the OS detection within the script?
<snip> [*] We are on Debian 8.x, installing packages... </snip>
Adam kindly updated the script about a year ago after a Raspbian update so it may be a similar thing this time.
Thank you,
Jon Bennell Polaris Networks Support
T: +44 203 397 3535 W: www.polarisnetworks.co.uk http://www.polarisnetworks.co.uk/
<~WRD0002.jpg> The e-mail and any attachments to it are confidential. Unless you are the intended recipient, you may not use, copy or disclose either the message or any information contained in the message. If you are not the intended recipient, you should delete this e-mail and notify the sender immediately. Any views or opinions expressed in this e-mail are those of the sender only, unless otherwise stated. All copyright in any Polaris Networks Limited material in this e-mail is reserved. All e-mails, incoming and outgoing, may be recorded by Polaris Networks Limited and monitored for legitimate business purposes. Polaris Networks Limited exclude all liability for any loss or damage arising or resulting from the receipt, use or transmission of this e-mail to the fullest extent permitted by law.
On Wed, 3 Mar 2021 at 11:43, Simon Smith via observium <observium@observium.org mailto:observium@observium.org> wrote:
Hi,
Ive just had great progress in moving our Observium from self hosted Intel to AWS ec2 ARM!
Im running ubuntu 20.04 on EC2 t4g.small 2 core, 2gb ram
It might be the script doesn't support the 32bit OS
Try running the script on the Raspbian 64 bit version, OR ubuntu 20.04 64bit OS
Regards
Simon - Hestor Ltd
On 3 Mar 2021, at 11:38, Polaris Networks Support via observium <observium@observium.org mailto:observium@observium.org> wrote:
Hi,
I'm having trouble installing Observium, from the script, on a Raspberry Pi 4 running:
root@raspberrypi:~# lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
Does anyone have any ideas on what could be wrong, based on the output below please?
root@raspberrypi:~# wget http://www.observium.org/observium_installscript.sh http://www.observium.org/observium_installscript.sh --2021-03-03 11:31:53-- http://www.observium.org/observium_installscript.sh http://www.observium.org/observium_installscript.sh Resolving www.observium.org http://www.observium.org/ (www.observium.org http://www.observium.org/)... 185.94.140.56 Connecting to www.observium.org http://www.observium.org/ (www.observium.org http://www.observium.org/)|185.94.140.56|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://www.observium.org/observium_installscript.sh https://www.observium.org/observium_installscript.sh [following] --2021-03-03 11:31:53-- https://www.observium.org/observium_installscript.sh https://www.observium.org/observium_installscript.sh Connecting to www.observium.org http://www.observium.org/ (www.observium.org http://www.observium.org/)|185.94.140.56|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 17916 (17K) [text/x-sh] Saving to: ‘observium_installscript.sh’
observium_installsc 100%[===================>] 17.50K --.-KB/s in 0.002s
2021-03-03 11:31:53 (10.1 MB/s) - ‘observium_installscript.sh’ saved [17916/17916]
root@raspberrypi:~# chmod +x observium_installscript.sh root@raspberrypi:~# ./observium_installscript.sh WARNING: Apache default config found, this script will overwrite that config and your current config will be lost Continue?
- Yes
- No
#? 1 Apache config will be overwritten... ___ _ _ / _ | |__ ___ ___ _ ____ _(_)_ _ _ __ ___ | | | | '_ / __|/ _ \ '__\ \ / / | | | | '_ ` _ \ | |_| | |_) __ \ __/ | \ V /| | |_| | | | | | | ___/|_.__/|___/___|_| _/ |_|__,_|_| |_| |_| Welcome to Observium automatic installscript
Please choose which verision of Observium you would like to install
- Observium Community Edition
- Observium Pro Edition stable (requires account at https://www.observium.org/subs/ https://www.observium.org/subs/)
- Observium Pro Edition rolling (requires account at https://www.observium.org/subs/ https://www.observium.org/subs/)
- Install the UNIX-Agent
- Install the SNMPD (snmpd-config will be overwritten)
(1-5):1you choose 1
dpkg-query: no packages found matching mysql-server dpkg-query: no packages found matching mariadb-server [*] No MySQL server detected in this server, installing MySQL... Choose a MySQL root password [*] Beginning package installtion, this might take up to 30min [*] We are on Debian 8.x, installing packages... E: Unable to locate package libapache2-mod-php7.0 E: Couldn't find any package by glob 'libapache2-mod-php7.0' E: Couldn't find any package by regex 'libapache2-mod-php7.0' E: Unable to locate package php7.0-cli E: Couldn't find any package by glob 'php7.0-cli' E: Couldn't find any package by regex 'php7.0-cli' E: Unable to locate package php7.0-mysql E: Couldn't find any package by glob 'php7.0-mysql' E: Couldn't find any package by regex 'php7.0-mysql' E: Unable to locate package php7.0-mysqli E: Couldn't find any package by glob 'php7.0-mysqli' E: Couldn't find any package by regex 'php7.0-mysqli' 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-mcrypt E: Couldn't find any package by glob 'php7.0-mcrypt' E: Couldn't find any package by regex 'php7.0-mcrypt' 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: Package 'mysql-server' has no installation candidate E: Package 'mysql-client' has no installation candidate root@raspberrypi:~#
Thank you,
Jon Bennell Polaris Networks Support
T: +44 203 397 3535 W: www.polarisnetworks.co.uk http://www.polarisnetworks.co.uk/
<~WRD0002.jpg> The e-mail and any attachments to it are confidential. Unless you are the intended recipient, you may not use, copy or disclose either the message or any information contained in the message. If you are not the intended recipient, you should delete this e-mail and notify the sender immediately. Any views or opinions expressed in this e-mail are those of the sender only, unless otherwise stated. All copyright in any Polaris Networks Limited material in this e-mail is reserved. All e-mails, incoming and outgoing, may be recorded by Polaris Networks Limited and monitored for legitimate business purposes. Polaris Networks Limited exclude all liability for any loss or damage arising or resulting from the receipt, use or transmission of this e-mail to the fullest extent permitted by law. _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium_______________________________________________
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium