flyersa / MuninMX-Frontend

Frontend for MuninMX
5 stars 1 forks source link

Added new api call "addCheck" + documentation #2

Closed klelifo closed 9 years ago

klelifo commented 9 years ago

Hi there. First of all: impressive project. Nice work on finally making a usable munin frontend and thx for releasing the code on GitHub!

Because I wanted to get to know the codebase a little better and I find the ability to integrate checks very interesting I added an api call for adding new checks programatically. I also added the necessary API documentation.

Also I noticed that there seems to be a problem with session creation and this CsrfProtect() class when using the api via curl. To trigger the error you can do smoething like this from the linux command line

curl -i -j -X POST \
         -d 'key=123abc' \
         -d 'method=getRole' \
https://[muninmx_url]/api.php ; echo

I also provided a workaround that should correct that problem.

I hope you find my implementation useful. In any case: Thx and keep up the good work.

flyersa commented 9 years ago

thank you very much! Hope i find more time to update the site, installer seems also broken at the moment i think.