check_log usage

Julie S. Lin jlin at myvest.com
Wed Dec 21 00:30:34 CET 2005


Hi All

I have two solaris boxen in my group "eagle-servers".  however, they
claims "0 pattern match and check OK" under service detail....
even though I edited the log file and put it "Memory Error" for testing 
purposes.. 

Could someone kindly have a look at let me know what small change I need 
to make?
thanks. 

julie


I have configured check_log in services.cfg follows :

define service{
        use                             generic-service
        hostgroup_name                  eagle-servers
        service_description             LOGCHECK-Mem
        is_volatile                     0
        check_period                    workhours
        max_check_attempts              1
        normal_check_interval           10
        retry_check_interval            1
        contact_groups                  julie
        notification_interval           120
        notification_period             workhours
        notification_options            w,u,c
        check_command                   check_log
        }

I have configured the check_log  in checkcommands.cfg as follows:

# 'check_log' command definition
define command{
        command_name    check_log
        command_line    $USER1$/check_log -F /var/adm/messages -O 
/tmp/check_log_messages -q "Memory Error"
        }



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list