tag:blogger.com,1999:blog-573184945135512804.post293163358265978561..comments2024-03-01T08:36:11.376+01:00Comments on RPi-Experiences: RPi-Monitor: Version 2.x advance usage and customizationX@vhttp://www.blogger.com/profile/12860630541816241486noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-573184945135512804.post-29646743411342942482014-05-02T11:05:10.281+02:002014-05-02T11:05:10.281+02:00Hello Matthias,
RPi-Monitor is gathering informat...Hello Matthias,<br /><br />RPi-Monitor is gathering information on the system every 10 seconds (by default) and write these information into RRD files (generating disk access where RRD file are stored).<br />Each time it probes the system RPi-Monitor execute commands (define into the configuration file). These commands may have impact on your system (and maybe wakeup your disk :-( ). This have to be tested...<br />If your test show that RPi-Monitor have an impact on your disk, the workaround I would propose to avoid awaking your disk every 10sec is to create an external script gathering information in a frequency matching your needs and writing the result into a file which will be read by RPi-Monitor.<br /><br />GR,<br />XavierX@vhttps://www.blogger.com/profile/12860630541816241486noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-80090239868629056082014-05-01T19:51:21.893+02:002014-05-01T19:51:21.893+02:00Hello,
I installed the tool and like it very much....Hello,<br />I installed the tool and like it very much. Everything works so far and I'm also monitoring my USB-disk, that is attached to the pi. I'm only worried about the additional access to the disk that will be generated by the monitoring. The disk is usually in sleep mode, when it is not actively used by the pi. Does the statistic for the monitor generate real disc access that will wake my disk? It this is the case, I have to disable it again to protect my disk and save energy.<br /><br />BR,<br />MatthiasAnonymoushttps://www.blogger.com/profile/13917803790217476410noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-60852673610543750242014-04-02T19:23:08.532+02:002014-04-02T19:23:08.532+02:00"Access Denied" is a page given by apach..."Access Denied" is a page given by apache and not related to RPi-Monitor. <br /><br />To fix you issue, I would advised to create a page named index.html with, as content, the sentence "It works". Then configure your apache to serve this page. Once it works, you will just have to do a similar configuration pointing to the directory /usr/share/rpimonitor/web/.<br />I did my test with nginx so I can't help more...X@vhttps://www.blogger.com/profile/12860630541816241486noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-32765079061416288592014-04-02T16:57:07.948+02:002014-04-02T16:57:07.948+02:00I can't get the webserver to work with apache ...I can't get the webserver to work with apache on my Pi. When I try to create the file "rpimonitor" in /etc/apache2/sites-enabled/ with the tekst you provided, I get the message "Access Denied"<br /><br />How can I get RPi-Monitor to work with apache?kbarthhttps://www.blogger.com/profile/12379762459345609142noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-81368583818638026702014-03-22T12:28:26.699+01:002014-03-22T12:28:26.699+01:00Not sure if you got it working already but I had t...Not sure if you got it working already but I had the same problem. I figured out how to solve this.<br /><br />Check your file system type by using the command "df -T" without the quotes.<br /><br />Look up the Type of the drive you want to use. Even though mine is formatted ntfs, it's Type is written as "fuseblk". Therefor I was now able to use the command "df -t fuseblk" and it received the information of the drive.<br /><br />Now just change this in your custo.conf or whatever configuration file you are using and it should work fine.<br /><br />Hope this helps for you.Quindoohttps://www.blogger.com/profile/12476686183674341639noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-60204219908287753882014-03-09T17:33:37.582+01:002014-03-09T17:33:37.582+01:00I'm really new to this, im basically taking th...I'm really new to this, im basically taking the example that you show above,(which worked great with ext4 format) and when i changed the drive to ntfs i lost the info, and i have no idea what regexp with perl is, im sorry for the newness, i really really like your system and want to get it to work with my ntfs share drive but i'm just lost beyond the basic config in the given example above about storage drive. Any help would be greatly appreciated.Anonymoushttps://www.blogger.com/profile/04071152935296369566noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-22559017908447913902014-03-09T13:39:17.856+01:002014-03-09T13:39:17.856+01:00To customize RPi-Monitor, I would advise to read t...To customize RPi-Monitor, I would advise to read the comment I made in DHT11/22 article (http://rpi-experiences.blogspot.fr/2013/07/rpi-monitor-use-dht11-or-dht22-humidity.html - September 10, 2013 at 11:34 AM ).<br />Before configuring RPi-Monitor, you should first try the regexp with perl and once it works, configure it.<br /><br />Note: if the perl execution give you the good information, check if you correctly refer to "storage1_used" into the status lines.X@vhttps://www.blogger.com/profile/12860630541816241486noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-64990560782306969202014-03-09T11:40:13.111+01:002014-03-09T11:40:13.111+01:00This is my setup in custo.conf if it helps..
stat...This is my setup in custo.conf if it helps..<br /><br />static.10.name=storage1_total<br />static.10.source=df -t ntfs<br />static.10.regexp=/dev/sda1\s+(\d+)<br />static.10.postprocess=$1/1024<br /><br />dynamic.19.name=storage1_used<br />dynamic.19.source=df -t ntfs<br />dynamic.19.regexp=/dev/sda1\s+\d+\s+(\d+)<br />dynamic.19.postprocess=$1/1024<br />dynamic.19.rrd=GAUGE<br /><br />Anonymoushttps://www.blogger.com/profile/04071152935296369566noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-30020097660561198292014-03-09T11:15:38.033+01:002014-03-09T11:15:38.033+01:00Im sorry, im not that familiar with coding...i hav...Im sorry, im not that familiar with coding...i have tried many diffrent things, changing this "dynamic.14.source=df -t ext2" to "dynamic.14.source=df -t ntfs" ect... also "dynamic.14.regexp=sda1\s+\d+\s+(\d+)" to "dynamic.14.regexp=*/dev/sda1*\s+\d+\s+(\d+)" */dev/sda1* is where the NTFS drive is mounted.Anonymoushttps://www.blogger.com/profile/04071152935296369566noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-11424843632517001432014-03-09T10:45:28.178+01:002014-03-09T10:45:28.178+01:00Check the formula extracting the space used on dis...Check the formula extracting the space used on disk. It looks that the total is ok. The "used" doesn't looks OK and as free is calculated with the formula "Total"-"Used" you also have the issue.<br />Check also that the name of the variable are correct into the static javascript definition (web.status.X.content.Y.line.Z=)X@vhttps://www.blogger.com/profile/12860630541816241486noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-7885296231250164412014-03-09T09:37:31.454+01:002014-03-09T09:37:31.454+01:00Is it possible to make the setup for "other m...Is it possible to make the setup for "other mount point" basically a USB HDD setup but its NTFS i have NTFS setup on my PI and RPi-mon kinda see's it it shows the size but this is what is says "/storage1 Used: NaNkB (NaN%) Free: NaNkB Total: 293.29GB"Anonymoushttps://www.blogger.com/profile/04071152935296369566noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-8813258378219789362014-03-06T11:02:56.093+01:002014-03-06T11:02:56.093+01:00I found this also, which one is correct?
To have t...I found this also, which one is correct?<br />To have the temperature in °F, you should change the post-processing formula from $1/1000 to ($1/1000)*1.8+32 into the same file. Anonymoushttps://www.blogger.com/profile/04071152935296369566noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-85007449488036813722014-03-06T10:19:40.808+01:002014-03-06T10:19:40.808+01:00Yes, it is even very easy.
You just have to enter...Yes, it is even very easy. <br />You just have to enter the formula converting from C to F as postprocess. <br />$1 is the temp in C so formula should be: $1*9/5+32<br />X@vhttps://www.blogger.com/profile/12860630541816241486noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-26919322036934960052014-03-06T10:08:05.166+01:002014-03-06T10:08:05.166+01:00Is it possible to show CPU temp as F instead of c?...Is it possible to show CPU temp as F instead of c?Anonymoushttps://www.blogger.com/profile/04071152935296369566noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-30066207819181392022014-02-25T01:07:52.608+01:002014-02-25T01:07:52.608+01:00Hi Bjorn. Did you find a solution to your remote ...Hi Bjorn. Did you find a solution to your remote Pi data acquisition?<br /><br />Xavier suggested (in another post) creating a custom script that would poll for information (in your case, the temperature data) then save that information to a local file. You could then query this local file with RPi-Monitor.<br /><br />Anyhow - I'd like to accomplish the same task and was wondering if you have a solution.<br /><br />Anonymoushttps://www.blogger.com/profile/12022335423210616130noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-7518835311339863862014-01-11T23:16:23.909+01:002014-01-11T23:16:23.909+01:00Hello,
the string "/usr/share/rpimonitor/img...Hello,<br /><br />the string "/usr/share/rpimonitor/img/" above needs to be "/usr/share/rpimonitor/web/img/" on my RPi-Monitor installation (2.5.1).Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-35512926828551899542014-01-07T07:33:42.310+01:002014-01-07T07:33:42.310+01:00I have similar problem with other system variables...I have similar problem with other system variables.Sancho Muzaxhttps://www.blogger.com/profile/04047843071149703333noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-82965898924680052122014-01-06T18:55:34.464+01:002014-01-06T18:55:34.464+01:00Hi ! Nice work.
I'm reading the temperature s...Hi ! Nice work.<br /><br />I'm reading the temperature sensor from another Pi on the network using the following command :<br />ssh pi@192.168.1.10 cat /sys/bus/w1/devices/28-000004f14128/w1_slave<br />and it works fine.<br /><br />Now when I use (in custo.conf) :<br />dynamic.18.source=ssh pi@192.168.1.10 /sys/devices/w1_bus_master1/28-000004f14128/w1_slave<br /><br />I get an "undefined°C" temp in RPI-Monitor...<br /><br />I'm guessing I'm using the wrong command for the source... Could anyone help ?<br /><br />Thanks.<br />Anonymoushttps://www.blogger.com/profile/13379827255383716479noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-50692771340797299062013-12-10T15:28:20.433+01:002013-12-10T15:28:20.433+01:00This comment has been removed by the author.HChttps://www.blogger.com/profile/10659532320180215221noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-23852339419094337282013-11-25T23:31:49.054+01:002013-11-25T23:31:49.054+01:00Check the status of CUPS printer server:
static.1...Check the status of CUPS printer server:<br /><br />static.10.name=printer_status<br />static.10.source=lpstat -p <br />static.10.regexp=(.*)<br />static.10.postprocess=<br /><br />web.status.1.content.9.name=CUPS <br />web.status.1.content.9.icon=printer.png<br />web.status.1.content.9.line.1='Status: <b>' + data.printer_status + '.</b>'<br /><br />The 64x64px icon: <a href="http://goo.gl/UcQo4E" rel="nofollow">http://goo.gl/UcQo4E</a><br /><br />---<br /><br />I have character coding problem, I can't repair it:<br /><a href="http://dl.dropbox.com/u/3577295/Kijel%C3%B6l%C3%A9s_014.png" rel="nofollow">http://dl.dropbox.com/u/3577295/Kijel%C3%B6l%C3%A9s_014.png</a>Sancho Muzaxhttps://www.blogger.com/profile/04047843071149703333noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-3524155586334667742013-11-25T21:46:15.249+01:002013-11-25T21:46:15.249+01:00To customize RPi-Monitor, I would advise to read t...To customize RPi-Monitor, I would advise to read the comment I made in DHT11/22 article (http://rpi-experiences.blogspot.fr/2013/07/rpi-monitor-use-dht11-or-dht22-humidity.html).<br />Before configuring RPi-Monitor, you should first try the regexp with perl and once it works, configure it.<br />Once you will have find the perfect setup, I'll let you post you configuration and share it to everybody.<br />(Note: sorry for this short response but I started a new job and will have less time for RPi-Monitor...)X@vhttps://www.blogger.com/profile/12860630541816241486noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-9723851465088272822013-11-24T23:19:08.116+01:002013-11-24T23:19:08.116+01:00How can I add the "lpstat -p"? This is a...How can I add the "lpstat -p"? This is a simple status message.<br />It's not working:<br /><br />dynamic.10.name=cups <br />dynamic.10.source=lpstat -p <br />dynamic.10.regexp=(.*)<br />dynamic.10.postprocess=<br />dynamic.10.rrd=DERIVE<br /><br />web.status.1.content.9.name=CUPS<br />web.status.1.content.9.icon=printer.png<br />web.status.1.content.9.line.1="Status: <b>"+data.cups+"</b>"<br /><br />Thank you!Sancho Muzaxhttps://www.blogger.com/profile/04047843071149703333noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-28458221534850223702013-10-13T15:43:55.174+02:002013-10-13T15:43:55.174+02:00OK! It's a blame!
I have done it whith a simpl...OK! It's a blame!<br />I have done it whith a simple bash script! Sorry for disturbing!<br />For whom may want to use this clever software whith mysql source here is my solution for the problem:<br /><br />I have made a bash script with a MySQL SELECT, which gets $foo from database and an echo $foo at the end of script. (named e.g.: sample.sh)<br />I've made a symlink in /usr/bin which is showing to my bash script (Note: the symlink has not got extension. So it is like: ~sample rather then ~sample.sh)<br />In rpimonitord.conf.d/default.conf I've used the symlink as source, like this:<br /><br />dynamic.16.source=sample<br /><br />That's it. And it works properly.Anonymoushttps://www.blogger.com/profile/03077265889411254631noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-29165365651836648912013-10-13T14:54:41.494+02:002013-10-13T14:54:41.494+02:00Hi Xavier!
Nice work. I found it very usable! Tha...Hi Xavier!<br /><br />Nice work. I found it very usable! Thanks a lot!<br /><br />I was wondering if it is possible to use mysql as datasource in rpi-monitor somehow? <br />For example I would make a python script to extract one particular data from mysql table. Could I use this script as a source?<br />Or actually could I use environmental variables as source. (Maybe I could set env var from bash script)<br />As I have experienced the SD card do not like that I write and read a txt file every 10 seconds just for data source purposes.Anonymoushttps://www.blogger.com/profile/03077265889411254631noreply@blogger.comtag:blogger.com,1999:blog-573184945135512804.post-41621394026835736632013-09-17T05:37:25.414+02:002013-09-17T05:37:25.414+02:00You can also easily add WiFi network by adding the...You can also easily add WiFi network by adding the following to /etc/rpimonitord.conf.d/default.conf as indicated or just copy and paste into /etc/rpimonitord.conf.d/custo.conf<br /><br /># Additions to display WiFi stats<br /><br />#This goes on the end of the KPI's section around line 187<br />dynamic.15.name=wifi_received<br />dynamic.15.source=/sys/class/net/wlan0/statistics/rx_bytes<br />dynamic.15.regexp=(.*)<br />dynamic.15.postprocess=$1*-1<br />dynamic.15.rrd=DERIVE<br /><br />dynamic.16.name=wifi_send<br />dynamic.16.source=/sys/class/net/wlan0/statistics/tx_bytes<br />dynamic.16.regexp=(.*)<br />dynamic.16.postprocess=<br />dynamic.16.rrd=DERIVE<br /><br /># This goes on the end of the section that begins 'web.status.1.content.8.name=Network' around line 352<br />web.status.1.content.8.line.2="WiFi Sent: <b>"+KMG(data.wifi_send)+"<i class='icon-arrow-up'></i></b> Received: <b>"+KMG(Math.abs(data.wifi_received)) + "<i class='icon-arrow-down'></i></b>"<br /><br />#This goes in the web.statistics section at the end of the the section that begins 'web.statistics.1.content.2.name=Network' around line 375<br />web.statistics.1.content.2.graph.3=wifi_send<br />web.statistics.1.content.2.graph.4=wifi_received<br />web.statistics.1.content.2.ds_graph_options.wifi_send.label=WiFi Upload bandwidth (bits)<br />web.statistics.1.content.2.ds_graph_options.wifi_send.lines={ fill: true }<br />web.statistics.1.content.2.ds_graph_options.wifi_send.color="#FF7700"<br />web.statistics.1.content.2.ds_graph_options.wifi_received.label=WiFi Download bandwidth (bits)<br />web.statistics.1.content.2.ds_graph_options.wifi_received.lines={ fill: true }<br />web.statistics.1.content.2.ds_graph_options.wifi_received.color="#77FF00"<br /><br />Anonymoushttps://www.blogger.com/profile/16387571444228584018noreply@blogger.com