Hi I swear I had been looking for an answer on this KB but could not find any.
The idea is that each time I run a powershell script it takes (a long) time to execute. The script by itself takes 15 to 18 ms but when I run it from command line it executes in no less than 500ms. At a client's with many sensors time increases up to 1000 mseconds.
- Is there any mean to "pre-launch" Powershell under PRTG to make it ready to execute all scripts.
- Another approach could be to have a single script doing the query for all sensors, but the question is now how to spread the results in the respective sensors
- Is it a silly question?
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Thank you so much for your exhaustive answer
Some explanations about my question and why I can neither use HTTP Data Advanced sensor or run the script from the device
It is a custom application and we agreed on a protocol (kind of telnet based) with the developer because they are specialized devices we cannot touch
The result yields several fields (Status and client version) wich I parse in PS to provide PRTG an error code and a message:
"Active - Version client 2.3.7.19339"
I had in mind to report all installed versions in the future to simplify update planning (this is another topic and I'll check the API before asking here how to)
I found it simpler to make a PS script while keeping in mind that I may have got to make a small exe which is quite simple
(only read a socket and parse an xml)
About point 3: Thank you for the nice quote
May, 2016 - Permalink
Hello dgiraud,
thank you for your post.
I'll answer your questions in reverse because I want to start with the last one:
3. "There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand the world. There is no such thing as a (silly) question". -Carl Sagan
2. There are actually a couple of approaches to this, I will list some of them that should apply in your case:
1. Due to the way that the scheduler (which balances monitoring requests) within the PRTG Probe works this is not something that would be easily implemented and as there are several alternatives something that we're not considering at the moment.
Best Regards,
May, 2016 - Permalink