Hi there
I have some performance issues with a host where many Items with System.run keys with powershell calls are used.
Full Story:
I inherited the Zabbix server in our company.
Saw that there are around 100 items implemented (passiv/active agents to see if it makes a difference, which it does not) which use system.run to run powershell scripts. (system.run[powershell.exe -command D:\Zabbix-Monitoring\Scripts\Do_something.ps1] )
Within the latest data of these Items i saw that the data quality isn't good. Nearly none of these items show data in the configured item interval.
Then i started to create nodata trigger so i get informed what items have problems with their current interval.
No i know, nearly none of these items are working as expected.
We got some Items with a configured 1 minute interval but these give data only around every 4-5 minutes.

We also got items with 5 minutes interval that only give data ~15minutes.
I think this all stacks together. So one item is slowing out the next one, this stacks up, the sometime the items got killed because they take to long then you won't get a delayed value but none at all, etc..
So can someone tell me what is wrong and how to work on this?
What kind of limitation is there for System.run with powershell scripts?
From the Host it does not look like it's a performance issue. CPU is mostly ideling, also there are only a handfull powershell processes running at most. - why doesn't it start up 50 powershell processes when 50 items are set to run every minute?
Does zabbix queue this up somehow and then working it sequencialy?
What is best practice for using custom powershell scripts?
Whats to much for one host?
We have to do a lot of custom checks for all king of application monitoring, so we have to get arround these limitations somehow, or distribute the load to other servers or something.
But therefore i need to know where are the limits, so we can monitor this as well and don't run into troubles in the future.
Unfortunately we are currently still using Zabbix 4.0.14
But we are in the state of migrating to zabbix 6 (maybe this can solve something?)
Hopefully someone can shed some light on these topic.
BR
I have some performance issues with a host where many Items with System.run keys with powershell calls are used.
Full Story:
I inherited the Zabbix server in our company.
Saw that there are around 100 items implemented (passiv/active agents to see if it makes a difference, which it does not) which use system.run to run powershell scripts. (system.run[powershell.exe -command D:\Zabbix-Monitoring\Scripts\Do_something.ps1] )
Within the latest data of these Items i saw that the data quality isn't good. Nearly none of these items show data in the configured item interval.
Then i started to create nodata trigger so i get informed what items have problems with their current interval.
No i know, nearly none of these items are working as expected.
We got some Items with a configured 1 minute interval but these give data only around every 4-5 minutes.
We also got items with 5 minutes interval that only give data ~15minutes.
I think this all stacks together. So one item is slowing out the next one, this stacks up, the sometime the items got killed because they take to long then you won't get a delayed value but none at all, etc..
So can someone tell me what is wrong and how to work on this?
What kind of limitation is there for System.run with powershell scripts?
From the Host it does not look like it's a performance issue. CPU is mostly ideling, also there are only a handfull powershell processes running at most. - why doesn't it start up 50 powershell processes when 50 items are set to run every minute?
Does zabbix queue this up somehow and then working it sequencialy?
What is best practice for using custom powershell scripts?
Whats to much for one host?
We have to do a lot of custom checks for all king of application monitoring, so we have to get arround these limitations somehow, or distribute the load to other servers or something.
But therefore i need to know where are the limits, so we can monitor this as well and don't run into troubles in the future.
Unfortunately we are currently still using Zabbix 4.0.14
But we are in the state of migrating to zabbix 6 (maybe this can solve something?)
Hopefully someone can shed some light on these topic.
BR

It is clearly seen here, that your chosen way does not work very well (and it really has nothing to do with Zabbix itself, but the way windows starts things and manages them)... You should try better approach and sender is more efficient here.
Comment