Closed carsten0407 closed 3 years ago
Hi @carsten0407,
When I run Get-Probe
against PRTG 21.2.67.1562 I get an error; this appears to be caused by the new "PRTG Core Server" autonomous device object. This object is a device, however because it is under the root node PRTG is erroneously returning it from API requests for probes as well. I will open a case regarding this with Paessler support.
Workaround:
$a = New-SearchFilter ProbeStatus NotEquals "" -Illegal Get-Probe -Verbose -Filter $a
Hi @AlphaJosh,
I've been looking into this and have found that the true workaround that is required is to have a permanent filter on probes for Type
equals Probe
; in the meantime users can implement this manually by doing flt type eq probenode|get-probe
or really any other filter which causes only Probe
objects to be returned and not AutonomousDevice
objects (as you have done)
As this has the potential to affect a large number of users I am currently working to release PrtgAPI 0.9.15 ASAP which will include a proper fix for this issue. I hope to release this within the next week or so
Regards, lordmilko
Hi @carsten0407 / @AlphaJosh ,
Please be advised PrtgAPI 0.9.15 has now been released which includes a fix for this issue
To update PrtgAPI, please run Update-Module PrtgAPI
and reopen PowerShell
Regards, lordmilko
Hi Lordmilko,
it works again, but I didn't expect anything else
Good work,
thanx ;-)
Hi Lordmilko,
it is strange, but every probe I added, after the last PRTG Update, I did not find it with get-probe –name Probename
If I grab after get-sensor –tags probeTags see the probe but nothing with get-probe –name Probename
In the gui, the probes are visible.
I already updated to the current PRTGAPI-Version PrtgAPI 0.9.15
Thanx
Carsten
Mit freundlichen Grüßen / best regards
i. A. Carsten Trautmann
Senior System Engineer Operation Center IT-Service [http://support.it.konicaminolta.de/signatures/KM_LOGO.jpg] Konica Minolta Business Solutions Deutschland GmbH Mittlerer Pfad 1, 70499 Stuttgart, Germany Phone: +49 (711) 1385 - 131<tel:+497111385131> Fax: +49 (711) 1385 - 222 Mail: @.**@.> Web: www.konicaminolta.dehttp://www.konicaminolta.de District Court / Amtsgericht: Hannover, HRB 61209 Management / Geschäftsführer: Joerg Hartmann & Kenichiro Fukasawa Aufsichtsratsvorsitzender: Jens Venrath Informationen über die Verarbeitung Ihrer personenbezogenen Daten durch uns können Sie unter https://www.konicaminolta.de/de/business-solutions/meta/dseg.html einsehen.
[http://support.it.konicaminolta.de/signatures/emailPrinzip.jpg]
Von: lordmilko @.> Gesendet: Freitag, 7. Mai 2021 07:39 An: lordmilko/PrtgAPI @.> Cc: Trautmann, Carsten @.>; Mention @.> Betreff: Re: [lordmilko/PrtgAPI] After Update to PRTG Version 21.2.67.1562 (Stable) get-probe does not give anything back (#215)
Closed #215https://github.com/lordmilko/PrtgAPI/issues/215 via 2b50641https://github.com/lordmilko/PrtgAPI/commit/2b50641feb8541ae1b332fbbff9ebd3e1335f5f9.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/lordmilko/PrtgAPI/issues/215#event-4699517293, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APIS7JD4SEGNFDL63DJY6ILTMN4HHANCNFSM43VPMYTQ.
Hi @carsten0407,
Can youu please do
Set-PrtgClient -LogLevel All
Get-Probe <probeName> -Verbose
where <probeName> is your probe name
and post the output? (please remove any sensitive details like your PRTG URL, username and passhash from the output)
Hi Lordmiko,
here the following output:
First one not functionally, installed after the PRTG-Update
Get-Probe -Name "ProbeName1" -Verbose
VERBOSE: Get-Probe: Synchronously executing request https://
Second one is OK , installed before the PRTG-Update
Get-Probe -Name " ProbeName2" -Verbose
VERBOSE: Get-Probe: Synchronously executing request https://
Name Id ProbeStatus Devices Groups Up Sensors Down Down (Ack) Warning Paused
ProbeName2 128662 Connected 5 34 20 0 0 2 2
Mit freundlichen Grüßen / best regards
i. A. Carsten Trautmann
Senior System Engineer Operation Center IT-Service Konica Minolta Business Solutions Deutschland GmbH Mittlerer Pfad 1, 70499 Stuttgart, Germany
Phone: +49 (711) 1385 - 131
Fax: +49 (711) 1385 - 222 Mail: @.***
Web: www.konicaminolta.de
District Court / Amtsgericht: Hannover, HRB 61209 Management / Geschäftsführer: Joerg Hartmann & Kenichiro Fukasawa Aufsichtsratsvorsitzender: Jens Venrath
Informationen über die Verarbeitung Ihrer personenbezogenen Daten durch uns können Sie unter https://www.konicaminolta.de/de/business-solutions/meta/dseg.html einsehen.
Von: lordmilko @.> Gesendet: Montag, 10. Mai 2021 23:57 An: lordmilko/PrtgAPI @.> Cc: Trautmann, Carsten @.>; Mention @.> Betreff: Re: [lordmilko/PrtgAPI] After Update to PRTG Version 21.2.67.1562 (Stable) get-probe does not give anything back (#215)
Hi @carsten0407, Can youu please do Set-PrtgClient -LogLevel All
Get-Probe
Mit freundlichen Grüßen / best regards
i. A. Carsten Trautmann
Senior System Engineer Operation Center IT-Service [http://support.it.konicaminolta.de/signatures/KM_LOGO.jpg] Konica Minolta Business Solutions Deutschland GmbH Mittlerer Pfad 1, 70499 Stuttgart, Germany Phone: +49 (711) 1385 - 131<tel:+497111385131> Fax: +49 (711) 1385 - 222 Mail: @.**@.> Web: www.konicaminolta.dehttp://www.konicaminolta.de District Court / Amtsgericht: Hannover, HRB 61209 Management / Geschäftsführer: Joerg Hartmann & Kenichiro Fukasawa Aufsichtsratsvorsitzender: Jens Venrath Informationen über die Verarbeitung Ihrer personenbezogenen Daten durch uns können Sie unter https://www.konicaminolta.de/de/business-solutions/meta/dseg.html einsehen.
[http://support.it.konicaminolta.de/signatures/emailPrinzip.jpg]
Von: lordmilko @.> Gesendet: Montag, 10. Mai 2021 23:57 An: lordmilko/PrtgAPI @.> Cc: Trautmann, Carsten @.>; Mention @.> Betreff: Re: [lordmilko/PrtgAPI] After Update to PRTG Version 21.2.67.1562 (Stable) get-probe does not give anything back (#215)
Hi @carsten0407https://github.com/carsten0407,
Can youu please do
Set-PrtgClient -LogLevel All
Get-Probe
where
and post the output? (please remove any sensitive details like your PRTG URL, username and passhash from the output)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/lordmilko/PrtgAPI/issues/215#issuecomment-837405892, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APIS7JCLXFWWDTRGVKYEQV3TNBJA7ANCNFSM43VPMYTQ.
Hi @carsten0407,
I don't understand your response.
First you said
First one not functionally, installed after the PRTG-Update
But then you said
Second one is OK , installed before the PRTG-Update
However both of these XML responses show the same PRTG version: 21.2.67.1562
When you say "PRTG-Update" do you actually mean PrtgAPI Update? i.e. is the top one the response given by PrtgAPI 0.9.15 while the bottom one is the response given by PrtgAPI 0.9.14? In the first response I can see you are searching for "ProbeName1" but in the second response it is "ProbeName2". I'm not sure if this is just because you modified the output to hide some sensitive info, however if these API requests are for different probes it is impossible to compare these properly.
Also, please be careful when responding to GitHub issues - not only did you leak the URL of your PRTG web server, you also appear to have leaked the username and passhash that you use for your API requests, in addition to all of the information contained in your mail signature when you responded to the email. I have modified your response above to remove the sensitive info about your PRTG server
Hi Lordmilko,
However both of these XML responses show the same PRTG version: 21.2.67.1562
è YES, both response are from the same PRTG Core-Server
When you say "PRTG-Update" do you actually mean PrtgAPI Update?
No, I mean the PRTG-Update to 21.2.67.1562 this one with the “Core Health (Autonomous)” Sensor
i.e. is the top one the response given by PrtgAPI 0.9.15 while the bottom one is the response given by PrtgAPI 0.9.14?
Iam allready updated to the PrtgAPI 0.9.15
In the first response I can see you are searching for "ProbeName1" but in the second response it is "ProbeName2".
è The ProbeName1 was installed after the update to 21.2.67.1562 this one is visible with get-probe –name ProbeName1
è The ProbeName2 was installed before the update to 21.2.67.1562 this one is visible with get-probe –name ProbeName2
however if these API requests are for different probes it is impossible to compare these properly.
è Again, I see all the probes with get-probe but not the new one installed after the PRTG-Update to 21.2.67.1562 and again, I updated to PrtgAPI 0.9.15
Also, please be careful when responding to GitHub issues - not only did you leak the URL of your PRTG web server, you also appear to have leaked the username and passhash that you use for tyour API requests, in addition to all of the information contained in your mail signature when you responded to the email
è Sorry for the signature, the PRTG output is changed
Hi @carsten0407,
I see what you're saying; I tried adding a new probe to my test server, and sure enough when I do Get-Probe
- even without any additional arguments - the new probe server does not show up.
If I do Get-Object -Id <idOfTheNewProbe>
it does show up, but if I then do Get-Object -Id <idOfTheNewProbe> -Type probenode
the object isn't returned at all, despite the fact you can clearly see in the XML response the type is probenode
This seems like a bug in PRTG; I will speak with Paessler
Hi Lordmilko,
the same to me
Mit freundlichen Grüßen / best regards
i. A. Carsten Trautmann
Senior System Engineer Operation Center IT-Service [http://support.it.konicaminolta.de/signatures/KM_LOGO.jpg] Konica Minolta Business Solutions Deutschland GmbH Mittlerer Pfad 1, 70499 Stuttgart, Germany Phone: +49 (711) 1385 - 131<tel:+497111385131> Fax: +49 (711) 1385 - 222 Mail: @.**@.> Web: www.konicaminolta.dehttp://www.konicaminolta.de District Court / Amtsgericht: Hannover, HRB 61209 Management / Geschäftsführer: Joerg Hartmann & Kenichiro Fukasawa Aufsichtsratsvorsitzender: Jens Venrath Informationen über die Verarbeitung Ihrer personenbezogenen Daten durch uns können Sie unter https://www.konicaminolta.de/de/business-solutions/meta/dseg.html einsehen.
[http://support.it.konicaminolta.de/signatures/emailPrinzip.jpg]
Von: lordmilko @.> Gesendet: Dienstag, 11. Mai 2021 10:54 An: lordmilko/PrtgAPI @.> Cc: Trautmann, Carsten @.>; Mention @.> Betreff: Re: [lordmilko/PrtgAPI] After Update to PRTG Version 21.2.67.1562 (Stable) get-probe does not give anything back (#215)
Hi @carsten0407https://github.com/carsten0407,
I see what you're saying; I tried adding a new probe to my test server, and sure enough when I do Get-Probe - even without any additional arguments - the new probe server does not show up.
If I do Get-Object -Id
This seems like a bug in PRTG; I will speak with Paessler
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/lordmilko/PrtgAPI/issues/215#issuecomment-838100874, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APIS7JB35E32ILT2VCU2AATTNDWBZANCNFSM43VPMYTQ.
Hi Lordmilko,
It is strange, I found a probe, which is definitely installed before the update, and those one is also not visible with get-probe –name PROBNAME
Hi @carsten0407,
Possibly a slightly earlier PRTG update caused this behavior, however I have reached out to Paessler and they have confirmed they can reproduce this behavior as well; as such at this time this is a bug in PRTG so we will need to wait to hear back from Paessler
…yes, thanks I want you only to inform about this behaviour, this was new for me...
Hi @carsten0407,
I have pushed a new pre-release version of PrtgAPI 0.9.16 which includes a new fix for the original issue that doesn't also have side effects due to other bugs in PRTG.
Are you able to download the latest build via the manual installation instructions and advise whether you can now retrieve all probes properly?
Regards, lordmilko
Hi @carsten0407,
Are you able to advise whether the new build resolves your issue? I would like to release PrtgAPI 0.9.16 including this fix however would like to confirm the fix does indeed work properly first
Regards, lordmilko
Hi lordmilko
I am in Holiday next tuesday you get an answer
Holen Sie sich Outlook für iOShttps://aka.ms/o0ukef
Von: lordmilko @.> Gesendet: Wednesday, May 26, 2021 11:17:44 AM An: lordmilko/PrtgAPI @.> Cc: Trautmann, Carsten @.>; Mention @.> Betreff: Re: [lordmilko/PrtgAPI] After Update to PRTG Version 21.2.67.1562 (Stable) get-probe does not give anything back (#215)
Hi @carsten0407https://github.com/carsten0407,
Are you able to advise whether the new build resolves your issue? I would like to release PrtgAPI 0.9.16 including this fix however would like to confirm the fix does indeed work properly first
Regards, lordmilko
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/lordmilko/PrtgAPI/issues/215#issuecomment-848610723, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APIS7JDW7F6RGEYQLO6P76DTPS4DRANCNFSM43VPMYTQ.
Hi Lordmilko,
after the update it works, so the first try.. I get all the probes before the update I get nothing back…
Thanx for that
Carsten
Hi Lordmilko,
I made a mistake!
Can you tell me where I can download the PrtgAPI 0.9.16
On https://github.com/lordmilko/PrtgAPI I found only the 15er Version
Mit freundlichen Grüßen / best regards
i. A. Carsten Trautmann
Senior System Engineer Operation Center IT-Service [http://support.it.konicaminolta.de/signatures/KM_LOGO.jpg] Konica Minolta Business Solutions Deutschland GmbH Mittlerer Pfad 1, 70499 Stuttgart, Germany Phone: +49 (711) 1385 - 131<tel:+497111385131> Fax: +49 (711) 1385 - 222 Mail: @.**@.> Web: www.konicaminolta.dehttp://www.konicaminolta.de District Court / Amtsgericht: Hannover, HRB 61209 Management / Geschäftsführer: Joerg Hartmann & Kenichiro Fukasawa Aufsichtsratsvorsitzender: Jens Venrath Informationen über die Verarbeitung Ihrer personenbezogenen Daten durch uns können Sie unter https://www.konicaminolta.de/de/business-solutions/meta/dseg.html einsehen.
[http://support.it.konicaminolta.de/signatures/emailPrinzip.jpg]
Von: Trautmann, Carsten Gesendet: Montag, 31. Mai 2021 08:09 An: lordmilko/PrtgAPI @.>; lordmilko/PrtgAPI @.> Cc: Mention @.***> Betreff: AW: [lordmilko/PrtgAPI] After Update to PRTG Version 21.2.67.1562 (Stable) get-probe does not give anything back (#215)
Hi Lordmilko,
after the update it works, so the first try.. I get all the probes before the update I get nothing back…
Thanx for that
Carsten
PrtgAPI 0.9.16 is currently in pre-release
Please see the manual installation instructions for details on how to download and run it
I already done this, but the version number shows
ModuleType Version Name ExportedCommands
Binary 0.9.15 PRTGAPI {Add-Device, Add-Group, Add-NotificationTrigger, Add-Sensor...}
If this is correct, the new probes are not visible…
Sorry
Hi @carsten0407,
The version number is the same (since it isn't the proper 0.9.16 yet).
Are you able to provide the output of the following
Set-PrtgClient -LogLevel All
Get-Object -Type probenode
Get-Probe -Verbose
Get-Probe <probeName> -Verbose
Where
Please obscure any sensitive details such as your server name, username and passhash in the result
Get-Probe -id 136605 –Verbose
VERBOSE: Get-Probe: Synchronously executing request https://??????????????????/api/table.xml?content=probenode&columns=objid,name,condition,fold,groupnum,devicenum,upsens,downsens,downacksens,partialdownsens,warnsens,pausedsens,unusualsens,undefinedsens,totalsens,schedule,basetype,baselink,notifiesx,intervalx,access,dependency,position,status,comments,priority,message,parentid,tags,type,active&count=*&filter_objid=136605&filter_type=probenode&username=?????????PowershellUser&passhash=??????????? VERBOSE: Get-Probe: <?xml version="1.0" encoding="UTF-8"?>
Get-Probe -name test –Verbose
VERBOSE: Get-Probe: Synchronously executing request https://??????????????????/api/table.xml?content=probenode&columns=objid,name,condition,fold,groupnum,devicenum,upsens,downsens,downacksens,partialdownsens,warnsens,pausedsens,unusualsens,undefinedsens,totalsens,schedule,basetype,baselink,notifiesx,intervalx,access,dependency,position,status,comments,priority,message,parentid,tags,type,active&count=*&filter_name=test&filter_type=probenode&username=???????PowershellUser&passhash=???????????? VERBOSE: Get-Probe: <?xml version="1.0" encoding="UTF-8"?>
Hi @carsten0407,
It doesn't appear that you are using the new pre-release version of PrtgAPI
Get-Probe -name test –Verbose
VERBOSE: Get-Probe: Synchronously executing request https://??????????????????/api/table.xml?content=probenode&columns=objid,name,condition,fold,groupnum,devicenum,upsens,downsens,downacksens,partialdownsens,warnsens,pausedsens,unusualsens,undefinedsens,totalsens,schedule,basetype,baselink,notifiesx,intervalx,access,dependency,position,status,comments,priority,message,parentid,tags,type,active&count=*&filter_name=test&filter_type=probenode&username=???????PowershellUser&passhash=????????????
In this API request, you can see that it executes filter_type=probenode
- however this is the old PrtgAPI 0.9.15 behavior. If you are using the PrtgAPI 0.9.16 pre-release this should say filter_parentid=0
To make sure you are using the new version of PrtgAPI, can you
C:\temp\PrtgAPI
ipmo C:\temp\PrtgAPI
Get-Probe -name test –Verbose
(gmo prtgapi).path
There is nothing to do for me her? Right?
Hi @carsten0407,
Sorry, I accidentally @'d @AlphaJosh instead of you. Are you please follow the instructions above?
I did it, and it works…
THANX
Mit freundlichen Grüßen / best regards
i. A. Carsten Trautmann
Senior System Engineer Operation Center IT-Service [http://support.it.konicaminolta.de/signatures/KM_LOGO.jpg] Konica Minolta Business Solutions Deutschland GmbH Mittlerer Pfad 1, 70499 Stuttgart, Germany Phone: +49 (711) 1385 - 131<tel:+497111385131> Fax: +49 (711) 1385 - 222 Mail: @.**@.> Web: www.konicaminolta.dehttp://www.konicaminolta.de District Court / Amtsgericht: Hannover, HRB 61209 Management / Geschäftsführer: Joerg Hartmann & Kenichiro Fukasawa Aufsichtsratsvorsitzender: Jens Venrath Informationen über die Verarbeitung Ihrer personenbezogenen Daten durch uns können Sie unter https://www.konicaminolta.de/de/business-solutions/meta/dseg.html einsehen.
[http://support.it.konicaminolta.de/signatures/emailPrinzip.jpg]
Von: lordmilko @.> Gesendet: Dienstag, 1. Juni 2021 11:07 An: lordmilko/PrtgAPI @.> Cc: Trautmann, Carsten @.>; Mention @.> Betreff: Re: [lordmilko/PrtgAPI] After Update to PRTG Version 21.2.67.1562 (Stable) get-probe does not give anything back (#215)
Hi @carsten0407https://github.com/carsten0407,
Sorry, I accidentally @'d @AlphaJoshhttps://github.com/AlphaJosh instead of you. Are you please follow the instructions above?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/lordmilko/PrtgAPI/issues/215#issuecomment-851962834, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APIS7JGMZJD72D6J5XR2DHDTQSPMHANCNFSM43VPMYTQ.
What's going on?
Hi Lord,
after we Update to PRTG Version 21.2.67.1562 (Stable) the command --> get-probe does not give anything back
get-probe -name "NAME" ist functionally
Do you know anythibg about that?
Thanks
Carsten