Discussion:
[Check_mk (english)] Wiki
Jan Kašpar
2018-11-04 08:32:54 UTC
Permalink
Hello,

I have a question regarding XMLRPC in dokuwiki. (
https://www.dokuwiki.org/devel:xmlrpc)
I would like to automatize creation of some pages and xmmlrpc is ideal
solution.

There is a lot of examples how to do that, but no one for wiki intergrated
CMK.
Does anybody using this? Problem is with authentication.

http://192.168.1.253/test/wiki/lib/exe/xmlrpc.php
Not Found

The requested URL /test/wiki/lib/check_mk/login.py was not found on this
server.

I am using powershell as a scripting language. Can anyone help me?
Regards

Jan
Jan Kašpar
2018-11-04 10:00:17 UTC
Permalink
Hi Again,

i forgot to add commands I am running from PowerShell:

$result = Invoke-WebRequest -uri "
http://192.168.1.253/test/check_mk/webapi.py?action=get_all_users&_username=automation&_secret=bde28b15-7ece-4013-bdf7-cfc02a0fca15"
-Method Post -SessionVariable CMK
$result = Invoke-WebRequest -uri "
http://192.168.1.253/test/wiki/lib/exe/xmlrpc.php" -WebSession $CMK

Forst is OK, I got answer from monitoring server. But second is generation
error:

Not Found

The requested URL /test/wiki/lib/check_mk/login.py was not found on this
server.

In Dokuwiki I have enabled XMLRPC.

Regards,

Jan

Loading...