Page 1 of 1

CLOSED: Monit Service Manager Web App Testing

Posted: Wed Nov 20, 2013 6:11 am
by bigfoot65
Hello,

I need a few folks to test the Monit Service Manager web app before we release it LIVE for Amahi 7. If interested, please PM me your amahi.org user name.
https://www.amahi.org/apps/monit-service-manager

Re: Monit Service Manager Web App Testing

Posted: Thu Nov 21, 2013 10:31 pm
by cpg
i thought i'd post what we discussed over email. sorry for the delay

1) i think the description should not start with a NOTE

2) it tries to go to

Code: Select all

http://monit.amahi.net:2812/
you know how much i love that (*cough*).
we very strongly discourage redirection and strongly propose the use use proxypass.

3) it fails to connect to that url

the install log has this:

Code: Select all

======= app install begin @ 2013-11-21 17:56:57 -0800 ========== Installing app id xyz under /var/hda/platform/html/script/.. ENV=production Your HDA services have been restarted. Your HDA services have been restarted. cp: cannot stat ‘/etc/monit.conf’: No such file or directory App: Monit Service Manager installed ======= app install end @ 2013-11-21 17:57:03 -0800 ==========
i will report again after the fixes you did and i can test.

Re: Monit Service Manager Web App Testing

Posted: Fri Nov 22, 2013 1:07 am
by cpg
after the fixes, the app installed without errors.

note: i see now that /etc/monitrc is the main configuration file for monit in F19, not /etc/monit.conf.

it will not connect still to the webapp.

Re: Monit Service Manager Web App Testing

Posted: Fri Nov 22, 2013 6:10 am
by bigfoot65
Thanks for testing. Yes I noticed that too that it uses that file for configuration. There are a lot of default settings in there that can be changed.

Not sure why the web app is not working. Can you please check around line 116 for the http line in monitrc. It should be uncommented along with the password line.

Re: Monit Service Manager Web App Testing

Posted: Fri Nov 22, 2013 6:44 pm
by cpg
neither the monitrc nor any of the monit.d/*conf files are more than 4 lines. only two are more with 7 (localhost) and 8 (amahi-time machine).

not sure where you mean for me to look for line 116 in "http".

Re: Monit Service Manager Web App Testing

Posted: Fri Nov 22, 2013 6:50 pm
by bigfoot65
The monitrc file should be well over 100 lines. Odd that your is so short. That may be why the web interface is not working.

Re: Monit Service Manager Web App Testing

Posted: Fri Nov 22, 2013 7:20 pm
by cpg
well, if it was big originally, i am not sure. i see this.

i believe remember it was all 99% comments and then including the conf files.

Code: Select all

# WARNING - This file was automatically generated on 2013-03-01 19:57:05 -0800 set daemon 30 include /etc/monit.d/logging include /etc/monit.d/*.conf

Re: Monit Service Manager Web App Testing

Posted: Fri Nov 22, 2013 7:26 pm
by bigfoot65
Yea those comments were default settings that could be changed and the part to implement the web interface. Since those are gone on your version, the app won't work.

The file should be intact for most installs I would expect.

Re: Monit Service Manager Web App Testing

Posted: Wed Oct 10, 2018 2:52 pm
by jehali
After installing Monit , I got at first a 503 error, but in /etc/monit.d/localhost.conf I did comment the following lines:
set mailformat unto message ....
After that I was able to login.
But the monitoring of nfs service and ntpd service gives errors.
In /var/run are the files nfs.pid and ntpd.pid not present.

Is there a solutions for this?

Re: Monit Service Manager Web App Testing

Posted: Wed Oct 10, 2018 3:32 pm
by bigfoot65
Please start a new topic and provide the URL for the following:

Code: Select all

apadte —sysinfo
The topic was for testing of the app before it was released LIVE.

It’s also quite old.