Hello All, a relative noob with Nagios but am digging more & more into it daily. Currently running 2.0b3 but we are upgrading withing the next few weeks
Have a question on trying to simplify the administration part. I have a host that I want to configure to do a check_http test. On this particular test, I want to use the following options with the check_http command - -H , -u , -t , -e. In my commands.cfg file, I have a check_http command that looks like this :
command_line $USER1$/check_http -H $HOSTADDRESS$
As it seems now, if I want to use the check_http command, I would have to define a new command in the commands.cfg file to include all of the required options I want to use with check_http.
command_line $USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$ -t $ARG2$ -e $ARG3$
Now say I have another host that I want to do a check_http test on but for this test I only want to use the following options with chech_http - -H -u -e
I assume I would have to create another NEW command in the commands.cfg file to accomodate this specific set of options.
command_line $USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$ -e $ARG2$
My question is, is there anyway that I can use the basic check_http command and specify any required options in the services file where I have defined each service ? My goal here is to not have a seperate command in the commands.cfg file for every single option I may have to test for if they all will use the same basic check.
Assuming I haven’t totally confused everyone, thanks for your input.