Page 1 of 1
log monitoring
Posted: Mon Jul 22, 2013 1:20 pm
by Mike
Hello ,
i have tried check_log3.pl but i am getting error :
This Nagios Plugin comes with absolutely NO WARRANTY. You may use
and also check_logfiles plugin and am getting error :
Return code of 127 is out of bounds - plugin may be missing)
But in in command line its working fine
Can you tell me where am i going wrong?
Re: log monitoring
Posted: Mon Jul 22, 2013 1:32 pm
by abrist
Your plugin may not be in the right folder, or you service/command definitions may have the wrong paths. Can you post a copy of the command definition and the service check definition?
Re: log monitoring
Posted: Mon Jul 22, 2013 1:32 pm
by slansing
Does the plugin have execute permissions?:
Re: log monitoring
Posted: Mon Jul 22, 2013 1:46 pm
by Mike
Hello,
command defined for check_log3 is
$USER$/check_log3 -l $HOSTNAME$ -l $ARG$ -s $ARG$ -p $ARG$ -w $ARG$ -c $ARG$
service definition
for $ARG$ /var/log/messages
for $ARG$/tmp/log/
for $ARG$"error"
for $ARG$ 1
for $ARG$ 2
command definition for check_logfiles is
$USER1$/check_logfiles -H localhost --logfile=$ARG1$ --criticalpattern=$ARG2$ --warningpattern=$ARG3$
service definition
for $ARG$ /var/log/messages
for $ARG$ error
for $ARG$ error
Re: log monitoring
Posted: Mon Jul 22, 2013 2:01 pm
by slansing
You are not using the "$USER1$" macro for pathing? You are using $USER$? I'd double check this, also, did you check what I asked?
$USER$/check_log3 -l $HOSTNAME$ -l $ARG$ -s $ARG$ -p $ARG$ -w $ARG$ -c $ARG$
Re: log monitoring
Posted: Mon Jul 22, 2013 2:13 pm
by Mike
Oops!
i tried it again with $USER1$ but still i am getting the same error for check_log3.pl
what about the check_logfiles plugin .where am i going wrong?
Re: log monitoring
Posted: Mon Jul 22, 2013 2:37 pm
by slansing
Something must be defined wrong here:
Code: Select all
$USER1$/check_logfiles -H localhost --logfile=$ARG1$ --criticalpattern=$ARG2$ --warningpattern=$ARG3$
Otherwise the plugin should not spit out usage information, it's trying to tell you that you are missing a flag or definition somewhere, are you sure you followed it's guidelines and included everything required? Are you able to run the command from the command line to that plugin and does it work?