Is there a max length for a command_line ?

Steve Traylen s.traylen at rl.ac.uk
Mon Jun 19 16:42:38 CEST 2006


Hi,

  I've  been trying to use check_cluster2 to monitor over all state of a 1000 node batch farm .

  So you end up with something like.

  define command{
     command_name check_host_cluster_workers 
     command_line /usr/lib/nagios/plugins/check_cluster2 \
        --host -l "Batch Cluster" -w $ARG1$ -c $ARG2$ -d $HOSTSTATEID:node0001$,$HOSTSTATEID:node0002$,  .... \
                  ...  $HOSTSTATEID:node0998$,$HOSTSTATEID:node0999$,$HOSTSTATEID:node1000$
  }

  While I can run 

  $ /usr/lib/nagios/plugins/check_cluster2 --host -l "Batch" -w 3 -c 5 -d 0,0,0,0,1,1,1,1,...,1,1,1,1.0

  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.

  Steve


  
  
  


-- 
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