System Monitoring

Jessie install with piaware 2.1.3 and dump1090-mutability 1.1.5. I ran through the steps listed in TomMuc’s 10/24 post and
/var/lib/collectd/rrd contains localhost and raspberrypi directories.

/var/lib/collectd/rrd/localhost contains dump1090-rpi and table-rpi directories

/var/lib/collectd/rrd/localhost/dump1090-rpi contains:
dump1090_aircraft-recent.rrd dump1090_messages-positions.rrd
dump1090_cpu-background.rrd dump1090_messages-remote_accepted_0.rrd
dump1090_cpu-demod.rrd dump1090_messages-remote_accepted_1.rrd
dump1090_cpu-reader.rrd dump1090_messages-remote_accepted.rrd
dump1090_dbfs-peak_signal.rrd dump1090_messages-strong_signals.rrd
dump1090_dbfs-signal.rrd dump1090_range-max_range.rrd
dump1090_messages-local_accepted_0.rrd dump1090_tracks-all.rrd
dump1090_messages-local_accepted_1.rrd dump1090_tracks-single_message.rrd
dump1090_messages-local_accepted.rrd

/var/lib/collectd/rrd/localhost/table-rpi contains:
gauge-cpu_temp.rrd

I didn’t see any errors when the install script ran. And I get the 404-Not Found when I go to ](http://)/collectd
And I did remember on the second try to actually insert the ip of the pi and drop the carets. The dump1090 webpage at :8080 does display. When I point the browser at the lan ip of the pi I do get the lighttpd placeholder page.

Richard

sorry - but i have no idea what is going on there. sometimes it saves a lot of time to start from scratch than trying to debug.
install a fresh raspbian wheezy on a second sd-card → then install dump1090 1.15 along mgunthers howto → then newest piaware.
when this is working follow my steps above and anything should be fine - and doing this takes about 60 minutes.

best
tom

richard,
you have to run mutability reconfigure and set port for webserver to ‘0’ instead of ‘8080’ you obviously did …


sudo dpkg-reconfigure dump1090-mutability

No worries TomMuc. Ive tried with 3 fresh installs

puuuuh - that’s frustrating :frowning: and you are shure you used raspbian wheezy (the one on the right side) from here: https://www.raspberrypi.org/downloads/raspbian/

Richard
I ran into similar problems while installing to a OrangePI running Debain jessie.

The new Lighttpd installs default the web server root to /var/www/html, whereas collected expects just /var/www.
Editing /etc/lighttpd/lighttpd.conf sworted this out and now the graph images display courectly

As for the rrd localhost and raspberrypi thing, it appears that dump1090 uses a hard coded “localhost” in the paths but some of the scripts pick up the host name and use that. I had to do some editing of the rrd path in collectd.config and I think, index.html to cludge things back together.

Ian

Thanks to both TomMuc and Ian. I spent some time changing the lighttpd.conf and pondering other changes then realized I could just swap the SD from my other piaware install that is Wheezy and otherwise untouched since the initial install. Did the basic instructions and voila! Thanks again!

Richard

perfect - have a good one :slight_smile:

Sorry for going OT for a second but:

Which OPI do you have? I have an OPI 2 and it’s just sitting in the bin since it kept shutting down cores due to thermal problems. Where did you get the Debian source?

Which OPI do you have? I have an OPI 2 and it’s just sitting in the bin since it kept shutting down cores due to thermal problems. Where did you get the Debian source?

Yes the OPI “in house” produced packages look to be mostly rubbish so far but the hardware is impressive. USB is nice and fast, maybe even fast enough for 2 or 3 RTL-SDR dongles??, we’l see. The OrangePI PC i have here has the same H3 core as yours so loboris’s builds should work for you as well. http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=342
So far the core, fitted with a small heat sink and no fan has’t moved above 50C

I used his debain_mini.img here as I run this server headless anyway so don’t need all the video acceleration stuff etc, which dosn’t appear to be working so well yet anyway.

You will have to install cron as it isn’t included with the image, I built lib-usb-dev and rtl-sdr fro git source as per something like ferrancasanovas.wordpress.com/2013/09/26/dump1090-installation/ then dump1090-mute fro instructions around here somewhere, then xforce30164’s new collectd web-install scripts.
The only real problem was the lighttpd root changes and the messy rrt path host names thing which is probably my fault anyway.

Time to rescue the OPI from the bin and have another crack at it :laughing: :laughing: :laughing:

Thanks, I grabbed the Wily Minimal version and used my script I’ve been playing with to install the latest dump1090 and librtlsdr, had to add cron, but I’ve written a new timer and service unit for the VRS update so it works with SystemD. As soon as I can find a way to reliably detect SystemD vs SysV in a debian postinst environment I’ll open a pull request with obj.

Thanks for the pointers, the OPI 2 can replace the Rpi 2 and I’ll have another toy to play with!

no answers up to now - so just wanted to ask this a second time:

what i’m wondering is - does one of you all have found a good solution against spiking?
with spiking i talk about e.g. when rebooting the pi (or through other situations) on a graph where normally are e.g. 150 aircrafts seen and in high traffic hours up to 200 - the y-axis has e.g. a max value of 300. after ‘spiking’ it of course jumps to e.g. 3,000 max - and as side-effect the graphs are hard to read from this moment on.

possible ways for workarounds could be hardcoding the max y-scale or better solution building y-scale only along data over longer periods.
does one of you already have a good solution?

tom

rrdgraph lets you set rigid upper/lower limits, just use that.

thanx for reply - at the same moment i was searching here http://oss.oetiker.ch/rrdtool/ for some more info about rrdgraph :slight_smile: yep - i’ll set fixed limits as you suggest

Do you know a sure fix for this issue? I have seen it multiple times and on other forums. There doesnt seem to be a defined answer.
I have followed the instructions verbatim and even went line by line from a completely fresh install with someone who has loaded it successfully and I still get this same problem. I only get the core temp graph. This isn’t a new problem. Anyone know what is happening?
It is happening to too many people for it to be user error.

I even installed lighttpd first.

i did just the steps i posted earlier in this thread - and it worked instantly. saw some having jessy instead of wheezy istalled having problems with directories.

looking into sources - i could imagine that there is a problem that the collectd.conf file does not match to your directories …


sudo nano /etc/collectd/collectd.conf

Thank you. I will give it another try.

7069 (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
577x259

You could try editing collected.conf and replace the line
Hostname “localhost”
with
Hostname “raspberrypi” (assuming raspberrypi is your host name)

If it is already raspberrypi then change it to “localhost”

makes more sense :slight_smile: