Hi all!<br><br>I was wondering if it is possible (or would be easy to implement) default values for nagios check commands. Let me explain.<br><br>I would like my nagios configuration to be as transparent as possible, which also means it should be as small as possible (no duplicated definitions). This works fine if you have homogenic host family. Once you start hitting diversity things are not that simple anymore. Anyway...<br>

<br><br>Currently I have to have two similar command definitions to achieve the effect desired, one is fixed and other has variable arguments:<br><br>###### Start of current config #################################################<br>

### First command<br>define command{<br>        command_name    check-metric_sys-intr<br>        command_line    $USER3$/check_ganglia $HOSTNAME$ sys_intr less 2000 5000<br>}<br>### Second command for hosts that do not fall into the average<br>

define command{<br>        command_name    check-metric_sys-intr_custom<br>        command_line    $USER3$/check_ganglia $HOSTNAME$ sys_intr less $ARG1$ $ARG2$<br>}<br><br><br>##### Then there are service definitions<br>
### For average host<br>
define service{<br>        use service_check-metric_sys-intr    # Defined previously as template with "register 0"<br>        host_name    <a href="http://host-average.example.net" target="_blank">host-average.example.net</a><br>

}<br>### For not-so-average host<br>define service{<br>
        use service_check-metric_sys-intr<br>
        host_name    <a href="http://host-exception.example.net" target="_blank">host-exception.example.net</a><br>        check_command   check-metric_sys-intr_custom!5000!10000<br>
}<br>
###### End of current config #################################################<br><br><br><br>I would like those arguments ARG1 and ARG2 to have some way of defining default values,  and the final config should look something like this (note the colon operator for default values and only one command definition)<br>

<br><br><br>###### Start of desired config #################################################<br>
define command{<br>
        command_name    check-metric_sys-intr<br>
        command_line    $USER3$/check_ganglia $HOSTNAME$ sys_intr less $ARG1:2000$ $ARG2:5000$<br>
}<br>
<br>

##### Then there are service definitions<br>
### For average host<br>
define service{<br>
        use service_check-metric_sys-intr<br>
        host_name    <a href="http://host-average.example.net" target="_blank">host-average.example.net</a><br>
}<br>
### For not-so-average host<br>
define service{<br>

        use service_check-metric_sys-intr<br>

        host_name    <a href="http://host-exception.example.net" target="_blank">host-exception.example.net</a><br>
        check_command   check-metric_sys-intr!5000!10000<br>

}<br>

###### End of current config #################################################<br>
<br><br>I have not yet dug into nagios internals, but would this be possible without too much hassle?<br>Thank you for your time,<br>b.<br><br>