NigelsPowerDevopInflux177Fixup

Nigels fixup of the powerDevops compiled version of Influxdb 1.7.7

Get the influx file

mkdir temp
cd temp
wget https://dl.power-devops.com/influxdb-1.7.7_linux_ppc64le.tar.gz

AS ROOT (this is important) extract the files from influxdb-1.7.7_linux_ppc64le.tar.gz in a temp directory and then create a new tar file.

  • $ sudo tar xvzf influx*.gz
    cd influxdb-1.7.7
    sudo tar cvf ../save_no_top_directory.tar .
    

This "cd /" is very important and get the files in the proper directory

  • cd /
    sudo tar xvf /home/nag/tmp//save_no_top_directory.tar
    

There is a missing link

  • sudo  ln /usr/lib/influxdb/scripts/influxdb.service /lib/systemd/system/influxdb.service
    

Assuming you have made a Linux user "influxdb" in and that user is in the group "influxdb"

Fix up some ownership issues and missing directories:

The Database goes here - created on first startup

  • $ sudo mkdir /var/lib/influxdb
    $ sudo chown influxdb:influxdb /var/lib/influxdb 
    

Log file goes in here (it is created on first startup)

  • $ sudo mkdir /var/log/influxdb
    $ sudo chown influxdb:influxdb /var/log/influxdb
    

Start influx and check if it is running

  • $ sudo service influxdb start
    Redirecting to /bin/systemctl start influxdb.service
    
    $ ps -ef | grep influx 
    influxdb 11908     1 69 16:04 ?        00:00:02 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
    nag      11947 11460  0 16:04 pts/0    00:00:00 grep --color=auto influx
    $ 
    

Hurray!!!!!

Now use the CLI influx to create a database ready for njmon data and later you connect these to Grafana as data sources.

  • $ influx
    create database njmon30aix
    create database njmon30linux
    > show databases
    name: databases
    name
    ----
    _internal
    njmon30aix
    njmon30linux
    > exit
    
  • Do not use quit !!