Re: [Nagios-devel] Possibly typos in checkcommands.cfg

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Possibly typos in checkcommands.cfg

Post by Guest »

For the first two - I think the numbers were put in such that a decent
default would exist for new users. It is meant to ease them into using
and understanding the config files.


-sg


On Thu, 6 Jun 2002, Jun Kuriyama wrote:

>
> In sample-config/temlate-object, services.cfg uses some commands
> defined in checkcommands.cfg. But it seems passed argumets of some
> commands are not matched between these files. I think
> checkcommands.cfg is not updated correctly.
>
> How about this patch?
>
> Index: sample-config/template-object/checkcommands.cfg.in
> ===================================================================
> RCS file: /cvsroot/nagios/nagios/sample-config/template-object/checkcommands.cfg.in,v
> retrieving revision 1.2
> diff -u -r1.2 checkcommands.cfg.in
> --- sample-config/template-object/checkcommands.cfg.in 8 Mar 2002 03:38:36 -0000 1.2
> +++ sample-config/template-object/checkcommands.cfg.in 6 Jun 2002 02:16:11 -0000
> @@ -106,7 +106,7 @@
> # 'check_ping' command definition
> define command{
> command_name check_ping
> - command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 10.0,20% -c 100.0,60% -p 5
> + command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
> }
>
>
> @@ -127,7 +127,7 @@
> # 'check_local_disk' command definition
> define command{
> command_name check_local_disk
> - command_line $USER1$/check_disk -w 20% -c 10% -p $ARG1$
> + command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
> }
>
>
> @@ -141,7 +141,7 @@
> # 'check_local_procs' command definition
> define command{
> command_name check_local_procs
> - command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
> + command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$
> }
>
>
>






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: sghosh@sghosh.org
Locked