سؤال

Is there a way to put optional arguments in centreon/nagios

A simple example. In Centreon:

$USER1$/check_http -H $ARG1$ -p $ARG2$ -w $ARG3$

Host (-H) and port (-p) arguments as required and warning argument (-w) set it as optional

هل كانت مفيدة؟

المحلول

You could just do

$USER1$/check_http -H $ARG1$ -p $ARG2$ $ARG3$

And set $ARG3$ if you need it.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top