Page 5 of 5

Re: Nagios Event Log NSCLIENT help

Posted: Tue Feb 07, 2017 5:46 pm
by me@work55
Hello

Code: Select all

define service{
        use                     generic-service
        host_name               metro-12-dc06
        service_description     Windows System Event Log
        servicegroups           Event_Logs
        is_volatile             0
        check_period            24x7
        max_check_attempts      3
        normal_check_interval   5
        retry_check_interval    1
        contact_groups          win-admins
        notification_interval   120
        notification_period     24x7
        notification_options    w,u,c,r
        check_command           check_win_nrpe!alias_event_log
        }

Code: Select all

; alias_event_log - Alias for alias_event_log. To configure this item add a section called: /settings/external scripts/alias/alias_event_log
alias_event_log = CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 "filter=generated gt -1h AND severity NOT IN ('success', 'informational') AND source != 'SideBySide'" truncate=800 unique descriptions "syntax=%se
Now I get all green

doing all the entries was wrong since this is in the nsclient

Just a question will that alias_envent_log give me just errors and warnings only? I do not want informational messages


Thanks

Re: Nagios Event Log NSCLIENT help

Posted: Wed Feb 08, 2017 12:37 pm
by tgriep
The syntax for your command looks to be correct so try it out and see if it works for what you are looking for.
Take a look at the following link for syntax examples for the CheckEventLog command.
https://docs.nsclient.org/reference/win ... kEventLog/