Web Portal and Collectd/rrd graphs automated installation

xforce30164

Active Member
dump1090-mutability v1.14
Code:
pi@raspberrypi/var/lib/collectd/rrd/localhost/dump1090-rpi $ ls -la
total 2592
drwxr-xr-x 2 root root   4096 Apr 18 09:20 .
drwxr-xr-x 4 root root   4096 Apr 18 09:20 ..
-rw-r--r-- 1 root root 307516 Apr 18 11:16 dump1090_aircraft-recent.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_cpu-background.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_cpu-demod.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_cpu-reader.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_dbfs-peak_signal.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_dbfs-signal.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_messages-local_accepted_0.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_messages-local_accepted_1.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_messages-local_accepted.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_messages-positions.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_messages-remote_accepted_0.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_messages-remote_accepted_1.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_messages-remote_accepted.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_messages-strong_signals.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_tracks-all.rrd
-rw-r--r-- 1 root root 154692 Apr 18 11:16 dump1090_tracks-single_message.rrd
hmm that's weird, I see that you do have the dbfs peak signal and signal files which means you could also generate the signal graph. (which I didn't have) I'll need to look into that and maybe make the make-graphs file a bit smarter such that it looks in the /dump1090-rpi folder to see which .rrd files are available and then based on that creates the graphs for which there is data available. I'll need to do some more digging/research to find out what determines which dump1090_<....>.rrd files are generated to see if I can find where it goes wrong for your max range

below is my dump1090-rpi directory
Code:
pi@RaspyTwo /var/lib/collectd/rrd/localhost/dump1090-rpi $ ls -la
total 2440
drwxr-xr-x 2 root root   4096 Apr 17 19:20 .
drwxr-xr-x 4 root root   4096 Apr 17 19:20 ..
-rw-r--r-- 1 root root 307516 Apr 18 10:19 dump1090_aircraft-recent.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_cpu-background.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_cpu-demod.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_cpu-reader.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_messages-local_accepted_0.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_messages-local_accepted_1.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_messages-local_accepted.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_messages-positions.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_messages-remote_accepted_0.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_messages-remote_accepted_1.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_messages-remote_accepted.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_messages-strong_signals.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_range-max_range.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_tracks-all.rrd
-rw-r--r-- 1 root root 154692 Apr 18 10:19 dump1090_tracks-single_message.rrd
pi@RaspyTwo /var/lib/collectd/rrd/localhost/dump1090-rpi $
 

juha

New Member
I ran update.sh "graphs" again and now it generated max range. Weird because I ran it multiple times earlier and it gave that error which I wrote before.
 

loplo

New Member
My install ends strange:
Code:
===== Finished webUI installation, creating initial graphs! =====
./install.sh: 41: cd: can't cd to /home/pi/dump-tools/collectd
sudo: ./make-graphs.sh: command not found
sudo: ./make-graphs.sh: command not found
sudo: ./make-graphs.sh: command not found
sudo: ./make-graphs.sh: command not found
===== Finished creating inital graphs! =====
First part of installation is finished. please check http://<rpi-ip>/collectd and see if you see any graphs.
If that is the case please run sudo ./install.sh "crontab" from the /home/pi/dump-tools diretory to enable automatic graph creation.
cause, home directory name?! mine is bananapi

LE
Confirmed. The path is hardcoded, and relies on other files, that are going to be downloaded.
It would be nice to have ~/dump-tools/ instead of /home/pi/dump-tools/ everywhere
 
Last edited:

xforce30164

Active Member
I ran update.sh "graphs" again and now it generated max range. Weird because I ran it multiple times earlier and it gave that error which I wrote before.
Ah ok, good to hear, it might be that dump1090 just takes some time to create the range data and make it available for collectd/rrd ;)

My install ends strange:
Code:
===== Finished webUI installation, creating initial graphs! =====
./install.sh: 41: cd: can't cd to /home/pi/dump-tools/collectd
sudo: ./make-graphs.sh: command not found
sudo: ./make-graphs.sh: command not found
sudo: ./make-graphs.sh: command not found
sudo: ./make-graphs.sh: command not found
===== Finished creating inital graphs! =====
First part of installation is finished. please check http://<rpi-ip>/collectd and see if you see any graphs.
If that is the case please run sudo ./install.sh "crontab" from the /home/pi/dump-tools diretory to enable automatic graph creation.
cause, home directory name?! mine is bananapi

LE
Confirmed. The path is hardcoded, and relies on other files, that are going to be downloaded.
It would be nice to have ~/dump-tools/ instead of /home/pi/dump-tools/ everywhere
I had that on my to-do list ;) I'm also thinking of rewriting some other bits and pieces, and maybe make a system where you can configure your script via a webpage that then generates the make-graphs file. (like select if you want imperial/metric, what graphs, etc). I'll fix the ~/ instead of /home/pi probably today, the rewrite will take some more time.

ETA:
@loplo
quick-fix version is available:
Code:
cd ~
sudo wget http://raspi.ayadex.com/volatile/web_install.0.0.2.sh
sudo cp web_install.0.0.2.sh web_install.sh
sudo rm web_install.0.0.2.sh
sudo chmod +x web_install.sh
sudo ./web_install.sh "dump-tools" "remove-old"
This should work with other home directory folders.
 
Last edited:

loplo

New Member
I appreciate your fast reaction.
Now I'm having issues with the initial graph generation during install:
Code:
===== Finished webUI installation, creating initial graphs! =====
18079 (process ID) old priority 0, new priority 5
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_aircraft-recent.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_cpu-demod.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_tracks-all.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-rpi/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_range-max_range.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_messages-local_accepted.rrd': No such file or directory
18088 (process ID) old priority 0, new priority 5
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_aircraft-recent.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_cpu-demod.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_tracks-all.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-rpi/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_range-max_range.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_messages-local_accepted.rrd': No such file or directory
18105 (process ID) old priority 0, new priority 5
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_aircraft-recent.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_cpu-demod.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_tracks-all.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-rpi/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_range-max_range.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_messages-local_accepted.rrd': No such file or directory
18114 (process ID) old priority 0, new priority 5
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_aircraft-recent.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_cpu-demod.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_tracks-all.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-rpi/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_range-max_range.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_messages-local_accepted.rrd': No such file or directory
===== Finished creating inital graphs! =====
The hostname it's hardcoded into the installer. The path in my case should be /var/lib/collectd/rrd/banana/dump1090-rpi/. Because of this, the installer didn't even copy/generate the rrd's. /var/lib/collectd/rrd/banana/ does not contain the dump1090-rpi folder.

/var/lib/collectd/rrd/$HOSTNAME/ would make the job.
 
Last edited:

xforce30164

Active Member
I appreciate your fast reaction.
Now I'm having issues with the initial graph generation during install:
Code:
===== Finished webUI installation, creating initial graphs! =====
18079 (process ID) old priority 0, new priority 5
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_aircraft-recent.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_cpu-demod.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_tracks-all.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-rpi/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_range-max_range.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_messages-local_accepted.rrd': No such file or directory
18088 (process ID) old priority 0, new priority 5
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_aircraft-recent.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_cpu-demod.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_tracks-all.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-rpi/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_range-max_range.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_messages-local_accepted.rrd': No such file or directory
18105 (process ID) old priority 0, new priority 5
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_aircraft-recent.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_cpu-demod.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_tracks-all.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-rpi/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_range-max_range.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_messages-local_accepted.rrd': No such file or directory
18114 (process ID) old priority 0, new priority 5
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_aircraft-recent.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_cpu-demod.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_tracks-all.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-rpi/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_range-max_range.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/dump1090-rpi/dump1090_messages-local_accepted.rrd': No such file or directory
===== Finished creating inital graphs! =====
The hostname it's hardcoded into the installer. The path in my case should be /var/lib/collectd/rrd/banana/dump1090-rpi/. Because of this, the installer didn't even copy/generate the rrd's. /var/lib/collectd/rrd/banana/ does not contain the dump1090-rpi folder.

/var/lib/collectd/rrd/$HOSTNAME/ would make the job.
good catch, but the hostname should be based on the configuration inside collectd.conf iirc. did you change the collectd config to banana?
in the file /etc/collectd/collectd.conf what does it say at the top for hostname? because that is the folder it will look in, so if you have problems try changing it to banana

Original
Code:
# Example configuration for collectd to collect statistics
# from dump1090.
# Basic configuration of collectd, use whatever's suitable
# for your system:
Hostname "localhost"
Interval 60
Timeout 2
ReadThreads 5
WriteThreads 1
try change to:
Code:
# Example configuration for collectd to collect statistics
# from dump1090.
# Basic configuration of collectd, use whatever's suitable
# for your system:
Hostname "banana"
Interval 60
Timeout 2
ReadThreads 5
WriteThreads 1
if that doesn't work could you maybe post your collectd.conf file or put it on pastebin? based on that I could then change the make-graphs script accordingly (because I chose localhost myself, you could in theory put anything in there as long as the hostname value in the collectd.conf file and the path in the make-graphs.sh script is the same it should work.
 

loplo

New Member
collectd.conf
Code:
# Example configuration for collectd to collect statistics
# from dump1090.
# Basic configuration of collectd, use whatever's suitable
# for your system:
Hostname "localhost"
Interval 60
Timeout 2
ReadThreads 5
WriteThreads 1

LoadPlugin rrdtool
<Plugin rrdtool>
        DataDir "/var/lib/collectd/rrd"
</Plugin>

LoadPlugin syslog
<Plugin syslog>
        LogLevel info
</Plugin>

# Ensure that the base Python plugin is loaded:
<LoadPlugin python>
        Globals true
</LoadPlugin>

# Load the dump1090 types and the regular types just to be sure:
TypesDB "/home/pi/dump-tools/collectd/dump1090.db" "/usr/share/collectd/types.db"



# Configure the dump1090 python module.
# Each Instance block collects statistics from a separate named dump1090.
# The URL should be the base URL of the webmap, i.e. in the examples below,
# statistics will be loaded from http://localhost/dump1090/data/stats.json etc.

<Plugin python>
        ModulePath "/home/pi/dump-tools/collectd"
        LogTraces true
        Import "dump1090"
        <Module dump1090>
                <Instance rpi>
                        URL "http://localhost/dump1090"
                </Instance>
        </Module>
</Plugin>

LoadPlugin "table"
<Plugin table>
  <Table "/sys/class/thermal/thermal_zone0/temp">
    Instance rpi
    Separator " "
    <Result>
      Type gauge
      InstancePrefix "cpu_temp"
      ValuesFrom 0
    </Result>
  </Table>
</Plugin>
changed localhost to banana, no joy.

If I run,
sudo ./web_install.sh "dump-tools" "remove-old"
collectd.conf gets overwritten.
 

xforce30164

Active Member
collectd.conf
Code:
# Example configuration for collectd to collect statistics
# from dump1090.
# Basic configuration of collectd, use whatever's suitable
# for your system:
Hostname "localhost"
Interval 60
Timeout 2
ReadThreads 5
WriteThreads 1

LoadPlugin rrdtool
<Plugin rrdtool>
        DataDir "/var/lib/collectd/rrd"
</Plugin>

LoadPlugin syslog
<Plugin syslog>
        LogLevel info
</Plugin>

# Ensure that the base Python plugin is loaded:
<LoadPlugin python>
        Globals true
</LoadPlugin>

# Load the dump1090 types and the regular types just to be sure:
TypesDB "/home/pi/dump-tools/collectd/dump1090.db" "/usr/share/collectd/types.db"



# Configure the dump1090 python module.
# Each Instance block collects statistics from a separate named dump1090.
# The URL should be the base URL of the webmap, i.e. in the examples below,
# statistics will be loaded from http://localhost/dump1090/data/stats.json etc.

<Plugin python>
        ModulePath "/home/pi/dump-tools/collectd"
        LogTraces true
        Import "dump1090"
        <Module dump1090>
                <Instance rpi>
                        URL "http://localhost/dump1090"
                </Instance>
        </Module>
</Plugin>

LoadPlugin "table"
<Plugin table>
  <Table "/sys/class/thermal/thermal_zone0/temp">
    Instance rpi
    Separator " "
    <Result>
      Type gauge
      InstancePrefix "cpu_temp"
      ValuesFrom 0
    </Result>
  </Table>
</Plugin>
changed localhost to banana, no joy.

If I run,
sudo ./web_install.sh "dump-tools" "remove-old"
collectd.conf gets overwritten.
aah I see what is going wrong, the python modulepath and the types.db are hardcoded aswell, which uses the old /home/pi thing. let me fix that right now ;)

I'll have to make my web_install script somewhat smarter, to make it easier to select different versions. but this will take some time, for now, if you have installed it for the first part, after the errors for the graph try this:
Code:
cd /etc/collectd/
sudo rm collectd.conf
wget http://raspi.ayadex.com/volatile/dump-tools/collectd/collectd.0.0.2.conf
sudo cp collectd.0.0.2.conf collectd.conf
sudo rm collectd.0.0.2.conf
sudo /etc/init.d/collectd restart
then try and run the make-script again and see if it works. if not please check your /var/lib/collectd/rrd folder and see if there is a localhost folder (or the banana folder) and change the newly downloaded colletd.conf to the banana value.

ETA:
if that doesn't work, edit the last line of the make-graphs.sh file and change it to
Code:
receiver_graphs banana rpi "Rpi ADS-B" "$period" "$step"
and try and run the make-graphs command again
 
Last edited:

loplo

New Member
3rd row needs a sudo -> sudo wget http://raspi.ayadex.com/volatile/dump-tools/collectd/collectd.0.0.2.conf
sudo /etc/init.d/collectd restart doesn't like something
Code:
sudo /etc/init.d/collectd restart
[....] Restarting statistics collection and monitoring daemon: collectdFailed to open types database `~/dump-tools/collectd/dump1090.db': No such file or directory.
Failed to open types database `~/dump-tools/collectd/dump1090.db': No such file or directory.
. ok
 

xforce30164

Active Member
3rd row needs a sudo -> sudo wget http://raspi.ayadex.com/volatile/dump-tools/collectd/collectd.0.0.2.conf
sudo /etc/init.d/collectd restart doesn't like something
Code:
sudo /etc/init.d/collectd restart
[....] Restarting statistics collection and monitoring daemon: collectdFailed to open types database `~/dump-tools/collectd/dump1090.db': No such file or directory.
Failed to open types database `~/dump-tools/collectd/dump1090.db': No such file or directory.
. ok
hmm, it seems like the installer hasn't succesfully installed the files, could you do an ls of ~ and /dump-tools/collectd directories?
 

loplo

New Member
Code:
bananapi@banana ~ $ ls /dump-tools/collectd
collectd.conf  dump1090.db  dump1090.py  make-graphs.sh
bananapi@banana ~ $ ls ~
Desktop    dump1090.ok  dump1090-tools  dump-tools-old  modesdeco  python_games  Scratch       twflug
Documents  dump1090old  dump-tools      install.sh      photos     rtl-sdr       scratchgpio5  web_install.sh
bananapi@banana ~ $
 

xforce30164

Active Member
Code:
bananapi@banana ~ $ ls /dump-tools/collectd
collectd.conf  dump1090.db  dump1090.py  make-graphs.sh
bananapi@banana ~ $ ls ~
Desktop    dump1090.ok  dump1090-tools  dump-tools-old  modesdeco  python_games  Scratch       twflug
Documents  dump1090old  dump-tools      install.sh      photos     rtl-sdr       scratchgpio5  web_install.sh
bananapi@banana ~ $
hmm, that all seems fine, try edit the /etc/collectd/collectd.conf file and change the ~ to /home/banana and see if that works, it might be that the collectd program does not like ~ in it's configuration files.
 

loplo

New Member
Replaced ~ with /home/banana, but I get the same no such file or directory error when trying to restart collectd.

LE
I got something:
1 username bananapi
2 host banana

so I need /home/bananapi in the path.

Now collectd starts. But anyway, it's being overwritten during install, that's a bad thing. Can't you use $HOSTNAME in the script?
 

xforce30164

Active Member
Replaced ~ with /home/banana, but I get the same no such file or directory error when trying to restart collectd.

LE
I got something:
1 username bananapi
2 host banana

so I need /home/bananapi in the path.

Now collectd starts. But anyway, it's being overwritten during install, that's a bad thing. Can't you use $HOSTNAME in the script?
Sure, if that works aswell that shouldn't be too hard to change, where exactly do you want me to change it? I.E. at what part does it get overwritten?
 

loplo

New Member
well, collectd conf gets overwritten at installation. The first file to be run in install.sh which calls your collectd.conf. This will have "localhost" and pi instead of $HOSTNAME and ... ~.
I will try to download all your files, modify them locally and call them locally too, to see what's happening.
 

xforce30164

Active Member
well, collectd conf gets overwritten at installation. The first file to be run in install.sh which calls your collectd.conf. This will have "localhost" and pi instead of $HOSTNAME and ... ~.
I will try to download all your files, modify them locally and call them locally too, to see what's happening.
Sure, keep me posted, also sent you an pm ;)

ETA: to the rest: we're (loplo and me) trying to figure out together what it is that stops the script from working for loplo, once we figure out how to fix it I'll implement the changes in the main script so it should work in even more situations in the future! :D
 
Last edited:

jepolch

Active Member
Great news! I just ran @xforce30164's web installer script (as root in /home/pi) on my second Pi that didn't have rrdtool or collectd installed. The script installed everything I needed and completed with graphs installed and running! This is a great accomplishment. Thank you again @xforce30164! Great work. Time to advertise! ;)

There was only one tiny bug. The following line should be corrected:

If that is the case please run sudo ./install.sh "crontab" from the /home/pi/dump-tools diretory to enable automatic graph creation.

The install.sh is located in /home/pi/dump-tools, so './install.sh "crontab"' won't work. You need to say "cd /dump-tools then run sudo ./install.sh "crontab". Are the quotes needed around "crontab"? I ran ./install.sh crontab and it worked.
 

xforce30164

Active Member
Great news! I just ran @xforce30164's web installer script (as root in /home/pi) on my second Pi that didn't have rrdtool or collectd installed. The script installed everything I needed and completed with graphs installed and running! This is a great accomplishment. Thank you again @xforce30164! Great work. Time to advertise! ;)

There was only one tiny bug. The following line should be corrected:

If that is the case please run sudo ./install.sh "crontab" from the /home/pi/dump-tools diretory to enable automatic graph creation.

The install.sh is located in /home/pi/dump-tools, so './install.sh "crontab"' won't work. You need to say "cd /dump-tools then run sudo ./install.sh "crontab". Are the quotes needed around "crontab"? I ran ./install.sh crontab and it worked.
Great to hear! And yeah, I'll change that in next release, currently working on an updated version of the web_install graph that will enable you to select a specific version from a cetain program and install that version. and the quotes should not be needed as long as the parameter is a single word, but just like I always put { and } braces around single-line if-else statements in java (which is not sctrictly necessary) it makes it easier because when you add a line, the if-else statement works just fine. otherwise it could bug out. so now if you change a parameter that accidentaly contains an space it should be fine (as long as you dont remove the quotes/quotation marks) ;)

ETA:
version_install.png
 
Last edited:
Top