Thank you very much. That was exactly what I was looking for. There is one file which is not easy to guess, so I assume I’m pretty safe even with this file being excluded.
I like to keep things simple as possible. I have multple machines to check and not only owncloud installations. So, my script monitors smtp, http(s), pop3/imap(s), mailqueues, debian update status, free space, etc. And for this I made very simple script which runs on each host to monitor which generates a file located on www root, so that I can access it remotely very easily.
I could write an app, but for now I do not have time for this
Thank you again for your help.