Hello,
I want to configure alert once particular event id generate in windows server.
Thanks,
Imran Khan.
Monitoring event id in Nagios ystem.
Re: Monitoring event id in Nagios ystem.
You are checking with "filter=new". Is the event still considered "new"?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Monitoring event id in Nagios ystem.
The syntax used in this thread is horribly old and does simply not work.
please upgrade to newer version and use the filter syntax present in 0.4.1 it will work much more easily and much more consistently.
// Michael Medin
please upgrade to newer version and use the filter syntax present in 0.4.1 it will work much more easily and much more consistently.
// Michael Medin
// Michael Medin @mickem, blog.medin.name
Author of NSClient++ - http://nsclient.org
NSClient++ 0.4.2 Documentation: http://docs.nsclient.org
Author of NSClient++ - http://nsclient.org
NSClient++ 0.4.2 Documentation: http://docs.nsclient.org
Re: Monitoring event id in Nagios ystem.
@ imran_khan
Let us know if mickem's suggestion fixed your issue.
Let us know if mickem's suggestion fixed your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Monitoring event id in Nagios ystem.
@Michael Medin
Can you provide imran_khan with the correct syntax when he upgrades to 0.4.1?
Can you provide imran_khan with the correct syntax when he upgrades to 0.4.1?
Re: Monitoring event id in Nagios ystem.
Code: Select all
./check_nrpe -H IP_Address -p 5666 -c CheckEventLog -a filter=new file=all MaxWarn=1 MaxCrit=2 filter-generated=\<30 filter+eventID=="4111" filter+eventType==all filter=all
Code: Select all
./check_nrpe -H IP_Address -p 5666 -c CheckEventLog -a file=all MaxWarn=1 MaxCrit=2 "filter=generated\>-30 AND id=4111"
Code: Select all
./check_nrpe -H IP_Address -p 5666 -c check_eventlog -a file=all "crit=count>0" "filter=generated\>-30 AND id=4111"
In 0.4.2 the newer APIs no longer fall back to Application so log would need to be correct in that version.
// Michael Medin
// Michael Medin @mickem, blog.medin.name
Author of NSClient++ - http://nsclient.org
NSClient++ 0.4.2 Documentation: http://docs.nsclient.org
Author of NSClient++ - http://nsclient.org
NSClient++ 0.4.2 Documentation: http://docs.nsclient.org
Re: Monitoring event id in Nagios ystem.
Thanks, mickem!
Be sure to check out our Knowledgebase for helpful articles and solutions!