Posts by sbocquet


    Like always... you need to clear your web browser cache (or something like this!) ;)

    Anyway... work in progress but it works !

    Just need some advices from some PHP gourou...
    I'm not sure that this is the best way to do it or if there is something more efficient in PHP then those system calls to read the last line of a file. So any advice is welcome for this slice of code.

    Thanks for your help.

    I searched the source code where the default dashboard widgets are registered, but didn't find anything. I'm really sorry, i can't remember anymore how this is working, too much time passed since this feature was implemented. I think it is a magic function of ExtJS, but i don't know it anymore.

    In general i would say that somewhere a // require("js/omv/module/admin/dashboard/(par|view)/xxx.js")

    must occur which triggers the PHP code to create a <script type='application/javascript' src='foo'></script> entry in the generated HTML file; but did not found any code that looks like that.

    Thanks for trying votdev ...

    It seems that my files are "here" (listed in the cache, so I assume OMV took them into account), but somehow not "visible"...

    EDIT :
    votdev JS Files are in the generated page... so I'm completely lost now ! lol

    Sorry, I don't have time to keep working on OMV 6.x plugins (behind already) and backport changes to OMV 5.x plugins.

    No problem, I understand the fact your're already busy... and everybody is giving his time like he wants.
    I will review your commit and try my best ;)


    Have a look here.

    Thanks votdev, that's where I was addind my src files

    But nothing more in the "add" button. It seems that my widget is not "registered".

    votdev Maybe I need to restart something ?

    - I have already restarted the openmediavault-engined and the nginx services.
    - My files are in the caches directory

    OMV5 is practically already EOL, i do not maintain it anymore (except patches for migration or security issues). Please use OMV6 instead. For developing plugins please have a look at https://openmediavault.readthe…/development/plugins.html and use the source code as reference.

    Yeah... I know... and I would really like to, but I've done so much specific conf (collectd, IPMI, WebUI, etc...) on my NAS that it would be very long to restart from OMV6 at the moment, so I'm trying to add what I can to my need.

    I reading the code since several months for my needs, but it's still a hard step even if I was a dev guy 15 years ago ;)
    I'm asking help only when I'm really stuck after several hours.

    only for curiosity, what show your widget?, is usefull for other users?

    I'm going to add a temperature widget (I got them with IPMI and a collectd specific configuration), better than the one line that I've added in the System Info one. (see screenshot)
    The fact is that the files I have modified to add this line will be overide each time a new version of OMV goes live.

    Buy adding a widget panel, this will not append ;)


    I'm trying to add a panel to the dashboard, but I cannot add a new item to the "Add" button.
    By searching the code, I have found the file Dashboard.js, which get the registered dashboard...

    So the question is... Where do I register the dashboard widget ?


    Hi !

    I have added a plugin to collectd configuration, in order to get iptables statistics.

    According to the collectd docs, the configuration file should be something like this :

    root@home-server:/# cat /etc/collectd/collectd.conf.d/iptables.conf
    LoadPlugin iptables
    <Plugin "iptables">
    Chain "filter" "INPUT"
    Chain "filter" "OUTPUT"

    Here are some infos from my iptables :

    Restarting the collectd demon is fine :

    Unfortunatly, no data are collected/writen in the data directory (should have some iptables_filter_* directories from what I know :( )

    Does anyone already done this and any idea of what the problem is ?


    borgbackup 6.1.0 in the repo now. It will still email you if there is an error. You will not be able to disable that but I don't think errors should be skipped.

    I'm using OMV 5 anyway ;)
    But I'm still thinking that a little checkbox for emailing in the WebUI in the archive configuration interface could be a nice improvment ;)

    Hi !

    I have just added an Intel x550T2 10Gb NIC on my OMV server, and noticed that I have a lot of rx_dropped errors for all NICs (2 Intel i210 on the motherboard, 2 x550 on the card).
    The card is on a correct PCIe extension slot (PCIe3.0 x8).

    At the moment, they are all linked to a Netgear GS108e switch.

    Here are some infos for the i210 NIC :

    And for the x550 NIC

    I have already tried to max the buffer ring but still have the error:

    Here are some Iperf tests too :

    I can see that ALL my NIC have some dropped packets :

    So :

    • It's probably not the cables (all the cables are directly connected to the switch), even the test PC... => Not the cables in the walls !
    • It's probably not the NICs, as 2 are on the motherboard (ASRock Rack x470D4U) and 2 are on the PCie x550T2 Card,
    • Switch ?
    • Server configuration... maybe/maybe not ? Intel drivers ?

      Any help or idea is welcome as I'm a little lost at the moment :/||||

    Little NAS Updated !

    Case: Lian Li PC-V354
    Motherboard: ASRock Rack x470D4U
    CPU: AMD Ryzen 5 3600
    RAM: 1 x 16GB Crucial DDR4 PC2666 ECC
    PSU: Seasonic M12 - 500W

    NIC Card: Intel x550T2 - 10Gb
    CPU Fan: 1 x Be Quiet! Pure Rock Slim PWM
    System Fans: 3 x Be Quiet! Silent Wings 3 PWM
    System Disk: 1 x NVMe XDATA 8200Pro 256GB
    Datas Disks: 4 x Western Digital 10TB (RAID 6)

    Backups Disk: 1 x Seagate 2TB


    After each OMV update, I would like to run some commands automatically... not something very complicated, like re-set my dark web theme and the graph size in OMV stats pages for example.

    This could be done with those CLI commands :

    # Dark OMV theme
    cd /var/www/openmediavault/css; cp defaults.sav defaults.scss
    make all; chown openmediavault-webgui:openmediavault-webgui *; chmod 664 *;
    # OMV Graphs
    sed -i 's/400/1400/' /usr/sbin/omv-mkrrdgraph; sed -i 's/120/200/' /usr/sbin/omv-mkrrdgraph;

    So... Should I stay with a script that I have to manually run after each upgrade, or is there a nice way to automatically execute those commands after each update (salt ?).

    Any idea is welcome... ;)

    If you have not pressed the Apply button in the UI then nothing should have happened. The latest version 5.6.21 has marked the nginx, host and postfix modules as dirty, thus their configuration is re-deployed on pressing Apply. But there are no changes in the code, except that the IPv6 detection has been improved/fixed, thus it can happen that now only IPv4 configuration is generated if IPv6 is not configured.

    Thanks Volker ( votdev), you point me in the right direction once again ;) As you said, no IPv6 was configured in those servers... but the nginx reverse proxy conf file was "misconfigured" !

    Modified the configuration from

    listen [::]:80;
    listen [::]:443 ssl http2;


    listen 80;
    listen 443 ssl http2;

    Big thanks both of you for your time.

    You do not find anything in the error log, because nginx does not consider it an error, but redirects to the main server.

    Did you have a chance to compare the nginx -T between working and non working servers?

    Can you compare the versions of nginx between working and non working? (nginx -v)

    Nginx -T are the same... so same broken reverse proxy.
    Nginx is v1.14.2, the latest package from debian repo.

    The fact that I'm sure is :
    - they have exactly the same nginx/proxy config files.
    - this morning, I update from v5.6.20 to v5.6.21 the first server; reverse proxy stopped just after (<1 min).
    - this afternoon, I updated the second server, reverse proxy stopped just after (<1 min).

    Log file from QB access and error are empty since the update, and the access are logged in OMV access log file....

    OMV access log file :

    Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.20 Safari/537.36 Edg/97.0.1072.13" - - [02/Dec/2021:15:18:49 +0100] "GET / HTTP/1.1" 200 1279 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.20 Safari/537.36 Edg/97.0.1072.13" - - [02/Dec/2021:15:18:53 +0100] "GET / HTTP/1.1" 200 3436 "-" "Monit/5.26.0" - - [02/Dec/2021:15:18:53 +0100] "GET / HTTP/1.1" 200 3436 "-" "Monit/5.26.0"

    OMV error log file

    Code - - [02/Dec/2021:15:25:25 +0100] "GET /favicon.ico HTTP/1.1" 200 1406 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.20 Safari/537.36 Edg/97.0.1072.13" - - [02/Dec/2021:15:25:54 +0100] "GET / HTTP/1.1" 200 3436 "-" "Monit/5.26.0" - - [02/Dec/2021:15:25:54 +0100] "GET / HTTP/1.1" 200 3436 "-" "Monit/5.26.0"

    Just updated the other server and reverse proxy is broken too with v5.6.21... so for sure, this is related to the update.

    So, started nginx in cli mode, and everything is normal... no error code. I'm lost !