Possible to add other logs to system log viewer?

  • Hi,


    I have a couple of CRON scripts which I output to the /var/log/ directory and was wondering if there was a way to add their output to the log view from the webpage? I appreciate it's not for everyone, but I wouldn't mind adjusting it, if necessary, with updates.


    Thanks in advance,


    YellowShed

    • Offizieller Beitrag

    From what I can tell, you would need to modify /var/www/openmediavault/js/omv/module/admin/Logs.js. Looks like there is a block for each log file. And this would get overwritten with each OMV update.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • +1, e.g.: iam logging my smart hdd temparature of my 3ware-controller connected harddisks to /var/log/ so this could be very handy.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Ahhh. Just had a quick look, and the stateId field looks ....


    How is the stateId field generated, and do I need it for my logs? Not up on any Javascript stuff...


    Thanks again,


    YellowShed

    • Offizieller Beitrag

    I may be wrong but I think stateId just needs to be unique.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!