Giter VIP home page Giter VIP logo

rpi-monitor's Introduction

Request for collaboration.

I don't have time to manage update to Rpi-Monitor.

The project looks to be used be many people. Some PR need to be reviewed and merged and next version is requiring tests.

If one of you would like to help to manage the project, I'll be happy to grant her/him the right on Rpi-Monitor repository.

I let you contact me if you are interrested.

Thanks,

X@v


RPi-Monitor logo

Overview

RPi-Monitor is an application designed to perform real time monitoring embedded devices.

The development platform is a Raspberry Pi B.

RPi-Monitor provides a lot of feature such as Embedded Web server, Alert messaging, SNMP integration...

For details, refer to keys features of RPi-Monitor in documentation.

Screenshots

MainPage

See Screenshots chapter of documentation to see more screenshots.

Installation

Installation of RPi-Monitor is detailled in getting started chapter of documentation.

Each release can be installed with a Debian package for Raspbian.

For other (unsupported) distribution (such as Gentoo, ArchLinux) refer to Custom installation chapter of documentation.

Documentation

If you want to install, use or customize RPi-Monitor refer to documentation

If you want to see example of configuration and see what RPi-Monitor can do, refer to RPi-Monitor Usages.

Frequently Asked Question find answer into the FAQ page.

Development

If you want to participate and propose a pull request, refer to contributing chapter of documentation.

Note: Pull request perfomed on develop branch will be integrated as soon as possible. Pull request perform on master branche may only be integrated when a new version is published (or not may not be integrated at all...)

News / License

Latest news : RPi-Experience Blog

License: GPLv3

rpi-monitor's People

Contributors

daniw42 avatar dorepi avatar dschaper avatar excaliburzero avatar gatuno1 avatar golfromeo-fr avatar harbulot avatar henryk avatar iia avatar jg3 avatar jpluimers avatar kropochev avatar leepic avatar lioman avatar ntalekt avatar patricktokeeffe avatar randomguyjci avatar rotzbua avatar ruifigueiredo avatar thijstriemstra avatar thomaskaiser avatar timjdfletcher avatar tupanegreiros avatar xavierberger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi-monitor's Issues

Shellinabox Issue on Arch Linux ARM

Hi there,

I'm running RPi-Monitor with Arch Linux ARM.
Installed packages to get it running:
-perl-json
-rrdtool
-perl-http-daemon
If I click on "Shellinabox" in the top menu, I get:

404 Not Found

/shellinabox not in
stat/load1.rrd
stat/load5.rrd
stat/load15.rrd
stat/sdcard_root_free.rrd
stat/sdcard_boot_free.rrd
stat/swap_free.rrd
stat/memory_free.rrd
stat/net_received.rrd
stat/net_send.rrd
stat/soc_temp.rrd
stat/uptime.rrd
stat/living_room_temp.rrd
/
/stat/rrds.json
/web.json
/stat/static.json
/stat/dynamic.json
/stat/status.json
/stat/statistic.json
/favicon.ico
/index.html
/statistics.html
/status.html
/shellinabox.html
/cacert.pem
/certificate.p12
/css/rpimonitor.css
/css/bootstrap.min.css
/css/bootstrap-responsive.min.css
/img/cpu.png
/img/glyphicons-halflings.png
/img/network.png
/img/warning.png
/img/uptime.png
/img/glyphicons-halflings-white.png
/img/ok.png
/img/version.png
/img/user.png
/img/favicon.png
/img/memory.png
/img/swap.png
/img/cpu_temp.png
/img/logo.png
/img/sd.png
/img/preloader.gif
/js/rpimonitor.shellinabox.js
/js/rpimonitor.statistics.js
/js/rpimonitor.status.js
/js/rpimonitor.index.js
/js/rpimonitor.js
/js/jsqrencode.min.js
/js/jquery.min.js
/js/bootstrap.min.js
/js/flot/jquery.flot.min.js
/js/flot/jquery.flot.selection.min.js
/js/flot/jquery.flot.tooltip.min.js
/js/javascriptrrd/binaryXHR.js
/js/javascriptrrd/rrdFlotMatrix.js
/js/javascriptrrd/rrdFlot.js
/js/javascriptrrd/rrdFilter.js
/js/javascriptrrd/rrdMultiFile.js
/js/javascriptrrd/rrdFile.js
/js/javascriptrrd/rrdFlotSupport.js

What am I missing here?
Thanks in advance.

(v2.4) Editing Config-files on non Linux systems (documentation) and "default.conf" enhancement

Don't edit default.conf in Windows!

I've a found an issue that may help many users who are having problems, that are not reproduceable by others.
Yesterday I wanted to configure and enhance the RPi-Monitor and because windows is my main system, I edited the config-file in windows with a plain-text-editor.
I edited the ASCII-file as described, but after loading it on raspberry and restarting the monitor-service, nothing worked any more (json-errors, rrd not found).
After all testing, restarting, commenting out my changes, deleting rrd and so on, I found out, that it is essential, that the config file isn't allowed to be in windows ASCII format!

The linefeed format of the plain ASCII file has to be in unix / linux format (only LF and not CR/LF at line end)!

If you once have edited the file in windows with the editor, the file is "corrupted" for use with RPi-Monitor.
Even after editing the once in windows saved file on Raspbery with lea or nano doesn't fix this, because lea and nano don't change this format and leave the wrong (and hidden) cr/lf-format.

There are some editors even in windows that can fix this (save in Linux-format) and are able to edit in linux/unix-format but you have to know it!

It's not really a bug, I think, and it's an issue on many linux-servers, but it should be documented in the short documentation!

This is elementary and even more important, if you want to use a self created "custo.conf"!

Further hints / enhancements to default.conf:

1.) The example of enhancing RPI-Monitor with the report for USB-hdd is easily reproduceable but I found a change in config, which I don't know, if it does matter:
.ds_graph_opts. (on website-example) has changed to .ds_graph_options. in v2.4.
Perhaps this should be changed on website-example.

2.) If you install Raspberry with NOOBS, "/boot" is "mmcblk0p5" and not "mmcblk0p1"
If you change it in the default.conf to:
dynamic.7.regexp=mmcblk0p.\s+\d+\s+(\d+).*/boot$
this should be an universal definition, working on any rpi-system.
Btw. with this enhancement (regexp incl. mountpoint-filter) you can easily filter the hdd if there are more mountpoints/hdds with the same filesystem and df -t "type" together with regex filtering the filesystem aren't enough to find the unique information.

greets,
Martin

Any way to disable the package check trigger?

Every time I apt-get packages, RPI-Monitor will execute package check for a long time and print
[....] RPi-Monitor: Updating package status
to console. Any way to disable this trigger?

Thanks.

Can not get information (dynamic.json) from RPi-Monitor server.

Similar problem again. :( I can't repair it with updates and upgrades.

All Statistics are working, but Status page halted with the "dynamic.json" error message.

This isn't browser problem, because I tested it with a lot of versions and different devices.

I tried following commands:

sudo apt-get update && sudo service rpimonitor update
sudo apt-get update
sudo apt-get upgrade
sudo reboot

These steps help previously under the same condition. Not now. :(

All other services are working probably.

How can I debug it?

How to setup a "cluster" for multiple Raspberry pi's

I have three Raspberry Pi's in my house. One is a reverse proxy for the internet, the other two are used for LAN purposes. I have RPI-monitor running on my reverse proxy and it works fine.

However, i like to monitor the other two RPi's as well, but i dont want to host the GUI on the devices itself. I noticed you guys use shellinabox for the monitoring. You can define which shellinabox to use in the service, but i want three services on the same GUI. Is this possible?

RPi-Monitor is not working with Firefox 29

Firefox 29 came with some change in Javascript engine which made RPi-Monitor incompatible with this version.
jquery may have to be update and a global review of javascript may be required...

Not autoupdate packages

Text label Package(s) to be: 0 upgraded, 0 newly installed not autoupdate.

String refresh after of commands:
sudo apt-get update && sudo apt-get upgrade
sudo service rpimonitor update

Status page blank

"Refreshing" issue #13: I am using Firefox (recent version) on Ubuntu 13.10 now. It is not able to display the QR on the start page. The status page is blank. The same with Konqueror. Chromium is o.k., Firefox on Windows 7 is o.k., too. Ubuntu 13.04 the same, btw.

Mention dependencies in Readme

Hi, I maintain the aur package for RPi-Monitor and while it has few dependencies, I might miss something optional and it would be benefitial to users of other distros (e.g. pidora).

So yeah, as the title says, maybe add a few lines to the readme with a list of dependencies.

Embedded server won't start on 443 or 80 ports

When I try to start rpimonitor with the embedded server on port 80 or 443, it says "Denied Access".

I used theses commands:

sudo rpimonitord -v -p 80
sudo service rpimonitor restart (with change in /etc/rpimonitord.conf at daemon.port=80)

[enhancement] Add a shutdown button

Hi,
Would it be possible to add a button that allows to shutdown the RPI?

It would call a shell command like "sudo shutdown -h now".

Thank you for your nice product !

Nginx: open version.json failed

Hello,
I am using the latest version of rpimonitor. When I am using the embedded webserver erverything works fine, but when I am using nginx ( which works fine and set up using the guide from http://rpi-experiences.blogspot.fr/2013/06/rpi-monitor-version-20-advance-usage.html ) the status and statistics page cannot be displayed.

The error of nginx is the following:
2013/11/02 12:33:53 [error] 7169#0: *9 open() "/usr/share/rpimonitor/web/version.json" failed (2: No such file or directory), client: 192.168.1.9, server: , request: "GET /version.json HTTP/1.1", host: "192.168.1.7:8888", referrer: "http://192.168.1.7:8888/"
2013/11/02 12:33:54 [error] 7169#0: *9 open() "/usr/share/rpimonitor/web/version.json" failed (2: No such file or directory), client: 192.168.1.9, server: , request: "GET /version.json HTTP/1.1", host: "192.168.1.7:8888", referrer: "http://192.168.1.7:8888/status.html"
2013/11/02 12:34:15 [error] 7169#0: *9 open() "/usr/share/rpimonitor/web/version.json" failed (2: No such file or directory), client: 192.168.1.9, server: , request: "GET /version.json HTTP/1.1", host: "192.168.1.7:8888", referrer: "http://192.168.1.7:8888/statistics.html"

It is true that a version.json doesn't exist, But why does the page works with the embedded webserver, but not with nginx.
Why is a version.json not created at startup of rpimonitor and how do I create it? I have not customized rpimonitor yet.

Download curve < 0

All is said ^^

Upload is ok, but download is negative. I use the default config. Any suggestion ?

systemd conf.d vs. PACKAGING.md and the aur package for 2.7

I'm in the process of updating the AUR package to 2.7 and noticed that the systemd.conf.d, as well as the init/default/rpimonitor, although it's commented there, file point to config files that don't exist in 2.7 (/etc/rpimonitor/rpimonitord.conf + /etc/rpimonitor/rpimonitord.conf.d/default.conf).
In the case of systemd this prevents the daemon from starting. The PACKAGING.md claims that /etc/rpimonitor/*.conf is parsed automatically, so what purpose do /etc/default/rpimonitor and the systemd conf.d file serve? Are there still relevant parameters to pass to /usr/bin/rpimonitord?

(v2.4) Network Graph displaying Bytes/s not in bits/s (wrong Legend)

Testing the display of network bandwidth graph and counting many "0", I think, the legend of the network graph is wrong.
It has to be "Bytes/s" and not bits.
(/sys/class/net/eth0/statistics/rx_bytes and tx_bytes are read out)

It's just a little change in config file.

Because of this very large numbers on axis it would be better to scale in kByte/s.
I had a look at the flot docu and it seems to be possible to define autoscale in (Mega, Kilo, Giga, ...) with the help of functions.
At the moment I don't know where to define this function but I'll try to find it out.

greets,
Martin

Suggestion: Network Graph choose units

It would be great if I could choose the units when I hover over the graph. Right now it is in bytes and is very hard to read. It would be better for me if it was in MB

rpimonitord code review

Guillaume BRUN July 10, 2013 at 2:52 PM

Hello

Great job for this tool

I've the following issue with the 2.x version and not with the 1.5.

my os is slackware linux 14.0 with perl 5.16.3.

i added the "use diagnostics" to have more verbose when lauching the rpimonitord.

root@xxxxxxxx:/usr/local/rpimonitor-2.1# ./rpimonitord
Scalar value @NAMEs[$i] better written as $names[$i] at ./rpimonitord line 527 (#1)
(W syntax) You've used an array slice (indicated by @) to select a
single element of an array. Generally it's better to ask for a scalar
value (indicated by $). The difference is that $foo[&bar] always
behaves like a scalar, both when assigning to it and when evaluating its
argument, while @foo[&bar] behaves like a list when you assign to it,
and provides a list context to its subscript, which can do weird things
if you're expecting only one subscript.

On the other hand, if you were actually hoping to treat the array
element as a list, you need to look into how references work, because
Perl will not magically convert between scalars and lists for you. See
perlref.

Scalar value @[$i] better written as $[$i] at ./rpimonitord line 527 (#1)

Use of uninitialized value $pidfile in unlink at ./rpimonitord line 722,
line 49 (#2)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.

To help you figure out what was undefined, perl will try to tell you
the name of the variable (if any) that was undefined. In some cases
it cannot do this, so it also tells you what operation you used the
undefined value in. Note, however, that perl optimizes your program
anid the operation displayed in the warning may not necessarily appear
literally in your program. For example, "that $foo" is usually
optimized into "that " . $foo, and the warning will refer to the
concatenation (.) operator, even though there is no . in
your program.

Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391,
line 49 (#3)
(F) A value used as either a hard reference or a symbolic reference must
be a defined value. This helps to delurk some insidious errors.

Uncaught exception from user code:
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391, line 49.
Server::Run('Server=HASH(0xa38d20)', 'Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 678
main::StartServer('Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 724
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391,
line 49 (#3)
(F) A value used as either a hard reference or a symbolic reference must
be a defined value. This helps to delurk some insidious errors.

Uncaught exception from user code:
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391, line 49.
Server::Run('Server=HASH(0xa38db0)', 'Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 678
main::StartServer('Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 724
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391,
line 49 (#3)
(F) A value used as either a hard reference or a symbolic reference must
be a defined value. This helps to delurk some insidious errors.

Uncaught exception from user code:
Can't use an undefined value as an ARRAY reference at ./rpimonitord line 391, line 49.
Server::Run('Server=HASH(0xa38db0)', 'Configuration=HASH(0x425670)', 'Monitor=HASH(0xa38c40)') called at ./rpimonitord line 678

If you could help/fix would be great.

Thanks

NTFS?

Is it possible to show NTFS usb drive info?

Adding More HTML pages

I have tried adding more pages by apending the original code located in the web/js directory. I added a sample html page, created a javascript file, and added the menu to the navbar as well, but nothing seemed to work. Am i missing something or am I doing something wrong, any help would be appreciated. Thank you.

Script freezes for error

when i call the 'statistics.html' file, the script named js/flot/jquery.flot.min.js on line 6 freezes and firefox asks me to terminate it or continue, temperature of the rpi goes higgest and after 10 minutes no changes.

Statistics interface

Hi, do you plan to improve the Statistics interface, like remove the legend/timezone picker once configured, add the possibility to insert more graphs on the same page (like a dashboard), ... ?

Could you also add more graph choice like network traffic, iostat, app stats, nginx/apache conn etc ? You could integrate the excellent Collectd to do that. In that way, RPI-Monitor would be the most legit software to monitor raspberry.

Thx

Some information are missing (Xbian)

I checked both your website and this issues tracking but I can't find anything about the bug I'm facing (sorry if I'm wrong).

'Coz a picture is worth a thousand words, here it is:
http://i.imgur.com/iyzqGQK.png

I made a quick fix by replacing the source of the program used for data extraction (+ quick bash and crontab). However, I wonder if it will be corrected in later versions?

Infos:
Linux: Xbian
Processor: ARMv6-compatible processor rev 7 (v6l)
Distribution: Raspbian GNU/Linux 7 (wheezy)
Kernel version: Linux 3.9.8+ armv6l
Firmware: #2
Source: You know where does it come from :p

Anyway, I wanted to thank you, did a very good job. Merci beaucoup

Add hostname in RPi-Monitor title in web interface

Feedback from Martin H.

I use a lot of Raspberry Pi at home and i miss the Hostname in Pagetitle

<title>RPi-Monitor</title>

=> may be like

<title>RPi-Monitor@"hostname"</title>

or at top of the Page

(Pi-logo) RPi-Monitor Status

=> may be like

(Pi-logo) RPi-Monitor@"hostname" Status

Status page blank

I am using Firefox (recent version) on Ubuntu 12.04, it is not able to display the QR on the start page. The status page is blank. The same with Konqueror. Chromium is o.k., Firefox on Windows 7 is o.k., too.

Wrong x-scale on disc-related statistics

As first mentioned here: #22 (comment) I have an issue with wrong x-scale on some statistics.
This is with all values, that have this static-data in (discs, sd, swap) and memory. The other scales are ok.

The graph is drawn correctly but the x-scale (date/time) has always fixed values.
On day-view it goes from 01:13:30 to 01:13:20 (full day).

It first occurs with version 2.4 but is the same after updating to 2.5 (complete reinstall).
Tried it also with the default configs and with deleting the rrd-files - same problem.

Does anybody have an idea?
Does noone else have this problem?
Especially feedback form users with a very first and clean install of rpimonitor would be very helpfull to me.

Network Traffic

I made a custom script to add Network Traffic Statistics.
Here is the script shell : http://pastebin.com/XPnQN0J5
and in the /etc/rpimonitord.conf, I add this at the end of the file:

Network Traffic

[networktraffic]
net_in=sh /usr/share/rpimonitor/web/custom/netTraffic.sh=rx.(.)
net_out=sh /usr/share/rpimonitor/web/custom/netTraffic.sh=tx.(.
)

After a service rpimonitor restart, I've got this: http://hpics.li/de06f90

I don't know if you're interrested to insert it but if you want I could make more.

Wrong date on the axis

I've got the Problem, that the axis on the statistic graphs for Memory, Swap and the Disks graphs are showing the wrong date (Beginning of September instead of February).

The other graphs (e.g. CPU, temperature etc.) has the right, present date.

Can you fix this? Deleting the rrd-files didn't help.

Edit: Didn't see the existing issue.

Error: File stat/sdcard_boot_total.rrd is not a valif RRD archive

Hello,
I recently updated to the now official version 2.5 and after the update, in the browser I get the error:
"File stat/sdcard_boot_total.rrd is not a valif RRD archive"
when I wanted to show the web statistics.
I deleted the rrd-files before to have a clean install and implement the fixes, I haven't done manual.
The other RRDs are created fine but this value isn't stored in a RRD!
Same messages come with all disc-graphs, that uses the capacity-value of the disc (hdd).
It doesn't matter, if I use the original config or your default.

I have restarted the daemon, restartet the RPi and I think, I checked everythink.
I can remember, I had this once in the past but don't know any more, how I have fixed this.
Could you please help me?!

Btw. Thanks for the credits on the new version, but my nick is really "deMattin" and not "deMartin" ... ;)

Edit:
In the Status screen everythink is fine and capacity of discs is shown.

Password

Hello,

Is it possible to add a login to view pages?

Thank you.

Status page not updating

I'm using rpimonitor for 2 days now and since yesterday 16:05:40 the status.html page is not updated anymore.
It don't seems to be a problem of browser cache as I tried with an other browser.

(I'm French so if you have any need of more information, I can answer in either language if needed).

a stranger rpimonitord.conf

I found a file named rpimonitord.conf inmy root folder / .The content of it is the default of /etc/rpimonitord.conf. What is it used for and why put it in the root folder?

Wrong calculation of used memory?

I've getting following displayed (at the memory usage):

Used: 208.86MB (10.00%) Free: 23.22MB Total: 232.08MB

Isn't the percentage calculated wrong?

Greetz

Statuspage blank

"Refreshing" issue #26: I am using Firefox 32.0 on Ubuntu 14.04. It is not able to display the QR on the start page. The status page is blank. Chromium is o.k., Firefox on Windows 7 is o.k., too. Firefox 29.0 had the same problem.

Network Graph (sometimes wrong algebraic sign for download/upload with high peaks)

Sometimes in the RR-Database the value seems to be saved with the wrong algebraic sign.
For me, it was the 2nd time in 2 weeks now.
It then looks like this:

image
I've made a zoomed 14 days view to see it better, because the peak is much higher in dayview. In dayview I'm able to see, that there are two values with this wrong sign.
The peak is as high as 250 MByte/sec in dayview with the 10 second normalized values! That's much more, than the ethernet interface is able to transfer.

I have an idea, how to fix the wrong sign, but before I want to know, if anybody else has seen this, too.

The fix would be easy, I think:
It should be possible to force the alebraic sign like this:

  1. Read the value
  2. Eliminate any sign with "abs"-function.
  3. force "-" to onload and "+" for upload.
  4. save value in rrd

If the error is in the RRD readout, this can be done in the readout routine (also).
But I don't think, that the problem is in the readout, because in this case a newly generted graph (reload) would have fixed this.
An implementation in the readout routine would fix the view but not the wrong values in the database.

Would not be hard to implement this and I would develop a patch for this - but only, if I'm not alone with this problem.

And does anyone have an idea, where this wrong readout values may be come from (sign and much to high value)?

greets,
Martin

Edit:

I had a look at the rrd definitions and tools and the problem with peaks is a problem with many rrd installations.
A often given tip is to define a max and min value for the values and if a value is out of range, it then will be dropped.
I have searched in the repo but haven't yet found where it is possible to define this.

I think, this would be the best way to prevent the problems with wrong signs (without any reproduceable reason) and possible range overflows if the 2nd value is smaller than the previous one (tx/rx value is only possible max of 2^32 = 4GByte) which is probably causing the sign issue!
Today I made a 6 GB upload to my ownCloud and there was a wrong peak again ...

data files in /usr

Hi

I just saw that .rrd files are in /usr/share/rpimonitor/web/stat. Why aren't they in /var/lib/rpimonitor for example ? Is it a packaging problem ? Personally, I don't backup /usr (except /usr/local) because I know it's only upstream, read-only data that I can reinstall using the package manager database.

Second question : where are located the static data ?

Problem with mobile menus

The menus on Android mobile device doesn't working. I can pulldown the menu icon, bud the submenus doesn't doing nothing. I tried it my localhost with 8888 port, with Chrome Androd and Mozilla Android browsers also.

Error when no swap used

I deactivated the swap-usage on my RPi. The monitor always throws the following error in a popup, when I open the statistics page:

file stat/swap_total.rrd is not a valid RRD archive!

Some time ago, the error appeared and I could go on (by clicking away the popup) and view the page. Meanwhile its impossible to open the whole page, only the loading-indicator appears.

thanks :)

Character encode problem

The conf file can't support the öüóőúéáűíÖÜÓŐÚÉÁŰÍ characters for web menus and titles. Example: "web.status.2.name=Időjárás"

rpimonitord -i when rpimonitord daemon is started.

For rpi-experiences.blogspot.fr:

I have a problem: when I try the command "rpimonitord -i" I received this answer: "Web server not started because of error: Address already in use rpimonitord stopped because respawning too fast."

Add Server Status to the interface

Hi!
Great piece of work!! It's working out of the box, has a very nice and usable interface.
I'm hosting different services on my pi, so I wonder if it's possible to add a small html page to check certain ports if the service is running?

I have this in php already working:

$arr = array(
    array('SSH Server', 2299, $serverip),
    array('Proxy Server', 80, $serverip),
   array('DNS Server', 53, $serverip),
);

foreach($arr as $c) {
    if(@fsockopen($c[2], $c[1], $errno, $errstr, 4))  {
        $img = "up.png";
    } else {
        $img = "down.png";
    }

    echo '<tr>
        <td bgcolor="#EAEAEA">'.$c[0].'</td>
        <td align="center" bgcolor="#FFFFFF"><img src="'. $img .'" border="0" width="14" height="14" alt="" /></td>
        <td bgcolor="#EAEAEA" align="center">'.$c[1].'</td>
    </tr>';
    flush();
}

Where can I implement this in your script? also possibly use this nicer one:
https://github.com/mojeda/ServerStatus

Wait before previous poll of a certain type is done (or kill it) before spawning a new process

The monitor flooded my rpi with processes until it ran out of ram because vcgencmd hung:

[17346.126467] [16254] 0 16254 438 20 4 0 0 sh
[17346.126486] [16255] 0 16255 2558 50 5 0 0 vcgencmd
[17346.126505] [16262] 0 16262 438 20 4 0 0 sh
[17346.126522] [16263] 0 16263 2558 50 3 0 0 vcgencmd
[17346.126540] [16271] 0 16271 438 20 5 0 0 sh
[17346.126557] [16272] 0 16272 2558 50 5 0 0 vcgencmd
[17346.126575] [16279] 0 16279 438 20 5 0 0 sh
[17346.126593] [16280] 0 16280 2558 50 5 0 0 vcgencmd
[17346.126611] [16287] 0 16287 438 20 4 0 0 sh
[17346.126630] [16288] 0 16288 2558 50 5 0 0 vcgencmd
[17346.126647] [16295] 0 16295 438 20 5 0 0 sh
[17346.126666] [16296] 0 16296 2558 50 5 0 0 vcgencmd
[17346.126683] [16310] 0 16310 438 20 4 0 0 sh
[17346.126702] [16311] 0 16311 2558 50 5 0 0 vcgencmd
[17346.126720] [16348] 0 16348 438 20 5 0 0 sh
[17346.126739] [16349] 0 16349 2558 50 4 0 0 vcgencmd
[17346.126759] [16354] 0 16354 438 20 4 0 0 sh
[17346.126777] [16355] 0 16355 2558 50 5 0 0 vcgencmd
[17346.126795] [16359] 0 16359 438 20 5 0 0 sh
[17346.126813] [16360] 0 16360 477 39 4 0 0 vcgencmd
[17346.126831] [16363] 0 16363 438 20 5 0 0 sh
[17346.126849] [16364] 0 16364 477 39 4 0 0 vcgencmd
[17346.126866] [16371] 0 16371 438 20 4 0 0 sh
[17346.126885] [16372] 0 16372 477 39 3 0 0 vcgencmd
[17346.126903] [16375] 0 16375 438 20 5 0 0 sh
[17346.126921] [16376] 0 16376 477 39 4 0 0 vcgencmd
[17346.126938] [16379] 0 16379 438 20 4 0 0 sh
[17346.126956] [16380] 0 16380 477 39 4 0 0 vcgencmd
[17346.126973] [16383] 0 16383 438 20 5 0 0 sh
[17346.126991] [16384] 0 16384 477 39 4 0 0 vcgencmd
[17346.127010] [16387] 0 16387 438 20 4 0 0 sh
[17346.127028] [16388] 0 16388 477 39 4 0 0 vcgencmd
[17346.127046] [16395] 0 16395 438 20 5 0 0 sh
[17346.127063] [16396] 0 16396 477 39 4 0 0 vcgencmd
[17346.127082] [16399] 0 16399 438 20 3 0 0 sh
[17346.127100] [16400] 0 16400 477 39 4 0 0 vcgencmd
[17346.127119] [16403] 0 16403 438 20 4 0 0 sh
[17346.127138] [16404] 0 16404 477 39 4 0 0 vcgencmd
[17346.127156] [16407] 0 16407 438 20 4 0 0 sh
[17346.127173] [16408] 0 16408 477 39 4 0 0 vcgencmd
[17346.127191] [16476] 0 16476 438 20 5 0 0 sh
[17346.127209] [16477] 0 16477 477 39 4 0 0 vcgencmd

Once it hits out of memory it stops monitoring.

Is it possible to kill the previous polling process before taking a new sample if it's still alive?

I'm using debian wheezy (armel) version on my rpi with the latest rpi-firmware.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.