Is there a max length for a command_line ?

Marc Powell marc at ena.com
Mon Jun 19 18:58:45 CEST 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Steve Traylen
> Sent: Monday, June 19, 2006 9:43 AM
> To: nagios-users
> Subject: [Nagios-users] Is there a max length for a command_line ?
> 
> 
> 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'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





More information about the Users mailing list