ADAPTIVE CHECK CHANGE_SVC_CHECK_COMMAND
Posted: Fri Dec 28, 2012 3:45 am
Hello
I would like to use the external command change_svc_check_command to change dicamically the warning and critical values of the checks
However it doesn´t work
I think the cause that it doesn't work is the modification introduced in the version 3.0.6 (Disabled adaptive check and eventhandler commands for security reasons ) as you can see in the URL:
http://www.nagios.org/projects/nagiosco ... ry/core-3x
I’m using the 3.2.1 version.
In this version and also in the latest version 3.4.3, I can see the next source code in the base/commands.c file
/* SECURITY PATCH - disable these for the time being */
switch(cmd) {
case CMD_CHANGE_GLOBAL_HOST_EVENT_HANDLER:
case CMD_CHANGE_GLOBAL_SVC_EVENT_HANDLER:
case CMD_CHANGE_HOST_EVENT_HANDLER:
case CMD_CHANGE_SVC_EVENT_HANDLER:
case CMD_CHANGE_HOST_CHECK_COMMAND:
case CMD_CHANGE_SVC_CHECK_COMMAND:
return ERROR;
}
I guess if I delete the above code, the external command change_svc_check_command will work
Is not recommended to enable these external command?
Why was it disabled in the version 3.0.6? This is not resolved in the latest version?
I haven´t found any offical documentation about this
Thanks
I would like to use the external command change_svc_check_command to change dicamically the warning and critical values of the checks
However it doesn´t work
I think the cause that it doesn't work is the modification introduced in the version 3.0.6 (Disabled adaptive check and eventhandler commands for security reasons ) as you can see in the URL:
http://www.nagios.org/projects/nagiosco ... ry/core-3x
I’m using the 3.2.1 version.
In this version and also in the latest version 3.4.3, I can see the next source code in the base/commands.c file
/* SECURITY PATCH - disable these for the time being */
switch(cmd) {
case CMD_CHANGE_GLOBAL_HOST_EVENT_HANDLER:
case CMD_CHANGE_GLOBAL_SVC_EVENT_HANDLER:
case CMD_CHANGE_HOST_EVENT_HANDLER:
case CMD_CHANGE_SVC_EVENT_HANDLER:
case CMD_CHANGE_HOST_CHECK_COMMAND:
case CMD_CHANGE_SVC_CHECK_COMMAND:
return ERROR;
}
I guess if I delete the above code, the external command change_svc_check_command will work
Is not recommended to enable these external command?
Why was it disabled in the version 3.0.6? This is not resolved in the latest version?
I haven´t found any offical documentation about this
Thanks