check_logfiles HPUX

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring check_logfiles HPUX
# 1  
Old 01-27-2012
check_logfiles HPUX

Hello,

I have to monitoring a log in a machine HPUX B.11.00. I defined config file:

Code:
$seekfilesdir = '/opt/tools/capmau/log';
@logs = (
  {
    tag => 'sybase',
    logfile => '/opt/sybase/ASE-12_0/install/errorlog',
    criticalpatterns =>[ 
                        '.*Severity: 21.*',
                         ],
  },
);

and defined in nrpe.cfg:
Code:
command[check_logfiles]=/opt/tools/capmau/libexec/check_logfiles -f /opt/tools/capmau/check_logfile.cfg

but not find perl:
Code:
interpreter "/opt/nagios/bin/perl" not found
ksh: /opt/tools/capmau/libexec/check_logfiles:  not found

Any idea? I have monitoring machines Linux, are monitoring correctly.

---------- Post updated 01-27-12 at 03:40 AM ---------- Previous update was 01-26-12 at 12:21 PM ----------

I modified, check_logfiles file, and put #!/usr/bin/perl -w. The command is ok in local,
Code:
 /opt/tools/capmau/libexec/check_logfiles -f /opt/tools/capmau/check_logfile.cfg 
OK - no errors or warnings|sybase_lines=0 sybase_warnings=0 sybase_criticals=0 sybase_unknowns=0

but in Nagios appear:

CHECK_NRPE: Socket timeout after 10 seconds

nrpe is correctly, because in nrpe.cfg, I am monitoring process and filesystems.

Regards,

Moderator's Comments:
Mod Comment Please use next time code tags for your code and data

Last edited by vbe; 01-27-2012 at 11:02 AM.. Reason: code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

2. Infrastructure Monitoring

check_logfiles 2.5.5.1 (Default branch)

check_logfiles is a plugin for Nagios which checks logfiles for defined patterns. It is capable of detecting logfile rotation. If you tell it how the rotated archives look, it will also examine these files. Unlike check_logfiles, traditional logfile plugins were not aware of the gap which could... (0 Replies)
Discussion started by: Linux Bot
0 Replies
Login or Register to Ask a Question