Project

General

Profile

Bug #942

monit

Added by smccloud almost 8 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/09/2012
Due date:
% Done:

20%


Description

On my Amahu for Ubuntu install (or is it Ubuntu Amahi Edition?) monit is taking up way more CPU time than it ever did in Fedora 14. Please see the attached screenshot for the usage it normally has.

monit.png View (62.5 KB) smccloud, 07/09/2012 03:37 PM

monit.log View (473 Bytes) melnik, 07/29/2012 11:56 PM

History

#1 Updated by bigfoot65 almost 8 years ago

I see the same issue on my HDA.

#2 Updated by bigfoot65 almost 8 years ago

I see the same issue on my HDA. It lasts for about 1 minute, then goes away for a minute. Then comes back. Seems to be a cycle.

#3 Updated by cpg almost 8 years ago

  • Priority changed from High to Normal

check the log to see what's making it start up like that and post relevant parts here please.

#4 Updated by smccloud almost 8 years ago

cpg wrote:

check the log to see what's making it start up like that and post relevant parts here please.

After adding set logfile /var/log/monit.log to /etc/monit/monitrc I get the following.

[CDT Jul 3 22:27:14] info : monit: generated unique Monit id d9b338f65fc69fdfefed753844562161 and stored to '/var/lib/monit/id'
[CDT Jul 3 22:27:14] info : Starting monit daemon
[CDT Jul 3 22:27:14] error : State file '/var/lib/monit/state': Unable to read magic
[CDT Jul 3 22:27:14] info : 'system_hda' Monit started
[CDT Jul 3 22:39:13] info : monit daemon with pid [9323] killed
[CDT Jul 3 22:39:13] info : 'system_hda' Monit stopped
[CDT Jul 9 22:13:30] info : Starting monit daemon
[CDT Jul 9 22:13:30] info : 'system_hda' Monit started
[CDT Jul 9 22:13:30] error : 'openvpn' process is not running
[CDT Jul 9 22:13:30] info : 'openvpn' trying to restart
[CDT Jul 9 22:13:30] info : 'openvpn' start: /etc/init.d/openvpn

Restarting it from the CLI I get the following.

shaun@hda:/var/log$ sudo service monit restart * Stopping daemon monitor monit [ OK ] * Starting daemon monitor monit /etc/monit/conf.d/amahi-transmission.conf:3: Warning: Program does not exist: '/etc/init.d/amahi-transmission'
/etc/monit/conf.d/amahi-transmission.conf:4: Warning: Program does not exist: '/etc/init.d/amahi-transmission'
[ OK ]

Could it be transmission?

#5 Updated by guerilla almost 8 years ago

experiencing the same problem, I uninstalled transmission but this seems to of made no difference. Monit continues to cycle between zero and 65%.

tail -n 1000 /var/log/monit.log
[BST Jul 3 18:49:29] info : monit: generated unique Monit id e007763bc06902984dc8286de2d71ca9 and stored to '/var/lib/monit/id'
[BST Jul 3 18:49:29] info : Starting monit daemon
[BST Jul 3 18:49:29] error : State file '/var/lib/monit/state': Unable to read magic
[BST Jul 3 18:49:29] info : 'system_homeserver' Monit started
[BST Jul 3 18:59:51] info : monit daemon with pid [19403] killed
[BST Jul 3 18:59:51] info : 'system_homeserver' Monit stopped

#6 Updated by eFfeM almost 8 years ago

Tried to reproduce this on my test VM.
after system uptime of 30 mins, ps tells me monit is still at 0:00, so it does not seem to have soaked up a second of activity.
I've also peeked at the system with top and with the system monitor.
System load is < 10 % (on the VM which is running on a single core of an i7-2600)
about 4.6% is used by Xorg, about 4.6% by system monitor.

No spikes or so in system monitor. Also during the time I watched it I did not see it show up in top.
Note that this is after a clean install with no apps installed.

smnccloud, bigfoot, can you tell what apps you have installed? This could be app related
Also if possible could you try a clean install and reinstall the apps one by one to see when the problem reappears

Thanks, Frans

#7 Updated by bigfoot65 almost 8 years ago

I have apps like Monitorix, OpenVPN ALS, and DLNA installed. This is with the latest platform.

#8 Updated by guerilla almost 8 years ago

I have the following installed

  • Sickbeard
  • Subsonic
  • Ampache
  • Tin Can Jukebox
  • Sabnzbd+ Update Test
  • Greyhole LogMon
  • Gallery 3

I have also installed and removed transmission.

#9 Updated by smccloud almost 8 years ago

My installed apps are.

  • Transmission
  • OpenDB
  • phpMyAdmin
  • My Tiny Todo
  • Monitorix
  • Linfo
  • OpenVPN
  • Greyhole LogMon

#10 Updated by melnik almost 8 years ago

If it helps here is my monit log file.. Not much to see there though
Also when i execute status command i get following:

sudo monit status

monit: error connecting to the monit daemon

Looks like monit is not running or is continuously starting/stopping maybe...
Now, can I shut it down without major consequences?

#11 Updated by melnik almost 8 years ago

In my case the 50% monit load was caused by watchdog of openvpn and crashplan process that erroneously assumed them not working correctly and trying to restart them. Disabling watchdog for openvpn and crashplan solved the issue. I am not much of a power user so don't know where to proceed from this point

#12 Updated by melnik almost 8 years ago

  • % Done changed from 0 to 20

#13 Updated by eFfeM almost 8 years ago

Thanks for the report
due to some other issues I did not have time to further look into this, but I'll pick it up a.s.a.p.

#14 Updated by eFfeM over 7 years ago

no idea yet what is wrong. installed crashplan and openvpn but I do not get a high monit load.
crashplan settings are also ok

root@ub12:/etc/monit/conf.d# cat cra*conf
  1. WARNING - This file was automatically generated on Sun Sep 02 16:01:17 +0200 2012
    check process crashplan with pidfile /var/run/crashplan.pid
    start program = "/etc/init.d/crashplan start"
    stop program = "/etc/init.d/crashplan stop"
    root@ub12:/etc/monit/conf.d# ls l /var/run/crashplan.pid
    lrwxrwxrwx 1 root root 40 Sep 2 16:02 /var/run/crashplan.pid -> /usr/local/crashplan/CrashPlanEngine.pid
    root@ub12:/etc/monit/conf.d# ls -l /usr/local/crashplan/CrashPlanEngine.pid
    -rw-r--r-
    1 root root 6 Sep 2 16:03 /usr/local/crashplan/CrashPlanEngine.pid

#15 Updated by guerilla over 7 years ago

Disabling the watchdog and stopping the OpenVPN server does not reduce the monit load, it still pulses to 60% psu. I do not have crash plan installed.

Is there any further information I can provide to assist in this?

#16 Updated by stern88 over 7 years ago

smccloud wrote:

On my Amahu for Ubuntu install (or is it Ubuntu Amahi Edition?) monit is taking up way more CPU time than it ever did in Fedora 14. Please see the attached screenshot for the usage it normally has.

Hi!
I myself run Amahi on Ubuntu since 2 weeks. Until now my CPU spends most of the time with idling. I have installed

Wordpress
Videos5
Ampache
Phpmyadmin
Piwik
Transmission
Web-Apps Proxy

Br
stern

Also available in: Atom