check_log solaris
Terry Inzauro
tinzauro at ha-solutions.net
Mon Nov 15 18:17:07 CET 2004
bash rather than ksh. i did notice a few problems with other commands
in the scrip already. for instance, "tail --lines=1" is incorrect. i
had to change it to "tail -1". perhaps you are correct and the script
is designed to use the GNU version of these common utils. i will play
with it a little more and report my findings.
Thanks
Luc I. Suryo wrote:
> Terry,
>
> not sure.. but mine is a ksh-script, is yours a binary?
> if it is a ksh-script you could change GREP to be /usr/bin/egrep and see
> if it helps, otherwise debug it
>
> something like : ksh -x check_log .... > debug.out 2>&1
> and then check the output in debug
>
> -ls
>
>
>
>>Ok guys. I'm at my wits end here.
>>
>>nagios host solaris 9
>>monitored host solaris 9
>>
>>
>>the check_log plugin works..kinda. if somethig gets logged, it throws
>>an alert. great. but it is also throwing errors when there is nothing
>>to alert on. I think the script isn't handleing a NULL return properly
>>so it thinks there is a problem and then sends out an empty error.
>>
>>any thoughts?
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> 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
--
Terry Inzauro
Principal Consultant
HA Solutions
4923 South 24th Street
Suite 210
Omaha, NE 68107
402.884.7967 (phone)
402.212.1450 (mobile)
888.884.7967 (toll free)
402.884.7970 (fax)
http://ha-solutions.net
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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