Posts by sbocquet

    OK, I'm trying something else :

    "regex" => "^(\S+\s+\S+)[.]\S+\s+(.*)$" (don't take the milliseconds in the first parsed group)



    and

    return strpdate($v,"Y-m-d H:i:s"); (idem)

    Should work after a reboot... but this time, got nothing in the web page!


    How can I test that without rebooting my NAS every time I need to test the engined and/or the webUI ?

    Hi,

    I've just rebooted my server and... the entry is here (see attachment) !

    Still have some problems to parse the date of the log file. I use
    strpdate($v,"Y-m-d H:i:s")

    and the log format is :


    Code
    2021-Nov-29 10:36:27.3431674    Starting a sync with OneDrive
    2021-Nov-29 10:36:27.343256     Syncing changes from OneDrive ...
    2021-Nov-29 10:36:30.0845614    Sync with OneDrive is complete


    Maybe the milliseconds ? How can I solve this ?

    Thx

    Hi,

    Just started to use BorgBackup last week, and I have the same 'complain' on email spamming. . I was using rsync with scheduled jobs before, and could manage which job would send me an email.

    In fact, I run multiple backups of my filesystems , but one is running every hour on a specific directory.
    No need to say that an email every hour is a bit annoying. Even if I understand all that was said before on crontab and other, I would really appreciate if I can disable this 'feature' on a specific backup.

    All that said, thanks for the plugin @ryecoaaron

    Hi,

    Thx for the link. Unfortunatly, I can't get this too work :(

    Maybe someone could point my error. Here are the conf. files.


    root@home-server:~# ls -al /usr/share/openmediavault/engined/inc/*

    -rw-r--r-- 1 root root 1155 May 14 15:41 /usr/share/openmediavault/engined/inc/10rootdevicefile.inc

    -rw-r--r-- 1 root root 988 May 14 15:41 /usr/share/openmediavault/engined/inc/30datamodel.inc

    -rw-r--r-- 1 root root 1538 May 14 15:41 /usr/share/openmediavault/engined/inc/60filesystembackend.inc

    -rw-r--r-- 1 root root 1432 May 14 15:41 /usr/share/openmediavault/engined/inc/60networkinterfacebackend.inc

    -rw-r--r-- 1 root root 1434 May 14 15:41 /usr/share/openmediavault/engined/inc/60storagedevicebackend.inc

    -rw-r--r-- 1 root root 1393 May 14 15:41 /usr/share/openmediavault/engined/inc/90clamav.inc

    -rw-r--r-- 1 root root 11631 May 14 15:41 /usr/share/openmediavault/engined/inc/90logfilespec.inc

    -rw-r--r-- 1 root root 1383 Sep 2 16:34 /usr/share/openmediavault/engined/inc/90onedrive.inc


    90onedrive.inc


    root@home-server:~# ls -al /var/www/openmediavault/js/omv/module/admin/diagnostic/log/plugin/

    total 68

    drwxrwxr-x 2 openmediavault-webgui openmediavault-webgui 4096 Sep 2 16:57 .

    drwxrwxr-x 3 openmediavault-webgui openmediavault-webgui 4096 Jul 30 09:22 ..

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2482 Jul 4 18:55 Apt.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2163 Jul 4 18:55 Auth.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 1974 Jul 4 18:55 Boot.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 1998 Jun 13 13:06 ClamAV.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2167 Jul 4 18:55 Daemon.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 6380 Jul 4 18:55 Ftp.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2181 Jul 4 18:55 Messages.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2009 Sep 2 16:47 Onedrive.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2227 Jul 4 18:55 Plugin.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2027 Jul 4 18:55 Rsyncd.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 1995 Jul 4 18:55 Rsync.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2023 Jul 4 18:55 Smart.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 3725 Jul 4 18:55 Smb.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2167 Jul 4 18:55 Syslog.js



    I think that the parsing of the log file is maybe the error because of the milliseconds, but it should create the entry in the WebUI even if the parse doesn't work, no ?

    Code
    return strpdate($v,"Y-m-d H:i:s");"

    Here is the log file

    Code
    2021-Sep-07 09:38:16.6625359    Configuring Global Azure AD Endpoints
    2021-Sep-07 09:38:17.3047206    Initializing the Synchronization Engine ...
    2021-Sep-07 09:38:17.3047814    Initializing monitor ...
    2021-Sep-07 09:38:17.3048137    OneDrive monitor interval (seconds): 120
    2021-Sep-07 09:38:18.828254     Trying to delete item Images/Pellicule/IMG_20210819_172831.jpg
    2021-Sep-07 09:38:18.8292999    Trying to delete item Images/Pellicule/IMG_20210820_103229.jpg
    2021-Sep-07 09:38:18.8301002    Trying to delete item Images/Pellicule/IMG_20210819_172918.jpg
    2021-Sep-07 09:38:18.8308931    Trying to delete item Images/Pellicule/IMG_20210828_192632.jpg
    2021-Sep-07 09:38:18.8317183    Trying to delete item Documents/Professionnels/CV Stéphane BOCQUET - CPSI.pdf
    2021-Sep-07 09:38:18.8325246    Trying to delete item Images/Pellicule/Screenshot_20210830-140425_65dd53f706ee14f7c817b7f96db127ea.jpg


    Any Idea or Help is appreciated.

    Thanks

    There is a plugin that does this but I stopped maintaining it because certbot is a moving target and the version in the Debian repo is rarely up to date enough for a lot of people. The wildcard feature that most people want is very difficult to automate as well.


    And yes, I do tell people to use docker. I use certbot myself. Putting it in docker doesn't change that much. It actually makes it easier if the system you are generating the cert on does not have a web server or you do not want the current web server exposed to the internet (like OMV's web server).

    I can totally understand that. I personnaly recompile the latest versions of handbrake, qbittorrent-nox to be up to date in debian 10, and this can be a real pain ;)

    Certificates are much more used and useful. As said just before, maybe a path to the automated certificat in the Certificates or General Settings tabs in OMV could be a huge help for a lot of people ?

    Cheers.

    Hi,

    Will be very interested in a way to automaticaly renew LetsEncrypt certificates in OMV as, at the moment, it's really a pain in the ass every 3 months to :
    1 - Renew the LetsEncrypt certificate by cron or CLI,
    2 - Copy/Paste the info in OMV GUI to generate the OMV one,
    3 - Copy/Paste the path to the new OMV certificate in every nginx site conf file (yes, I have some reverse proxy sites that use my wildcard certicate !)


    So many sources of errors...

    Why can OMV have the option to use directly the LetsEncrypt certificate (which is automatically renew) by simply giving its path ? It would be so easy !

    OMV is mean to be easy on those things, no ?

    P.S.: Please, don't tell me to use docker as it's a PERSONNAL NAS that don't need this complexity to automaticaly renew a certificat ! OMV is supposed to be a user friendly experience.

    Yes.

    But I also want them to be in the same group in order that they can all read/write in some other directory.
    Well, I guest that not a big deal but I wanted to do it all in the GUI and not be forced to use CLI.


    No problemo... but maybe this can be thinked to be done in a future update ;)

    My main goal is to have :
    - familly users that can read/write on all folders.
    - external (guests) users that can only read in some folders.


    All the external users can access the NAS with SFTP to download files from musics and videos.



    With those rights, only the users in the "users" group can read and write.


    At the moment, I just change the default group of the external users in /etc/passwd to match /etc/group.

    Code
    sbocquet:x:1000:100:Stéphane BOCQUET:/home/vbocquet:/usr/sbin/nologin
    utest:x:1002:1000:User test:/home/utest:/bin/sh
    Code
    guests:x:1000:utest


    Maybe there's a better way.

    Hi,

    My goal here is to link a user to a "guests" group so that he cannot access to some directories the internal users can.
    I have successfully added the user to the group "guests".

    I then was trying to remove a new created external user from the "users" group, and it seems not to work at all. The /etc/passwd file isn't modify too.


    Is it a bug?

    Thank for the tip.

    I have writen the new class.


    Is there an easy way to "reload" the conf in order to test it ?

    Hi,


    I want to add some custom services (Plex, QBittorrent-nox, etc) watching in the dashboard part of OMV5.

    I have installed those services by CLI as theres no more plugin for them, but it would be helpful to me to see if they are running in OMV dashboard.


    I have already custom some OMV dashboard graph with disks and CPU temp and so on, so I'm not new to OMV tweaking.


    Can someone give me some clue on what file I have to search/modify to include those services in the dashboard, and the best way to do it?


    P.S: I already have checked /var/www/openmediavault/js/omv/module/admin/dashboard/part/ServiceStatus.js but that's not here ;) Maybe more in the back engine ?

    Thx a lot for helping.

    Hi,

    For those who want to have fun...



    - Connect via SSH to your server...

    Code
    cd /var/www/openmediavault/css
    cp defaults.scss defaults.sav
    vi defaults.scss

    - Modify those line with what colors you want:

    Code
    $omv-color-more-lighter: #404040;
    $omv-color-lighter: #303030;
    $omv-color-default: #202020;
    $omv-color-darker: #101010;
    $omv-color-more-darker: #000000;

    Save and exit.


    - Compile the new CSS file:



    - Refresh your web browser with CTRL+F5 and enjoy ;)

    Note : This have to be done after each OMV update... or maybe you can use the theme-custom.css file possibility to override the default CSS?