check_log issues

Jason Martin jhmartin at toger.us
Fri Jan 30 19:05:02 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Can the Nagios user read the source file?

- -Jason Martin

On Fri, 30 Jan 2004 
nagios at acmecargo.com wrote:

> 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
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQFAGpzWl2ODWuqVSBMRAv2FAJwNR8m/BpM6K1DjVWDAjiWhUDRbyACghDcP
Q31CbHhaJ0q409Qd04Aghvk=
=z6/a
-----END PGP SIGNATURE-----


-------------------------------------------------------
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