ckittel / prtg-addons

Automatically exported from code.google.com/p/prtg-addons
0 stars 0 forks source link

LastWinUpdate funktioniert mit keinem Server #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hallo,

leider schaffe ich es nicht mit dem Sensor LastWinUpdate den Updatestatus 
abzufragen. Ich habe jetzt diverse Server und PC probiert, keiner liefert mir 
ein Ergebnis zurück.

Bei korrektem Passwort kommt dieser Fehler:
0:Der Dienst Remote Registry wurde nicht auf dem Computer tobit-server gefunden.

Bei bewusst falschem Passwort der hier:
0:Impersonation of ta-logistic\administrator failed! [1326] Anmeldung 
fehlgeschlagen. unbekannter Benutzername oder falsches Kennwort.

Der Dienst Remoteregistrierung ist gestartet, mit regedit klappt der Zugriff 
z.B. problemlos. Es hat bisher weder mit dem alten Sensor für PRTGv7 noch mit 
dem neuen für die 8er Version funktioniert.

Gruß,
Jens Burmeister

Original issue reported on code.google.com by jensba...@gmail.com on 23 Sep 2010 at 3:43

GoogleCodeExporter commented 8 years ago
Hi Jens,

Are your PRTG server and the computers you try to querie in the same domain, or 
are you using workgroups?

Original comment by gerard.f...@gmail.com on 24 Sep 2010 at 12:13

GoogleCodeExporter commented 8 years ago
Hi Gerard,

sorry for posting my question in german....

Yes, the computers are in the same domain.

Would it also be possible to check the update status across different domains? 
Would be great, becaus we monitor most of our customers networks without a 
remote probe.

Regards,
Jens

Original comment by jensba...@gmail.com on 27 Sep 2010 at 11:15

GoogleCodeExporter commented 8 years ago
Hi Jens,

das ist kein Problem.
Cross domain checking will unfortunately not work.
The user impersonation is done on the probe where the .exe runs so the 
credentials must be valid there. As these credentials are also used on the 
machine that is queried, they must be valid there also.

Regards,
Gerard

Original comment by gerard.f...@gmail.com on 27 Sep 2010 at 7:24

GoogleCodeExporter commented 8 years ago
Same problem here - every Server i tried, i get the answer "Der Dienst Remeote 
Registry ...". Could it be a problem with te differences English/German?!

Regards,
Mathias

Original comment by mathias....@asta-picca.de on 7 Oct 2010 at 1:39

GoogleCodeExporter commented 8 years ago
Sry, forgot to answer.
That cross-domain checkig is impossible is no problem now as Paessler removed 
the remote probe licensing limit.
But checking in the same domain never worked for my systems. Tried it with 
different servers, domains and customers.

Regards,
Jens

Original comment by jensba...@gmail.com on 7 Oct 2010 at 3:07

GoogleCodeExporter commented 8 years ago
Finally found it. Thank you Mathias for pointing me in the right direction!

The error says it all: "Der Dienst Remote Registry ...".
In the German OS there is no "Remote Registry" service, as it is called 
"Remote-Registrierungsdienst" :-(

I added an extra optional parameter to the sensor [-s=service name] in version 
8.0.2 to overcome this issue. By default the sensor will use "Remote Registry", 
but for localization purposes it can be changed using the -s= parameter.

Please note that if the service name contains spaces it has to be entered as 
-s="my service name"

Regards,
Gerard

Original comment by gerard.f...@gmail.com on 8 Oct 2010 at 10:47

GoogleCodeExporter commented 8 years ago
Thanks Gerard!
Now it works!

Original comment by mathias....@asta-picca.de on 11 Oct 2010 at 12:35

GoogleCodeExporter commented 8 years ago
Damn, now there is a new problem :-(
If the sensor checks a local probe, then it works fine. But if i want to check 
another PC in the network of the probe, i get the error message: "Der 
Objektverweis wurde nicht auf eine Objektinstanz festgelegt." 

I know that it is now problem with the login. I tried it with a wrong password 
and the specific Wrong-Password-massage appears!

I hope that there is a solution too!

Regards,
Mathias

Original comment by mathias....@asta-picca.de on 11 Oct 2010 at 12:57

GoogleCodeExporter commented 8 years ago
Hi Mathias,

Can you please test this version for me. If will write the error to a file 
called debug.txt file. Please let me know the contents of this file and the 
parameters you used running the sensor.

http://ptf-prtgaddons.googlecode.com/files/LastWinUpdate.exe

Regards,
Gerard

Original comment by gerard.f...@gmail.com on 11 Oct 2010 at 1:47

GoogleCodeExporter commented 8 years ago
Same problem & error here, but only when checking version 2008 servers. Windows 
Server 2003 works fine!

Original comment by jensba...@gmail.com on 11 Oct 2010 at 2:45

GoogleCodeExporter commented 8 years ago
Content of debug.txt:

System.NullReferenceException: Der Objektverweis wurde nicht auf eine 
Objektinstanz festgelegt.
   bei LastWinUpdate.MainMod.GetValue()
   bei LastWinUpdate.MainMod.Main()

Original comment by jensba...@gmail.com on 11 Oct 2010 at 3:01

GoogleCodeExporter commented 8 years ago
I added some more debug info in version 8.0.2.3
Could you try once more?

http://ptf-prtgaddons.googlecode.com/files/LastWinUpdate.exe

Original comment by gerard.f...@gmail.com on 11 Oct 2010 at 3:12

GoogleCodeExporter commented 8 years ago
For sure!
But the debug-output is merely the same:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine 
Objektinstanz festgelegt.
   bei LastWinUpdate.MainMod.GetValue()
   bei LastWinUpdate.MainMod.Main()

Original comment by jensba...@gmail.com on 11 Oct 2010 at 5:14

GoogleCodeExporter commented 8 years ago
Are you sure that you are using 8.0.2.3, or has your browser cache presented 
you with 8.0.2.2 again ;-)

Original comment by gerard.f...@gmail.com on 11 Oct 2010 at 5:33

GoogleCodeExporter commented 8 years ago
Quite sure ;)
http://screencast.com/t/Y3pD0Z1y6xVF

Original comment by jensba...@gmail.com on 11 Oct 2010 at 5:39

GoogleCodeExporter commented 8 years ago
This calls for some extreme debugging:
http://ptf-prtgaddons.googlecode.com/files/LastWinUpdate.exe (version 8.0.2.4)

Original comment by gerard.f...@gmail.com on 11 Oct 2010 at 6:08

GoogleCodeExporter commented 8 years ago
Some more Output:
Start debug session
Init service controler
Get impersonation object
Init registry object
Init registrykey object
Set service controler
Check if service is running
Open remote base key
Open sub key
Get key value
Error occured
End impersonation
Exception detailsSystem.NullReferenceException: Der Objektverweis wurde nicht 
auf eine Objektinstanz festgelegt.
   bei LastWinUpdate.MainMod.GetValue()
   bei LastWinUpdate.MainMod.Main()

Original comment by jensba...@gmail.com on 11 Oct 2010 at 6:21

GoogleCodeExporter commented 8 years ago
It crashes when opening registry key 
"SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto 
Update\Results\Install" where it tries to read the value of the 
"LastSuccessTime".

Is this a non existing key/value on your OS? If so, what should it be?

Original comment by gerard.f...@gmail.com on 11 Oct 2010 at 6:26

GoogleCodeExporter commented 8 years ago
Looks good: 
SBS 2008 -> http://screencast.com/t/mGbOgT1kQGzs
2003 Std. -> http://screencast.com/t/Fop5qZDPr

Original comment by jensba...@gmail.com on 11 Oct 2010 at 6:34

GoogleCodeExporter commented 8 years ago
This is in HKEY_LOCAL_MACHINE right ?

Original comment by gerard.f...@gmail.com on 11 Oct 2010 at 6:50

GoogleCodeExporter commented 8 years ago
Yes.
http://screencast.com/t/sosIng5qs

Original comment by jensba...@gmail.com on 11 Oct 2010 at 6:53

GoogleCodeExporter commented 8 years ago
http://ptf-prtgaddons.googlecode.com/files/LastWinUpdate.exe (version 8.0.2.5)

Somewhere in the debug it should read Raw value: 2010-08-31 17:31:44 

Original comment by gerard.f...@gmail.com on 11 Oct 2010 at 7:14

GoogleCodeExporter commented 8 years ago
nothing like that, checked again the version, it's 8.0.2.5

Start debug session
Init service controler
Get impersonation object
Init registry object
Init registrykey object
Set service controler
Check if service is running
Open remote base key
Open sub key
Get key value
Error occured
End impersonation
Exception details
System.NullReferenceException: Der Objektverweis wurde nicht auf eine 
Objektinstanz festgelegt.
   bei LastWinUpdate.MainMod.GetValue()
   bei LastWinUpdate.MainMod.Main()

Original comment by jensba...@gmail.com on 11 Oct 2010 at 7:20

GoogleCodeExporter commented 8 years ago
This means that it cannot find the registry key on the specified computer.

Original comment by gerard.f...@gmail.com on 11 Oct 2010 at 7:39

GoogleCodeExporter commented 8 years ago
Version 8.0.3 is now available for public download.
In this version the System.NullReferenceException is replaced by a more 
explaining error message.

Original comment by gerard.f...@gmail.com on 12 Oct 2010 at 8:44

GoogleCodeExporter commented 8 years ago

Original comment by gerard.f...@gmail.com on 16 Oct 2010 at 4:14