문제

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