[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem using monit with curl

From: Norbert Preining
Subject: Problem using monit with curl
Date: Sat, 18 Jul 2020 23:42:43 +0900

Hi all,

I am trying to control a few operations (read write) via curl.
Unfortunately, the simple approach
        curl -u user:pass -s 'http://localhost:NNNN/myservice' --data 
(monit http is running on port NNNN) finished with
        Invalid CSRF Token

A bit of search brought me to
which seems exactely what I want to do, alas, the very first invocation
        curl -c ~/.mmonit/cookie http://localhost:NNNN/index.csp
        curl -c ~/.mmonit/cookie
ended with
        There is no service named "index.csp"
Even adding the -u user:pass didn't help at all.

Could someone please explain how to set up read/write access to monit
via curl? It seems that the wiki page/documentation is incorrect.



PREINING Norbert                    
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13

reply via email to

[Prev in Thread] Current Thread [Next in Thread]