[Nagiosplug-devel] [ nagiosplug-Patches-2838697 ] check_procs: Behave properly on OpenVZ hardware nodes
SourceForge.net
noreply at sourceforge.net
Mon Aug 17 02:54:53 CEST 2009
Patches item #2838697, was opened at 2009-08-17 02:54
Message generated for change (Tracker Item Submitted) made by lfittl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2838697&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lukas Fittl (lfittl)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs: Behave properly on OpenVZ hardware nodes
Initial Comment:
In an OpenVZ virtual environment: If you run "check_procs" on the hardware node, it returns information about all process on the hardware node + all virtual containers. It should of course ignore the virtual containers, as you would have a seperate NRPE server running in these.
The attached patch solves this problem, by checking in /proc/PID/status if the process runs on the hardware node, or in one of the containers.
This new codepath simply does nothing on non-OpenVZ/non-Linux systems.
Patch against current master (check_procs v1.4.13.163.gb8a6.dirty)
Tested on Debian Linux 5.0 "lenny", running in 64-bit mode.
Thanks,
Lukas
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2838697&group_id=29880
More information about the Devel
mailing list