Re: [Nagios-users] New release of plugin check_logfiles

2007-05-15 Thread Lars Stavholm
Gerhard Lausser wrote:
> Hi,
> 
>> As it turns out, the syntax used in the subst file somehow 
>> offends the Solaris stock awk. However, using GNU Awk 3.0.6 
>> from /opt/sfw/bin (from the Solaris Software Companion CD) it 
>> all works well.
> shame on me. The default installed /usr/xpg4/bin/awk also works. It's just
> the (old?) awk which does not like user-defined functions in subst. To avoid
> this, instead of ./configure use:
> 
> AWK=/usr/xpg4/bin/awk ./configure
> 
> I didn't reckon that we would end up debugging, when i wrote "Enjoy the
> plugin" yesterday, honestly ;-)

No worries, these things happen:)

Thanks for the tip, it works nicely.
/Lars

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] New release of plugin check_logfiles

2007-05-15 Thread Gerhard Lausser
Hi,

> As it turns out, the syntax used in the subst file somehow 
> offends the Solaris stock awk. However, using GNU Awk 3.0.6 
> from /opt/sfw/bin (from the Solaris Software Companion CD) it 
> all works well.
shame on me. The default installed /usr/xpg4/bin/awk also works. It's just
the (old?) awk which does not like user-defined functions in subst. To avoid
this, instead of ./configure use:

AWK=/usr/xpg4/bin/awk ./configure

I didn't reckon that we would end up debugging, when i wrote "Enjoy the
plugin" yesterday, honestly ;-)

Gerhard 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] New release of plugin check_logfiles

2007-05-15 Thread Lars Stavholm
Lars Stavholm wrote:
> Gerhard,
> 
> a bit of a problem building on Solaris 9 with stock perl:
> 
> cd check_logfiles-2.0 && make all
> make[2]: Entering directory `check_logfiles-2.0'
> Making all in plugins-scripts
> make[3]: Entering directory `check_logfiles-2.0/plugins-scripts'
> /usr/local/bin/echo "#! #PERL# -w" | /usr/bin/awk -f ./subst >
> check_logfiles
> awk: syntax error near line 3
> awk: bailing out near line 3
> make[3]: *** [check_logfiles] Error 2
> 
> I have no idea what this is?

As it turns out, the syntax used in the subst file somehow
offends the Solaris stock awk. However, using GNU Awk 3.0.6
from /opt/sfw/bin (from the Solaris Software Companion CD)
it all works well.

/Lars

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] New release of plugin check_logfiles

2007-05-15 Thread Lars Stavholm
Gerhard,

a bit of a problem building on Solaris 9 with stock perl:

cd check_logfiles-2.0 && make all
make[2]: Entering directory `check_logfiles-2.0'
Making all in plugins-scripts
make[3]: Entering directory `check_logfiles-2.0/plugins-scripts'
/usr/local/bin/echo "#! #PERL# -w" | /usr/bin/awk -f ./subst >
check_logfiles
awk: syntax error near line 3
awk: bailing out near line 3
make[3]: *** [check_logfiles] Error 2

I have no idea what this is?

Cheers
/Lars

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] New release of plugin check_logfiles

2007-05-15 Thread Gerhard Lausser
Hi Lars, 

> Question: by looking at the documentation and examples I get 
> the impression that there has to be one config file for each 
> service check. Is that correct? I was aiming at having one 
> configuration file for all checks. Is there a way to do that, 
> i.e. can I select which part of the configuration to use for 
> a check_logfiles run?
No, that's not possible. But the idea is great. An option to select single
searches by calling check_logfiles with a list of tags. It will be in a new
release soon.
Tack, Lars!

Gerhard


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] New release of plugin check_logfiles

2007-05-14 Thread Lars Stavholm
Gerhard Lausser wrote:
> Hi list,
> 
> maybe some of you already use check_logfiles to scan their logfiles for
> certain patterns and error messages respectively. I completely rewrote the
> plugin and corrected lots of bugs.
> You may find it together with documentation and examples at
> http://www.consol.com/opensource/nagios/check-logfiles or in german at
> http://www.consol.de/opensource/nagios/check-logfiles

This looks great and I'm about to try it out.

Question: by looking at the documentation and examples I get the
impression that there has to be one config file for each service
check. Is that correct? I was aiming at having one configuration
file for all checks. Is there a way to do that, i.e. can I select
which part of the configuration to use for a check_logfiles run?

Any advice appreciated
/Lars

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] New release of plugin check_logfiles

2007-05-14 Thread Gerhard Lausser
Hi list,

maybe some of you already use check_logfiles to scan their logfiles for
certain patterns and error messages respectively. I completely rewrote the
plugin and corrected lots of bugs.
You may find it together with documentation and examples at
http://www.consol.com/opensource/nagios/check-logfiles or in german at
http://www.consol.de/opensource/nagios/check-logfiles

Enjoy the plugin,
Gerhard


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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