Jump to content

atribe

Community Developer
  • Posts

    120
  • Joined

  • Last visited

Posts posted by atribe

  1. The scripts are run using cron. The list of active scripts can be edited by the

    crontab -e

    command.

     

    This defaults to the vi editor to edit the text which I find painful to use. In terms of basics there are plenty of useful guides on the net on how to use it, but essentially you need to go to the bottom of the file (type  capital G), then insert a line below the current one ready for editing (type * o). Insert your crontab line e.g.

     

    I just googled it and you can use nano if you call crontab using the following:

    export VISUAL=nano; crontab -e

    I tried it and it works.

  2. Just an update on things....

     

    I nuked influxDB and unTelegraf, and the issue still persists. Made sure appdata was deleted for influx as well. I'm not really sure what is going on here now. I thought it would of been as simple as updating telegraf.

     

    I'd be interested to know if anyone else can replicate this from a clean install of Influx and Telegraf.

     

    I've tracked down the problem, and there is an easy work around.

    The work around: in the influxdb admin interface run the following command: CREATE RETENTION POLICY "default" ON "telegraf" DURATION 30d REPLICATION 1 DEFAULT

     

    The issue: Influxdb changed the name of the default retention policy to autogen. The image I'm using hasn't updated the telegraf.conf file it uses to reflect that. I've submitted a pull request, so they could fix it soon. Until then you can just create a retention policy named default.

    I'm also planning on adding vanilla telegraf to community apps, however, this will require you to create your own telegraf.conf file. But this does let you be much more flexible, compared to using environment variables.

  3. Thanks a bunch! Unfortunately it doesn't look like this fixed the issue. I'm still getting the "retention policy not found" error in telegraf log. Does influxDB have to be updated as well? I'm not sure what version the influxDB docker is on compared to what is out now. Thanks for looking into this!

     

    Did you check to make sure you updated it properly? From the command line you can type "docker exec -it untelegraf bash" and then "telegraf --version". It should say "Telegraf - version 1.0.0".

    You could try nuking influxdb and recreating it. Maybe the create statement from telegraf was botched and needs to be redone (I guess you could just delete the telegraf database in influxdb and then recreate your telegraf container.)

     

    As far as the influxdb I have in the community apps it uses the alpine tag, which is at version 1.0.0.

     

  4. Is there any chance we can get untelegraf updated to the latest version? I'm running into an issue with it outputting metric to influxDB. I found the following post which pretty much describes the change that was made....

     

    https://github.com/influxdata/influxdb/issues/7242

     

    Thanks for the heads up, the latest tag for that repo was still on 0.13.2. I switched it to use tag telegraf-1.0. You can refresh community apps or you can manually change the repo (use the advanced view) to appcelerator/telegraf:telegraf-1.0.

  5. Hey there, this is great. I would like to get started on building a Grafana dash for unRAID that records historical data - this seems to be ideal for doing this.

     

    atribe perhaps you should get a repository for peoples templates here and maybe a small how-to guide? :)

     

    A how to guide would probably be a good idea. I'll see if I can come up with something soon.

  6. Overview: Support for Docker images from atribe's repo.

     

    Tutorial to use Grafana, Influxdb, and Telegraf in unRAID by PanzerschreckGER.

     

    Influxdb:

    Application: https://influxdata.com/

    Docker Hub: https://hub.docker.com/_/influxdb/

    GitHub: https://github.com/influxdata/influxdb

     

    Grafana:

    Application: http://grafana.org/

    Docker Hub: https://hub.docker.com/r/grafana/grafana/

    GitHub: https://github.com/grafana/grafana

     

    Glances:

    Application: https://github.com/nicolargo/glances

    Docker Hub: https://hub.docker.com/r/nicolargo/glances/

    GitHub: https://github.com/nicolargo/glances

     

    apt-cacher-ng:

    Application:  https://www.unix-ag.uni-kl.de/~bloch/acng/

    Docker Hub: https://hub.docker.com/r/sameersbn/apt-cacher-ng/

    GitHub: NA

     

    untelegraf:

    Application:  https://influxdata.com/time-series-platform/telegraf/

    Docker Hub: https://hub.docker.com/r/appcelerator/telegraf/

    GitHub: https://github.com/influxdata/telegraf

     

    telegraf:

    Application:  https://influxdata.com/time-series-platform/telegraf/

    Docker Hub: https://hub.docker.com/_/telegraf/

    GitHub: https://github.com/influxdata/telegraf

    Note: You will need to place your own configuration file at /mnt/user/appdata/telegraf/telegraf.conf or the container will not start.

     

    mineos-node:

    Application: https://minecraft.codeemo.com/mineoswiki/index.php

    Docker Hub: https://hub.docker.com/r/hexparrot/mineos/

    GitHub: https://github.com/hexparrot/mineos-node

     

    hddtemp:

    Application: https://linux.die.net/man/8/hddtemp

    Docker Hub: https://hub.docker.com/r/drewster727/hddtemp-docker/

    GitHub: https://github.com/Drewster727/hddtemp-docker

     

    apcupsd-influxdb-exporter

    Application: https://github.com/atribe/apcupsd-influxdb-exporter

    Docker Hub: https://hub.docker.com/r/atribe/apcupsd-influxdb-exporter

    Github: https://github.com/atribe/apcupsd-influxdb-exporter

     

    Credit: I didn't create any of these applications or images, I just created the xml template.

     

    Changelog:
    2016-08-31 - Added Glances and Apt-cacher-ng.
    2016-09-02 - Added Influxdb and Grafana.
    2016-09-06 - Added Telegraf that uses environment variables.
    2016-09-11 - Added standard Telegraf.
    2016-09-24 - Added Node.JS MineOS.
    2017-11-10 - Added link to tutorial for telegraf, influxdb, and grafana.
    2018-05-26 - Added hddtemp
    2019-01-22 - Added apcupsd-influxdb-exporter
     
    • Upvote 2
  7. @majestic I've attached a screenshot of my grafana query. In short it is simply plotting the usage of /mnt/user.

     

    I also get the error you've seen, but its only there until the page finishes loading all of the metrics. I've seen some of the gauge panels not work after I've edited them until I save, go to a different dashboard and then go back.

     

    Also, I fixed my network output by changing this docker container from --net="bridge" to --net="host".

     

    unRAID-Array-Usage.PNG.b1cdfd9d06495bc90791bf3e344a4a4e.PNG

  8. This is my docker run command:

    docker run -d --name="telegraf" --net="bridge" --privileged="true" -e HOST_PROC="/rootfs/proc" -e HOST_SYS="/rootfs/sys" -e HOST_MOUNT_PREFIX="/rootfs" -e HOST_ETC="/rootfs/etc" -e TZ="America/Denver" -v "/mnt/user/appdata/telegraf/telegraf.conf":"/etc/telegraf/telegraf.conf":ro -v "/proc":"/rootfs/proc":ro -v "/":"/rootfs":ro -v "/var/run/docker.sock":"/var/run/docker.sock":ro -v "/sys":"/rootfs/sys":ro -v "/etc":"/rootfs/etc":ro telegraf

     

    This requires you to put in your own telegrafl.conf file at /mnt/user/appdata/telegraf/telegraf.conf

     

    This has been working for me. The only thing that doesn't look right is my network sent and received. Haven't figured that out yet. But everything else is accurate.

    unraid-dashboard.png.87c4a2dcab7a6d0b9807312810de1e94.png

  9.  

    I haven't seen that post. My google fu is apparently lacking. That looks like a promising solution. Going to try that tonight.

     

    Yup, that fixed it. As a tip to future peoples, the line you need to add (in red in the post) is to /boot/syslinux/syslinux.cfg. The underlined red text hides that there is an underscore, so the red text is mpt3sas.msix_disable=1.

     

    Thanks for the help!

  10. I am running unRAID in ESXi 6 update 2. i5-6600, Z710A SLI Plus motherboard.

    I had the M1015 flashed to p20 (newest IT mode firmware) with no LSI BIOS.

     

    Problem: No drives are available in unRAID.

    The drives are available in the LSI BIOS (flashed one on the card to check).

    The drives are available in ESXi when the card is not set for passthrough.

    The drives are available in a Windows 10 VM with the card passed to the vm.

     

    This means the cables I have are correct. The card works.

     

    What I've tried:

    1. I followed the instructions in the LSI Controller FW update post (http://lime-technology.com/forum/index.php?topic=12767). I flashed the LSI MegaRAID to SAS2008(P11).zip No luck same as the p20 firmware i had on the card.

    2. I've tried swapping the PCI-E slot the card is installed in, no luck.

    3. I've passed through a old jmicron pci-e sata card to unraid and it could see those hard drives.

    4. Changed the passthrough order so the LSI card would have a differnet pcie id (whatever those are called).

    5. Tried the 6.2 beta version and that didn't change anything.

    6. Tried booting from plop boot manager and from the prepared vmdk.

     

    I am all out of things to try. Anyone have any more places I can look?

     

×
×
  • Create New...