check_log issues

Neil neil-on-nagios at restricted.dyndns.org
Fri Jan 30 19:06:41 CET 2004


Additional: 

1. Is this check_log similar to tail command wherein it only checks the last 
entry? If so, how does it takes care of log rotation? 

2. What if we want to check_log something on the remote? Do I also use nrpe? 

Thanks. 

nagios at acmecargo.com writes: 

> I am having some issues working check_log into my Nagios 1.1 install. I am 
> able to run the plugin manually, but when I run it through Nagios, the 
> plugin reports it can't find the log file. 
> 
> RUNNING MANUALLY:
> libexec/check_log -F /var/log/HOSTS/ns2/ns2.syslog -O /tmp/ns2.syslog -q 
> lame
> Log check ok - 0 pattern matches found 
> 
> NAGIOS:
> Log check error: Log file /var/log/HOSTS/ns2/ns2.syslog does not exist! 
> 
> 
> CONFIGS: 
> 
> # 'check_log' command definition
> define command{
>         command_name    check_log
>         command_line    $USER1$/check_log -F $ARG1$ -O $ARG2$ -q $ARG3$
>         } 
> 
> # Service definition
> define service{
>         use                             generic-service         ; Name of 
> service template to use
>         host_name                       sysmon
>         service_description             LOGcheck TEST
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           2
>         retry_check_interval            1
>         contact_groups                  linux-admins
>         notification_interval           240
>         notification_period             24x7
>         notification_options            n
>         check_command 
> check_log!/var/log/HOSTS/ns2/ns2.syslog!/tmp/ns2.syslog!lame
>         } 
> 
> 
> What am I doing wrong? 
> 
> Dylan 
> 
>  
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> 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
 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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