-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question #167
Comments
Hi @mafer0410, PrtgAPI simply exposes the underlying PRTG HTTP API in an easy to use framework. In regards to your query, you have two options
Regards, |
if it were the second option, would it be through a powershell script?
El vie., 4 de sep. de 2020 a la(s) 18:00, lordmilko (
[email protected]) escribió:
… Hi @lordmilko <https://github.com/lordmilko>,
PrtgAPI simply exposes the underlying PRTG HTTP API in an easy to use
framework.
In regards to your query, you have two options
1. If the schedule is going to be same every day, you can modify the
*Schedule* property
<#101 (comment)>
normally found on the object's Settings page
2. If you'd like to have greater control over which objects are paused
and when, you can setup a Scheduled Task on one of your servers that
periodically runs (e.g. once every hour) and dynamically calculates which
objects should be paused and then pauses them with the Pause-Object
<https://github.com/lordmilko/PrtgAPI/wiki/State-Manipulation#pause-1>
cmdlet
Regards,
lordmilko
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGVFY6BHX2UDSSI5VNZB6TSEF5QTANCNFSM4QZS3YKQ>
.
|
Hi @mafer0410, Yes, you would write a PowerShell script that determines the sensors to be paused and then pauses them with the |
ok, it would be to call the sensors of a device and pass it with the
command, the time of the pause can be added as parameters,
for example, pause it at 8:00 am every day
El sáb., 5 de sep. de 2020 a la(s) 18:57, lordmilko (
[email protected]) escribió:
… Hi @mafer0410 <https://github.com/mafer0410>,
Yes, you would write a PowerShell script that determines the sensors to be
paused and then pauses them with the Pause-Object cmdlet
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGVFY6YSZS4ZTKABBIJUULSELNAVANCNFSM4QZS3YKQ>
.
|
Hi @mafer0410, Yes. Please see the wiki for more information on how to use PrtgAPI You will need to coordinate the time your Scheduled Task runs with the code that you write in your script to achieve the desired outcome |
OK understood.
Thanks for the attention.
I was a few days off, so I did not answer him.
The attention is also appreciated.
El vie., 4 de sep. de 2020 a la(s) 18:00, lordmilko (
[email protected]) escribió:
… Hi @lordmilko <https://github.com/lordmilko>,
PrtgAPI simply exposes the underlying PRTG HTTP API in an easy to use
framework.
In regards to your query, you have two options
1. If the schedule is going to be same every day, you can modify the
*Schedule* property
<#101 (comment)>
normally found on the object's Settings page
2. If you'd like to have greater control over which objects are paused
and when, you can setup a Scheduled Task on one of your servers that
periodically runs (e.g. once every hour) and dynamically calculates which
objects should be paused and then pauses them with the Pause-Object
<https://github.com/lordmilko/PrtgAPI/wiki/State-Manipulation#pause-1>
cmdlet
Regards,
lordmilko
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGVFY6BHX2UDSSI5VNZB6TSEF5QTANCNFSM4QZS3YKQ>
.
|
What are you trying to do, and to what extent does PrtgAPI provide existing functionality around this?
a query,
Is there a way to pause a sensor automatically, that is, every day?
Is this something that has some sort of parallel in the PRTG UI? If so where do you go/how do you normally do it?
Due Dilligance
Please enter an 'x' between the brackets to indicate you have done these
The text was updated successfully, but these errors were encountered: