this post was submitted on 19 Jul 2023
29 points (96.8% liked)

Selfhosted

40183 readers
770 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I use some batch scripts in my proxmox installation. They are in cron.hourly and daily checking for virus and ram/CPU load of my LXC containers. An email is send on condition.

What are your tipps or solution without unnecessary load on disc io or CPU time. Lets keep it simple.

you are viewing a single comment's thread
view the rest of the comments
[–] NonDollarCurrency@monero.town 2 points 1 year ago (1 children)

I use zabbix to monitor everything, agent on each device uses around 30 mb of memory and with the Linux templates it can monitor just about everything on the server.

[–] Fermiverse@kbin.social 2 points 1 year ago (3 children)

Does zabbix use a database continuously polling and storing data or is live data used for indication and/or triggers?

[–] ThorrJo@lemmy.sdf.org 2 points 1 year ago

Not the above guy but I believe it's a database.

[–] packetloss@lemmy.world 2 points 1 year ago

Zabbix stores all it's data in a PostgreSQL or MySQL database. However.... there are 2 ways that Zabbix Agents work. Either in passive mode, or in active mode.

Passive Agent = "poller" process on the Zabbix server sends a request to the agent asking for values for the items it's monitoring (based on template applied to host). Depending on the number of hosts you're monitoring and how many poller processes are configured to start with the Zabbix server, you may run into a situation where requests are queued because the poller process is too busy. Increasing the number of poller processes will fix this, but it also adds additional load to your DB as each poller process will connect to your DB to write data, and each poller process will consume a certain amount of memory. Too many and you'll run out of RAM, or bog down your DB.

Active Agent = "trapper" process on the Zabbix server listens for item values from being sent to it from the agents. Agents will query the Zabbix server to see what templates are applied to it's host, and will figure out what items it's supposed to monitor. The agent will actively query the items without the Zabbix server requesting it, and will send the item values to the server as scheduled. This puts a lot less load on the Zabbix server.

Item values are not read from the DB to activate the trigger. When a value is received that matches the trigger's expression, then the trigger is activated. Live values are used to activate triggers and trigger actions (alerts).

[–] SheeEttin@lemmy.world 1 points 1 year ago