Hi everybody!
I am trying to check some errors that we have in a eventlog of a server but I received an error.
I execute this command:
./check_nrpe -H 172.17.24.176 -p 5666 -c CheckEventLog -t 30 -a file="system" filter=new filter=out MaxWarn=1 MaxCrit=1 filter-generated=\>1h filter+severity==error filter-severity==success filter-severity==informational filter=in filter=all truncate=1023 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"
I dont understand some of the parameters, but I receive this:
Could not construct return packet in NRPE handler check client side (nsclient.log) logs...
Thanks for your help!
Windows EventLog with NSClient
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Windows EventLog with NSClient
Do you have allow_arguments, and allow_nastymetacharacters enabled "set to 1" in the nsclient/nsc.ini file?
Can you also post your nsclient.log file?
Can you also post your nsclient.log file?
Re: Windows EventLog with NSClient
Hi!!
Thanks for your answer and help.
Here you have the file. I did it, but I get the same issue.
Thanks
Thanks for your answer and help.
Here you have the file. I did it, but I get the same issue.
Thanks
- Attachments
-
nsclient.log- (740 Bytes) Downloaded 452 times
-
NSC.ini- (12.87 KiB) Downloaded 568 times
Re: Windows EventLog with NSClient
Hi,
It is working!!!!!!!!! with that:
./check_nrpe -H 172.17.24.168 -c CheckEventLog -a filter=new file="Application" MaxWarn="1" MaxCrit="1" filter-generated=\>15m filter+eventSource="Siebel Application" filter+eventType==Error filter+message=substr: unique truncate=1000 filter=in filter=all descriptions syntax=%message%
Could you tell me what is the next step?
How to define a command like this?
Thanks a lot!
It is working!!!!!!!!! with that:
./check_nrpe -H 172.17.24.168 -c CheckEventLog -a filter=new file="Application" MaxWarn="1" MaxCrit="1" filter-generated=\>15m filter+eventSource="Siebel Application" filter+eventType==Error filter+message=substr: unique truncate=1000 filter=in filter=all descriptions syntax=%message%
Could you tell me what is the next step?
How to define a command like this?
Thanks a lot!
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Windows EventLog with NSClient
Take a look at this page:
http://nagios.sourceforge.net/docs/3_0/ ... ml#command
It will show you how to take the command you ran and turn it into a nagios command.
http://nagios.sourceforge.net/docs/3_0/ ... ml#command
It will show you how to take the command you ran and turn it into a nagios command.
Re: Windows EventLog with NSClient
Thanks slansing, it is working!