CLOSED: Monit Service Manager Web App Testing

User avatar
bigfoot65
Project Manager
Posts: 11064
Joined: Mon May 25, 2009 4:31 pm

CLOSED: Monit Service Manager Web App Testing

Postby bigfoot65 » Wed Nov 20, 2013 6:11 am

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
ßîgƒσστ65
Applications Manager

User avatar
cpg
Administrator
Posts: 2596
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Monit Service Manager Web App Testing

Postby cpg » Thu Nov 21, 2013 10:31 pm

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.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
cpg
Administrator
Posts: 2596
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Monit Service Manager Web App Testing

Postby cpg » Fri Nov 22, 2013 1:07 am

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.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
bigfoot65
Project Manager
Posts: 11064
Joined: Mon May 25, 2009 4:31 pm

Re: Monit Service Manager Web App Testing

Postby bigfoot65 » Fri Nov 22, 2013 6:10 am

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.
ßîgƒσστ65
Applications Manager

User avatar
cpg
Administrator
Posts: 2596
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Monit Service Manager Web App Testing

Postby cpg » Fri Nov 22, 2013 6:44 pm

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".
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
bigfoot65
Project Manager
Posts: 11064
Joined: Mon May 25, 2009 4:31 pm

Re: Monit Service Manager Web App Testing

Postby bigfoot65 » Fri Nov 22, 2013 6:50 pm

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.
ßîgƒσστ65
Applications Manager

User avatar
cpg
Administrator
Posts: 2596
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Monit Service Manager Web App Testing

Postby cpg » Fri Nov 22, 2013 7:20 pm

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
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
bigfoot65
Project Manager
Posts: 11064
Joined: Mon May 25, 2009 4:31 pm

Re: Monit Service Manager Web App Testing

Postby bigfoot65 » Fri Nov 22, 2013 7:26 pm

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.
ßîgƒσστ65
Applications Manager

jehali
Posts: 48
Joined: Thu Oct 06, 2011 10:37 am

Re: Monit Service Manager Web App Testing

Postby jehali » Wed Oct 10, 2018 2:52 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11064
Joined: Mon May 25, 2009 4:31 pm

Re: Monit Service Manager Web App Testing

Postby bigfoot65 » Wed Oct 10, 2018 3:32 pm

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.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 5 guests