ZABBIX Macros Support
HTML-код
- Опубликовано: 19 окт 2024
- How to use Context Macro support with ZABBIX and Low-level discovery rules, to specify different trigger thresholds to discovered entities
☕ In case if you want to support this content with coffee:
☕ www.buymeacoff...
👋 SOCIAL MEDIA
📹 TWITTER - @RealDeimons
🔔 INSTAGRAM - / dmitrylambert
📫 Sign Up For Newsletter And Don't Miss Out on Anything
📫 tinyurl.com/4s...
► Grab your Monitoring Love Merchandise - teespring.com/stores/monitoring-it
Wow I am blown away , especially now that I am playing around with expressions and triggers on templates / macros (Thank you for sharing that) , you have such an amazing way of explaining the content thank you once again for a stunning vid , I am currently looking at a nuisance trigger - the CPU trigger is above 75 % for 10 minutes (and the event lasts normally 18 min then stabilizes , but is when the house keeper starts ) and I having little trouble writing the correct expressions , I just need to do a lot more reading and understand what it is that I want to achieve as with your drawing (false positives verses false negatives), Have a great day and thanks again for your content :-) best regards Lance
Say i have a password that expires after 2 days, and i have a query on the server that updates it automatically, and saves it to a file ( via cron). Is there a way to read the file and set the password as a macro? and it keeps getting updated everytim the password changes? This is for an external webhook parameter in "Media Type".
Thanks for sharing !! Great one
Books About Zabbix
Amazon COM
► Zabbix 4 Network Monitoring 3rd Edition amzn.to/2Ra7XDE
► Zabbix Network Monitoring 2nd Edition amzn.to/2DQLWqI
Amazon UK
► Zabbix 4 Network Monitoring amzn.to/2G7BCey
► Mastering Zabbix - Second Edition amzn.to/306Ru86
Amazon DE
► Zabbix 4 Network Monitoring amzn.to/2FYg3NU
► Zabbix Cookbook amzn.to/3iXuqQK
Hi,
For C drive we will get alert for 60 and 20 as well right?
Thank you been teching myself Zabbix for a while now and your lessons here are excellant. I have been trying this out and came across an issue I want to do Freespace Trigger so if c Drive is less than 1GB set off trigger but this issue I have is what units to put in Macro with % its easy it just % valve but with space it units are B and when I look at lateat data its in MB or GB so When i go to add a valve in {$LOWSPACE}= 1GB or 1024MB or 1073741824B not sure any advise?
In bytes. Latest data shoes as mb gb etc because od units used in item. But units are used only for a visualization
Hello, is it possible to set one macro for several FS at once, example: {$MAXSIZE:[/opt|/tmp]} ?
No. one value per macro
Please create video to import template for hp3par storage , Ms SQL monitoring and Zimbra email service monitoring in zabbix
By the way it is not so clear for me why on 11:59 macros {$LOWSPACE: "D: "} will return 20? There is no such macros, why your expression will return (you say that) "default value"?
because, there is no user macro {$LOWSPACE: "D: "} , and if there is no such value it will use value from user macro {$LOWSPACE}
@@zabbixtraining Hi, don't understand too on my side, the macro should be {$LOWSPACE: "D: "} and not {$LOWSPACE}, so this trigger doesn't work bc it doesn't exists?
I want to create a LLD for windows processes (example: chrome.exe, explorer.exe, etc). How can this be done without manually adding each program?
Windows proceses, or services? For a second there is low level discovery rule in official windows monitoring template.
Dmitry Lambert processess
@@PaperTowelSauce It would require to write your own LLD rule, or create items manually.
Can you use macros to find specific services such as Skype?
I don't think that that's the case for user macros.
How can I create low level discovery which will create trigger for specific values of discovery elements and will not create it for others?
Do you mean simply ignore some discovered entities and don't create triggers for them at all?
@@zabbixtraining yes, ignore some and don't create trigger at all. I assume that I can create always negative expression for trigger, but this is a waste of power. So I have to create lots of similar LLD for this.
There is Filter tab in LLD configuration, where u can filter discovered entities by regexp. As example {#FSNAME} matches C:|D:. LLD will process only for matched values. Anything else will be ignored
I know this feature. Ok, I mean what if I want to discover all disks and create trigger only for disk C, but add all the metrics for another disks?
There is no native feature for this. I would create two LLD rules. First to create items for everything, second to create triggers with Filter to exclude unwanted ones.
Awesome :)
Thank you!