Closed ChrisPennell closed 5 years ago
Hi Chris,
You can retrieve the "Scanning Intervals" setting from the System Administration -> Monitoring tab by retrieving the Web Server Options object from PRTG and then listing its raw object properties
C:\> $intervals = (Get-Object -Id 810 | Get-ObjectProperty -Raw).sensorintervals -split "`n"
C:\> $intervals
5s
10s
30s
1m
5m
10m
15m
30m
1h
4h
6h
12h
1d
Regards, lordmilko
Perfect thanks, that completes the configuration I need to automate DST adjustment of sensors with 24 hour Intervals. Regards Chris
On Fri, 26 Jul 2019 at 01:29, lordmilko notifications@github.com wrote:
Hi Chris,
You can retrieve the "Scanning Intervals" setting from the System Administration -> Monitoring tab by retrieving the Web Server Options object from PRTG and then listing its raw object properties
C:> $intervals = (Get-Object -Id 810 | Get-ObjectProperty -Raw).sensorintervals -split "`n" C:> $intervals
5s 10s 30s1m5m10m15m30m 1h 4h 6h 12h1d
Regards, lordmilko
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lordmilko/PrtgAPI/issues/100?email_source=notifications&email_token=ALQHOVAB7IMR2KRNPR4CUK3QBJAOVA5CNFSM4IG3TW3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD23EZPI#issuecomment-515263677, or mute the thread https://github.com/notifications/unsubscribe-auth/ALQHOVCVEWARLTH6FG5OL5DQBJAOVANCNFSM4IG3TW3A .
What's going on?
Hi, I am currently using the PrtgAPI in Powershell and am very impressed. We have a need to automate adjustment of sensor scanning intervals that have 24hour Intervals and adjust them for Daylight Saving Time. The API provides everything to achieve this. One question :- Is there a way to extract\list the of Scanning Intervals listed on the PRTG GUI System Admin Page?
Due Dilligance Please enter an 'x' between the brackets to indicate you have done these