Pls Help, check_eventlog exclude eventid

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
carmenqueasyy
Posts: 1
Joined: Fri Oct 18, 2019 3:08 am

Pls Help, check_eventlog exclude eventid

Post by carmenqueasyy »

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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Pls Help, check_eventlog exclude eventid

Post by scottwilkerson »

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"
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked