Is there a max length for a command_line ?

Steve Traylen s.traylen at rl.ac.uk
Tue Jun 20 14:26:06 CEST 2006


On Mon, Jun 19, 2006 at 11:58:45AM -0500 or thereabouts, Marc Powell wrote:
> 
> > Hi,
> > 
> >   I've  been trying to use check_cluster2 to monitor over all state of
> a
> > 1000 node batch farm .
> > 
> 
> [chop[]
> 
> > 
> >   on a cammand line for 1000 nodes okay the command when run within
> nagios
> > is trucated at a certain
> >   length. Probably 1024 though I have not counted. Only the first 500
> or
> > so nodes are considered.
> > 
> >   Is there a limit on command_line length somewhere within nagios?
> >   Can any one think of a way around this.
> 
> Yes. Presuming you are using 1.x, it's 8196 characters per line --
> 
> xdata/xodtemplate.h
> #define MAX_XODTEMPLATE_INPUT_BUFFER    8196

I don't see how it can be this, currently the command looks to be being truncated at
a very bizare 342 characters long.

 
> 
> I've increased that in the past to 65535 with no problems and Nagios-2
> uses that length by default.
> 
> --
> Marc 
> 
> 
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

-- 
Steve Traylen
s.traylen at rl.ac.uk
http://www.gridpp.ac.uk/


_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list