Hi,
Is it possible to not log lines like PASSIVE SERVICE CHECK: * and EXTERNAL COMMAND: * in the file nagios.log?
I probably misthought that this was possible with the configuration file variables log_passive_checks and log_external_commands which by default are set with a "0" value.
Greetings,
Jorge.
log_passive_checks and log_external_commands?
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: log_passive_checks and log_external_commands?
Hello, @santec. What version of NagiosXI are you using? You're talking about the nagios.log file, right? Can you show me an example of what gets logged so I could reproduce it in the lab?
Thanks.
Thanks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: log_passive_checks and log_external_commands?
You can close this thread. The configuration variables work for those lines beggining with: PASSIVE SERVICE CHECK: * and EXTERNAL COMMAND: *.
I would like not to log lines beggining with:
External command error: Command failed
Warning: Passive check result was received for service *
Error: External command failed *
Greetings,
Jorge.
I would like not to log lines beggining with:
External command error: Command failed
Warning: Passive check result was received for service *
Error: External command failed *
Greetings,
Jorge.
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: log_passive_checks and log_external_commands?
@santec, This logic seems to be embedded in the Core source code.
You can submit a new feature request on the Core github to be able to stop error logging from the main config file.
https://github.com/NagiosEnterprises/na ... issues/new
Or I can submit this FR on your behalf if you'd like.
Code: Select all
if (external_command_ret != CMD_ERROR_OK) {
logit(NSLOG_EXTERNAL_COMMAND | NSLOG_RUNTIME_WARNING, TRUE, "Error: External command failed -> %s;%s\n", command_id, args);
}
https://github.com/NagiosEnterprises/na ... issues/new
Or I can submit this FR on your behalf if you'd like.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.