Where are commands and variables in "commands.cfg" defined
Posted: Sun Jun 01, 2014 10:53 am
Hi All,
Can you please let me know where are all the variables used in "commands.cfg" defined in Nagios ? Below is an example
command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
I am running Nagios Core Version 4.0.6 in CentOS.
Regards,
Chethan Krishna.
Can you please let me know where are all the variables used in "commands.cfg" defined in Nagios ? Below is an example
define command{
command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
Where are $USER1$, $ARG1$, $ARG2$, $ARG3$ variables defined ? And in which directory are "check_local_disk" and other commands defined in Nagios ?
I am running Nagios Core Version 4.0.6 in CentOS.
Regards,
Chethan Krishna.