Ad Widget

Collapse

Understand Zabbix basics

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • schoeppi
    Member
    • Jan 2024
    • 31

    #1

    Understand Zabbix basics

    Hello,

    We would like to introduce Zabbix as monitoring solution in our company. I think I already understand some things, but unfortunately some things about Zabbix are still completely unclear to me and I can't find any understandable instructions on the internet.

    As a first attempt, I installed Zabbix 6.4.10 via Docker, equipped some hosts with Agent 2 and activated active checks, added some hosts in Zabbix and linked them to the template for active Linux server checks. The hosts are now being monitored and everything looks good at first.

    However, once an hour, the load on a host briefly exceeds the value specified in the template for the active Linux server checks, and a problem is generated. To set this as an exception for this one host, I did the following:

    - I grabbed the corresponding macro from the template for the active Linux server checks, i.e. {$LOAD_AVG_PER_CPU.MAX.WARN}.
    - I then saved this macro as a user macro for the host that has the load problem once an hour, but I increased the value 1.5, which is saved in the template by default, to 3.0.

    The problem no longer occurs or only causes a problem if the load permanently increases to over 3.0. That's exactly what I want, but now I'm wondering whether this is how it should be done and whether this procedure is correct and if the user macro survives Zabbix upgrades, changes to the templates, etc. So can I do it this way and is this the right approach?

    I would also like to monitor by default for all of our Linux hosts whether they can be reached on ports 22 and 25. To do this I would do the following:

    - I create a new template and store the necessary triggers etc. there to monitor ports 22 and 25. I think I know how to do that ;-).
    - I then assign this own template to our Linux hosts.
    - If additional ports are added for the Linux hosts that I want to monitor by default, I adapt the template accordingly.

    Would this be the correct approach and have I correctly understood the process of how to do such things correctly in Zabbix?

    Creating hosts in Zabbix, providing them with templates, etc. is all very easy and you can find a lot of documentation about it, but on the other hand I can't find anything understandablee about the questions above on the internet. How and where do you look to get information for such questions and to get the processes, how Zabbix works and how to configure it correctly?

    Ciao and thank you in advance for any support,

    Schoepp
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2

    Will host macros survive updates/upgrades? Yes. It is all kept in DB. Also template updates will not remove any host macros..
    Is it correct way... yes, for adding exceptions, it is ok.

    I have always considered better to create your own set of templates with only those things that you need. OOB templates are good for starting, they display multiple different ways to trigger things etc... but at one point they may be not enough or sometimes gather too much info (like all the service monitoring etc. what you usually do not need), or calculation methods are not exactly those what you may need etc..
    So the question about ports monitoring, yes, that's how you do it.. create your own template, assign to required hosts and update as needed...

    Comment

    Working...