September 4, 20196 yr 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): The following screen will load: 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 Edited April 22, 20215 yr by HNGamingUK
September 9, 20196 yr Hi, just tried this out but can´t seem to get my disks visible in Zabbix. Would also like it to monitor my network on unRAID server but that is not showing either. Everything else that is important seems to be monitored nice thou. I followed your instructions with adding disks and maked sure the docker was previleged. Maybe I use the wrong template (Template OS Linux), which template do you use in Zabbix?, Thanks for the docker, great to finally have a zabbix agent in unRAID Edited September 9, 20196 yr by Sic79
September 9, 20196 yr Author 50 minutes ago, Sic79 said: Hi, just tried this out but can´t seem to get my disks visible in Zabbix. Would also like it to monitor my network on unRAID server but that is not showing either. Everything else that is important seems to be monitored nice thou. I followed your instructions with adding disks and maked sure the docker was previleged. Maybe I use the wrong template (Template OS Linux), which template do you use in Zabbix?, Thanks for the docker, great to finally have a zabbix agent in unRAID Hello, Reading through your reply I can confirm the template I use is "Template OS LInux" However one thing to note is that filesystem and networking is done under discovery. (by default Zabbix does discovery every 1hr) If you would like to force a discovery check then you can do the following from the Zabbix WebUI Configuration > Hosts > Select relevant host > Discovery rules You should then see the below: You can then click the relevant box for your rule you want to force check (In your case I would just select both) Once selected you can click the check now button. This will force Zabbix to complete a discovery check on your host. Please do let me know if this works 😉 Edited September 9, 20196 yr by Conmyster
September 9, 20196 yr Hello, Reading through your reply I can confirm the template I use is "Template OS LInux" However one thing to note is that filesystem and networking is done under discovery. (by default Zabbix does discovery every 1hr) If you would like to force a discovery check then you can do the following from the Zabbix WebUI Configuration > Hosts > Select relevant host > Discovery rules You should then see the below: You can then click the relevant box for your rule you want to force check (In your case I would just select both) Once selected you can click the check now button. This will force Zabbix to complete a discovery check on your host. Please do let me know if this works [emoji6] Ok, thanks for helping [emoji4]. I checked the settings now under discovery rules. And both of them says “Not supported”. And then there is a info box why it’s not working. It says “Cannot find the “data” array in the recieved JSON object.” Does that error say something to you? Edit: My Zabbix version is 4.0.8
September 9, 20196 yr Author 46 minutes ago, Sic79 said: Ok, thanks for helping . I checked the settings now under discovery rules. And both of them says “Not supported”. And then there is a info box why it’s not working. It says “Cannot find the “data” array in the recieved JSON object.” Does that error say something to you? Edit: My Zabbix version is 4.0.8 Ah in which case that last part would make more sense as to why this does not work. The agent provided is using the latest tag, and the latest tag currently is Agent version 4.2, which isn't backwards compatible with 4.0.* I would suggest updating your Zabbix server to 4.2 minimum and it should work. (My Zabbix Server is on 4.2.6) Sorry for not making this clear in the main thread, as such I have updated the main thread post stating that this is Agent 4.2 and the minimum sever version. Edited September 9, 20196 yr by Conmyster
September 9, 20196 yr Ah in which case that last part would make more sense as to why this does not work. The agent provided is using the latest tag, and the latest tag currently is Agent version 4.2, which isn't backwards compatible with 4.0.* I would suggest updating your Zabbix server to 4.2 minimum and it should work. (My Zabbix Server is on 4.2.6) Sorry for not making this clear in the main thread, as such I have updated the main thread post stating that this is Agent 4.2 and the minimum sever version. Ah great, will try and update the server tomorrow. I’ll let you know if all is well after that . Thanks!
September 10, 20196 yr 11 hours ago, Conmyster said: Ah in which case that last part would make more sense as to why this does not work. The agent provided is using the latest tag, and the latest tag currently is Agent version 4.2, which isn't backwards compatible with 4.0.* I would suggest updating your Zabbix server to 4.2 minimum and it should work. (My Zabbix Server is on 4.2.6) Sorry for not making this clear in the main thread, as such I have updated the main thread post stating that this is Agent 4.2 and the minimum sever version. Updated server to 4.2 now and it worked instant Now it would be nice if someone converted "Zabbix Server" to Docker also Great work on this docker, thank you very much.
November 12, 20196 yr On 9/10/2019 at 4:12 AM, Sic79 said: Now it would be nice if someone converted "Zabbix Server" to Docker also I was going to ask if anyone had any experience running Zabbix Server in a Docker container (or VM) on unRAID....
November 12, 20196 yr I was going to ask if anyone had any experience running Zabbix Server in a Docker container (or VM) on unRAID....I run Zabbix in a VM and it works as it should.
November 14, 20196 yr On 11/12/2019 at 11:53 AM, Sic79 said: I run Zabbix in a VM and it works as it should. Okay, good to know. Do you know of any decent guides for setting it up by any chance? Or can you tell me what sort of resources you have assigned to the VM (like CPUs and RAM)?
November 15, 20196 yr On 11/14/2019 at 5:41 AM, xthursdayx said: Okay, good to know. Do you know of any decent guides for setting it up by any chance? Or can you tell me what sort of resources you have assigned to the VM (like CPUs and RAM)? I just used a Debian distro and installed Zabbix as usual, there are many guides on how to install if you google. And I gave the VM 1 Core and 2GB RAM (maybe 1GB is enough, I have alot of right now so), hope it helps you out?
November 15, 20196 yr 5 hours ago, Sic79 said: I just used a Debian distro and installed Zabbix as usual, there are many guides on how to install if you google. And I gave the VM 1 Core and 2GB RAM (maybe 1GB is enough, I have alot of right now so), hope it helps you out? Thanks!
February 12, 20215 yr Hey Y'all! I just stumbled upon this.... I'm going to test out the Zabbix agent on my unraid. But can anyone share if they had any issues with it or their review of it?
Archived
This topic is now archived and is closed to further replies.