Pls Help, check_eventlog exclude eventid

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

Pls Help, check_eventlog exclude eventid

Postby carmenqueasyy » Fri Oct 18, 2019 3:18 am

Hi, I using script for check eventlog
Code: Select all
check_nrpe -n -t 120 -H x.x.x.x -c check_eventlog -a "scan-range=-1h" "file=application" "warn=count>50" "crit=count>75" "top-syntax=%(status): %(count) message(s)"

Its works fine, but I have an eventid that I want to exclude from the final result, is this possible?
I trying
Code: Select all
check_nrpe -n -t 120 -H x.x.x.x -c check_eventlog -a "scan-range=-1h" "file=application" "warn=count>50" "crit=count>75" "top-syntax=%(status): %(count) message(s)" "filter!=id=1515"

but "!=" not work for "filter", help! Thanks.
carmenqueasyy
 
Posts: 1
Joined: Fri Oct 18, 2019 3:08 am

Re: Pls Help, check_eventlog exclude eventid

Postby scottwilkerson » Fri Oct 18, 2019 10:26 am

negate is in the wrong place

Try:
Code: Select all
check_nrpe -n -t 120 -H x.x.x.x -c check_eventlog -a "scan-range=-1h" "file=application" "warn=count>50" "crit=count>75" "top-syntax=%(status): %(count) message(s)" "filter=id != 1515"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17020
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 7 guests