Discussion:
Problem access monit web interface
Cesar Carruitero
2014-11-07 21:36:47 UTC
Permalink
Hi,

I'm monit noobie.

I setup monit in a server. I check by console that monit is running whith
'monit status'.

But, after logged on web interface I receive a 404 page.

I search in stackoverflow and google but can't found a solution to this
problem.

I think the problem could be in my httpd configuration in monitrc

This is what I have in that part http://pastebin.com/vsiezbPb

I'm not sure what I'm doing wrong.

I hope someone had some idea or link to help me solve this problem.

Regards
Martin Pala
2014-11-10 10:22:56 UTC
Permalink
Hi,

if you wanted to allow access from the network, you can keep just the "allow" option with credentials:

--8<--
set httpd port 2812
allow <user>:<password>
--8<--

The "allow 0.0.0.0/8" actually had no effect, as it matches "0.*.*.*" so the access was possible from localhost only (because of the second allow option).

Regards,
Martin
Post by Cesar Carruitero
Hi,
I'm monit noobie.
I setup monit in a server. I check by console that monit is running whith 'monit status'.
But, after logged on web interface I receive a 404 page.
I search in stackoverflow and google but can't found a solution to this problem.
I think the problem could be in my httpd configuration in monitrc
This is what I have in that part http://pastebin.com/vsiezbPb
I'm not sure what I'm doing wrong.
I hope someone had some idea or link to help me solve this problem.
Regards
--
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Cesar Carruitero
2014-11-10 15:54:15 UTC
Permalink
Hi,

I keep just the allow with credentials and restarted monit, but it's
returning the same error.
Martin Pala
2014-11-10 15:59:40 UTC
Permalink
Please can you provide the URL which returns the error and describe when it happens? (after clicking on some link in Monit interface or just when trying to open the Monit HTTP GUI?)
Hi,
I keep just the allow with credentials and restarted monit, but it's returning the same error.
--
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Cesar Carruitero
2014-11-10 16:21:40 UTC
Permalink
The url is the homepage. In my case '/monit'

This happens just when open monit GUI, after logged in
Martin Pala
2014-11-10 17:42:23 UTC
Permalink
Monit homepage is just "http(s)://<host>:2812" ... the "/<string>" is reserved for service details, if you don't have some check for service called "monit", it will return 404 ("not found").
Post by Cesar Carruitero
The url is the homepage. In my case '/monit'
This happens just when open monit GUI, after logged in
--
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
Cesar Carruitero
2014-11-10 17:52:39 UTC
Permalink
I has an application running in "/" path for that I set "/monit" to proxy
to port 2812 in nginx, but seems not working.

How can I configure monit to use in another path?
Martin Pala
2014-11-10 18:16:58 UTC
Permalink
The nginx proxy setup instructions are here: http://mmonit.com/wiki/Monit/Nginx

The error was returned by nginx, as you need to use slash at the end of the URL as mentioned in the document: http://nginx.addr.ess/monit/
I has an application running in "/" path for that I set "/monit" to proxy to port 2812 in nginx, but seems not working.
How can I configure monit to use in another path?
--
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Loading...