HNGamingUK

Members
  • Posts

    134
  • Joined

  • Last visited

Posts posted by HNGamingUK

  1. Hello,

     

    I am unsure if this feature has already been requested somewhere (Searched through a bit around the forum)

     

    As the title suggests, I am not at this stage yet to need clustering of UnRAID servers.

     

    However I would like this feature to become a reality.

     

    Having the ability to quickly setup 2 or more servers and run them in a cluster would be great. I know GlusterFS is a thing, although it does require more user knowledge and understanding.

     

    Addition:

    - Possibly in addition to the above feature, it would be nice to be able to add more than 28 data drives.

    • Like 1
  2. On 9/4/2019 at 10:55 PM, jonathanm said:

    That wasn't quite the point. Do those extra drives show up in /mnt at the unraid terminal after the docker is running? Whether or not they show up as drives to Zabbix isn't material to the question asked.

     

    The issue is that if for instance you don't have a /mnt/disk10, when you start the docker with a /mnt/disk10 host path defined it can create /mnt/disk10 on the host, but there isn't an actual disk there, so it ends up being a path in RAM, which looks and acts similar to a real drive to someone perusing the file system on the host unraid.

    Ah so I see now, I ran ls /mnt on my unraid terminal, docker did create /mnt/diskX

     

    I have changed the XML now and users will have to manually add their disks if they would like them to be monitored. In addition I have also added a guide to the support thread to show users how to add a disk for monitoring.

     

    Edit:

    This thread can be closed!

     

    Support Thread:

     

    • Like 1
  3. 5 minutes ago, Squid said:

    One problem with adding all of the mounts is that IIRC the docker system will automatically create the paths and they will wind up in RAM if they dont get deleted from when the user adds the template. Not sure how the user share system will respond to that.

    But, fix common problems has had a test in place for this situation for quite awhile

    Sent from my NSA monitored device
     

    My docker I created has all 30 disks and cache added like my XML template.

     

    I have not noticed any large spikes in RAM. The current RAM usage of my Zabbix Agent docker is hovering around 6.8MB - 7.2MB

  4. On 9/3/2019 at 2:28 PM, jimmysq1 said:

    Thanks for your advice, jonathanm. I'm going to think on this for a bit and figure out my next move.

     

    Cheers!

    With your current setup, it would be difficult to utilize the 8 drives.

     

    Depending on how much money you have available to spend then, you could possible by some parts and build a new unit.

     

    Although again this depends on how much money you have available and are willing to spend.

     

    If you would like some help in deciding parts (with a price goal) then I am (or anyone else I expect) will be happy to help.

  5. 3 minutes ago, dalben said:

    That could be an option after it populates the installed date. I have a few disks lying around that I use when I lose a disk. Knowing when it entered the array would be handy. Maybe even a history. Disk xxx was installed unassigned xx date, added to array xx date. 

    A log of of disk install etc would be nice to see as well, instead I am guessing currentlu buried in the system logs.

  6. DEPRECATED:

    Due to multiple reasons I have decided to no longer up-keep this template. It will be removed from CA soon also.

     

    Overview: Support for my Docker template of the zabbix-agent container

    Application: Zabbix-Agent - https://www.zabbix.com/

    DockerHub: https://hub.docker.com/r/zabbix/zabbix-agent

    Agent Version: 4.2

    Minimum Server Version: 4.2

     

    Before using this docker please make sure you have a Zabbix Server (optional to have Proxy as well) setup. In addition you should have a basic understanding of Linux.

     

    In case anyone is wondering, yes privileged mode does need to be left as enabled. This allows the agent to see system resources See the below exert directly from the official Zabbix DockerHub:

     

    "By default, Docker containers are "unprivileged" and do not have access to the most of host resources. Zabbix agent is designed to monitor system resources, to do that Zabbix agent container must be privileged..."

     

    Adding Disks for Monitoring:

     

    At the bottom of the docker configuration you will see this (click it):

    1970072561_AddPath.PNG.e1df70497f24e644d0da13228838ee20.PNG

     

    The following screen will load:

    726749541_AddConfig.PNG.c61544f0af7f36feee733901f618da61.PNG

    When filling in the above make sure "Path" is selected from the drop down.

    - Name can be anything you want to call it, I would suggest calling the name of the disk

    - Container Path should be /mnt/[name of drive] example /mnt/disk1

    - Host Path should be same as Container Path

    - Access Mode can be just Read Only

    - Description can be left

    - Now click Add

    • Like 1
  7. 12 hours ago, ucrbuffalo said:

    +1

     

    I know you added this request a long time ago now, but I had just found that when you click on the disk, there is a section at the bottom where you can manually input the manufacturing date, date of purchase, and the warranty. I just want it to automatically put a date there for the first day that drive's serial was seen by Unraid.

    The issue being that the manufacturing date,date of purchase and warranty end are generally different and I would say be best for the user to manually edit.

     

    However what would be nice is.. When you install a new drive a popup window is opened and asks you to enter these details.

  8. Okay so after a quick test:

     

    I added /mnt/disk6 and /mnt/disk7 as paths within the Zabbix Agent docker (My server has no disk6 or disk7 installed).

     

    I then ran a manual discovery check within Zabbix and as hoped it only found the actual disks that are there.

     

    This means I expect the best method would be to create the template with the 30 disks max and the 1 cache. If @trurl could provide some assistance on how to and where to submit a template I would be happy to create it.

  9. Just now, trurl said:

    CA doesn't really have that ability. It just takes the templates that have already been prepared and launches the Add Container page with the template. That page uses the template to fill in the fields for volume mappings, etc. Since your template would have an unknown number of optional volume mappings, those fields couldn't be part of the template and would have to be left to the user to fill in.

     

    I am not familiar with this application, but all of the disks are under /mnt. Also under /mnt are /mnt/user, the user shares, /mnt/user0, the user shares excluding data still on cache, and /mnt/disks, where Unassigned Devices mounts things. If you just map /mnt instead of each disk individually, would that work and be useful?

    The issue with adding /mnt to the agent docker is that it would calculate the total, used and free space of everything inside of it and would treat /mnt as one device.

     

    The issue with this is that each user share is in /mnt as well as cache and the disks.

     

    I guess a template could be made with a default of x amount of disks and cache added. I am unsure on how Zabbix would treat a disk that isn't actually there. (I will have to test this.)

  10. 13 minutes ago, trurl said:

    I closed the poll. I can move this thread but not sure where it should go. If @Conmyster wants to put a little more effort into getting a CA conformant template and agrees to support it we could move it to Docker Containers.

    @trurl Personally I would do if I knew how to...

     

    If it came from CA then I would like it to have the ability to auto add the disks (or allow user to choose which disks to add). This way it is less of a manual task for the user.

  11. So it seems that with doing a bit more of a play around I can get the docker Zabbix Agent to work.

     

    See the image attached.

     

    As you can see to add disks it is a bit of a manual task each disk has to be added as a path to the docker.

     

    The only trigger within Zabbix I had to disable for my unraid server was "Lack of Swap" as it seems unraid does not make use of swap memory.

    Zabbix Agent.PNG

  12. 21 minutes ago, itimpi said:

    UnRAID is based on Slackware so the way to do this would be to create a Slackware VM and then follow the instructions to create a statically linked version of the agent from the sources that would result in a binary that can run on Unraid.   There are also some users that need to be created and these should probably be redone on each boot.   Thinking about it this could be done using the User Scripts plugin with a simple script set to run on first array start rather than writing a separate plugin.

     

    I already have a Slackware VM for other reasons, so if I can find some time I might have a go at doing this myself.

    Ok great to hear! In the mean time I may take more of a deep dive to try and get the disks seen by the docker container version of the agent.

     

  13. 3 minutes ago, itimpi said:

    I had a quick look at the documentation and it looks like support could be added without getting Limetech involved at all.  
     

    It is surprising that you could not get the agent installed as a docker as that seems to be supported.     However I could see it being tedious to configure as it appears you would have to pass through every disk to be monitored with its own volume mapping.    However it should be relatively easy to compile a version of the agent to be installed via a plugin if the docker approach cannot be made to work sensibly.

     

    If you also wanted the server component then I assume the easiest way to do that would be as a docker container.

    Myself I only need the agent as I run the sever in a VM on my Proxmox Environment.

     

    When you say "relatively easy" to compile a version of the agent to be a plugin. How easy would that be? As I am not overly confident when it comes to coding/scripting.

     

  14. 6 minutes ago, itimpi said:

    What needs to be built in at the kernel level for this (as Limetech would need to provide this).  The remainder could then be provided as a plugin/docker so that it can be de-coupled from the core Unraid product.   Doing it that way is more likely to get acceptance as it keeps to a minimum what Limetech has to actually directly deliver and support.

    I did attempt to use the Zabbix Agent docker (in privileged mode) how ever it was not able to detect the disks etc. Not to mention it was not getting all the data like a direct Zabbix Agent would get.

  15. 28 minutes ago, jonathanm said:

    For those of us who have never heard of Zabbix, perhaps it would be in your best interest to describe things a bit more. If you put forward a compelling case as to why we should want it, you may get more interest.

     

    My first thought is "Why should I care about Zabbix?" If you can answer that in a way that makes someone want to start using it, you will get a better response.

     

    Or, perhaps I'm just a luddite and everyone who is cool already knows and uses Zabbix. In that case, never mind.

     I have edited my main post, hopefully this helps and thanks for the suggestion.

  16. As you can see from the title, my request is to either add or add the ability to add the Zabbix Agent.

     

    I run a Zabbix Server and although I currently use the SNMP plugin to be able to gather data from my unRAID server, I would rather be able to use the Zabbix Agent.

     

    I have added a Poll to see how many people want this added as a feature.

     

    EDIT: Thanks for the suggestion jonathanm. So Zabbix is a monitoring tool that allows you to monitor network connected devices. It allows you to see data such as CPU usage, RAM usage and Storage usage, within a unified platform.

     

    You can also setup triggers and message notifications of issues (eg High CPU, device down, port down, etc). For my setup I have multiple VMs running and recently it allowed me to see (due to a alert/trigger) that my VM was using a lot of its swap space. This then allowed me to investigate and find out what was causing the issue.

     

    I hope this helps you understand what Zabbix is and does.

  17. +1 I would love a better login method. The current basic Auth is well basic and it being the first thing you see before the great dashboard it puts a downer to it imho.

     

    Would love to see a new designed login page.

    • Upvote 1