Page 1 of 1

Nagios + OpenVZ

Posted: Mon Aug 30, 2010 1:27 am
by romeor
Hello.

I've got some memory leak problem using Nagios on OpenVZ container. After some time it is being running, i start to recive failcnt on privvmpages in /proc/user_beancounters statictics. And it happens only to the nagios container. because of these errors i can find some errors in nagios.log:
nagios: Warning: The check of service 'ping' on host '****' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service...

and errors like
Warning: The check of host '****' could not be performed due to a fork() error: 'Cannot allocate memory'.

and in fact nagios has 1281 MB of guaranteed memory and more than 2GB available allocation memory.
there is not so many services or hosts to eat up all the mem available. it seems to me like a leak.

Kernel:
Linux wmxkaart 2.6.24-11-pve #1 SMP PREEMPT Fri May 14 09:28:08 CEST 2010 x86_64 x86_64 x86_64 GNU/Linux
Version:

Nagios Core 3.2.1
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-09-2010

and i do also run nagvis 1.5 plugin + nagios livestatus module.
i need any advice for a workaround.

Re: Nagios + OpenVZ

Posted: Thu Sep 02, 2010 7:19 am
by romeor
Well, it seems like it is not up to openvz. it is something wrong with nagios core.
after some time nagios is ran, i can see that it's memory usage is 14% or sometimes more. and it never goes down.