Re: [Nagios-users] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-11 Thread Stanley.Hopcroft
Dear Larry, 

There are debugging hooks in p1.pl that would be useful to enable. 

If you are interested in helping deal with this problem please would you


1 Back up your original copy of p1.pl (path is specified in nagios.cfg
IIRC) 

2 Change the DEBUG_LEVEL to 

use constant  DEBUG_LEVEL => LEAVE_MSG | CACHE_DUMP ; 

3 Change the DEBUG_LOG_PATH to something appropriate for your system eg 

use constantDEBUG_LOG_PATH => '/tmp/' ; 

4 Make p1.pl still compiles (perl -c p1.pl should be nag free; $? == 0) 

5 Restart Nagios 

(IIRC, all this is documented in POD format in p1.pl, so perldoc p1.pl
should show 

... blah blah 

  Extra logging is given by setting DEBUG_LEVEL to include 

   LEAVE_MSG 

   1 opens an extra output stream in the path given by the value of 
   DEBUG_LOG_PATH 

   2 logs messages describing the success or otherwise of the plugin
com- 
   pilation and the result of the plugin run. 

   An example of such messages are 

Fri Apr 22 11:54:21 2005 eval_file: successfully compiled
"/usr/local/nagios/libexec/check_bass ". 
Fri Apr 22 11:54:21 2005 run_package:
"/usr/local/nagios/libexec/check_bass " returning ("0", "BASS
Transaction completed Ok.

"). 
Fri Apr 22 11:55:02 2005 eval_file: successfully compiled
"/usr/local/nagios/libexec/check_ad -D production.prod -S".

Fri Apr 22 11:55:02 2005 run_package:
"/usr/local/nagios/libexec/check_ad -D foo.dom -S" returning ("0", "Ok.
Expected 2 domain controllers [foo1 foo2] for "foo.dom.prod" domain from
"1.1.2.3" DNS, found 8 [foo1 foo2 ..]

"). 

.. blah blah 
) 

In my case I see 


[EMAIL PROTECTED] bin]# perl -c p1.pl 
p1.pl syntax OK 
[EMAIL PROTECTED] bin]# diff -c p1.pl.orig p1.pl 
*** p1.pl.orig  2007-10-12 14:09:24.0 +1000 
--- p1.pl   2007-10-12 14:09:56.0 +1000 
*** 
*** 10,22  
  use constant  CACHE_DUMP  => 2 ; 
  use constant  PLUGIN_DUMP => 4 ; 
  
! use constant  DEBUG_LEVEL => 0 ; 
  # use constantDEBUG_LEVEL => CACHE_DUMP ; 
  # use constantDEBUG_LEVEL => LEAVE_MSG ; 
! # use constantDEBUG_LEVEL => LEAVE_MSG |
CACHE_DUMP ; 
  # use constantDEBUG_LEVEL => LEAVE_MSG |
CACHE_DUMP | PLUGIN_DUMP ; 
  
! use constant  DEBUG_LOG_PATH  => '/usr/local/nagios/var/' ; 
  # use constantDEBUG_LOG_PATH  => './' ; 
  use constant  LEAVE_MSG_STREAM=> DEBUG_LOG_PATH .
'epn_leave-msgs.log' ; 
  use constant  CACHE_DUMP_STREAM   => DEBUG_LOG_PATH .
'epn_cache-dump.log' ; 
--- 10,22  
  use constant  CACHE_DUMP  => 2 ; 
  use constant  PLUGIN_DUMP => 4 ; 
  
! # use constantDEBUG_LEVEL => 0 ; 
  # use constantDEBUG_LEVEL => CACHE_DUMP ; 
  # use constantDEBUG_LEVEL => LEAVE_MSG ; 
! use constant  DEBUG_LEVEL => LEAVE_MSG | CACHE_DUMP ; 
  # use constantDEBUG_LEVEL => LEAVE_MSG |
CACHE_DUMP | PLUGIN_DUMP ; 
  
! use constant  DEBUG_LOG_PATH  => '/tmp/' ; 
  # use constantDEBUG_LOG_PATH  => './' ; 
  use constant  LEAVE_MSG_STREAM=> DEBUG_LOG_PATH .
'epn_leave-msgs.log' ; 
  use constant  CACHE_DUMP_STREAM   => DEBUG_LOG_PATH .
'epn_cache-dump.log' ; 

and 

[EMAIL PROTECTED] nagios]# more /tmp/epn_leave-msgs.log 
Fri Oct 12 14:17:08 2007 eval_file: successfully compiled
"/usr/lib/nagios/plugins/check_sysUpTime -R 10.208.1.254". 
Fri Oct 12 14:17:08 2007 run_package:
"/usr/lib/nagios/plugins/check_sysUpTime -R 10.208.1.254" returning (0,
"sysUpTime of router 1

0.208.1.254 is 231 days, 18:14:31.55"). 
Fri Oct 12 14:17:17 2007 eval_file:
/usr/lib/nagios/plugins/check_sysUpTime already successfully compiled
and file has not changed; 

skipping compilation. 
Fri Oct 12 14:17:17 2007 run_package:
"/usr/lib/nagios/plugins/check_sysUpTime -R 10.36.103.254" returning (0,
"sysUpTime of router 

10.36.103.254 is 269 days, 00:03:26.48"). 
Fri Oct 12 14:17:22 2007 eval_file: successfully compiled
"/usr/lib/nagios/plugins/check_backuplinks -N "BRUSW200"". 
Fri Oct 12 14:17:22 2007 run_package:
"/usr/lib/nagios/plugins/check_backuplinks -N "BRUSW200"" returning (0,
"Ok. All links from br

usw200/10.0.254.167 to mtasw200 via Etherchannel  _are_ in "up"
operational status. Redundant topology Ok."). 
[EMAIL PROTECTED] nagios]# 

Unfortch, although the log stream should be unbuffered, it wasn't being
flushed while Nag was running. I had to restart Nag again to

get the messages flushed (when I changed the path for the log messages).


You prob should ensure that the problem plugin is scheduled frequently
(eg each 5 mins) and let it run for about 5 check periods.

Please post the results to the list. 

Thank you, 

Yours sincerely. 



Stanley Hopcroft 

Data Communications 

02 6211 6110 
0412 766 832 
  

Classification: UNCLASSIFIED

Re: [Nagios-users] DB server not supported for NDOutils --> modify config.h?

2007-10-11 Thread Roger
Patrick Morris wrote:
> Looks like you've specified a socket path in either ndomod.cfg or
> ndo2db.cfg that doesn't exist.

Yep, that was it. I changed a few things there to reflect the Nagios 
settings on my test box:

** ndo2db.cfg **

ndo2db_user=nagios
ndo2db_group=nagios

#db_user=ndouser
#db_pass=ndopassword
db_user=nagios
db_pass=nagios

#socket_type=unix <---this enabled was the problem, so I enabled "tcp"
socket_type=tcp

*

Thank you very much for your help, Patrick!

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Front end for Nagios

2007-10-11 Thread Peter Edmonds
On 10/12/07, David Rivera <[EMAIL PROTECTED]> wrote:
> I'm looking for a good front end for Nagios.  I have heard of 
> groundwork, any comment on them?

Groundwork Open Source is an excellent front end for Nagios, providing
a full configuration GUI. Best thing to do is:

Download the Groundwork Open Source VM from

http://richard.trezza.us/vmach/index.html

and then check out this

https://wiki.chpc.utah.edu/index.php/Groundwork_Monitor_Implementation

Should be enough to get you started in evaluating.

GWOS eliminates a lot of "by hand" configuration (at least for the
main Nagios configuration files themselves. I still find myself
writing plugins by hand, but I never need to touch the main
configuration files for Nagios.

Peter Edmonds

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-11 Thread Stanley.Hopcroft
Dear Larry,

I am writing to thank you for your letter and say,

> -Original Message-


> Message: 11
> Date: Thu, 11 Oct 2007 09:21:35 -0700
> From: "Larry Low" <[EMAIL PROTECTED]>
> 
> This is without making changes to the script.
> 
> Scenario:
> 
> 1) ./configure --prefix=/opt/Nagios --enable-event-broker 
> --with-embedded-perl (I have tried --without-perlcache as well and 
> have not had time to sift through code to see if this is the actual
> problem)
> 2) Have an ePN script with sub print_help
> 3) Execute 1st check of ePN script, returns OK, no problem
> 4) Execute 2nd check of ePN script and ePN compile reports print_help 
> function is redeclared
>

Thank you for the very clear synopsis of the problem.

I have not had that experience with 3.0b4 (a few funny behaviours, but
by and large, like 2.9).
 
> If I compile without embedded-perl the problem does not exist.
> 
> I should probably post this to the devel list.
> 

You have got someones attention here.

FYI (and also to save me a reply to Andreas) the ePN stuff mainly
happens in p1.pl.

This code 

1 manages a cache of compiled plugins (ie checks if the mtime of the
plugin is different to the cached value and recompiles if it is)

2 transforms the plugin to a Perl subroutine in a package named (with a
mangled name) like the plugins file name

3 calls the subroutine if the mtime has not changed (and the compilation
is clean).

What you describe should not happen, and moreover the new stuff in 3.0
has not changed (at least as far as I can see) the interface (from that
in 2.x) to Perl in checks.c and utils.c. 

Would you send me the plugin privately so I can inspect it ?

> 
> Larry Low
> 


Classification: UNCLASSIFIED

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Front end for Nagios

2007-10-11 Thread Jeremy C. Reed
On Fri, 12 Oct 2007, David Rivera wrote:

> I'm looking for a good front end for Nagios. Our Nagios server is 
> running Solaris, so something that seems to work well in Solaris. It can 
> either be opensource or not. I have heard of groundwork, any comment on 
> them?

What do you need in your front end?

Nagios comes with a CGI that provides a web-based interface. Not useful 
for custom configurations, but it is useful to view status of hosts and 
services, disabling/enabling notifications, etc.

  Jeremy C. Reed

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Front end for Nagios

2007-10-11 Thread Roger
David Rivera wrote:
> I'm looking for a good front end for Nagios. Our Nagios server is running 
> Solaris, so something that seems to work well in Solaris. It can either be 
> opensource or not. I have heard of groundwork, any comment on them?

Haven't done much with Grounworks.

I've played mostly with NagiosQL and Fruity.  Fruity, I hear, is better, 
but I'm more familiar with some of the NagiosQL quirks.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Front end for Nagios

2007-10-11 Thread David Rivera
I'm looking for a good front end for Nagios. Our Nagios server is running 
Solaris, so something that seems to work well in Solaris. It can either be 
opensource or not. I have heard of groundwork, any comment on them?

-David
---
The mailing list archive is found here:
http://www.nagiosexchange.org/nagios-users.34.0.html


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] check_iftraffic.pl plugin

2007-10-11 Thread Vanhee Frederik
Alex Dehaini wrote:
> Frederik,
>
> It works now but the values I am getting is different from what by my 
> MRTG/Cacti is giving me.
>
> The check_iftraffic.pl plugin gives me
>
> Total RX Bytes: 1434.86 MB, Total TX Bytes: 2213.91 MB
> Average Traffic: 3.66 kB/s (0.0%) in, 3.77 kB/s (0.0%) out
>
> My MTRG gives me
>
> inbound = 50
> outbound = 75
>
> Why is the plugin giving me a different value? I know the MRTG value 
> is correct because when I work the eth0 interface with snmp, it gives 
> me the same value as the MRTG.
>
> Thanks or your help so far.
>
> Regards,
> Alex
>
>
> On 10/11/07, *Vanhee Frederik* <[EMAIL PROTECTED] 
>  > wrote:
>
> Alex Dehaini wrote:
> > Frederik,
> >
> > I run the plugin from the command line. How do I disable the
> embedded
> > perl intepreter. Can you furnish me with your syntax on how you used
> > this plugin.
> >
> > Thanks
> >
> > On 10/11/07, *Vanhee Frederik* <[EMAIL PROTECTED]
> 
> > >> wrote:
> >
> > Alex Dehaini wrote:
> > > Thanks Marc,
> > >
> > > I got the plug in from www.nagiosexchange.org
> 
> > 
> > > < http://www.nagiosexchange.org
> >,
> > sorry I didn't specify that earlier
> > >
> > > I gave the traffic files in /tmp nagios group and user
> ownership and
> > > after that, I ran the following command as the nagios user and
> > this is
> > > the result I got
> > >
> > > [EMAIL PROTECTED]:/usr/local/nagios/libexec$
> ./check_iftraffic.pl -H
> > > 41.211.0.42  
>  -C
> > britania -i eth0 -b 100 -u m
> > > Total RX Bytes: 1395.95 MB, Total TX Bytes: 2173.82
> MBAverage
> > > Traffic: 0.00 kB/s (0.0%) in, 0.00 kB/s (0.0%) out|
> > inUsage=0.0,85,98
> > > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl 
> -H
> > > 41.211.0.42   <
> http://41.211.0.42> -C
> > britania -i eth0 -b 100 -u m
> > > Use of uninitialized value in scalar chomp at
> ./check_iftraffic.pl
> > > line 185,  line 1.
> > > Total RX Bytes: 1395.99 MB, Total TX Bytes: 2173.86
> MBAverage
> > > Traffic: 4.12 kB/s (0.0%) in, 4.12 kB/s (0.0%) out|
> > inUsage=0.0,85,98
> > > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl 
> -H
> > > 41.211.0.42   <
> http://41.211.0.42> -C
> > britania -i eth0 -b 100 -u m
> > > Use of uninitialized value in scalar chomp at
> ./check_iftraffic.pl
> > > line 185,  line 1.
> > > Total RX Bytes: 1396.02 MB, Total TX Bytes: 2173.89
> MBAverage
> > > Traffic: 3.60 kB/s (0.0%) in, 3.64 kB/s (0.0%) out|
> > inUsage=0.0,85,98
> > > outUsage=0.0,85,98 inAbsolut=1429493 outAbsolut=2226035
> > >
> > > I reckon this means that the plug in is working when ran
> from the
> > > nagios plugin directory via the command line. However, the
> UNKNOWN
> > > error still remains as reported from the the web cgi.
> > >
> > > Am I missing something?
> > >
> > > Alex
> > >
> > >
> > >
> > >
> > > On 10/11/07, *Marc Powell* < [EMAIL PROTECTED]
>   PROTECTED]>>
> > 
>  > >
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> 
> >  >
> > >  
> >  >>
> > > [mailto: nagios-users- 
> >  > nagios-users- >>
> > > > [EMAIL PROTECTED]
> 
> >  >
> > >  
> >  > >] On Behalf Of Alex Dehaini
> > > > Sent: Thursday, October 11, 2007 10:17 AM
> > > > To: nagios-users@list

Re: [Nagios-users] DB server not supported for NDOutils --> modify config.h?

2007-10-11 Thread Patrick Morris
Looks like you've specified a socket path in either ndomod.cfg or
ndo2db.cfg that doesn't exist.

On Thu, 11 Oct 2007, Roger wrote:

> Thanks, Patrick!
> 
> That seemed to get me going.
> 
> I upgraded to MySQL-devel 5, I ran a "make clean", recompiled
> everthing (./configure && make) and then copied the binaries in the
> right places
> 
> Now all I gotta do is figure out why it's not connecting when I run
> 
> [EMAIL PROTECTED] bin]# pwd
> /usr/bin
> [EMAIL PROTECTED] bin]# ndo2db -c /etc/nagios/ndo2db.cfg
> Could not bind socket: No such file or directory
> [EMAIL PROTECTED] bin]#

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] DB server not supported for NDOutils --> modify config.h?

2007-10-11 Thread Roger
Thanks, Patrick!

That seemed to get me going.

I upgraded to MySQL-devel 5, I ran a "make clean", recompiled
everthing (./configure && make) and then copied the binaries in the
right places

Now all I gotta do is figure out why it's not connecting when I run

[EMAIL PROTECTED] bin]# pwd
/usr/bin
[EMAIL PROTECTED] bin]# ndo2db -c /etc/nagios/ndo2db.cfg
Could not bind socket: No such file or directory
[EMAIL PROTECTED] bin]#

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] DB server not supported for NDOutils --> modify config.h?

2007-10-11 Thread Patrick Morris
Sorry for the dupe -- had a little technical issue mid-send, and didn't
hink it made it. :)

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] DB server not supported for NDOutils --> modify config.h?

2007-10-11 Thread Patrick Morris
Hi Roger!

On Thu, 11 Oct 2007, Roger wrote:

> I am getting an error following the README file in NDOutils, and
> another post here on NagiosExchange (http://tinyurl.com/2jnef8) leads
> me to believe that I'm not modifying my config.h script correctly for
> my CentOS 4.5 environment.
> 
> NDOutils seem to compile fine (i.e. "./configure && make"), but I'm having
> problems when I try to run the final command in the README file, and
> am not quite sure what to do now.

There should be no need to modify any header files on CentOS to get
ndoutils to compile correctly.

Did you install the mysql-devel package before compiling? If the correct
files and libraries are not installed at build time, ndoutils will
compile fine, but will not include an database support.

There should be plenty of output from the configure command indicating
what database support will be compiled in, if any.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] DB server not supported for NDOutils --> modify config.h?

2007-10-11 Thread Patrick Morris
There should be no need to modify config.h on CentOS.

If you can't find the mysql headers on your machine, you'll need to
install them fist before building ndoutils if you want MySQL support.
the output from the configure command will tell you whether it found
them or not.

On Thu, 11 Oct 2007, Roger wrote:

> I am getting an error following the README file in NDOutils, and
> another post here on NagiosExchange (http://tinyurl.com/2jnef8) leads
> me to believe that I'm not modifying my config.h script correctly for
> my CentOS 4.5 environment.
> 
> NDOutils seem to compile fine (i.e. "./configure && make"), but I'm having
> problems when I try to run the final command in the README file, and
> am not quite sure what to do now.
> 
> * problems ***
> 
> ndo2db-2x -c /etc/nagios/ndo2db.cfg
> 
> Support for the specified database server is either not yet supported,
> or was not found on your system.
> 
> 
> (I'm running MySQL 5, so version isn't an issue)
> 
> Someone else here on the list (http://tinyurl.com/2jnef8) suggested modding 
> the
> config.h file in order to eliminate that command
> 
> CHANGE
> 
> #include 
> #include 
> 
> TO
> 
> #include 
> #include 
> 
> However, when I looked for mysql.h (e.g. "locate mysql.h") I couldn't
> find find them (maybe b/c I installed from package?).
> 
> Might anyone here know what I might need to do to modify this script
> for CentOS so that ./configure will run properly here?
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] DB server not supported for NDOutils --> modify config.h?

2007-10-11 Thread Roger
I am getting an error following the README file in NDOutils, and
another post here on NagiosExchange (http://tinyurl.com/2jnef8) leads
me to believe that I'm not modifying my config.h script correctly for
my CentOS 4.5 environment.

NDOutils seem to compile fine (i.e. "./configure && make"), but I'm having
problems when I try to run the final command in the README file, and
am not quite sure what to do now.

* problems ***

ndo2db-2x -c /etc/nagios/ndo2db.cfg

Support for the specified database server is either not yet supported,
or was not found on your system.


(I'm running MySQL 5, so version isn't an issue)

Someone else here on the list (http://tinyurl.com/2jnef8) suggested modding the
config.h file in order to eliminate that command

CHANGE

#include 
#include 

TO

#include 
#include 

However, when I looked for mysql.h (e.g. "locate mysql.h") I couldn't
find find them (maybe b/c I installed from package?).

Might anyone here know what I might need to do to modify this script
for CentOS so that ./configure will run properly here?

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] problem with instance_name variable in ndomod.cfg

2007-10-11 Thread Roger
> Is line 230 the line beginning 'config_file...'? My reading of the
> ndoutils README is that those should be on one line with the config_file
> as an argument to ndomod.o --
>
> broker_module=/usr/bin/ndomod.o config_file=/etc/nagios/ndomod.cfg

Perfect, I can bounce the Nagios service now!

Roger

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios Problem

2007-10-11 Thread David Fulton
One other thing, when I look at the config in the Web interface, every
host that I have defined says that Active Checks are disabled, I went
ahead and checked my templates and they seem okay. Unless I am missing
something I have attached the templates file for our host structure just
in case.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Fulton
Sent: Thursday, October 11, 2007 3:09 PM
To: Terry
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Problem

BTW, The reason I thought it was the timeperiod file is I was using
things like "David Fulton's On Call Time" as the Alias/Long
Description(without the quotes) and I was afraid the apostrophe was
causing problems and I am wondering if there is some character in my
configs that is throwing it off. I am not the only one working on the
configs anymore, I just set up the UNIX stuff. The other guy was setting
up our Windows machines and his service descriptions, command
parameters, and Long descriptions/Aliases seem to be longer and have
some non-alphanumeric characters, nothing out of the ordinary. He has
"C: Disk Space" (without the quotes) and I know that the : is okay in
the service_description, but there are others I am not so sure of, for
instance "Citrix CPU Utilization Mgmt/CPU Rebalancer Service" (notice
the /). I don't know if that makes any difference or not.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Fulton
Sent: Thursday, October 11, 2007 2:55 PM
To: Terry
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Problem

I checked it out and after a restart of nagios, it checks everything
right away. Then it stops checking for 30 minutes (before I noticed it
had stopped again). Then I restarted it again and it is currently
checking everything again.

-Original Message-
From: Terry [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 2:51 PM
To: David Fulton
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Problem

OK, in the web interface, check out the scheduling queue.  Here is the
relative URL if you have modified the web interface at all:
/nagios/cgi-bin/extinfo.cgi?&type=7



On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> I can send command and it works via the web interface. I turned off
> performance monitoring globally. I make extensive use of templates. We
> have configured 864 service checks on 114 hosts.
>
> -Original Message-
> From: Terry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 2:39 PM
> To: David Fulton
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios Problem
>
> Interesting, how many services (checks)?  Did you turn off perf
> globally in nagios.cfg or just for a particular service?  Can you send
> nagios commands via the web interface and have it update the next
> schedule service check?
>
> On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> > I already tried that, It simply stops checking. Once in a while it
> > copies the status info from the /tmp directory, but other than that
is
> > is just a bump on a log. I even thought it could be because I was
> > sending performance data to Perfparsed via named pipe and a short
perl
> > script. But even with that off, it just stops.
> >
> > -Original Message-
> > From: Terry [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 11, 2007 2:11 PM
> > To: David Fulton
> > Cc: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] Nagios Problem
> >
> > Do the logs show that checks are being performed?  Might want to
turn
> > debugging on in nagios.cfg to get some more information.
> >
> > On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > I am having serious problems with Nagios v3.04b. For some reason
it
> > simply
> > > stops checking services and hosts. I have looked into this and
been
> > unable
> > > to figure out why. I have played with the check times, service
> reaper
> > times,
> > > timeperiods. I even re-compiled PERL to be non-threading (not a
> simple
> > task
> > > on a system that is already up and running). I am getting
frustrated
> > and was
> > > wondering if anyone out there had similar problems with it. This
> > didn't crop
> > > up until recently but I am unable to point to any one event that
> could
> > have
> > > caused the problem.
> > >
> > >
> > >
> > > Please help
> > >  David Fulton
> > >
> >
>

> > -
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a
> > browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > ___
> > > Nagios-users mailing list
> > > Nagios-users@lists.sourcefor

Re: [Nagios-users] Nagios Problem

2007-10-11 Thread David Fulton
BTW, The reason I thought it was the timeperiod file is I was using
things like "David Fulton's On Call Time" as the Alias/Long
Description(without the quotes) and I was afraid the apostrophe was
causing problems and I am wondering if there is some character in my
configs that is throwing it off. I am not the only one working on the
configs anymore, I just set up the UNIX stuff. The other guy was setting
up our Windows machines and his service descriptions, command
parameters, and Long descriptions/Aliases seem to be longer and have
some non-alphanumeric characters, nothing out of the ordinary. He has
"C: Disk Space" (without the quotes) and I know that the : is okay in
the service_description, but there are others I am not so sure of, for
instance "Citrix CPU Utilization Mgmt/CPU Rebalancer Service" (notice
the /). I don't know if that makes any difference or not.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Fulton
Sent: Thursday, October 11, 2007 2:55 PM
To: Terry
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Problem

I checked it out and after a restart of nagios, it checks everything
right away. Then it stops checking for 30 minutes (before I noticed it
had stopped again). Then I restarted it again and it is currently
checking everything again.

-Original Message-
From: Terry [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 2:51 PM
To: David Fulton
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Problem

OK, in the web interface, check out the scheduling queue.  Here is the
relative URL if you have modified the web interface at all:
/nagios/cgi-bin/extinfo.cgi?&type=7



On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> I can send command and it works via the web interface. I turned off
> performance monitoring globally. I make extensive use of templates. We
> have configured 864 service checks on 114 hosts.
>
> -Original Message-
> From: Terry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 2:39 PM
> To: David Fulton
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios Problem
>
> Interesting, how many services (checks)?  Did you turn off perf
> globally in nagios.cfg or just for a particular service?  Can you send
> nagios commands via the web interface and have it update the next
> schedule service check?
>
> On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> > I already tried that, It simply stops checking. Once in a while it
> > copies the status info from the /tmp directory, but other than that
is
> > is just a bump on a log. I even thought it could be because I was
> > sending performance data to Perfparsed via named pipe and a short
perl
> > script. But even with that off, it just stops.
> >
> > -Original Message-
> > From: Terry [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 11, 2007 2:11 PM
> > To: David Fulton
> > Cc: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] Nagios Problem
> >
> > Do the logs show that checks are being performed?  Might want to
turn
> > debugging on in nagios.cfg to get some more information.
> >
> > On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > I am having serious problems with Nagios v3.04b. For some reason
it
> > simply
> > > stops checking services and hosts. I have looked into this and
been
> > unable
> > > to figure out why. I have played with the check times, service
> reaper
> > times,
> > > timeperiods. I even re-compiled PERL to be non-threading (not a
> simple
> > task
> > > on a system that is already up and running). I am getting
frustrated
> > and was
> > > wondering if anyone out there had similar problems with it. This
> > didn't crop
> > > up until recently but I am unable to point to any one event that
> could
> > have
> > > caused the problem.
> > >
> > >
> > >
> > > Please help
> > >  David Fulton
> > >
> >
>

> > -
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a
> > browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > ___
> > > 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
> > >
> >
>


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your

Re: [Nagios-users] Nagios Problem

2007-10-11 Thread David Fulton
I checked it out and after a restart of nagios, it checks everything
right away. Then it stops checking for 30 minutes (before I noticed it
had stopped again). Then I restarted it again and it is currently
checking everything again.

-Original Message-
From: Terry [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 2:51 PM
To: David Fulton
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Problem

OK, in the web interface, check out the scheduling queue.  Here is the
relative URL if you have modified the web interface at all:
/nagios/cgi-bin/extinfo.cgi?&type=7



On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> I can send command and it works via the web interface. I turned off
> performance monitoring globally. I make extensive use of templates. We
> have configured 864 service checks on 114 hosts.
>
> -Original Message-
> From: Terry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 2:39 PM
> To: David Fulton
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios Problem
>
> Interesting, how many services (checks)?  Did you turn off perf
> globally in nagios.cfg or just for a particular service?  Can you send
> nagios commands via the web interface and have it update the next
> schedule service check?
>
> On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> > I already tried that, It simply stops checking. Once in a while it
> > copies the status info from the /tmp directory, but other than that
is
> > is just a bump on a log. I even thought it could be because I was
> > sending performance data to Perfparsed via named pipe and a short
perl
> > script. But even with that off, it just stops.
> >
> > -Original Message-
> > From: Terry [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 11, 2007 2:11 PM
> > To: David Fulton
> > Cc: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] Nagios Problem
> >
> > Do the logs show that checks are being performed?  Might want to
turn
> > debugging on in nagios.cfg to get some more information.
> >
> > On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > I am having serious problems with Nagios v3.04b. For some reason
it
> > simply
> > > stops checking services and hosts. I have looked into this and
been
> > unable
> > > to figure out why. I have played with the check times, service
> reaper
> > times,
> > > timeperiods. I even re-compiled PERL to be non-threading (not a
> simple
> > task
> > > on a system that is already up and running). I am getting
frustrated
> > and was
> > > wondering if anyone out there had similar problems with it. This
> > didn't crop
> > > up until recently but I am unable to point to any one event that
> could
> > have
> > > caused the problem.
> > >
> > >
> > >
> > > Please help
> > >  David Fulton
> > >
> >
>

> > -
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a
> > browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > ___
> > > 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
> > >
> >
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios Problem

2007-10-11 Thread Terry
OK, in the web interface, check out the scheduling queue.  Here is the
relative URL if you have modified the web interface at all:
/nagios/cgi-bin/extinfo.cgi?&type=7



On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> I can send command and it works via the web interface. I turned off
> performance monitoring globally. I make extensive use of templates. We
> have configured 864 service checks on 114 hosts.
>
> -Original Message-
> From: Terry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 2:39 PM
> To: David Fulton
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios Problem
>
> Interesting, how many services (checks)?  Did you turn off perf
> globally in nagios.cfg or just for a particular service?  Can you send
> nagios commands via the web interface and have it update the next
> schedule service check?
>
> On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> > I already tried that, It simply stops checking. Once in a while it
> > copies the status info from the /tmp directory, but other than that is
> > is just a bump on a log. I even thought it could be because I was
> > sending performance data to Perfparsed via named pipe and a short perl
> > script. But even with that off, it just stops.
> >
> > -Original Message-
> > From: Terry [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 11, 2007 2:11 PM
> > To: David Fulton
> > Cc: nagios-users@lists.sourceforge.net
> > Subject: Re: [Nagios-users] Nagios Problem
> >
> > Do the logs show that checks are being performed?  Might want to turn
> > debugging on in nagios.cfg to get some more information.
> >
> > On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > I am having serious problems with Nagios v3.04b. For some reason it
> > simply
> > > stops checking services and hosts. I have looked into this and been
> > unable
> > > to figure out why. I have played with the check times, service
> reaper
> > times,
> > > timeperiods. I even re-compiled PERL to be non-threading (not a
> simple
> > task
> > > on a system that is already up and running). I am getting frustrated
> > and was
> > > wondering if anyone out there had similar problems with it. This
> > didn't crop
> > > up until recently but I am unable to point to any one event that
> could
> > have
> > > caused the problem.
> > >
> > >
> > >
> > > Please help
> > >  David Fulton
> > >
> >
> 
> > -
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a
> > browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > ___
> > > 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
> > >
> >
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios Problem

2007-10-11 Thread David Fulton
I can send command and it works via the web interface. I turned off
performance monitoring globally. I make extensive use of templates. We
have configured 864 service checks on 114 hosts.

-Original Message-
From: Terry [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 2:39 PM
To: David Fulton
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Problem

Interesting, how many services (checks)?  Did you turn off perf
globally in nagios.cfg or just for a particular service?  Can you send
nagios commands via the web interface and have it update the next
schedule service check?

On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> I already tried that, It simply stops checking. Once in a while it
> copies the status info from the /tmp directory, but other than that is
> is just a bump on a log. I even thought it could be because I was
> sending performance data to Perfparsed via named pipe and a short perl
> script. But even with that off, it just stops.
>
> -Original Message-
> From: Terry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 2:11 PM
> To: David Fulton
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios Problem
>
> Do the logs show that checks are being performed?  Might want to turn
> debugging on in nagios.cfg to get some more information.
>
> On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > I am having serious problems with Nagios v3.04b. For some reason it
> simply
> > stops checking services and hosts. I have looked into this and been
> unable
> > to figure out why. I have played with the check times, service
reaper
> times,
> > timeperiods. I even re-compiled PERL to be non-threading (not a
simple
> task
> > on a system that is already up and running). I am getting frustrated
> and was
> > wondering if anyone out there had similar problems with it. This
> didn't crop
> > up until recently but I am unable to point to any one event that
could
> have
> > caused the problem.
> >
> >
> >
> > Please help
> >  David Fulton
> >
>

> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > 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
> >
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios Problem

2007-10-11 Thread Terry
Interesting, how many services (checks)?  Did you turn off perf
globally in nagios.cfg or just for a particular service?  Can you send
nagios commands via the web interface and have it update the next
schedule service check?

On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> I already tried that, It simply stops checking. Once in a while it
> copies the status info from the /tmp directory, but other than that is
> is just a bump on a log. I even thought it could be because I was
> sending performance data to Perfparsed via named pipe and a short perl
> script. But even with that off, it just stops.
>
> -Original Message-
> From: Terry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 2:11 PM
> To: David Fulton
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Nagios Problem
>
> Do the logs show that checks are being performed?  Might want to turn
> debugging on in nagios.cfg to get some more information.
>
> On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > I am having serious problems with Nagios v3.04b. For some reason it
> simply
> > stops checking services and hosts. I have looked into this and been
> unable
> > to figure out why. I have played with the check times, service reaper
> times,
> > timeperiods. I even re-compiled PERL to be non-threading (not a simple
> task
> > on a system that is already up and running). I am getting frustrated
> and was
> > wondering if anyone out there had similar problems with it. This
> didn't crop
> > up until recently but I am unable to point to any one event that could
> have
> > caused the problem.
> >
> >
> >
> > Please help
> >  David Fulton
> >
> 
> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > 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
> >
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] host checking logic

2007-10-11 Thread Terry
On 10/11/07, Marc Powell <[EMAIL PROTECTED]> wrote:
>
>
> > -Original Message-
> > From: Terry [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 11, 2007 1:21 PM
> > To: Marc Powell
> > Cc: Nagios Users mailinglist
> > Subject: Re: [Nagios-users] host checking logic
> >
>
> > command to check_dummy.   Why is freshness needed for passive checks?
>
> It's not needed but it's a safety net in case whatever is sending the
> passive checks stops doing so. Nagios would happily continue to report
> the last check it received before the submission process died forever.
> Freshness checking allows nagios to recognize that it hasn't seen any
> recent results for that host in some configurable time and runs the
> hosts check_command to be pro-active. The documentation covers some
> scenarios about what that check_command can/should be.
>
> --
> Marc
>

Ok, that makes sense.  I have used passive checks in conjunction with
active checks, never exclusively and don't foresee ever having that
situation.  :)

Thanks for your help!

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Simple Question: How to get a host parent?

2007-10-11 Thread Livio Zanol Puppim
Is there anyway I could retrieve a host parent?

I have looked at the MACROS and at NDO DataBase, and couldn't find anything
that could do this...

Nagios 2.6
Debian
NDO 1.4b4

Thanks,
Lívio Zanol Puppim
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] host checking logic

2007-10-11 Thread Marc Powell


> -Original Message-
> From: Terry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 1:21 PM
> To: Marc Powell
> Cc: Nagios Users mailinglist
> Subject: Re: [Nagios-users] host checking logic
> 

> command to check_dummy.   Why is freshness needed for passive checks?

It's not needed but it's a safety net in case whatever is sending the
passive checks stops doing so. Nagios would happily continue to report
the last check it received before the submission process died forever.
Freshness checking allows nagios to recognize that it hasn't seen any
recent results for that host in some configurable time and runs the
hosts check_command to be pro-active. The documentation covers some
scenarios about what that check_command can/should be.

--
Marc

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios Problem

2007-10-11 Thread David Fulton
I already tried that, It simply stops checking. Once in a while it
copies the status info from the /tmp directory, but other than that is
is just a bump on a log. I even thought it could be because I was
sending performance data to Perfparsed via named pipe and a short perl
script. But even with that off, it just stops.

-Original Message-
From: Terry [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 11, 2007 2:11 PM
To: David Fulton
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios Problem

Do the logs show that checks are being performed?  Might want to turn
debugging on in nagios.cfg to get some more information.

On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am having serious problems with Nagios v3.04b. For some reason it
simply
> stops checking services and hosts. I have looked into this and been
unable
> to figure out why. I have played with the check times, service reaper
times,
> timeperiods. I even re-compiled PERL to be non-threading (not a simple
task
> on a system that is already up and running). I am getting frustrated
and was
> wondering if anyone out there had similar problems with it. This
didn't crop
> up until recently but I am unable to point to any one event that could
have
> caused the problem.
>
>
>
> Please help
>  David Fulton
>

-
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a
browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] host checking logic

2007-10-11 Thread Terry
On 10/11/07, Marc Powell <[EMAIL PROTECTED]> wrote:
>
>
> > -Original Message-
> > From: Terry [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 11, 2007 12:55 PM
> > To: Marc Powell
> > Cc: Nagios Users mailinglist
> > Subject: Re: [Nagios-users] host checking logic
> >
> > On 10/11/07, Marc Powell <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> [mailto:nagios-users-
> > > > [EMAIL PROTECTED] On Behalf Of Terry
> > > > Sent: Thursday, October 11, 2007 10:54 AM
> > > > To: Nagios Users mailinglist
> > > > Subject: [Nagios-users] host checking logic
> > > >
> > > > Hello,
> > > >
> > > > I have a host that will not be reachable via icmp
> (check-host-alive).
> > > > However, it will have services that are, check_tcp for example.
> > >
> > >
> > > > I always assumed (ya, i know) that nagios assumed the host was up
> if
> > > > it had services that were OK.  Obviously I am wrong or have
> something
> > > > misconfigured.  How can I get around this issue?
> > >
> > > It will assume the host is up if the very first check of a service
> on
> > > that host is successful. After that, there are no further
> assumptions.
>
>
> >
> > Thanks for your reply.  Why is nagios even checking it given the
> > configuration: ?
> >
> > check_interval=0
> > check_host_freshness=0
>
> Nagios will always run host checks as needed unless you specifically
> tell it not to by setting check_period to none or removing the host's
> check_command entirely. These are called on-demand checks and are
> different than active and passive checks.
>
> http://nagios.sourceforge.net/docs/2_0/checkscheduling.html#host_checks
>
> The first option controls whether nagios periodically checks the state
> of a host regardless of the state of services on that host (an active
> check). You normally don't need that nor do you normally want to enable
> it. Your current setting is appropriate.
>
> The second option controls whether nagios periodically checks whether
> there has been a 'recent' check result submitted for this host
> (unrelated to any services on that host). This is almost always
> associated with passive host check submissions and requires
> check_freshness to be enabled in the host definition and for you to be
> submitting passive host check results. You have not indicated that you
> are using passive host checks and I would expect that you would be very
> aware of that if you were. As such, this setting has no impact/value for
> you.
>
> --
> Marc

I am not using passive checks (yet).  I can see where I would in the
future so I will turn freshness back on and change the host check
command to check_dummy.   Why is freshness needed for passive checks?

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] host checking logic

2007-10-11 Thread Marc Powell


> -Original Message-
> From: Terry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 11, 2007 12:55 PM
> To: Marc Powell
> Cc: Nagios Users mailinglist
> Subject: Re: [Nagios-users] host checking logic
> 
> On 10/11/07, Marc Powell <[EMAIL PROTECTED]> wrote:
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
[mailto:nagios-users-
> > > [EMAIL PROTECTED] On Behalf Of Terry
> > > Sent: Thursday, October 11, 2007 10:54 AM
> > > To: Nagios Users mailinglist
> > > Subject: [Nagios-users] host checking logic
> > >
> > > Hello,
> > >
> > > I have a host that will not be reachable via icmp
(check-host-alive).
> > > However, it will have services that are, check_tcp for example.
> >
> >
> > > I always assumed (ya, i know) that nagios assumed the host was up
if
> > > it had services that were OK.  Obviously I am wrong or have
something
> > > misconfigured.  How can I get around this issue?
> >
> > It will assume the host is up if the very first check of a service
on
> > that host is successful. After that, there are no further
assumptions.


> 
> Thanks for your reply.  Why is nagios even checking it given the
> configuration: ?
> 
> check_interval=0
> check_host_freshness=0

Nagios will always run host checks as needed unless you specifically
tell it not to by setting check_period to none or removing the host's
check_command entirely. These are called on-demand checks and are
different than active and passive checks.

http://nagios.sourceforge.net/docs/2_0/checkscheduling.html#host_checks

The first option controls whether nagios periodically checks the state
of a host regardless of the state of services on that host (an active
check). You normally don't need that nor do you normally want to enable
it. Your current setting is appropriate.

The second option controls whether nagios periodically checks whether
there has been a 'recent' check result submitted for this host
(unrelated to any services on that host). This is almost always
associated with passive host check submissions and requires
check_freshness to be enabled in the host definition and for you to be
submitting passive host check results. You have not indicated that you
are using passive host checks and I would expect that you would be very
aware of that if you were. As such, this setting has no impact/value for
you.

--
Marc

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios Problem

2007-10-11 Thread Terry
Do the logs show that checks are being performed?  Might want to turn
debugging on in nagios.cfg to get some more information.

On 10/11/07, David Fulton <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am having serious problems with Nagios v3.04b. For some reason it simply
> stops checking services and hosts. I have looked into this and been unable
> to figure out why. I have played with the check times, service reaper times,
> timeperiods. I even re-compiled PERL to be non-threading (not a simple task
> on a system that is already up and running). I am getting frustrated and was
> wondering if anyone out there had similar problems with it. This didn't crop
> up until recently but I am unable to point to any one event that could have
> caused the problem.
>
>
>
> Please help
>  David Fulton
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] notify contact only once

2007-10-11 Thread Richard Mohr
On Thu, 2007-10-11 at 10:50 -0500, Terry wrote:

> I got this working with a very ugly notification script.  It is a 5
> minute script and I suck at scripting so be gentle.   But it works.

The way I see it, a working script trumps a pretty one every time. :-)

> In a nutshell, it checks to see if the notification is the first
> notification.  If it is, go ahead and send the email.  However, if it
> is NOT the first notification, and the contact email address is our
> ticket system email address, exit 0.

I didn't realize that the "person" who was only supposed to receive one
contact was the same for all notifications.  In that case, your custom
notification script approach is definitely faster/cleaner than my
suggestion of using escalations.

Good job!

-- 
Rick Mohr
Systems Developer
Ohio Supercomputer Center


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] ping check with packet size?

2007-10-11 Thread Rob Brown
OK, before I get spanked by the list members: looks like check_fping
will support this... I just did not have fping installed when I
compiled the plugins, so didnt' notice that option. I'll install it
and try that.

On 10/11/07, Rob Brown <[EMAIL PROTECTED]> wrote:
> I have a need to set up a ping check using a specified packet size.
> It seems that check_ping nor check_icmp have this option.
> Has anyone had a need to do this and found a workaround?
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] host checking logic

2007-10-11 Thread Terry
On 10/11/07, Marc Powell <[EMAIL PROTECTED]> wrote:
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Terry
> > Sent: Thursday, October 11, 2007 10:54 AM
> > To: Nagios Users mailinglist
> > Subject: [Nagios-users] host checking logic
> >
> > Hello,
> >
> > I have a host that will not be reachable via icmp (check-host-alive).
> > However, it will have services that are, check_tcp for example.
>
>
> > I always assumed (ya, i know) that nagios assumed the host was up if
> > it had services that were OK.  Obviously I am wrong or have something
> > misconfigured.  How can I get around this issue?
>
> It will assume the host is up if the very first check of a service on
> that host is successful. After that, there are no further assumptions.
> It would appear that you have had a service change state at some point,
> forcing nagios to perform the failing host check. The service recovered
> and nagios re-ran the host check to show proper host state, which again
> failed. You end up with the service UP, host DOWN state.
>
> Your best option is to just change the host check_command to something
> that does work, at least enough for you to be reasonably confident that
> the host is up given your circumstances. check_tcp to a port you know to
> be very reliable would be sufficient. Other options might be to use
> check_dummy as the host check_command so that the state is always OK or
> even to not perform host checks at all for this host.
>
> --
> Marc

Thanks for your reply.  Why is nagios even checking it given the
configuration: ?

check_interval=0
check_host_freshness=0

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] host checking logic

2007-10-11 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Terry
> Sent: Thursday, October 11, 2007 10:54 AM
> To: Nagios Users mailinglist
> Subject: [Nagios-users] host checking logic
> 
> Hello,
> 
> I have a host that will not be reachable via icmp (check-host-alive).
> However, it will have services that are, check_tcp for example.


> I always assumed (ya, i know) that nagios assumed the host was up if
> it had services that were OK.  Obviously I am wrong or have something
> misconfigured.  How can I get around this issue?

It will assume the host is up if the very first check of a service on
that host is successful. After that, there are no further assumptions.
It would appear that you have had a service change state at some point,
forcing nagios to perform the failing host check. The service recovered
and nagios re-ran the host check to show proper host state, which again
failed. You end up with the service UP, host DOWN state. 

Your best option is to just change the host check_command to something
that does work, at least enough for you to be reasonably confident that
the host is up given your circumstances. check_tcp to a port you know to
be very reliable would be sufficient. Other options might be to use
check_dummy as the host check_command so that the state is always OK or
even to not perform host checks at all for this host.

--
Marc

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] ping check with packet size?

2007-10-11 Thread Rob Brown
I have a need to set up a ping check using a specified packet size.
It seems that check_ping nor check_icmp have this option.
Has anyone had a need to do this and found a workaround?

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] check_iftraffic.pl plugin

2007-10-11 Thread Alex Dehaini
Thanks Patrick,

I have been able to get the check_iftraffic.pl to give me some values, but I
think these values are not correct and/or - I am missing something
important.


Thanks for your help.

Alex

On 10/11/07, Patrick Proy <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Didn't follow everything about this post, but to disable the embeded Perl,
> just add "/usr/bin/perl" (depending on your Linux install) before the
> script
> in your command.cfg file.
>
> Patrick
> http://nagios.manubulon.com
>
> 
>
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] De la part de Alex
> Dehaini
> Envoyé : jeudi 11 octobre 2007 19:09
> À : nagios-users@lists.sourceforge.net
> Objet : Re: [Nagios-users] check_iftraffic.pl plugin
>
>
> Frederik,
>
> I run the plugin from the command line. How do I disable the embedded perl
> intepreter. Can you furnish me with your syntax on how you used this
> plugin.
>
> Thanks
>
>
> On 10/11/07, Vanhee Frederik <[EMAIL PROTECTED]> wrote:
>
> Alex Dehaini wrote:
> > Thanks Marc,
> >
> > I got the plug in from www.nagiosexchange.org
> > , sorry I didn't specify that
> earlier
> >
> > I gave the traffic files in /tmp nagios group and user ownership
> and
> > after that, I ran the following command as the nagios user and
> this is
> > the result I got
> >
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42  -C britania -i eth0 -b 100 -u m
> > Total RX Bytes: 1395.95 MB, Total TX Bytes: 2173.82MBAverage
> > Traffic: 0.00 kB/s (0.0%) in, 0.00 kB/s (0.0%) out|
> inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42  -C britania -i eth0 -b 100 -u m
> > Use of uninitialized value in scalar chomp at
> ./check_iftraffic.pl
>
> > line 185,  line 1.
> > Total RX Bytes: 1395.99 MB, Total TX Bytes: 2173.86MBAverage
> > Traffic: 4.12 kB/s (0.0%) in, 4.12 kB/s (0.0%) out|
> inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42  -C britania -i eth0 -b 100 -u m
> > Use of uninitialized value in scalar chomp at
> ./check_iftraffic.pl
>
> > line 185,  line 1.
> > Total RX Bytes: 1396.02 MB, Total TX Bytes: 2173.89MBAverage
> > Traffic: 3.60 kB/s (0.0%) in, 3.64 kB/s (0.0%) out|
> inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429493 outAbsolut=2226035
> >
> > I reckon this means that the plug in is working when ran from
> the
> > nagios plugin directory via the command line. However, the
> UNKNOWN
> > error still remains as reported from the the web cgi.
> >
> > Am I missing something?
> >
> > Alex
> >
> >
> >
> >
> > On 10/11/07, *Marc Powell* <[EMAIL PROTECTED]  PROTECTED] >>
> wrote:
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > 
> > [mailto:nagios-users-   >
> > > [EMAIL PROTECTED]
> > ] On Behalf Of Alex
> Dehaini
> > > Sent: Thursday, October 11, 2007 10:17 AM
> > > To: nagios-users@lists.sourceforge.net
> > 
> > > Subject: [Nagios-users] check_iftraffic.pl plugin
> > >
> > > Hi Guys,
> > >
> > > I need some help on how to use the check_iftraffic.pl plug
> in. I
> > want
> > > nagios to notify me if any of my servers reach a
> 150kbits/sec on
> > their
> > > NIC. This is what I have done so far.
> > >
> > > 1. I downloaded the plug in and gave it the appropriate
> > ownership and
> > > permissions.
> >
> > When asking questions about a non-standard plugin, it's very
> > helpful to
> > provide specific details about where you got it from. How do
> we
> > know the
> > check_iftraffic.pl that google tells us about as the top hit
> is
> > the same
> > one you're using?
> >
> >
> >
> > > UNKNOWN10-11-2007 15:10:44 0d 0h 2m 22s3/6
> (No
> > output!)
> >
> > "NO output!" typically means the plugin is reporting errors.
> >
> > > Can anyone please assist me. When I run this from the plug
> in
> >

[Nagios-users] load problems while accessing availablility reports in nagios

2007-10-11 Thread vuppala rupesh
Hi
I have nagios2.x running from couple of years. Recently i have  recognized 
one problem  while pulling availability reports, server load is going too high. 
I have stopped monitoring few devices which are not  necessary, is there a way 
i can delete the information from nagios which is not not necessary and more 
than one year back. Please advice on this.


Thanks
vuppala


   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. -
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] check_iftraffic.pl plugin

2007-10-11 Thread Alex Dehaini
Frederik,

It works now but the values I am getting is different from what by my
MRTG/Cacti is giving me.

The check_iftraffic.pl plugin gives me

Total RX Bytes: 1434.86 MB, Total TX Bytes: 2213.91 MB
Average Traffic: 3.66 kB/s (0.0%) in, 3.77 kB/s (0.0%) out

My MTRG gives me

inbound = 50
outbound = 75

Why is the plugin giving me a different value? I know the MRTG value is
correct because when I work the eth0 interface with snmp, it gives me the
same value as the MRTG.

Thanks or your help so far.

Regards,
Alex


On 10/11/07, Vanhee Frederik <[EMAIL PROTECTED]> wrote:
>
> Alex Dehaini wrote:
> > Frederik,
> >
> > I run the plugin from the command line. How do I disable the embedded
> > perl intepreter. Can you furnish me with your syntax on how you used
> > this plugin.
> >
> > Thanks
> >
> > On 10/11/07, *Vanhee Frederik* <[EMAIL PROTECTED]
> > > wrote:
> >
> > Alex Dehaini wrote:
> > > Thanks Marc,
> > >
> > > I got the plug in from www.nagiosexchange.org
> > 
> > > >,
> > sorry I didn't specify that earlier
> > >
> > > I gave the traffic files in /tmp nagios group and user ownership
> and
> > > after that, I ran the following command as the nagios user and
> > this is
> > > the result I got
> > >
> > > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > > 41.211.0.42   -C
> > britania -i eth0 -b 100 -u m
> > > Total RX Bytes: 1395.95 MB, Total TX Bytes: 2173.82 MBAverage
> > > Traffic: 0.00 kB/s (0.0%) in, 0.00 kB/s (0.0%) out|
> > inUsage=0.0,85,98
> > > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > > 41.211.0.42   -C
> > britania -i eth0 -b 100 -u m
> > > Use of uninitialized value in scalar chomp at ./check_iftraffic.pl
> > > line 185,  line 1.
> > > Total RX Bytes: 1395.99 MB, Total TX Bytes: 2173.86 MBAverage
> > > Traffic: 4.12 kB/s (0.0%) in, 4.12 kB/s (0.0%) out|
> > inUsage=0.0,85,98
> > > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > > 41.211.0.42   -C
> > britania -i eth0 -b 100 -u m
> > > Use of uninitialized value in scalar chomp at ./check_iftraffic.pl
> > > line 185,  line 1.
> > > Total RX Bytes: 1396.02 MB, Total TX Bytes: 2173.89 MBAverage
> > > Traffic: 3.60 kB/s (0.0%) in, 3.64 kB/s (0.0%) out|
> > inUsage=0.0,85,98
> > > outUsage=0.0,85,98 inAbsolut=1429493 outAbsolut=2226035
> > >
> > > I reckon this means that the plug in is working when ran from the
> > > nagios plugin directory via the command line. However, the UNKNOWN
> > > error still remains as reported from the the web cgi.
> > >
> > > Am I missing something?
> > >
> > > Alex
> > >
> > >
> > >
> > >
> > > On 10/11/07, *Marc Powell* <[EMAIL PROTECTED]  > PROTECTED]>
> > >> wrote:
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > 
> > >  > >
> > > [mailto:nagios-users-   > nagios-users- >
> > > > [EMAIL PROTECTED]
> > 
> > >  >  >] On Behalf Of Alex Dehaini
> > > > Sent: Thursday, October 11, 2007 10:17 AM
> > > > To: nagios-users@lists.sourceforge.net
> > 
> > >  > >
> > > > Subject: [Nagios-users] check_iftraffic.pl plugin
> > > >
> > > > Hi Guys,
> > > >
> > > > I need some help on how to use the check_iftraffic.pl plug
> > in. I
> > > want
> > > > nagios to notify me if any of my servers reach a
> > 150kbits/sec on
> > > their
> > > > NIC. This is what I have done so far.
> > > >
> > > > 1. I downloaded the plug in and gave it the appropriate
> > > ownership and
> > > > permissions.
> > >
> > > When asking questions about a non-standard plugin, it's very
> > > helpful to
> > > provide specific details about where you got it from. How do
> we
> > > know the
> > > check_iftraffic.pl that google tells us about as the top hit
> is
> > > the same
> > > one you're using?
> > >
> > >
> > >
> > > > UNKNOW

Re: [Nagios-users] check_iftraffic.pl plugin

2007-10-11 Thread Vanhee Frederik
Alex Dehaini wrote:
> Frederik,
>
> I run the plugin from the command line. How do I disable the embedded 
> perl intepreter. Can you furnish me with your syntax on how you used 
> this plugin.
>
> Thanks
>
> On 10/11/07, *Vanhee Frederik* <[EMAIL PROTECTED] 
> > wrote:
>
> Alex Dehaini wrote:
> > Thanks Marc,
> >
> > I got the plug in from www.nagiosexchange.org
> 
> > >,
> sorry I didn't specify that earlier
> >
> > I gave the traffic files in /tmp nagios group and user ownership and
> > after that, I ran the following command as the nagios user and
> this is
> > the result I got
> >
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42   -C
> britania -i eth0 -b 100 -u m
> > Total RX Bytes: 1395.95 MB, Total TX Bytes: 2173.82 MBAverage
> > Traffic: 0.00 kB/s (0.0%) in, 0.00 kB/s (0.0%) out|
> inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42   -C
> britania -i eth0 -b 100 -u m
> > Use of uninitialized value in scalar chomp at ./check_iftraffic.pl
> > line 185,  line 1.
> > Total RX Bytes: 1395.99 MB, Total TX Bytes: 2173.86 MBAverage
> > Traffic: 4.12 kB/s (0.0%) in, 4.12 kB/s (0.0%) out|
> inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42   -C
> britania -i eth0 -b 100 -u m
> > Use of uninitialized value in scalar chomp at ./check_iftraffic.pl
> > line 185,  line 1.
> > Total RX Bytes: 1396.02 MB, Total TX Bytes: 2173.89 MBAverage
> > Traffic: 3.60 kB/s (0.0%) in, 3.64 kB/s (0.0%) out|
> inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429493 outAbsolut=2226035
> >
> > I reckon this means that the plug in is working when ran from the
> > nagios plugin directory via the command line. However, the UNKNOWN
> > error still remains as reported from the the web cgi.
> >
> > Am I missing something?
> >
> > Alex
> >
> >
> >
> >
> > On 10/11/07, *Marc Powell* <[EMAIL PROTECTED] 
> >> wrote:
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> 
> >  >
> > [mailto:nagios-users-   nagios-users- >
> > > [EMAIL PROTECTED]
> 
> >   >] On Behalf Of Alex Dehaini
> > > Sent: Thursday, October 11, 2007 10:17 AM
> > > To: nagios-users@lists.sourceforge.net
> 
> >  >
> > > Subject: [Nagios-users] check_iftraffic.pl plugin
> > >
> > > Hi Guys,
> > >
> > > I need some help on how to use the check_iftraffic.pl plug
> in. I
> > want
> > > nagios to notify me if any of my servers reach a
> 150kbits/sec on
> > their
> > > NIC. This is what I have done so far.
> > >
> > > 1. I downloaded the plug in and gave it the appropriate
> > ownership and
> > > permissions.
> >
> > When asking questions about a non-standard plugin, it's very
> > helpful to
> > provide specific details about where you got it from. How do we
> > know the
> > check_iftraffic.pl that google tells us about as the top hit is
> > the same
> > one you're using?
> >
> >
> >
> > > UNKNOWN10-11-2007 15:10:44 0d 0h 2m
> 22s3/6 (No
> > output!)
> >
> > "NO output!" typically means the plugin is reporting errors.
> >
> > > Can anyone please assist me. When I run this from the plug in
> > directory, I
> > > get results, forexample
> > >
> > > snmp:/usr/local/nagios/libexec# ./check_iftraffic.pl -H
> > 41.211.0.42   -C
> > > community -i eth0 -b 100 -u m
> > > Total RX Bytes: 1381.80 MB, Total TX Bytes: 2155.67
> MBAverage
> > Traffic:
> > > 10.23 kB/s (0.1%) in, 12.45 kB/s ( 0.1%) out|
> inUsage=0.1,85,98
> > > outUsage=0.1,85,98 inAbsolut=1410835 outAbsolut=2202385
> >
> > This implies a permi

Re: [Nagios-users] nagios and local syslog

2007-10-11 Thread Dennis Hünseler
Hi Oliver,

one possibilty would be to use syslog-ng and define a filter which matches
"Nagios" and seperate it this way.

kind regards,

Dennis
>
>
> Hello
>
> I want to log nagios to syslog using a specific local (example LOCAL7)
> I didn't find any options in nagios.cfg to do such a thing.
> Is anyone know how to do it ?
> By default , logs arrive in /val/log/messages file .
>
> nagios 3.0b3
> os : redhat ES4
>
> Olivier
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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
>
>



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] check_iftraffic.pl plugin

2007-10-11 Thread Alex Dehaini
Frederik,

I run the plugin from the command line. How do I disable the embedded perl
intepreter. Can you furnish me with your syntax on how you used this plugin.

Thanks

On 10/11/07, Vanhee Frederik <[EMAIL PROTECTED]> wrote:
>
> Alex Dehaini wrote:
> > Thanks Marc,
> >
> > I got the plug in from www.nagiosexchange.org
> > , sorry I didn't specify that earlier
> >
> > I gave the traffic files in /tmp nagios group and user ownership and
> > after that, I ran the following command as the nagios user and this is
> > the result I got
> >
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42  -C britania -i eth0 -b 100 -u m
> > Total RX Bytes: 1395.95 MB, Total TX Bytes: 2173.82 MBAverage
> > Traffic: 0.00 kB/s (0.0%) in, 0.00 kB/s (0.0%) out| inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42  -C britania -i eth0 -b 100 -u m
> > Use of uninitialized value in scalar chomp at ./check_iftraffic.pl
> > line 185,  line 1.
> > Total RX Bytes: 1395.99 MB, Total TX Bytes: 2173.86 MBAverage
> > Traffic: 4.12 kB/s (0.0%) in, 4.12 kB/s (0.0%) out| inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> > [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
> > 41.211.0.42  -C britania -i eth0 -b 100 -u m
> > Use of uninitialized value in scalar chomp at ./check_iftraffic.pl
> > line 185,  line 1.
> > Total RX Bytes: 1396.02 MB, Total TX Bytes: 2173.89 MBAverage
> > Traffic: 3.60 kB/s (0.0%) in, 3.64 kB/s (0.0%) out| inUsage=0.0,85,98
> > outUsage=0.0,85,98 inAbsolut=1429493 outAbsolut=2226035
> >
> > I reckon this means that the plug in is working when ran from the
> > nagios plugin directory via the command line. However, the UNKNOWN
> > error still remains as reported from the the web cgi.
> >
> > Am I missing something?
> >
> > Alex
> >
> >
> >
> >
> > On 10/11/07, *Marc Powell* <[EMAIL PROTECTED] > 
> > wrote:
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > 
> > [mailto:nagios-users- 
> > > [EMAIL PROTECTED]
> > ] On Behalf Of Alex Dehaini
> > > Sent: Thursday, October 11, 2007 10:17 AM
> > > To: nagios-users@lists.sourceforge.net
> > 
> > > Subject: [Nagios-users] check_iftraffic.pl plugin
> > >
> > > Hi Guys,
> > >
> > > I need some help on how to use the check_iftraffic.pl plug in. I
> > want
> > > nagios to notify me if any of my servers reach a 150kbits/sec on
> > their
> > > NIC. This is what I have done so far.
> > >
> > > 1. I downloaded the plug in and gave it the appropriate
> > ownership and
> > > permissions.
> >
> > When asking questions about a non-standard plugin, it's very
> > helpful to
> > provide specific details about where you got it from. How do we
> > know the
> > check_iftraffic.pl that google tells us about as the top hit is
> > the same
> > one you're using?
> >
> >
> >
> > > UNKNOWN10-11-2007 15:10:44 0d 0h 2m 22s3/6 (No
> > output!)
> >
> > "NO output!" typically means the plugin is reporting errors.
> >
> > > Can anyone please assist me. When I run this from the plug in
> > directory, I
> > > get results, forexample
> > >
> > > snmp:/usr/local/nagios/libexec# ./check_iftraffic.pl -H
> > 41.211.0.42  -C
> > > community -i eth0 -b 100 -u m
> > > Total RX Bytes: 1381.80 MB, Total TX Bytes: 2155.67 MBAverage
> > Traffic:
> > > 10.23 kB/s (0.1%) in, 12.45 kB/s ( 0.1%) out| inUsage=0.1,85,98
> > > outUsage=0.1,85,98 inAbsolut=1410835 outAbsolut=2202385
> >
> > This implies a permissions issue. Testing as root isn't useful since
> > nagios isn't running the plugin as root. Do the same test again,
> > except
> > as the nagios user. I'll bet you get different and more informative
> > results.
> >
> >
> >
> > I'm going to take a very arbitrary guess and assume that I'm
> > looking at
> > the same plugin as you. It uses a temporary file, hard-coded as
> > /tmp/traffic. Based on your test above, that file is almost
> certainly
> > owned by root and probably isn't modifiable by the nagios user.
> Change
> > ownership/permissions of the file or remove it entirely, then test
> > again
> > as the nagios user.
> >
> > --
> > Marc
> >
> >
> >
> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files u

Re: [Nagios-users] check_iftraffic.pl plugin

2007-10-11 Thread Alex
Alex Dehaini schrieb:
> # 'check_iftraffic' command definition
> define command{
> command_namecheck_iftraffic
> command_line$USER1$/check_iftraffic.pl -H $HOSTADDRESS$ -C
> $USER3$ -i $ARG1$ -b $ARG2$ -u m
> }
$USER1$/check_iftraffic.pl -H $HOSTADDRESS$ -C $ARG1$-i $ARG2$ -b \
$ARG3$ -u m

> 3. I added the following service to one of my linux servers that has a NIC
> named eth0, this is what I added
> 
> define service{
> use dns1-service
> host_name   DNS2
> service_description Traffic Load eth0
> check_command   check_iftraffic!community!eth0!100
> }

You used 3 Arguments in check_command, use them in commanline too ;)

Best Regards
Alex

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] nagios and local syslog

2007-10-11 Thread oboissard


Hello

I want to log nagios to syslog using a specific local (example LOCAL7)
I didn't find any options in nagios.cfg to do such a thing.
Is anyone know how to do it ?
By default , logs arrive in /val/log/messages file .

nagios 3.0b3
os : redhat ES4

Olivier

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] problem with instance_name variable in ndomod.cfg

2007-10-11 Thread Andreas Ericsson
Roger wrote:
> I'm trying to integrate NDOutils into my Nagios 2.9 CentOS setup, I'm
> getting a weird error when I add the following two lines in my
> nagios.cfg file, per the README in NDOutils.
> 
> * /etc/nagios.cfg *
> 
> #per README in NDOutils
> broker_module=/usr/bin/ndomod.o
> config_file=/etc/nagios/ndomod.cfg
> #config_file OR cfg_file ?
> 
> 
> 
> nagios -v /etc/nagios/nagios.cfg gives me:
> 
> "Error in configuration file '/etc/nagios/nagios.cfg' - Line 230
> (UNKNOWN VARIABLE)"
> 
> But when I change config_file variable to cfg_file (the variable I'd
> expect), I got this error:
> 
> "Error: Unexpected token or statement in file '/etc/nagios/ndomod.cfg'
> on line 13"
> 
> On line 13, there is this line:
> 
> ** ndomod.cfg *
> # INSTANCE NAME
> # This option identifies the "name" associated with this particular
> # instance of Nagios and is used to seperate data coming from multiple
> # instances.  Defaults to 'default' (without quotes).
> 
> instance_name=default
> **
> 
> What might my problem be with this "instance_name" line?
> 

Nagios thinks it's an object configuration file, which it isn't.
I'm not sure where you read that you can send config options to
modules from nagios' config file. AFAIK, you can't. Instead, you
have to send the option on the same line as where you're loading
the module (modules are initialized with one argument, AFAIR).

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-11 Thread Andreas Ericsson
[EMAIL PROTECTED] wrote:
> Dear Larry,
> 
> I am writing to thank you for your letter and say, 
> 
>> -Original Message-
> 
>> Message: 9
>> Date: Tue, 9 Oct 2007 17:01:41 -0700
>> From: "Larry Low" <[EMAIL PROTECTED]>
>> Subject: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
>>
>> The problem I am having is with subroutines inside of perl scripts ran
> 
>> under the ePN.  If a subroutine is defined the next time the script or
> 
>> similar script is executed the ePN compile fails with a duplicate 
>> subroutine reported as the problem.
>>
>> I believe this problem does not exist under the 2.x code.
> 
> Do you mean that, after you change a plugin that Nagios is running, ePN
> fails to compile the modified plugin with this (spurious) error code ?
> 
> If so, I am running 2.9 and have this problem.
> 
> Reluctantly I have found that the only way to deal with this is restart
> Nagios after a plugin mod. 
> 

Umm, wouldn't it be enough to just stash away the mtime of the plugin when
it's run and re-cache it whenever it's been modified?

It seems straightforward enough, but perhaps I've missed something?

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] check_iftraffic.pl plugin

2007-10-11 Thread Vanhee Frederik
Alex Dehaini wrote:
> Thanks Marc,
>
> I got the plug in from www.nagiosexchange.org 
> , sorry I didn't specify that earlier
>
> I gave the traffic files in /tmp nagios group and user ownership and 
> after that, I ran the following command as the nagios user and this is 
> the result I got
>
> [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H 
> 41.211.0.42  -C britania -i eth0 -b 100 -u m
> Total RX Bytes: 1395.95 MB, Total TX Bytes: 2173.82 MBAverage 
> Traffic: 0.00 kB/s (0.0%) in, 0.00 kB/s (0.0%) out| inUsage=0.0,85,98 
> outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H 
> 41.211.0.42  -C britania -i eth0 -b 100 -u m
> Use of uninitialized value in scalar chomp at ./check_iftraffic.pl 
> line 185,  line 1.
> Total RX Bytes: 1395.99 MB, Total TX Bytes: 2173.86 MBAverage 
> Traffic: 4.12 kB/s (0.0%) in, 4.12 kB/s (0.0%) out| inUsage=0.0,85,98 
> outUsage=0.0,85,98 inAbsolut=1429448 outAbsolut=2225990
> [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H 
> 41.211.0.42  -C britania -i eth0 -b 100 -u m
> Use of uninitialized value in scalar chomp at ./check_iftraffic.pl 
> line 185,  line 1.
> Total RX Bytes: 1396.02 MB, Total TX Bytes: 2173.89 MBAverage 
> Traffic: 3.60 kB/s (0.0%) in, 3.64 kB/s (0.0%) out| inUsage=0.0,85,98 
> outUsage=0.0,85,98 inAbsolut=1429493 outAbsolut=2226035
>
> I reckon this means that the plug in is working when ran from the 
> nagios plugin directory via the command line. However, the UNKNOWN 
> error still remains as reported from the the web cgi.
>
> Am I missing something?
>
> Alex
>
>
>
>
> On 10/11/07, *Marc Powell* <[EMAIL PROTECTED] > 
> wrote:
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> 
> [mailto:nagios-users- 
> > [EMAIL PROTECTED]
> ] On Behalf Of Alex Dehaini
> > Sent: Thursday, October 11, 2007 10:17 AM
> > To: nagios-users@lists.sourceforge.net
> 
> > Subject: [Nagios-users] check_iftraffic.pl plugin
> >
> > Hi Guys,
> >
> > I need some help on how to use the check_iftraffic.pl plug in. I
> want
> > nagios to notify me if any of my servers reach a 150kbits/sec on
> their
> > NIC. This is what I have done so far.
> >
> > 1. I downloaded the plug in and gave it the appropriate
> ownership and
> > permissions.
>
> When asking questions about a non-standard plugin, it's very
> helpful to
> provide specific details about where you got it from. How do we
> know the
> check_iftraffic.pl that google tells us about as the top hit is
> the same
> one you're using?
>
>
>
> > UNKNOWN10-11-2007 15:10:44 0d 0h 2m 22s3/6 (No
> output!)
>
> "NO output!" typically means the plugin is reporting errors.
>
> > Can anyone please assist me. When I run this from the plug in
> directory, I
> > get results, forexample
> >
> > snmp:/usr/local/nagios/libexec# ./check_iftraffic.pl -H
> 41.211.0.42  -C
> > community -i eth0 -b 100 -u m
> > Total RX Bytes: 1381.80 MB, Total TX Bytes: 2155.67 MBAverage
> Traffic:
> > 10.23 kB/s (0.1%) in, 12.45 kB/s ( 0.1%) out| inUsage=0.1,85,98
> > outUsage=0.1,85,98 inAbsolut=1410835 outAbsolut=2202385
>
> This implies a permissions issue. Testing as root isn't useful since
> nagios isn't running the plugin as root. Do the same test again,
> except
> as the nagios user. I'll bet you get different and more informative
> results.
>
>
>
> I'm going to take a very arbitrary guess and assume that I'm
> looking at
> the same plugin as you. It uses a temporary file, hard-coded as
> /tmp/traffic. Based on your test above, that file is almost certainly
> owned by root and probably isn't modifiable by the nagios user. Change
> ownership/permissions of the file or remove it entirely, then test
> again
> as the nagios user.
>
> --
> Marc
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> 
> ___
> 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
> report

[Nagios-users] Nagios Problem

2007-10-11 Thread David Fulton
I am having serious problems with Nagios v3.04b. For some reason it
simply stops checking services and hosts. I have looked into this and
been unable to figure out why. I have played with the check times,
service reaper times, timeperiods. I even re-compiled PERL to be
non-threading (not a simple task on a system that is already up and
running). I am getting frustrated and was wondering if anyone out there
had similar problems with it. This didn't crop up until recently but I
am unable to point to any one event that could have caused the problem.

 

Please help
David Fulton

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]

2007-10-11 Thread Larry Low
This is without making changes to the script.

Scenario:

1) ./configure --prefix=/opt/Nagios --enable-event-broker
--with-embedded-perl (I have tried --without-perlcache as well and have not
had time to sift through code to see if this is the actual problem)
2) Have an ePN script with sub print_help
3) Execute 1st check of ePN script, returns OK, no problem
4) Execute 2nd check of ePN script and ePN compile reports print_help
function is redeclared

If I compile without embedded-perl the problem does not exist.

I should probably post this to the devel list.


Larry Low

-Original Message-
From:  Dest.gov.au>
Subject: Re: Nagios 3.0b5 - ePN and perl caching [SEC=UNCLASSIFIED]
Newsgroups: gmane.network.nagios.user
Date: 2007-10-10 23:18:23 GMT (16 hours and 57 minutes ago)

Dear Larry,

I am writing to thank you for your letter and say, 

> -Original Message-

> Message: 9
> Date: Tue, 9 Oct 2007 17:01:41 -0700
> From: "Larry Low"  telesphere.com>
> Subject: [Nagios-users] Nagios 3.0b5 - ePN and perl caching
> 
> The problem I am having is with subroutines inside of perl scripts ran

> under the ePN.  If a subroutine is defined the next time the script or

> similar script is executed the ePN compile fails with a duplicate 
> subroutine reported as the problem.
> 
> I believe this problem does not exist under the 2.x code.

Do you mean that, after you change a plugin that Nagios is running, ePN
fails to compile the modified plugin with this (spurious) error code ?

If so, I am running 2.9 and have this problem.

Reluctantly I have found that the only way to deal with this is restart
Nagios after a plugin mod. 

It is a PITA. 

Patches welcome.

The 

> 
> 
> Larry Low


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] check_iftraffic.pl plugin

2007-10-11 Thread Alex Dehaini
Thanks Marc,

I got the plug in from www.nagiosexchange.org, sorry I didn't specify that
earlier

I gave the traffic files in /tmp nagios group and user ownership and after
that, I ran the following command as the nagios user and this is the result
I got

[EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
41.211.0.42-C britania -i eth0 -b 100 -u m
Total RX Bytes: 1395.95 MB, Total TX Bytes: 2173.82 MBAverage Traffic:
0.00 kB/s (0.0%) in, 0.00 kB/s (0.0%) out| inUsage=0.0,85,98 outUsage=0.0,85,98
inAbsolut=1429448 outAbsolut=2225990
[EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
41.211.0.42-C britania -i eth0 -b 100 -u m
Use of uninitialized value in scalar chomp at ./check_iftraffic.pl line 185,
 line 1.
Total RX Bytes: 1395.99 MB, Total TX Bytes: 2173.86 MBAverage Traffic:
4.12 kB/s (0.0%) in, 4.12 kB/s (0.0%) out| inUsage=0.0,85,98 outUsage=0.0,85,98
inAbsolut=1429448 outAbsolut=2225990
[EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_iftraffic.pl -H
41.211.0.42-C britania -i eth0 -b 100 -u m
Use of uninitialized value in scalar chomp at ./check_iftraffic.pl line 185,
 line 1.
Total RX Bytes: 1396.02 MB, Total TX Bytes: 2173.89 MBAverage Traffic:
3.60 kB/s (0.0%) in, 3.64 kB/s (0.0%) out| inUsage=0.0,85,98 outUsage=0.0,85,98
inAbsolut=1429493 outAbsolut=2226035

I reckon this means that the plug in is working when ran from the nagios
plugin directory via the command line. However, the UNKNOWN error still
remains as reported from the the web cgi.

Am I missing something?

Alex




On 10/11/07, Marc Powell <[EMAIL PROTECTED]> wrote:
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:nagios-users-
> > [EMAIL PROTECTED] On Behalf Of Alex Dehaini
> > Sent: Thursday, October 11, 2007 10:17 AM
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] check_iftraffic.pl plugin
> >
> > Hi Guys,
> >
> > I need some help on how to use the check_iftraffic.pl plug in. I want
> > nagios to notify me if any of my servers reach a 150kbits/sec on their
> > NIC. This is what I have done so far.
> >
> > 1. I downloaded the plug in and gave it the appropriate ownership and
> > permissions.
>
> When asking questions about a non-standard plugin, it's very helpful to
> provide specific details about where you got it from. How do we know the
> check_iftraffic.pl that google tells us about as the top hit is the same
> one you're using?
>
>
>
> > UNKNOWN10-11-2007 15:10:44 0d 0h 2m 22s3/6 (No
> output!)
>
> "NO output!" typically means the plugin is reporting errors.
>
> > Can anyone please assist me. When I run this from the plug in
> directory, I
> > get results, forexample
> >
> > snmp:/usr/local/nagios/libexec# ./check_iftraffic.pl -H 41.211.0.42 -C
> > community -i eth0 -b 100 -u m
> > Total RX Bytes: 1381.80 MB, Total TX Bytes: 2155.67 MBAverage
> Traffic:
> > 10.23 kB/s (0.1%) in, 12.45 kB/s ( 0.1%) out| inUsage=0.1,85,98
> > outUsage=0.1,85,98 inAbsolut=1410835 outAbsolut=2202385
>
> This implies a permissions issue. Testing as root isn't useful since
> nagios isn't running the plugin as root. Do the same test again, except
> as the nagios user. I'll bet you get different and more informative
> results.
>
>
>
> I'm going to take a very arbitrary guess and assume that I'm looking at
> the same plugin as you. It uses a temporary file, hard-coded as
> /tmp/traffic. Based on your test above, that file is almost certainly
> owned by root and probably isn't modifiable by the nagios user. Change
> ownership/permissions of the file or remove it entirely, then test again
> as the nagios user.
>
> --
> Marc
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> 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
>



-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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 support

[Nagios-users] host checking logic

2007-10-11 Thread Terry
Hello,

I have a host that will not be reachable via icmp (check-host-alive).
However, it will have services that are, check_tcp for example.
Nagios is detecting the host as down but services as up.  I have host
checks and host freshness disabled:

check_interval=0
check_host_freshness=0

I always assumed (ya, i know) that nagios assumed the host was up if
it had services that were OK.  Obviously I am wrong or have something
misconfigured.  How can I get around this issue?

Thanks!

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] notify contact only once

2007-10-11 Thread Terry
On 10/10/07, Richard Mohr <[EMAIL PROTECTED]> wrote:
> On Mon, 2007-10-08 at 16:13 -0500, Terry wrote:
> > On 10/5/07, Aidan Anderson <[EMAIL PROTECTED]> wrote:
> > > Terry wrote:
> > > >
> > > > I have regular contacts set up, me for example.  I want to get
> > > > notified every 30 minutes indefinitely if a service is in a hard state
> > > > of warning or critical.  However, I want another contact to only get
> > > > notified one time when that hard state is achieved.That's it.
> > > >
> [...]
> > > I've just posted you another message before seeing this one.  You want
> > > to use host or service escalations to achieve this.  I've briefly
> > > explained in the previous post but if you need more help, just shout.
> > >
> > > Aidan
> > >
> >
> > Thanks for your reply.  It looks like for me to achieve this, I will
> > need to create 2 escalations for every service.  One for the single
> > notification and the other for standard notifications.  That seems
> > like a lot of configuration.
>
> I think you can get by with one escalation.  Configure the service's
> contactgroup to include you and the other person.  Then create a service
> escalation that kicks in on the second notification and continues
> indefinitely. Use the escalation to change the contactgroup to include
> only you, and set the notification interval to 30 minutes.
>
> Does that fit your needs?
>
> --
> Rick Mohr
> Systems Developer
> Ohio Supercomputer Center
>
>

Rick, thanks for your reply.  That would work but I don't want to
create an explicit service escalation for every single service I have.

I got this working with a very ugly notification script.  It is a 5
minute script and I suck at scripting so be gentle.   But it works.
In a nutshell, it checks to see if the notification is the first
notification.  If it is, go ahead and send the email.  However, if it
is NOT the first notification, and the contact email address is our
ticket system email address, exit 0.  Also, I use sendEmail as my
sending program  http://caspian.dotconf.net/menu/Software/SendEmail/

The command in nagios is:
define command{
command_namenotify-by-email
command_line/usr/bin/printf "%b" "Notification Type:
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | /usr/lib/nagios/eventhandlers/notification
$SERVICENOTIFICATIONNUMBER$ smtp.server.com [EMAIL PROTECTED]
$CONTACTEMAIL$ "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
}


Finally, here is the script:

#!/usr/bin/perl

$servicenotificationnumber = $ARGV[0];
$server = $ARGV[1];
$from = $ARGV[2];
$to = $ARGV[3];
$subject = "$ARGV[4]";

unless ($ARGV[1]) {
print "ERROR:  You need to specify some arguments like this:\n\n";
print q!/usr/bin/printf "%b" "$message" |
/usr/lib/nagios/eventhandlers/notification 1 $server $from $to
"$subject"!;
print "\n";
exit 1;
}

@message = ;

if ($to =~ /[EMAIL PROTECTED]/i) {
if ($servicenotificationnumber == 1) {
send_email();
}
} else {
send_email();
}

sub send_email {
$output = `/usr/bin/printf "%b" "$message"`;
`/usr/bin/sendEmail -s $server -f $from -t $to -u "$subject"
-m "@message"`;
}

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] check_iftraffic.pl plugin

2007-10-11 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Alex Dehaini
> Sent: Thursday, October 11, 2007 10:17 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] check_iftraffic.pl plugin 
> 
> Hi Guys,
> 
> I need some help on how to use the check_iftraffic.pl plug in. I want
> nagios to notify me if any of my servers reach a 150kbits/sec on their
> NIC. This is what I have done so far.
> 
> 1. I downloaded the plug in and gave it the appropriate ownership and
> permissions.

When asking questions about a non-standard plugin, it's very helpful to
provide specific details about where you got it from. How do we know the
check_iftraffic.pl that google tells us about as the top hit is the same
one you're using?



> UNKNOWN10-11-2007 15:10:44 0d 0h 2m 22s3/6 (No
output!)

"NO output!" typically means the plugin is reporting errors.

> Can anyone please assist me. When I run this from the plug in
directory, I
> get results, forexample
> 
> snmp:/usr/local/nagios/libexec# ./check_iftraffic.pl -H 41.211.0.42 -C
> community -i eth0 -b 100 -u m
> Total RX Bytes: 1381.80 MB, Total TX Bytes: 2155.67 MBAverage
Traffic:
> 10.23 kB/s (0.1%) in, 12.45 kB/s ( 0.1%) out| inUsage=0.1,85,98
> outUsage=0.1,85,98 inAbsolut=1410835 outAbsolut=2202385

This implies a permissions issue. Testing as root isn't useful since
nagios isn't running the plugin as root. Do the same test again, except
as the nagios user. I'll bet you get different and more informative
results.



I'm going to take a very arbitrary guess and assume that I'm looking at
the same plugin as you. It uses a temporary file, hard-coded as
/tmp/traffic. Based on your test above, that file is almost certainly
owned by root and probably isn't modifiable by the nagios user. Change
ownership/permissions of the file or remove it entirely, then test again
as the nagios user.

--
Marc


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] check_iftraffic.pl plugin

2007-10-11 Thread Alex Dehaini
Hi Guys,

I need some help on how to use the check_iftraffic.pl plug in. I want nagios
to notify me if any of my servers reach a 150kbits/sec on their NIC. This is
what I have done so far.

1. I downloaded the plug in and gave it the appropriate ownership and
permissions.
2. I added the plugin to the command.cfg file and this is what I added to
the file

# 'check_iftraffic' command definition
define command{
command_namecheck_iftraffic
command_line$USER1$/check_iftraffic.pl -H $HOSTADDRESS$ -C
$USER3$ -i $ARG1$ -b $ARG2$ -u m
}

3. I added the following service to one of my linux servers that has a NIC
named eth0, this is what I added

define service{
use dns1-service
host_name   DNS2
service_description Traffic Load eth0
check_command   check_iftraffic!community!eth0!100
}

After these, nagios report an unknown error for this service on the web cgi
interface, nagios says:

DNS1
   [image:
DNS 
Servers]
Traffic
Load 
eth0
  [image:
Notifications for this service have been
disabled]
UNKNOWN 10-11-2007 15:10:44 0d 0h 2m 22s 3/6 (No output!)
Can anyone please assist me. When I run this from the plug in directory, I
get results, forexample

snmp:/usr/local/nagios/libexec# ./check_iftraffic.pl -H 41.211.0.42 -C
community -i eth0 -b 100 -u m
Total RX Bytes: 1381.80 MB, Total TX Bytes: 2155.67 MBAverage Traffic:
10.23 kB/s (0.1%) in, 12.45 kB/s (0.1%) out| inUsage=0.1,85,98
outUsage=0.1,85,98
inAbsolut=1410835 outAbsolut=2202385




-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - [EMAIL PROTECTED]
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] problem with instance_name variable in ndomod.cfg

2007-10-11 Thread Marc Powell
Hi!

I don't use ndoutils but I think I can help. See comments below --

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Roger
> Sent: Wednesday, October 10, 2007 6:21 PM
> To: Nagios Users mailinglist
> Subject: [Nagios-users] problem with instance_name variable in
ndomod.cfg
> 
> I'm trying to integrate NDOutils into my Nagios 2.9 CentOS setup, I'm
> getting a weird error when I add the following two lines in my
> nagios.cfg file, per the README in NDOutils.
> 
> * /etc/nagios.cfg *
> 
> #per README in NDOutils
> broker_module=/usr/bin/ndomod.o
> config_file=/etc/nagios/ndomod.cfg
> #config_file OR cfg_file ?
> 
> 
> 
> nagios -v /etc/nagios/nagios.cfg gives me:
> 
> "Error in configuration file '/etc/nagios/nagios.cfg' - Line 230
> (UNKNOWN VARIABLE)"

Is line 230 the line beginning 'config_file...'? My reading of the
ndoutils README is that those should be on one line with the config_file
as an argument to ndomod.o --

broker_module=/usr/bin/ndomod.o config_file=/etc/nagios/ndomod.cfg

The only directive that nagios understands above is broker_module.
That's why you're seeing the other errors when you try to force nagios
to parse 'config_file' and 'instance_name' as regular nagios directives.
Those are only understood by ndomod.

--
Marc 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
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] nrpe problem

2007-10-11 Thread tom.welsh
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sukesh
/IT/BLR/JIG/IN
Sent: 11 October 2007 10:48
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nrpe problem


Hi
Iam running nagios-3.0a4 and nrpe V2.8.1.iam not getting the result
while running ./check_nrpe -H . alreday no firewall is
running behind those servers .tried to put '-t' option also but didn't
work.Still iam able to telnet 5666 with out any problem/so please help
him for this.(iam able to access one server and client using nrpe daemon
other could not)/
 

Thanks,

Sukesh .

 

Hi Sukesh,

>From reading your email i take it you can sucessfully connect to the
remote NRPE host via telnet.

   [EMAIL PROTECTED]  :~> telnet host1.somedomain.com 
5666
   Trying xxx.xxx.xxx.199...
   Connected to host1.somedomain.com.
   Escape character is '^]'.

If this is correct then NRPE is accepting connections.

You said in the previous mail that NRPE is working correctly on one
machine but not on another. This sounds like you have some configuration
differences between the two boxes.

We really need to have more details to help you with this problem.

What OS is running on the two remote boxes?

Is it the same OS on both boxes.

Can you send snippets off your configuration THAT RELATE TO nrpe?
NRPE.CFG. SERVICES.CFG CHECKCOMMAND.CFG etc

Have you carried out the following

Turn on debugging on the remote host running nrpe and see what comes out
in the logs?

To do this edit your nrpe.cfg file and turn debugging on

debugging=1

An example off NRPE debugging turned on

Oct 11 13:30:01 host1 nrpe[3950]: Added
command[check_dns1]=/usr/local/nagios/libexec/check_dns -H www.teeks.org
-w 1 -c 2
Oct 11 13:30:01 host1 nrpe[3950]: Added
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 30% -c 20%
Oct 11 13:30:01 host nrpe[3950]: Added
command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H xxx.xxx.xxx-t
15
Oct 11 13:30:01 host nrpe[3950]: INFO: SSL/TLS initialized. All network
traffic will be encrypted.
Oct 11 13:30:01 host nrpe[3950]: Handling the connection...

 

 

 
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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] nrpe problem

2007-10-11 Thread Sukesh /IT/BLR/JIG/IN
Hi
Iam running nagios-3.0a4 and nrpe V2.8.1.iam not getting the result while
running ./check_nrpe -H . alreday no firewall is running behind
those servers .tried to put '-t' option also but didn't work.Still iam able
to telnet 5666 with out any problem/so please help him for this.(iam able to
access one server and client using nrpe daemon other could not)/
 

Thanks,

Sukesh .

 

 

 
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
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