Jump to content
Conmyster

[Support] Conmyster - Zabbix Agent

10 posts in this topic Last Reply

Recommended Posts

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

Edited by Conmyster

Share this post


Link to post

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 by Sic79

Share this post


Link to post
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:

714442497_discoveryrules.thumb.PNG.62f835f6a94fe68db096fe6fc1eb6ac3.PNG

 

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 by Conmyster

Share this post


Link to post
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:

714442497_discoveryrules.thumb.PNG.62f835f6a94fe68db096fe6fc1eb6ac3.PNG

 

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

Share this post


Link to post
46 minutes ago, Sic79 said:

 

Ok, thanks for helping emoji4.png.

 

 

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 by Conmyster

Share this post


Link to post
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!

Share this post


Link to post
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.

Share this post


Link to post
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....

Share this post


Link to post
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.

Share this post


Link to post
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)?

Share this post


Link to post

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.