NSClient++ Help (#1) - CheckEvent? Configuration [SOLVED] (#639) - Message List

CheckEvent? Configuration [SOLVED]

Hi,

I am trying to setup NSClient to check windows event log. I got the idea how to do it using check_nrpe and configured in nagios server.

I have enabled the checkeventlog.dll module in nsclient. Just want to know if there is any other configuration need to be done in nsc.ini file, if yes what?

i tried

./check_nrpe -H xxx.xxx.xx.xx -p 5666 I (0.3.7.493 2009-10-12) seem to be doing fine...

./check_nrpe -H xxx.xxx.xx.xx -p 5666 -c CheckEvent? UNKNOWN: No handler for that command

Regards Priyadarsan

  • Message #1912

    There is no command "CheckEvent?"...

    THis is the alias defenition for checking eventlogs:

    alias_event_log_new=CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 "filter=generated gt -2d AND severity NOT IN ('success', 'informational')" truncate=800 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"
    

    Michael Medin

    • Message #1921

      Thank you for the reply,

      However i get the same error as above "UNKNOWN: No handler for that command" can you please provide the check_nrpe command line that i can run at the nagios server command prompt?

      Many Thannks once again.

      • Message #1922

        If you get that error most likely you have not configured nsclient++ correctly.

        You need to enable the CheckEventLog module for the CheckEventLog command to work.

        See the [modules] section in the ini file.

        Michael Medin

        • Message #1923

          [modules] NRPEListener.dll NSClientListener.dll NSCAAgent.dll CheckWMI.dll FileLogger.dll CheckSystem.dll CheckDisk.dll CheckEventLog.dll CheckHelpers.dll

          All the above Modules are enabled.

          [root@nagios_server libexec]# ./check_nrpe -H xxxxxxxx -p 5666 -c alias_event_log -a filter=new file="application" MaxWarn=10 MaxCrit=20 filter-generated=\<2h CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

          If i use this i get no output

          [root@nagios_server libexec]#./check_nrpe -H xxxxxxxx -p 5666 -c alias_event_log -a file="application" filter=new filter=in MaxWarn=10 MaxCrit=20 filter-generated=>2h

          I think, somewhere wrong in the syntax......

          I am sure your inputs will help me....

          Thanks a million. Priyadarsan

          • Message #1925

            humm...

            read the nrpe guide, it will show you how to debug errors like these...

            Michael Medin

Subscriptions