freaky-media / PRTGScripts

8 stars 5 forks source link

Nextcloud Message and Nextcloud Status Code no status #2

Open SANCLA opened 4 years ago

SANCLA commented 4 years ago

With Nextcloud Message and Nextcloud Status Code, I get the following status: 0 (configured lookup nextcloudstatuscodelookup.state is empty or not available)

Nextcloud and PRTG are up-to-date versions.

freaky-media commented 4 years ago

Hi, you need the lookup file nextcloudstatuscodelookup.state you can download it from the repository. i will upload a new version.

sysadmbonn commented 4 years ago

Hi! I'm getting only an Error ... XML: Das zurückgelieferte XML entspricht nicht dem erwarteten Schema. (Code: PE233) -- JSON: Das zurückgelieferte JSON entspricht nicht der erwarteten Struktur (No mapping for the Unicode character exists in the target multi-byte code page). (Code: PE231) Nextcloud Version is 17.0.1

freaky-media commented 4 years ago

Hello/Hallo, bitte mal das Script direkt in PowerShell Console ausführen ob es hier ebenfalls zu Fehlern kommt.

sysadmbonn commented 4 years ago

Hi! Irgendwie habe ich es geschafft eine HTML Seite als PS abzuspeichern ... Habe in der Power Shell ISE noch mal händisch das Skript kopeirt und nu ... sieh da ... es geht.

Seltsam wie manche Sachen funktionieren wenn man sie nur richtig macht ...

Besten Dank!!! Sieht super aus!!! :)

FrankWuttig commented 3 years ago

Hi, bekome den gleichen Fehler: XML: Das zurückgelieferte XML entspricht nicht dem erwarteten Schema. (Code: PE233) -- JSON: Das zurückgelieferte JSON entspricht nicht der erwarteten Struktur (No mapping for the Unicode character exists in the target multi-byte code page). (Code: PE231)

Wenn ich das Script in der Powershell aufrufe erhale ich folgende Rückmeldung:

PS C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML> .\Prtg_NextCloud.ps1 In C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\Prtg_NextCloud.ps1:68 Zeichen:10

PTG läuft auf aktuellem "WindoesServer 2019 DataCenter" mit Power Shell:

PS C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML> $PSVersionTable

Name Value


PSVersion 5.1.17763.1490 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17763.1490 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

blitzdesigner commented 2 years ago

although this is a quite long time ago since you posted your error message, I got the same today an figured out, that there simply are not the right " " in the code :-) You have to replace all "" in the line 62, 68 and 69 with regular ones. They are somewhat different encoded.