Plugin to monitor error messages in a log file for windows s
Posted: Tue Feb 16, 2021 4:06 am
Team,
we have a task to monitor error messages in a log file for a application server.
we tried with check_log files plugin and it showing the output OK - no errors or warnings.
But user is saying that jobs failed and threw the error.when we checked the file & found error messages , but Nagios didn't checked the error pattern and still showing status as OK.
can someone please suggest on this
Command defined in custom file :
check_logfiles_AcurityCmore=scripts\check_logfiles.exe --f scripts\etc\check_logfiles.cfg --searches=AcurityCmore
Script :
$seekfilesdir = 'C:\Program Files\NSClient\scripts\var';
$protocolsdir = 'C:\Program Files\NSClient\scripts\var';
$MACROS = { LOGDIR => 'D:\AcurityCmore-JobServer\logs' };
@searches = ({
tag => 'AcurityCmore',
logfile => '$LOGDIR$\service-runner.err.txt',
criticalpatterns => ['AcurityServerDaemonException:','SQLServerException: The connection is closed.'],
options => 'nologfilenocry',
}
);
Thanks in advance.
we have a task to monitor error messages in a log file for a application server.
we tried with check_log files plugin and it showing the output OK - no errors or warnings.
But user is saying that jobs failed and threw the error.when we checked the file & found error messages , but Nagios didn't checked the error pattern and still showing status as OK.
can someone please suggest on this
Command defined in custom file :
check_logfiles_AcurityCmore=scripts\check_logfiles.exe --f scripts\etc\check_logfiles.cfg --searches=AcurityCmore
Script :
$seekfilesdir = 'C:\Program Files\NSClient\scripts\var';
$protocolsdir = 'C:\Program Files\NSClient\scripts\var';
$MACROS = { LOGDIR => 'D:\AcurityCmore-JobServer\logs' };
@searches = ({
tag => 'AcurityCmore',
logfile => '$LOGDIR$\service-runner.err.txt',
criticalpatterns => ['AcurityServerDaemonException:','SQLServerException: The connection is closed.'],
options => 'nologfilenocry',
}
);
Thanks in advance.