monit-general
[Top][All Lists]
Advanced

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

Re: monit reporting wrong total system memory


From: Kris Rasmussen
Subject: Re: monit reporting wrong total system memory
Date: Tue, 17 Jul 2007 11:39:08 -0700

I copied the information you requested below. I am getting another interesting problem... but now I am  also getting another interesting problem. After setting up monit to start with init via:
# Run monit in standard run-levels

mo:2345:respawn:/usr/local/bin/monit -Ic /etc/monitrc
The monit dameon is suddenly not responding to http requests (hangs) or requests made directly from the shell after I restarted some processes. When the processes first restarted (they are ruby mongrel processes) mongrel reported that they changed, and then said the first 2 were running again fine, but after that it froze.

Thanks again for the help!

Here is some relevant information to this new issue (the other info you requested is below this)
---------------------------------------------------

I can't stop monit with (this works before the process hangs):
 monit -c (path to my config) quit
(The processes keeps running event though monit says it was stopped)

I can't get status with (this works before the process hangs):
monit -c (path to my config) status
monit: cannot read status from the monit daemon

The start of my config file:
------------------------------------
set daemon 15 # Perform a check every 15 seconds
set logfile /var/log/monit.log

set alert (my email)

# This section configures Monit's web frontend on port http://localhost:2812.
set httpd port 2812 and
  # only accept connection from localhost. Change to 0.0.0.0 to accept
  # remote connections. Make sure to change the password in the 'allow'
  # statement if you do.
  use address 0.0.0.0
  # When someone connects to the web frontend, perform basic HTTP i
  # authentication and accept username/password admin/MonitPa$$w0rd
  allow localhost
  allow (my ip)
  allow admin:(my pass)
-------------------

ps -aux | grep monit :

root      3945  0.0  0.0   79196  1988 ?        Ssl  04:48   0:10 /usr/local/bin/monit -Ic /home/rails/conf/monit.conf

monit logs :

[CDT Jul 17 13:05:50] error    : 'mongrel_8001' process PID changed to 14179
[CDT Jul 17 13:05:51] error    : 'mongrel_8002' process PID changed to 14182
[CDT Jul 17 13:05:51] error    : 'mongrel_8003' process PID changed to 14185
[CDT Jul 17 13:05:52] error    : 'mongrel_8004' process PID changed to 14188
[CDT Jul 17 13:05:52] error    : 'mongrel_8005' process PID changed to 14191
[CDT Jul 17 13:05:53] error    : 'mongrel_8006' process PID changed to 14194
[CDT Jul 17 13:05:53] error    : 'mongrel_8007' process PID changed to 14197
[CDT Jul 17 13:05:54] error    : 'mongrel_8008' process PID changed to 14201
[CDT Jul 17 13:05:54] error    : 'mongrel_8009' process PID changed to 14204
[CDT Jul 17 13:05:55] error    : 'mongrel_8010' process PID changed to 14209
[CDT Jul 17 13:06:10] info     : 'mongrel_8001' PID has not changed
[CDT Jul 17 13:06:10] info     : 'mongrel_8002' PID has not changed
[CDT Jul 17 13:06:10] info     : 'mongrel_8003' PID has not changed
[CDT Jul 17 13:21:51] error    : monit: cannot read status from the monit daemon
[CDT Jul 17 13:22:21] error    : monit: cannot read status from the monit daemon

---------------------------------------------------
The information you requested

1.) you mean the log output?

[CDT Jul 17 04:48:10] info     : Starting monit daemon with http interface at [0.0.0.0:2812]
[CDT Jul 17 04:48:10] info     : Starting monit HTTP server at [ 0.0.0.0:2812]
[CDT Jul 17 04:48:10] info     : monit HTTP server started
[CDT Jul 17 04:48:10] info     : Monit started
....
[CDT Jul 17 04:53:22] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:53:22] info     : Awakened by User defined signal 1
[CDT Jul 17 04:53:30] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:53:30] info     : Awakened by User defined signal 1
[CDT Jul 17 04:53:37] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:53:37] info     : Awakened by User defined signal 1
[CDT Jul 17 04:53:43] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:53:43] info     : Awakened by User defined signal 1
[CDT Jul 17 04:53:49] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:53:49] info     : Awakened by User defined signal 1
[CDT Jul 17 04:53:55] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:53:55] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:00] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:00] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:08] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:08] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:19] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:19] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:25] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:25] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:31] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:31] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:37] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:37] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:42] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:42] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:48] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:48] info     : Awakened by User defined signal 1
[CDT Jul 17 04:54:54] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:54:54] info     : Awakened by User defined signal 1
[CDT Jul 17 04:55:01] info     : monit daemon at 3945 awakened
[CDT Jul 17 04:55:01] info     : Awakened by User defined signal 1


2.) file monit
/usr/local/bin/monit: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

3.) cat proc/mem/info:

MemTotal:      4047856 kB
MemFree:       2644436 kB
Buffers:        157468 kB
Cached:         274140 kB
SwapCached:          0 kB
Active:        1131332 kB
Inactive:       190324 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      4047856 kB
LowFree:       2644436 kB
SwapTotal:     1052248 kB
SwapFree:      1052248 kB
Dirty:               8 kB
Writeback:           0 kB
AnonPages:      889808 kB
Mapped:          23152 kB
Slab:            45124 kB
PageTables:      14176 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   3076176 kB
Committed_AS:  1257752 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    263356 kB
VmallocChunk: 34359474803 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

On 7/17/07, Martin Pala <address@hidden> wrote:
Can you please send?:

1.) the related monit's output
2.) output of 'file' command on monit binary (to see whether monit
binary is 64-bit as well)
3.) output of /proc/meminfo

Thanks,
Martin

On Jul 17, 2007, at 10:08 AM, Kris Rasmussen wrote:

> Monit is currently reporting that i have 1042132 kB of memory but I
> actually have 4 gigs. This is a quad core system. Any ideas why
> this might be wrong and how i can fix it?
>
> I am running centos 5 64bit. I compiled monit from source as per
> instructions on the website.
>
> Thank you,
> Kris
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

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