NSClient++ Help (#1) - Check Event Log (#34) - Message List
G'day,
I'm having some issues trying to get the check event log. I've managed to get counters and pretty much everything else working (I've posted some things on the bottoms of each command). However, when trying to use this check I get
[root@NAGIOS3 libexec]# ./check_nrpe -H 10.66.69.29 -c CheckEventLog -a file=System MaxWarn=1 MaxCrit=2 filter-generated=\<2h filter-eventID==1106 UNKNOWN: Return buffer to small to handle this command. [root@NAGIOS3 libexec]# [root@NAGIOS3 libexec]#
Is anyone able to help me out here, or point me in the right direction. It could be a synax error, but I'm not sure.
Thanks
Greg
-
Message #35
generated=/
may be the "/" is not belong here
anonymous07/16/07 16:10:04 (6 years ago)-
Message #41
Try to add 'truncate=1022' to the command...
Boudi08/08/07 23:23:26 (6 years ago)-
Message #1091
I have similar problem.
Having problems with checking log files thru NRPE. Other checks are working as CPU, RAM HD . rtc....
In "vi" editor command_line is showing in yellow and red color and my check is not working. Something is wrong with "=".
From command shell prompt command is working:
[nagios@nagiosserver libexec]$ check_nrpe -H 192.168.1.3 -c CheckEventLog -a file=Application filter=new filter=in MaxWarn=1 MaxCrit=1 filter+generated=\<7h filter+eventSource=substr:Event filter.message==System filter+eventID==4356 truncate=1023 unique descriptions
EventSystem?(warning, 4356, warning)[8000401A, partition:{41E90F3E-56C1-4633-81C3-6E8BAC8BDD70}!new:{6295DF2D-35EE-11D1-8707-00C04FD93327}, CoGetObject?, ]{1}, eventlog: 1 > critical|'eventlog'=1;1;1;
What could be wrong in syntax?
define command{
command_name check_nrpe_eventlogs command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckEventLog -a file=$ARG1$ filter=new filter=in MaxWarn=$ARG2$ MaxCrit=$ARG3$ filter+generated=$ARG4$ $ARG5$ filter+eventSource==$ARG6$ filter.message=$ARG7$ filter+eventID==$ARG8$ truncate=1023 unique descriptions "syntax=%severity%: %source%: %message% (%count%)" }
define service{
use generic-service host_name MyServer? service_description TEST - NRPE check Event log check_command check_nrpe_eventlogs!Applications!1!1!\<4h!Warningsubstr:Event!4356 is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 5 retry_check_interval 1 notification_interval 120
contact_groups mytest
notification_period 24x7 notification_options c,r }
Vince02/24/09 23:26:13 (4 years ago)
-
-








