[Nagiosplug-devel] [ nagiosplug-Bugs-3552838 ] check_procs option -a fails on long command lines due to COL
SourceForge.net
noreply at sourceforge.net
Wed Aug 1 01:09:31 CEST 2012
Bugs item #3552838, was opened at 2012-07-31 16:09
Message generated for change (Tracker Item Submitted) made by calestyo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3552838&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Cálestyo (calestyo)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs option -a fails on long command lines due to COL
Initial Comment:
Hi.
This is from the old / soon to be disabled again Nagios Plugins bug tracker that used to be at Nagios itself.
I've just copied this bug over. I'm not the original reporter and have no idea about the thoughts about this bug.
This used to be: http://tracker.nagios.org/view.php?id=231
--------------------------------------------------------------------------------
Christoph Probst :
--------------------------------------------------------------------------------
To receive a list of processes the check_procs plug-in uses
/bin/ps axwo 'stat uid pid ppid vsz rss pcpu etime comm args'
ps limits its output in regard to the current value of the environment variable COLUMNS. If COLUMNS is set to a small value and the command line arguments of the process is very long (e.g. >1000 characters for a java command with many properties), a required command line argument (-a option) might not be found.
Debugging becomes tricky as the value of COLUMNS depends on the current environment, when NRPE/check_procs is started. If the NRPE Daemon is started by init, the COLUMNS value might be a lot smaller (96 in my case) than if NRPE Daemon is restarted manually using /etc/init.d/nrpe restart. Actually it depends on the current xterm/putty windows size if the check turns green after a manuall restart or not.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3552838&group_id=29880
More information about the Devel
mailing list