Closed K0nne closed 3 years ago
Hello @K0nne, Thank you for the report. The plugins are not too slow but the command Use-Icinga
. If you always run the plugins with Use-Icinga
in front of them, they will of course be slower because this command has to load the whole Icinga powershell framework before the plugins are executed. In comparison to your test results, my test results look like this. It can also be a bit slower with you, because you surely have more VMs and snapshots lying around than I do, but they are not that slow.
icinga> measure-command { return Invoke-IcingaCheckHyperVOverCommitment}
Days : 0
Hours : 0
Minutes : 0
Seconds : 2
Milliseconds : 96
Ticks : 20967194
TotalDays : 2,42675856481481E-05
TotalHours : 0,000582422055555556
TotalMinutes : 0,0349453233333333
TotalSeconds : 2,0967194
TotalMilliseconds : 2096,7194
icinga> measure-command { return Invoke-IcingaCheckHyperVVMHealth}
Days : 0
Hours : 0
Minutes : 0
Seconds : 3
Milliseconds : 506
Ticks : 35066777
TotalDays : 4,05865474537037E-05
TotalHours : 0,000974077138888889
TotalMinutes : 0,0584446283333333
TotalSeconds : 3,5066777
TotalMilliseconds : 3506,6777
icinga> measure-command { return Invoke-IcingaCheckHyperVHealth}
Days : 0
Hours : 0
Minutes : 0
Seconds : 0
Milliseconds : 754
Ticks : 7540682
TotalDays : 8,7276412037037E-06
TotalHours : 0,000209463388888889
TotalMinutes : 0,0125678033333333
TotalSeconds : 0,7540682
TotalMilliseconds : 754,0682
icinga> measure-command { return Invoke-IcingaCheckHyperVVirtualSwitches}
Days : 0
Hours : 0
Minutes : 0
Seconds : 0
Milliseconds : 665
Ticks : 6652038
TotalDays : 7,69911805555556E-06
TotalHours : 0,000184778833333333
TotalMinutes : 0,01108673
TotalSeconds : 0,6652038
TotalMilliseconds : 665,2038
icinga> measure-command {return Invoke-IcingaCheckHyperVSnapshot}
Days : 0
Hours : 0
Minutes : 0
Seconds : 6
Milliseconds : 155
Ticks : 61551822
TotalDays : 7,12405347222222E-05
TotalHours : 0,00170977283333333
TotalMinutes : 0,10258637
TotalSeconds : 6,1551822
TotalMilliseconds : 6155,1822
Hi @Yonas-net
I tested my commands from above without the use-icinga
. In every case the execution time was reduced between 0 and 1sec.
Hello,
I was looking at the Hyper-V checks and was surprised, that some of them had a very long executiontime. The checks are killed by icinga after 60 seconds.
It takes over a minute to execute them. right now I'm not sure whats the reason for this. Every few seconds I get a glimpse of a progressbar showing "collecting data"
I'm not sure if this is a normal system behaviour or not. Just wanted to let you known.
Invoke-IcingaCheckHyperVSnapshot --> very slow
Invoke-IcingaCheckHyperVOverCommitment --> very slow
Invoke-IcingaCheckHyperVVmHealth --> very slow
Invoke-IcingaCheckHyperVHealth --> fast
Invoke-IcingaCheckHyperVVirtualSwitches --> fast