HNGamingUK Posted September 4, 2019 Share Posted September 4, 2019 (edited) 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, 2021 by HNGamingUK 1 Quote Link to comment
Sic79 Posted September 9, 2019 Share Posted September 9, 2019 (edited) 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, 2019 by Sic79 Quote Link to comment
HNGamingUK Posted September 9, 2019 Author Share Posted September 9, 2019 (edited) 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, 2019 by Conmyster Quote Link to comment
Sic79 Posted September 9, 2019 Share Posted September 9, 2019 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 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 Quote Link to comment
HNGamingUK Posted September 9, 2019 Author Share Posted September 9, 2019 (edited) 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, 2019 by Conmyster 1 Quote Link to comment
Sic79 Posted September 9, 2019 Share Posted September 9, 2019 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! Quote Link to comment
Sic79 Posted September 10, 2019 Share Posted September 10, 2019 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. Quote Link to comment
xthursdayx Posted November 12, 2019 Share Posted November 12, 2019 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.... Quote Link to comment
Sic79 Posted November 12, 2019 Share Posted November 12, 2019 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. Quote Link to comment
xthursdayx Posted November 14, 2019 Share Posted November 14, 2019 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)? Quote Link to comment
Sic79 Posted November 15, 2019 Share Posted November 15, 2019 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? Quote Link to comment
xthursdayx Posted November 15, 2019 Share Posted November 15, 2019 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! Quote Link to comment
guruleenyc Posted February 12, 2021 Share Posted February 12, 2021 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? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.