nagios-cvs: Too many open files?
Ethan Galstad
nagios at nagios.org
Wed Feb 7 17:27:06 CET 2007
Marc Powell wrote:
>
>> -----Original Message-----
>> From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-
>> bounces at lists.sourceforge.net] On Behalf Of Gerd Mueller
>> Sent: Wednesday, February 07, 2007 9:40 AM
>> To: Nagios Developers List
>> Subject: [Nagios-devel] nagios-cvs: Too many open files?
>>
>> Hi,
>>
>> my systems are sometimes running out of open file handles. Is this
>> normal for a normal nagios process:
>>
>> nag01:~# lsof | grep "/tmp/nagios" | wc -l 41631
>
> I would say no, since nagios doesn't usually open files in /tmp.
>
> [root at dc1 root]# lsof | grep "/tmp/nagios"
> [root at dc1 root]#
>
> Is that the location of temp_file in nagios.cfg? Is the command shown in
> lsof for those processes nagios or some plugin? I suspect that it's
> going to be some misbehaving plugin that you're using.
>
Actually, Nagios has a new temp_path option that defines a directory
where Nagios will create temp files. Host and service checks in Nagios
3 write their output to temp files - that's how the plugin output length
restriction was done away with.
These temp files should be deleted once Nagios processed a host or
service check result. When Nagios stops, child processes may still be
running checks and writing output to temp files. These files won't get
processed/deleted up when Nagios restarts, so its a good idea to use
something like tmpwatch to delete temp files older than a few hours.
Gerd, the number of temp files is extremely high. How many Nagios
(child) processes are running when you check the count of temp files?
Something seems to be amiss. Either that or you're monitoring a ton of
services.
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Developers
mailing list