Page 1 of 1

Application Errors - Exception

Posted: Thu Nov 07, 2024 2:38 pm
by pchamourtzidis
Hello everyone,
In Nagios XI I’m checking application logs on a server for critical application errors (i.e., event viewer).
I’ve been doing this for the past couple of years now. We wanted to be notified of "any" critical application errors on the server, until now.
We still want to be notified of all critical application errors, with the exception of one specific reoccurring error that we cannot fix for now.
Is there a way to create an exception by event ID or source name?
I know Nagios has Nagios Log Server, but there should be a way to do this via XI. If you can check for specific errors, you should be able to make exceptions as well.
Any help would be greatly appreciated.

Re: Application Errors - Exception

Posted: Fri Nov 08, 2024 12:26 pm
by bbahn
Hello @pchamourtzidas,

Currently, you cannot select all logs except a certain name in NCPA, so the check_xi_ncpa plugin can't directly accomplish your goal. To accomplish your desired functionality, I would recommend creating a plugin that runs your current check_xi_ncpa command (or the underlying check_ncpa.py) as seen in your configuration and then ignores the response if it is from the particular error you are referencing. I apologize for the inconvenience. If you'd like, I can make a feature request to add exclusion to NCPA checks.

Re: Application Errors - Exception

Posted: Fri Nov 08, 2024 3:48 pm
by sgardil
Unfortunately like Blake mentioned this functionality doesnt currently exsist. In the mean time if you wanted to make a plugin like mentioned above here is some documentation that may help.

https://nagios-plugins.org/doc/guidelines.html

Re: Application Errors - Exception

Posted: Tue Nov 19, 2024 2:53 pm
by pchamourtzidis
Thank you everyone. I really appreciate the feedback, recommendations and the link to the guides.