Nagios Event Log NSCLIENT help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
me@work55
Posts: 44
Joined: Sun Jan 22, 2017 6:15 pm

Re: Nagios Event Log NSCLIENT help

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios Event Log NSCLIENT help

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked