Re: [Nagios-users] Disks not reporting correctly

2007-09-10 Thread Ton Voon

On 7 Sep 2007, at 15:33, Craig Jackson wrote:

> Here's the relevant lines from nrpe.cfg:
> command[check_disk_sda1]=/usr/lib/nagios/plugins/check_disk -w 20 - 
> c 10
> -p /dev/sda1
> command[check_disk_sdb1]=/usr/lib/nagios/plugins/check_disk -w 20 - 
> c 10
> -p /dev/sdb1
> command[check_disk_sdc1]=/usr/lib/nagios/plugins/check_disk -w 20 - 
> c 10
> -p /dev/sdc1
>
> Any ideas?

You want to add a % after the 20 and 10, ie: check_disk -w 20% -c 10%.

It's a common mistake. I believe Ethan has already updated the CVS  
version of nrpe.cfg so that the default has the percent figures  
included.

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] NDOUtiles not working

2007-09-10 Thread Sven Bauknecht
Hi Vadiraj,

did you use the --enable-mysql option with the ndo-utils ./configure command.

In my case it was a bit weired with ndo utils, I had to run ./configure
--enable-mysql and the make commands twice before ndo-utils started
working properly.

Maybe that`ll help in your case, too.

Regards
sven


> Dear All,
>
> I have configured NDOUtiles for my nagios system.
>
> Used tools
> MySQL-client-standard-5.0.26-0.rhel4
> MySQL-shared-standard-5.0.26-0.rhel4
> MySQL-devel-standard-5.0.26-0.rhel4
> MySQL-server-standard-5.0.26-0.rhel4
> nagios 2.9
> ndoutils-1.4b5
>
> First time I got an error
> #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i
> Support for the specified database server is either not yet supported, or
> was not found on your system. [Can I know what this error meaning?]
> Then later I have changed ndoutils to ndoutils.12232005 .
> After that I have not got any error but mysql database not getting any
> data
> INPUT[Not sync].
> I have tasted this for all the possibility ways[I worked very hard to
> troubleshot], but it don't helped me.
> I am very poor in troubleshoot the problem [I can't troubleshoot the
> problem
> in source level]
>
> Please can somebody help me for this issue.
>
> Thanks,
> Vadiraj
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
> 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


-- 
mail : [EMAIL PROTECTED]
web  : http://www.sbauknecht.de

No no no.  Don't use kill -9.
It doesn't give the process a chance to cleanly:
1) shut down socket connections
2) clean up temp files
3) inform its children that it is going away
4) reset its terminal characteristics
and so on and so on and so on.

Generally, send 15, and wait a second or two, and if that doesn't work,
send 2, and if that doesn't work, send 1.
If that doesn't, REMOVE THE BINARY because the program is badly behaved!


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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.0b3 abnormal cpu load ?

2007-09-10 Thread Sven Bauknecht
Hi,

I can`t see any CPU problems with nagios 3.0b3. My System is a Virtuozzo
VM with Ubuntu dapper running Kernel 2.6.9.

This is a Testbox so there only about 10 Checks running.

Could this be a kernel 2.4.x issue? - Just a thought...

Regards,

sven



> Hi,
>
>
>
> I'm trying to setup a nagios 3.0b3 server, and I configured it with only
> one host, one check (ping).
>
> I can successfully start nagios, but I have concerns about the server
> cpu load : that's around 99% cpu usage all the time, on a P4 3GHz
> machine...
>
>
>
> Is there something I could do to decrese this load ? I tried installing
> a nagios 2.9 server using the same configuration, and the load caused by
> nagios is just ... 0.
>
> I guess this is a bug in the beta 3 ?
>
>
>
> Increasing the sleep time in nagios.cfg does not help at all even if I
> put sleep_time=2500 (2500 seconds !)
>
>
>
> Any suggestions would be welcome :-)
>
>
>
> P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't
> know if this could help. I don't see many usefull things with maximum
> debug verbosity...
>
>
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> -
> 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


-- 
mail : [EMAIL PROTECTED]
web  : http://www.sbauknecht.de

No no no.  Don't use kill -9.
It doesn't give the process a chance to cleanly:
1) shut down socket connections
2) clean up temp files
3) inform its children that it is going away
4) reset its terminal characteristics
and so on and so on and so on.

Generally, send 15, and wait a second or two, and if that doesn't work,
send 2, and if that doesn't work, send 1.
If that doesn't, REMOVE THE BINARY because the program is badly behaved!


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] NDOUtiles not working

2007-09-10 Thread tom.welsh
This is the exact same problem I have been having also. I have tried
with the --enable-mysql and also specifying the mysql libs and include
files but still get the error that Vadiraj gets.

I have the following setup

OS and Software as follows
SUSE Linux Enterprise Server 9. SP2
Nagios 2.9
NDO Utils 1.4b5
MySQL 5.0.54

All of the above compiled from source apart from SUSE :P

Regards

Tom 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sven
Bauknecht
Sent: 10 September 2007 09:31
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] NDOUtiles not working

Hi Vadiraj,

did you use the --enable-mysql option with the ndo-utils ./configure
command.

In my case it was a bit weired with ndo utils, I had to run ./configure
--enable-mysql and the make commands twice before ndo-utils started
working properly.

Maybe that`ll help in your case, too.

Regards
sven


> Dear All,
>
> I have configured NDOUtiles for my nagios system.
>
> Used tools
> MySQL-client-standard-5.0.26-0.rhel4
> MySQL-shared-standard-5.0.26-0.rhel4
> MySQL-devel-standard-5.0.26-0.rhel4
> MySQL-server-standard-5.0.26-0.rhel4
> nagios 2.9
> ndoutils-1.4b5
>
> First time I got an error
> #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i 
> Support for the specified database server is either not yet supported,

> or was not found on your system. [Can I know what this error meaning?]

> Then later I have changed ndoutils to ndoutils.12232005 .
> After that I have not got any error but mysql database not getting any

> data INPUT[Not sync].
> I have tasted this for all the possibility ways[I worked very hard to 
> troubleshot], but it don't helped me.
> I am very poor in troubleshoot the problem [I can't troubleshoot the 
> problem in source level]
>
> Please can somebody help me for this issue.
>
> Thanks,
> Vadiraj
>
> --
> This message has been scanned for viruses and dangerous content by 
> MailScanner, and is believed to be clean.
>
> --
> --- This SF.net email is sponsored by: Microsoft Defy all challenges. 
> Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
> 
> 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


--
mail : [EMAIL PROTECTED]
web  : http://www.sbauknecht.de

No no no.  Don't use kill -9.
It doesn't give the process a chance to cleanly:
1) shut down socket connections
2) clean up temp files
3) inform its children that it is going away
4) reset its terminal characteristics
and so on and so on and so on.

Generally, send 15, and wait a second or two, and if that doesn't work,
send 2, and if that doesn't work, send 1.
If that doesn't, REMOVE THE BINARY because the program is badly behaved!


--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Host State for machines that don't allow ping

2007-09-10 Thread Hari Sekhon
Hi,

   I am curios what people do when monitoring a host that does not 
respond to pings. I have a host which is not under my control, it does 
not respond to pings, but I am monitoring one service. The service is 
up, so the host is up. I am not receiving notifications for this host 
and it appears to be fine, but in the web interface, nagios has the host 
column as red but the service column as green.

This is somewhat of a contradiction because if the service is ok, then 
implicitly the host is up. Should the host column not be green as well?

I am considering changing the host definition's check command to a dummy 
check instead of the usual ping check, but this seems like not quite the 
right thing to do because the host may well be down then and the dummy 
check will always return ok and nagios will think that host is up.

I have also considered making the host check just the same check that 
the service is, which should work for this one host, but what about if I 
have to do the same for other hosts, this doesn't scale, I can't 
template it etc...


These are the only 2 options I can think of, either never know if it's 
up or not, or use the service check, but this doesn't scale and has to 
be done on an individual host basis for any host that doesn't respond to 
pings.


Anybody got any other ideas?

Thanks

-h

-- 
Hari Sekhon


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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.0b3 abnormal cpu load ?

2007-09-10 Thread SCHAER Frederic
Hi,

Thanks for the feedback about this... I was just testing on an ubuntu
7.04 box, and indeed there is no CPU load problem... I'll report this on
the devel mailing list, I fear there is indeed a bug somewhere :'(

Regards

> 
> Hi,
> 
> I can`t see any CPU problems with nagios 3.0b3. My System is a
Virtuozzo
> VM with Ubuntu dapper running Kernel 2.6.9.
> 
> This is a Testbox so there only about 10 Checks running.
> 
> Could this be a kernel 2.4.x issue? - Just a thought...
> 
> Regards,
> 
> sven
> 
> 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 State for machines that don't allow ping

2007-09-10 Thread Andreas Ericsson
Hari Sekhon wrote:
> Hi,
> 
>I am curios what people do when monitoring a host that does not 
> respond to pings. I have a host which is not under my control, it does 
> not respond to pings, but I am monitoring one service. The service is 
> up, so the host is up. I am not receiving notifications for this host 
> and it appears to be fine, but in the web interface, nagios has the host 
> column as red but the service column as green.
> 
> This is somewhat of a contradiction because if the service is ok, then 
> implicitly the host is up. Should the host column not be green as well?
> 
> I am considering changing the host definition's check command to a dummy 
> check instead of the usual ping check, but this seems like not quite the 
> right thing to do because the host may well be down then and the dummy 
> check will always return ok and nagios will think that host is up.
> 
> I have also considered making the host check just the same check that 
> the service is, which should work for this one host, but what about if I 
> have to do the same for other hosts, this doesn't scale, I can't 
> template it etc...
> 
> 
> These are the only 2 options I can think of, either never know if it's 
> up or not, or use the service check, but this doesn't scale and has to 
> be done on an individual host basis for any host that doesn't respond to 
> pings.
> 
> 
> Anybody got any other ideas?
> 

Write a host-check that checks the status of all services on the host. If
any service is up, the host is up.

Or, write a NEB-module to make this happen automagically whenever a host is
determined to be up and use a dummy check (that doesn't even have to exist)
for host check.

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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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.0b3 abnormal cpu load ?

2007-09-10 Thread SCHAER Frederic
Hi again,

 

There is a difference between the nagios I compiled on the 2.4 kernel /
RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand :

when stracing the nagios process, I can see it's calling the nanosleep()
function - and it then sleeps -, whereas on the 2.4 box I can't see such
a call : I just see this kind of thing (and lots of these) :

 

gettimeofday({1189419621, 161574}, NULL) = 0

time([1189419621])  = 1189419621

time([1189419621])  = 1189419621

gettimeofday({1189419621, 183742}, NULL) = 0

gettimeofday({1189419621, 183780}, NULL) = 0

gettimeofday({1189419621, 183814}, NULL) = 0

time([1189419621])  = 1189419621

gettimeofday({1189419621, 184172}, NULL) = 0

gettimeofday({1189419621, 184326}, NULL) = 0

time([1189419621])  = 1189419621

time([1189419621])  = 1189419621

gettimeofday({1189419621, 184734}, NULL) = 0

gettimeofday({1189419621, 184861}, NULL) = 0

gettimeofday({1189419621, 184984}, NULL) = 0

time([1189419621])  = 1189419621

gettimeofday({1189419621, 185537}, NULL) = 0

gettimeofday({1189419621, 185734}, NULL) = 0

 

Bad thing is that I tried to configure with and without the
-enable-nanosleep or -disable-nanosleep switches, but this apparently
has no effect :'(.

So it seems nagios is sleeping all the time, eating the CPU... I'm still
trying to see if I can find a way to compile with a "working sleep".

 

Fred

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SCHAER
Frederic
Sent: Friday, September 07, 2007 5:51 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ?

 

Hi,

 

I'm trying to setup a nagios 3.0b3 server, and I configured it with only
one host, one check (ping).

I can successfully start nagios, but I have concerns about the server
cpu load : that's around 99% cpu usage all the time, on a P4 3GHz
machine...

 

Is there something I could do to decrese this load ? I tried installing
a nagios 2.9 server using the same configuration, and the load caused by
nagios is just ... 0.

I guess this is a bug in the beta 3 ?

 

Increasing the sleep time in nagios.cfg does not help at all even if I
put sleep_time=2500 (2500 seconds !)

 

Any suggestions would be welcome :-)

 

P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't
know if this could help. I don't see many usefull things with maximum
debug verbosity...

 

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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 State for machines that don't allow ping

2007-09-10 Thread Hari Sekhon


Andreas Ericsson wrote:
>
> Write a host-check that checks the status of all services on the host. If
> any service is up, the host is up.
In that case, I would just use the service check as the host check as well.

> Or, write a NEB-module to make this happen automagically whenever a 
> host is
> determined to be up and use a dummy check (that doesn't even have to 
> exist)
> for host check.

NEB seems a little OTT, I don't know anything about NEB and I'd rather 
avoid doing something heavy for something which should be small and simple.



I take it that most of you out there who run Nagios have ping enabled on 
_all_ of your hosts?


I can't be the first person to run into this, surely?

-h

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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-plugin unable to compile

2007-09-10 Thread RaJESH KANNA
  
Hi,

   I am unable to compile nagios-plugin on a solaris machine. Has someone come 
across this error. Kinldy help. 

Note : i tried disable-ssl,disable-mysql etc.

nagios plugin version : 1.4.9 

OS : solaris 10


 #./configure works 

 #make ( throws below mentioned error)

*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
  else \
local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/nagios/nagios-plugins-1.4.9
*** Error code 1
make: Fatal error: Command failed for target `all'

   
Regards,
Rajesh




 -
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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 State for machines that don't allow ping

2007-09-10 Thread Hari Sekhon
one more thing, I spoke too soon, I am getting host down alerts for that 
host even though the service is green in the web interface and I can see 
the service output banner from the service.

-h

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 State for machines that don't allow ping

2007-09-10 Thread Andreas Ericsson
Hari Sekhon wrote:
> 
> 
> Andreas Ericsson wrote:
>>
>> Write a host-check that checks the status of all services on the host. If
>> any service is up, the host is up.
> In that case, I would just use the service check as the host check as well.
> 
>> Or, write a NEB-module to make this happen automagically whenever a 
>> host is
>> determined to be up and use a dummy check (that doesn't even have to 
>> exist)
>> for host check.
> 
> NEB seems a little OTT, I don't know anything about NEB and I'd rather 
> avoid doing something heavy for something which should be small and simple.
> 

It wouldn't be heavy at all. Just hook into the host checking machinery and
go through the host's services prior to running the actual check. If any of
the services are ok, block the host check and set the host to state "UP" with
output "Implicitly OK due to functioning services".

It could probably be done in 100 or so lines of code.

> 
> 
> I take it that most of you out there who run Nagios have ping enabled on 
> _all_ of your hosts?
> 
> 
> I can't be the first person to run into this, surely?
> 

Nopes, but generally there's some easy way of checking if the host is up.
check_tcp is quite small and efficient. Perhaps you can use that to check
if the port serving whatever service you're monitoring is up?

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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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-plugin unable to compile

2007-09-10 Thread Andreas Ericsson
RaJESH KANNA wrote:
>   
> Hi,
> 
>I am unable to compile nagios-plugin on a solaris machine. Has someone 
> come across this error. Kinldy help. 
> 
> Note : i tried disable-ssl,disable-mysql etc.
> 
> nagios plugin version : 1.4.9 
> 
> OS : solaris 10
> 
> 
>  #./configure works 
> 
>  #make ( throws below mentioned error)
> 
> *=* | --[!k]*);; \
> *k*) failcom='fail=yes';; \
>   esac; \
> done; \
> dot_seen=no; \
> target=`echo all-recursive | sed s/-recursive//`; \
> list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; 
> do \
>   echo "Making $target in $subdir"; \
>   if test "$subdir" = "."; then \
> dot_seen=yes; \
> local_target="$target-am"; \
>   else \
> local_target="$target"; \
>   fi; \
>   (cd $subdir && make  $local_target) \
>   || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
>   make  "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /usr/local/nagios/nagios-plugins-1.4.9
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> 

This is a result of the nagiosplugin Makefile being ridiculously
complex and more or less requiring GNU make.

Either install GNU make (it's very portable), or bugger the nagiosplug
dev-team to fix this, preferrably on [EMAIL PROTECTED]

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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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-plugin unable to compile

2007-09-10 Thread RaJESH KANNA
  
Thanks Andreas!. Installing Gnu make didn't help. I will send mail to 
nagiosplugin-help

Rajesh


On Mon, 10 Sep 2007 Andreas Ericsson wrote :
>RaJESH KANNA wrote:
>>   Hi,
>>
>>I am unable to compile nagios-plugin on a solaris machine. Has someone 
>> come across this error. Kinldy help. 
>>Note : i tried disable-ssl,disable-mysql etc.
>>
>>nagios plugin version : 1.4.9 
>>OS : solaris 10
>>
>>
>>  #./configure works 
>>  #make ( throws below mentioned error)
>>
>> *=* | --[!k]*);; \
>> *k*) failcom='fail=yes';; \
>>   esac; \
>>done; \
>>dot_seen=no; \
>>target=`echo all-recursive | sed s/-recursive//`; \
>>list='gl lib plugins plugins-scripts plugins-root po'; for subdir in $list; 
>>do \
>>   echo "Making $target in $subdir"; \
>>   if test "$subdir" = "."; then \
>> dot_seen=yes; \
>> local_target="$target-am"; \
>>   else \
>> local_target="$target"; \
>>   fi; \
>>   (cd $subdir && make  $local_target) \
>>   || eval $failcom; \
>>done; \
>>if test "$dot_seen" = "no"; then \
>>   make  "$target-am" || exit 1; \
>>fi; test -z "$fail"
>>make: Fatal error: Command failed for target `all-recursive'
>>Current working directory /usr/local/nagios/nagios-plugins-1.4.9
>>*** Error code 1
>>make: Fatal error: Command failed for target `all'
>>
>
>This is a result of the nagiosplugin Makefile being ridiculously
>complex and more or less requiring GNU make.
>
>Either install GNU make (it's very portable), or bugger the nagiosplug
>dev-team to fix this, preferrably on [EMAIL PROTECTED]
>
>-- Andreas Ericsson   [EMAIL PROTECTED]
>OP5 AB www.op5.se
>Tel: +46 8-230225  Fax: +46 8-230231
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] servicegroup dependant on other service

2007-09-10 Thread Paul Dugas
I've defined a service for a hostgroup and am trying to make each of
those services dependent on one other service.  I don't want to have to
type the name of every member of the hostgroup; there are hundreds of
them.

This is the "master" service

> define service{
> host_name   svr
> service_description VIDS
> check_command   check_snmp_proc!VIDS_Server
> use server-service
> }

These need to be dependent on the "master" service

> define service{
> hostgroup_name  CAM
> service_description CONTROL
> check_command   check_cam_control_vids!svr
> use cam-service
> }

This isn't working.

> define servicedependency{
> host_name   svr
> service_description VIDS
> dependent_hostgroup_nameCAM
> dependent_service_description   CONTROL
> }

I'm getting this for each member of the CAM hostgroup

> Warning: Ignoring lame service dependency (config file 
> '/etc/nagios/nav/cam.cfg', line 57)

Any ideas as to where I'm going awry?

TIA,

pd
-- 
Paul Dugas <[EMAIL PROTECTED]>
Dugas Enterprises, LLC


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] servicegroup dependant on other service

2007-09-10 Thread Andreas Ericsson
Paul Dugas wrote:
> I've defined a service for a hostgroup and am trying to make each of
> those services dependent on one other service.  I don't want to have to
> type the name of every member of the hostgroup; there are hundreds of
> them.
> 
> This is the "master" service
> 
>> define service{
>> host_name   svr
>> service_description VIDS
>> check_command   check_snmp_proc!VIDS_Server
>> use server-service
>> }
> 
> These need to be dependent on the "master" service
> 
>> define service{
>> hostgroup_name  CAM
>> service_description CONTROL
>> check_command   check_cam_control_vids!svr
>> use cam-service
>> }
> 
> This isn't working.
> 
>> define servicedependency{
>> host_name   svr
>> service_description VIDS
>> dependent_hostgroup_nameCAM
>> dependent_service_description   CONTROL
>> }
> 
> I'm getting this for each member of the CAM hostgroup
> 
>> Warning: Ignoring lame service dependency (config file 
>> '/etc/nagios/nav/cam.cfg', line 57)
> 
> Any ideas as to where I'm going awry?
> 

You have no notification_failure_criteria or check_execution_failure_criteria
specified. As such, it's a completely empty dependency that Nagios will
simply ignore because it will have zero impact during run-time.

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

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Newbie: Passing parameters to standard plugins

2007-09-10 Thread Zembower, Kevin
I'm trying to pass the username and password to the check_mysql plugin,
but am having some trouble. In configuring nagios2 so far, I've either
just used the plugins with no parameters (such as check_http) or created
my own versions of plugins with different names in commands.cfg. I can
create a new name for the check_mysql plugin and use that, but this
seems wrong. When I create an entry in /etc/nagios2/commands.cfg to fix
the order in which I'm passing the parameters, Nagios complains that
check_mysql is already defined.

Can anyone tell me what I'm doing wrong and how to pass the parameters
to a standard plugin?

My system is Debian 4.0 Etch with the nagios2 2.6-2+etch1 package
installed.

Thanks for your advice and suggestions.

-Kevin

Kevin Zembower
Internet Services Group manager
Center for Communication Programs
Bloomberg School of Public Health
Johns Hopkins University
111 Market Place, Suite 310
Baltimore, Maryland  21202
410-659-6139 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Disks not reporting correctly

2007-09-10 Thread cjackson
Ton Voon wrote:
> 
> On 7 Sep 2007, at 15:33, Craig Jackson wrote:
> 
>> Here's the relevant lines from nrpe.cfg:
>> command[check_disk_sda1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10
>> -p /dev/sda1
>> command[check_disk_sdb1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10
>> -p /dev/sdb1
>> command[check_disk_sdc1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10
>> -p /dev/sdc1
>>
>> Any ideas?
> 
> You want to add a % after the 20 and 10, ie: check_disk -w 20% -c 10%.
> 
> It's a common mistake. I believe Ethan has already updated the CVS 
> version of nrpe.cfg so that the default has the percent figures included.
> 

Ton,

Adding the "%" didn't correct the problem. The Nrpe client is configured 
in the same way on at least 10 other servers.

Thanks.
Craig

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Host State for machines that don't allow ping

2007-09-10 Thread Daniel McLaughlin
In my nagios setup I have a similar problem, how I get around this is 
(in the case of a webserver) is that I use a check_http for the 
check_host command, therefore if HTTP is available, I am assuming that 
the server is up!

[EMAIL PROTECTED] wrote:
> Send Nagios-users mailing list submissions to
> nagios-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nagios-users digest..."
>
>
> Today's Topics:
>
>1. NDOUtiles not working (vadi)
>2. Antw:  nagios 3.0b3 abnormal cpu load ? (Uwe Knop)
>3. Re: Disks not reporting correctly (Ton Voon)
>4. Re: NDOUtiles not working (Sven Bauknecht)
>5. Re: nagios 3.0b3 abnormal cpu load ? (Sven Bauknecht)
>6. Re: NDOUtiles not working ([EMAIL PROTECTED])
>7. Host State for machines that don't allow ping (Hari Sekhon)
>8. Re: nagios 3.0b3 abnormal cpu load ? (SCHAER Frederic)
>9. Re: Host State for machines that don't allow ping
>   (Andreas Ericsson)
>   10. Re: nagios 3.0b3 abnormal cpu load ? (SCHAER Frederic)
>   11. Re: Host State for machines that don't allow ping (Hari Sekhon)
>   12. Re: Host State for machines that don't allow ping (Hari Sekhon)
>   13. Re: Host State for machines that don't allow ping
>   (Andreas Ericsson)
>   14. nagios-plugin unable to compile (RaJESH  KANNA)
>   15. Re: nagios-plugin unable to compile (Andreas Ericsson)
>   16. Re: nagios-plugin unable to compile (RaJESH  KANNA)
>   17. servicegroup dependant on other service (Paul Dugas)
>   18. Re: servicegroup dependant on other service (Andreas Ericsson)
>   19. Newbie: Passing parameters to standard plugins (Zembower, Kevin)
>
>
> --
>
> Message: 1
> Date: Mon, 10 Sep 2007 10:03:14 +0530
> From: vadi <[EMAIL PROTECTED]>
> Subject: [Nagios-users] NDOUtiles not working
> To: Nagios-users@lists.sourceforge.net
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear All,
>
> I have configured NDOUtiles for my nagios system.
>
> Used tools
> MySQL-client-standard-5.0.26-0.rhel4
> MySQL-shared-standard-5.0.26-0.rhel4
> MySQL-devel-standard-5.0.26-0.rhel4
> MySQL-server-standard-5.0.26-0.rhel4
> nagios 2.9
> ndoutils-1.4b5
>
> First time I got an error
> #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i
> Support for the specified database server is either not yet supported, or
> was not found on your system. [Can I know what this error meaning?]
> Then later I have changed ndoutils to ndoutils.12232005 .
> After that I have not got any error but mysql database not getting any data
> INPUT[Not sync].
> I have tasted this for all the possibility ways[I worked very hard to
> troubleshot], but it don't helped me.
> I am very poor in troubleshoot the problem [I can't troubleshoot the problem
> in source level]
>
> Please can somebody help me for this issue.
>
> Thanks,
> Vadiraj
> -- next part --
> An HTML attachment was scrubbed...
>
> --
>
> Message: 2
> Date: Mon, 10 Sep 2007 08:37:25 +0200
> From: "Uwe Knop" <[EMAIL PROTECTED]>
> Subject: [Nagios-users] Antw:  nagios 3.0b3 abnormal cpu load ?
> To: "SCHAER Frederic" <[EMAIL PROTECTED]>,
> 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-15"
>
> Hi,
>
> I have the same Problem with nagios 3.0b3 server.
> The last good Version around CPU Load was nagios 3.0a5 .
>
> bye
> Uwe Knop
>
>
>   
 "SCHAER Frederic" <[EMAIL PROTECTED]> schrieb am Fr, Sep 7,
 
> 2007 um  5:51  in Nachricht
> <[EMAIL PROTECTED]>:
>
> Hi,
>
> I*m trying to setup a nagios 3.0b3 server, and I configured it with
> only one host, one check (ping).
> I can successfully start nagios, but I have concerns about the server
> cpu load : that*s around 99% cpu usage all the time, on a P4 3GHz
> machine*
>
> Is there something I could do to decrese this load ? I tried installing
> a nagios 2.9 server using the same configuration, and the load caused by
> nagios is just * 0.
> I guess this is a bug in the beta 3 ?
>
> Increasing the sleep time in nagios.cfg does not help at all even if I
> put sleep_time=2500 (2500 seconds !)
>
> Any suggestions would be welcome J
>
> P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3,
> don*t know if this could help. I don*t see many usefull things with
> maximum debug verbosity*
>
>
> -- next part --
> An HTML attachment was scrubbed...
>
> --
>
> Message: 3
> Date: Mon, 10 Sep 2007 08:31:57 +0100
> From: Ton Voon <[EMAIL PROTECTED]>

Re: [Nagios-users] nagios-plugin unable to compile

2007-09-10 Thread Chris Lee
Hi Rajesh,

I recieved some compile errors when I compiled the nagios-plugin on solaris
10 using the native cc compiler. Finally, I installed iconv, gcc and
open-ssl and then did the compilation again. Then everything worked.

Regards,


-- Chris



On 10 Sep 2007 12:03:32 -, RaJESH KANNA <[EMAIL PROTECTED]>
wrote:
>
>
> Hi,
>
>   I am unable to compile nagios-plugin on a solaris machine. Has someone
> come across this error. Kinldy help.
>
> Note : i tried disable-ssl,disable-mysql etc.
>
> nagios plugin version : 1.4.9
>
> OS : solaris 10
>
>
> #./configure works
>
> #make ( throws below mentioned error)
>
> *=* | --[!k]*);; \
> *k*) failcom='fail=yes';; \
>   esac; \
> done; \
> dot_seen=no; \
> target=`echo all-recursive | sed s/-recursive//`; \
> list='gl lib plugins plugins-scripts plugins-root po'; for subdir in
> $list; do \
>   echo "Making $target in $subdir"; \
>   if test "$subdir" = "."; then \
> dot_seen=yes; \
> local_target="$target-am"; \
>   else \
> local_target="$target"; \
>   fi; \
>   (cd $subdir && make  $local_target) \
>   || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
>   make  "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /usr/local/nagios/nagios-plugins-1.4.9
> *** Error code 1
> make: Fatal error: Command failed for target `all'
>
>
> Regards,
> Rajesh
>
>
>
>
>
>
>   [image: 
> ebay]  PROTECTED]/1362386_1355934/1361766/1?PARTNER=3&OAS_QUERY=null+target=new+>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Disks not reporting correctly

2007-09-10 Thread cjackson
Justin Maloney wrote:
> So I see the df there, what does the output from nrpe show you?  And
> what's the out put of "df -k"? Could be the df you use is defaulting to
> 512-byte blocks or the check_disk command might.  Just a thought.
> 
> Thank you,
> 
> Justin Maloney
> 
> Systems Administrator
> 
> Honeycomb Internet Services
> 
> 612.617.0007

Justin,

The output of df -k is

Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sda1 28834716   1238228  26131764   5% /
varrun 5114228   224   5114004   1% /var/run
varlock5114228 0   5114228   0% /var/lock
procbususb 511422872   5114156   1% /proc/bus/usb
udev   511422872   5114156   1% /dev
devshm 5114228 0   5114228   0% /dev/shm
lrm5114228 38972   5075256   1% 
/lib/modules/2.6.20-15-generic/volatile
/dev/sdb1480719056 138018784 318281072  31% 
/var/spool/exim/vmail
/dev/sdc1480719056 137322512 318977344  31% /mnt/mailBAC


How do I see the output of the Nrpe command?

Thanks.
Craig

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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.0b3 abnormal cpu load ?

2007-09-10 Thread SCHAER Frederic
/me again...

 

It seems there is a problem with host checks on my box that causes host
checks to be run continuously on the same host(s) - well it seems that
there is indeed no host check run because one is < always > executing (
? no, it's not ! ).

 

logs show this for a debug run of just a few seconds :

# grep "A check of this host is already being executed"
/var/log/nagios/nagios.debug | wc -l

   1709

 

de-activating host checks (execute_host_checks=0)in the nagios.cfg file
frees the CPU, at the cost of host checks... it's good to know, isn't it
? ;)

Is this really usefull anyway if I define a check_ping service on all
hosts ?

 

Cheers

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SCHAER
Frederic
Sent: Monday, September 10, 2007 12:25 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ?

 

Hi again,

 

There is a difference between the nagios I compiled on the 2.4 kernel /
RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand :

when stracing the nagios process, I can see it's calling the nanosleep()
function - and it then sleeps -, whereas on the 2.4 box I can't see such
a call : I just see this kind of thing (and lots of these) :

 

gettimeofday({1189419621, 161574}, NULL) = 0

time([1189419621])  = 1189419621

time([1189419621])  = 1189419621

gettimeofday({1189419621, 183742}, NULL) = 0

gettimeofday({1189419621, 183780}, NULL) = 0

gettimeofday({1189419621, 183814}, NULL) = 0

time([1189419621])  = 1189419621

gettimeofday({1189419621, 184172}, NULL) = 0

gettimeofday({1189419621, 184326}, NULL) = 0

time([1189419621])  = 1189419621

time([1189419621])  = 1189419621

gettimeofday({1189419621, 184734}, NULL) = 0

gettimeofday({1189419621, 184861}, NULL) = 0

gettimeofday({1189419621, 184984}, NULL) = 0

time([1189419621])  = 1189419621

gettimeofday({1189419621, 185537}, NULL) = 0

gettimeofday({1189419621, 185734}, NULL) = 0

 

Bad thing is that I tried to configure with and without the
-enable-nanosleep or -disable-nanosleep switches, but this apparently
has no effect :'(.

So it seems nagios is sleeping all the time, eating the CPU... I'm still
trying to see if I can find a way to compile with a "working sleep".

 

Fred

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SCHAER
Frederic
Sent: Friday, September 07, 2007 5:51 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ?

 

Hi,

 

I'm trying to setup a nagios 3.0b3 server, and I configured it with only
one host, one check (ping).

I can successfully start nagios, but I have concerns about the server
cpu load : that's around 99% cpu usage all the time, on a P4 3GHz
machine...

 

Is there something I could do to decrese this load ? I tried installing
a nagios 2.9 server using the same configuration, and the load caused by
nagios is just ... 0.

I guess this is a bug in the beta 3 ?

 

Increasing the sleep time in nagios.cfg does not help at all even if I
put sleep_time=2500 (2500 seconds !)

 

Any suggestions would be welcome :-)

 

P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't
know if this could help. I don't see many usefull things with maximum
debug verbosity...

 

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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.0b3 abnormal cpu load ?

2007-09-10 Thread SCHAER Frederic
I finally found a solution :

either deactivate the host checks or... define a check_command for the
hosts : with host_checks_enabled and without a check command, nagios
eats all of my CPU, with a command defined, everything is back to
normal...

 

I wish I saw I had no check_command defined in my host template !

 

Cheers

 



From: SCHAER Frederic 
Sent: Monday, September 10, 2007 5:56 PM
To: SCHAER Frederic; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] nagios 3.0b3 abnormal cpu load ?

 

/me again...

 

It seems there is a problem with host checks on my box that causes host
checks to be run continuously on the same host(s) - well it seems that
there is indeed no host check run because one is < always > executing (
? no, it's not ! ).

 

logs show this for a debug run of just a few seconds :

# grep "A check of this host is already being executed"
/var/log/nagios/nagios.debug | wc -l

   1709

 

de-activating host checks (execute_host_checks=0)in the nagios.cfg file
frees the CPU, at the cost of host checks... it's good to know, isn't it
? ;)

Is this really usefull anyway if I define a check_ping service on all
hosts ?

 

Cheers

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SCHAER
Frederic
Sent: Monday, September 10, 2007 12:25 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ?

 

Hi again,

 

There is a difference between the nagios I compiled on the 2.4 kernel /
RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand :

when stracing the nagios process, I can see it's calling the nanosleep()
function - and it then sleeps -, whereas on the 2.4 box I can't see such
a call : I just see this kind of thing (and lots of these) :

 

gettimeofday({1189419621, 161574}, NULL) = 0

time([1189419621])  = 1189419621

time([1189419621])  = 1189419621

gettimeofday({1189419621, 183742}, NULL) = 0

gettimeofday({1189419621, 183780}, NULL) = 0

gettimeofday({1189419621, 183814}, NULL) = 0

time([1189419621])  = 1189419621

gettimeofday({1189419621, 184172}, NULL) = 0

gettimeofday({1189419621, 184326}, NULL) = 0

time([1189419621])  = 1189419621

time([1189419621])  = 1189419621

gettimeofday({1189419621, 184734}, NULL) = 0

gettimeofday({1189419621, 184861}, NULL) = 0

gettimeofday({1189419621, 184984}, NULL) = 0

time([1189419621])  = 1189419621

gettimeofday({1189419621, 185537}, NULL) = 0

gettimeofday({1189419621, 185734}, NULL) = 0

 

Bad thing is that I tried to configure with and without the
-enable-nanosleep or -disable-nanosleep switches, but this apparently
has no effect :'(.

So it seems nagios is sleeping all the time, eating the CPU... I'm still
trying to see if I can find a way to compile with a "working sleep".

 

Fred

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SCHAER
Frederic
Sent: Friday, September 07, 2007 5:51 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] nagios 3.0b3 abnormal cpu load ?

 

Hi,

 

I'm trying to setup a nagios 3.0b3 server, and I configured it with only
one host, one check (ping).

I can successfully start nagios, but I have concerns about the server
cpu load : that's around 99% cpu usage all the time, on a P4 3GHz
machine...

 

Is there something I could do to decrese this load ? I tried installing
a nagios 2.9 server using the same configuration, and the load caused by
nagios is just ... 0.

I guess this is a bug in the beta 3 ?

 

Increasing the sleep time in nagios.cfg does not help at all even if I
put sleep_time=2500 (2500 seconds !)

 

Any suggestions would be welcome :-)

 

P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't
know if this could help. I don't see many usefull things with maximum
debug verbosity...

 

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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.0b3 abnormal cpu load ?

2007-09-10 Thread Anthony Montibello
Hi List,

First I think this is more appropiate fpr the Developer list so I hope Ethan
has been watching this thread.

If your observation is true,
should Nagios have an internal default hostcheck command  or some code to
deactivate hostchecks when no hostcheck command is entered?

Tony (author of NC_Net)


On 9/10/07, SCHAER Frederic <[EMAIL PROTECTED]> wrote:
>
>  I finally found a solution :
>
> either deactivate the host checks or… define a check_command for the hosts
> : with host_checks_enabled and without a check command, nagios eats all of
> my CPU, with a command defined, everything is back to normal…
>
>
>
> I wish I saw I had no check_command defined in my host template !
>
>
>
> Cheers
>
>
>   --
>
> *From:* SCHAER Frederic
> *Sent:* Monday, September 10, 2007 5:56 PM
> *To:* SCHAER Frederic; nagios-users@lists.sourceforge.net
> *Subject:* RE: [Nagios-users] nagios 3.0b3 abnormal cpu load ?
>
>
>
> /me again…
>
>
>
> It seems there is a problem with host checks on my box that causes host
> checks to be run continuously on the same host(s) – well it seems that there
> is indeed no host check run because one is « always » executing ( ? no, it's
> not ! ).
>
>
>
> logs show this for a debug run of just a few seconds :
>
> # grep "A check of this host is already being executed"
> /var/log/nagios/nagios.debug | wc -l
>
>1709
>
>
>
> de-activating host checks (execute_host_checks=0)in the nagios.cfg file
> frees the CPU, at the cost of host checks… it's good to know, isn't it ? ;)
>
> Is this really usefull anyway if I define a check_ping service on all
> hosts ?
>
>
>
> Cheers
>
>
>   --
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *SCHAER Frederic
> *Sent:* Monday, September 10, 2007 12:25 PM
> *To:* nagios-users@lists.sourceforge.net
> *Subject:* Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ?
>
>
>
> Hi again,
>
>
>
> There is a difference between the nagios I compiled on the 2.4 kernel /
> RHEL3 box on the one hand, and the 2.6 one on Ubuntu on the other hand :
>
> when stracing the nagios process, I can see it's calling the nanosleep()
> function – and it then sleeps -, whereas on the 2.4 box I can't see such a
> call : I just see this kind of thing (and lots of these) :
>
>
>
> gettimeofday({1189419621, 161574}, NULL) = 0
>
> time([1189419621])  = 1189419621
>
> time([1189419621])  = 1189419621
>
> gettimeofday({1189419621, 183742}, NULL) = 0
>
> gettimeofday({1189419621, 183780}, NULL) = 0
>
> gettimeofday({1189419621, 183814}, NULL) = 0
>
> time([1189419621])  = 1189419621
>
> gettimeofday({1189419621, 184172}, NULL) = 0
>
> gettimeofday({1189419621, 184326}, NULL) = 0
>
> time([1189419621])  = 1189419621
>
> time([1189419621])  = 1189419621
>
> gettimeofday({1189419621, 184734}, NULL) = 0
>
> gettimeofday({1189419621, 184861}, NULL) = 0
>
> gettimeofday({1189419621, 184984}, NULL) = 0
>
> time([1189419621])  = 1189419621
>
> gettimeofday({1189419621, 185537}, NULL) = 0
>
> gettimeofday({1189419621, 185734}, NULL) = 0
>
>
>
> Bad thing is that I tried to configure with and without the
> –enable-nanosleep or –disable-nanosleep switches, but this apparently has no
> effect :'(.
>
> So it seems nagios is sleeping all the time, eating the CPU… I'm still
> trying to see if I can find a way to compile with a "working sleep".
>
>
>
> Fred
>
>
>
>
>   --
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *SCHAER Frederic
> *Sent:* Friday, September 07, 2007 5:51 PM
> *To:* nagios-users@lists.sourceforge.net
> *Subject:* [Nagios-users] nagios 3.0b3 abnormal cpu load ?
>
>
>
> Hi,
>
>
>
> I'm trying to setup a nagios 3.0b3 server, and I configured it with only
> one host, one check (ping).
>
> I can successfully start nagios, but I have concerns about the server cpu
> load : that's around 99% cpu usage all the time, on a P4 3GHz machine…
>
>
>
> Is there something I could do to decrese this load ? I tried installing a
> nagios 2.9 server using the same configuration, and the load caused by
> nagios is just … 0.
>
> I guess this is a bug in the beta 3 ?
>
>
>
> Increasing the sleep time in nagios.cfg does not help at all even if I put
> sleep_time=2500 (2500 seconds !)
>
>
>
> Any suggestions would be welcome J
>
>
>
> P.S : I compiled nagios on a 2.4.21 linux kernel, using gcc 3.2.3, don't
> know if this could help. I don't see many usefull things with maximum debug
> verbosity…
>
>
>
>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://

Re: [Nagios-users] servicegroup dependant on other service

2007-09-10 Thread Paul Dugas
On Mon, 2007-09-10 at 10:23 -0400, Paul Dugas wrote:
> > define servicedependency{
> > host_name   svr
> > service_description VIDS
> > dependent_hostgroup_nameCAM
> > dependent_service_description   CONTROL
> > }
> 
> I'm getting this for each member of the CAM hostgroup
> 
> > Warning: Ignoring lame service dependency (config file 
> > '/etc/nagios/nav/cam.cfg', line 57)

Duh, seems in all my fiddling, I removed the
notification_failure_criteria and check_execution_failure_criteria
entries.  

Sorry for the wasted bandwidth.

pd
-- 
Paul Dugas <[EMAIL PROTECTED]>
Dugas Enterprises, LLC


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Notifications not working

2007-09-10 Thread Patrick Morris
On Mon, 10 Sep 2007, Antonio Pereira wrote:

> Hi,
> 
> I am seeing the following errors in the local var spool file
> 
> The message could not be delivered because the recipient's 
> destination email system is unknown or invalid. Please check the address and 
> try again, or contact your system administrator to verify connectivity to the 
> email system of the recipient.
> 
> I ran this from the console and I got this from the email client app that I 
> am using. I can send emails from this email but not the console which I think 
> it uses the sendmail feature and I think this needs to be configured for our 
> email system right? If so, where?

Sounds like you need to figure out what MTA your system is using, and
then check to make sure it's configured properly.

Since we don't know which you're using, or what appears in your mail
logs, or anything else about how Nagios or mail are configured on your
system, it's difficult to give you anything more specific than that.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Notifications not working

2007-09-10 Thread Antonio Pereira
Hi,

 

I am seeing the following errors in the local var spool file

 

The message could not be delivered because the recipient's 
destination email system is unknown or invalid. Please check the address and 
try again, or contact your system administrator to verify connectivity to the 
email system of the recipient.

 

I ran this from the console and I got this from the email client app that I am 
using. I can send emails from this email but not the console which I think it 
uses the sendmail feature and I think this needs to be configured for our email 
system right? If so, where?

 

Thanks

 

 

 

Antonio Pereira
National IT Coordinator

Coordinateur National de Technologies de l'Information
Tél./Tel. : (514) 341-8181, ext./poste 267
Téléc./Fax. : (514) 341-1253
Cell: (514) 514-444-6086
Sans Frais/Toll Free: (888) 338-6266 ext./poste 267
Courriel / E-mail. : [EMAIL PROTECTED]

 

Duocom Canada Inc.
1, Cavendish Blvd.
Ville St. Laurent (Québec) H4M 2V1
www.duocom.ca  

 

From: Justin Maloney [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 07, 2007 4:24 PM
To: Antonio Pereira; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] Notifications not working

 

What are the errors your seeing?

 

Thank you,

Justin Maloney

Systems Administrator

Honeycomb Internet Services

612.617.0007



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Antonio Pereira
Sent: Friday, September 07, 2007 9:06 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Notifications not working

 

Hello,

 

I am configured the notifications in Nagios but I see errors appearing in 
Nagios and I don't get any emails. I running the following

 

Fedora 6

Nagios 2.9

 

Any ideas? 

 

Antonio Pereira
National IT Coordinator

Coordinateur National de Technologies de l'Information
Tél./Tel. : (514) 341-8181, ext./poste 267
Téléc./Fax. : (514) 341-1253
Cell: (514) 514-444-6086
Sans Frais/Toll Free: (888) 338-6266 ext./poste 267
Courriel / E-mail. : [EMAIL PROTECTED]

 

Duocom Canada Inc.
1, Cavendish Blvd.
Ville St. Laurent (Québec) H4M 2V1
www.duocom.ca  

 

 

 



Avis Le présent message n'est destiné qu'à la personne ou à l'entité à qui il 
est adressé et peut contenir des renseignements de nature privilégiée et 
confidentielle. Si le lecteur du présent message n'est pas le destinataire 
prévu ou encore la personne chargée de remettre ce message au destinataire 
prévu, veuillez nous aviser immédiatement. Toute diffusion, distribution ou 
reproduction des renseignements contenus dans ce message ou des documents qui 
lui sont joints est strictement interdite. 
 Notice This message is intended only 
for the use of individual or entity to which it is addressed and may contain 
information that is privileged and confidential. If the reader of this message 
is not the intended recipient or the person responsible for delivering the 
message to the intended recipient, please notify us immediately. Any 
disclosure, distribution or copying of this message or the information 
contained herein or attached hereto is strictly prohibited.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Notifications not working

2007-09-10 Thread Antonio Pereira
I apologize for the lack of info. I'll try to clarify 

Fedora 6
Nagios 2.9
 It says the mta is the localhost name which is
< mtlnm.duocom.local #5.1.2> that is the name of my local system. I have an 
exchange server setup and that is handling all emails on another server.

If you need more info please let me know.

Thanks

Antonio Pereira
National IT Coordinator
Coordinateur National de Technologies de l'Information
Tél./Tel. : (514) 341-8181, ext./poste 267
Téléc./Fax. : (514) 341-1253
Cell: (514) 514-444-6086
Sans Frais/Toll Free: (888) 338-6266 ext./poste 267
Courriel / E-mail. : [EMAIL PROTECTED]
 
Duocom Canada Inc.
1, Cavendish Blvd.
Ville St. Laurent (Québec) H4M 2V1
www.duocom.ca


-Original Message-
From: Patrick Morris [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 10, 2007 3:25 PM
To: Antonio Pereira
Cc: Justin Maloney; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Notifications not working

On Mon, 10 Sep 2007, Antonio Pereira wrote:

> Hi,
> 
> I am seeing the following errors in the local var spool file
> 
> The message could not be delivered because the recipient's 
> destination email system is unknown or invalid. Please check the address and 
> try again, or contact your system administrator to verify connectivity to the 
> email system of the recipient.
> 
> I ran this from the console and I got this from the email client app that I 
> am using. I can send emails from this email but not the console which I think 
> it uses the sendmail feature and I think this needs to be configured for our 
> email system right? If so, where?

Sounds like you need to figure out what MTA your system is using, and
then check to make sure it's configured properly.

Since we don't know which you're using, or what appears in your mail
logs, or anything else about how Nagios or mail are configured on your
system, it's difficult to give you anything more specific than that.



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] NDOUtiles not working

2007-09-10 Thread vadi
Dear All,

I have tried all the ways, but still it's not working.
Where I can get logs for NDOUtiles tools?

We have datacenter in 4 different locations. As of now we are having nagios
configured in one system which will pull the data from different location (I
hope it is not the best practices)
Now I need to implement
1>Failure concept in nagios(different location).
2>How I can implement Mysql database as a back end repository.
3>What is the best practice for configuring such an environment?, which
should use nagios monitoring tool very effectively

Thanks and Regards,
Vadiraj


On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> This is the exact same problem I have been having also. I have tried
> with the --enable-mysql and also specifying the mysql libs and include
> files but still get the error that Vadiraj gets.
>
> I have the following setup
>
> OS and Software as follows
> SUSE Linux Enterprise Server 9. SP2
> Nagios 2.9
> NDO Utils 1.4b5
> MySQL 5.0.54
>
> All of the above compiled from source apart from SUSE :P
>
> Regards
>
> Tom
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sven
> Bauknecht
> Sent: 10 September 2007 09:31
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] NDOUtiles not working
>
> Hi Vadiraj,
>
> did you use the --enable-mysql option with the ndo-utils ./configure
> command.
>
> In my case it was a bit weired with ndo utils, I had to run ./configure
> --enable-mysql and the make commands twice before ndo-utils started
> working properly.
>
> Maybe that`ll help in your case, too.
>
> Regards
> sven
>
> 
> > Dear All,
> >
> > I have configured NDOUtiles for my nagios system.
> >
> > Used tools
> > MySQL-client-standard-5.0.26-0.rhel4
> > MySQL-shared-standard-5.0.26-0.rhel4
> > MySQL-devel-standard-5.0.26-0.rhel4
> > MySQL-server-standard-5.0.26-0.rhel4
> > nagios 2.9
> > ndoutils-1.4b5
> >
> > First time I got an error
> > #/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg -i
> > Support for the specified database server is either not yet supported,
>
> > or was not found on your system. [Can I know what this error meaning?]
>
> > Then later I have changed ndoutils to ndoutils.12232005 .
> > After that I have not got any error but mysql database not getting any
>
> > data INPUT[Not sync].
> > I have tasted this for all the possibility ways[I worked very hard to
> > troubleshot], but it don't helped me.
> > I am very poor in troubleshoot the problem [I can't troubleshoot the
> > problem in source level]
> >
> > Please can somebody help me for this issue.
> >
> > Thanks,
> > Vadiraj
> >
> > --
> > This message has been scanned for viruses and dangerous content by
> > MailScanner, and is believed to be clean.
> >
> > --
> > --- This SF.net email is sponsored by: Microsoft Defy all challenges.
> > Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
> > 
> > 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
>
>
> --
> mail : [EMAIL PROTECTED]
> web  : http://www.sbauknecht.de
>
> No no no.  Don't use kill -9.
> It doesn't give the process a chance to cleanly:
> 1) shut down socket connections
> 2) clean up temp files
> 3) inform its children that it is going away
> 4) reset its terminal characteristics
> and so on and so on and so on.
>
> Generally, send 15, and wait a second or two, and if that doesn't work,
> send 2, and if that doesn't work, send 1.
> If that doesn't, REMOVE THE BINARY because the program is badly behaved!
>
>
> --
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.
>
>
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://list

Re: [Nagios-users] NDOUtiles not working

2007-09-10 Thread Patrick Morris
On Mon, 10 Sep 2007, vadi wrote:

> I have tried all the ways, but still it's not working.
> Where I can get logs for NDOUtiles tools?

ndoutils will log to the same place Nagios does.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] hostgroups in servicegroup definition

2007-09-10 Thread Lori Adams
Looking at the documentation, I don't think what I'm hoping for is
possible. We're using nagios 2.9 on Redhat.  

 

I'd like to define a servicegroup by listing the members as
,service,,service and then also have other
members like ,service.  

 

Example:

Define servicegroup {

Servicegroup_nameSG

Alias random SG

Members   hostA,service

Hostgroup_Members  hostgroup1,service,hostgroup2,service
(wishing for)

}

 

Is this possible, and I just can't find the name of the directive?  

 

Thanks,

-Lori

 

 

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] separate webfront

2007-09-10 Thread Cassandra Pugh
Hugo, perhaps you can elaborate?  Do you know how to pull the web page info
out and put it on another server?  

I am not sure if I want to go the NFS route, as we recently got hacked
through NFS vulnerabilities.

However, it has been requested that this Nagios page be "public".  I have set
it up on my box as an internal website, so I know how to do that much... it's
just having half of nagios on our "public" web server that has me scratching
my head.  

Any further advice?

--
Cassandra 
(609) 243-2413 


"From a little spark may burst a mighty flame."

--

Message: 5
Date: Fri, 7 Sep 2007 17:37:06 -0500
From: "Marc Powell" <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] separate webfront
To: 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;   charset="US-ASCII"



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Cassandra Pugh
> Sent: Friday, September 07, 2007 3:32 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] separate webfront
> 
> I would like to know if anyone knows if the nagios program (and all it
> collects and monitors) and the webfront can be hosted on different
> computers?
> I do not want to make the server that nagios is hosted on a webserver,
and
> also do not want to bog down the webserver with the nagios processes.
> 
> Does anyone know what I would need to do to accomplish this
separation?

I have been successful in NFS mounting the nagios home directory from
another machine and using the CGI's from there. The only drawback is
that you will not be able to issue commands from the web interface at
all. NFS doesn't support named pipes.

--
Marc







--

Message: 7
Date: Sat, 8 Sep 2007 09:29:32 +0200 (CEST)
From: Hugo van der Kooij <[EMAIL PROTECTED]>
Subject: Re: [Nagios-users] separate webfront
To: Nagios Users mailinglist 
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Fri, 7 Sep 2007, Cassandra Pugh wrote:

> I would like to know if anyone knows if the nagios program (and all it
> collects and monitors) and the webfront can be hosted on different
computers?
> I do not want to make the server that nagios is hosted on a webserver, and
> also do not want to bog down the webserver with the nagios processes.

Apache is not that hard if you tune down the defaults. I think you will 
find the drawbacks of seperation harder then it needs to be.

If yyou do not wish to make it public you can always make the other apache 
server a front for this webserver. I do this for various aplications.

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say "Windows"
I use computers with Linux and say "Why Windows?"
(Thanks JFK, for this quote of George Bernard Shaw.)


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] separate webfront

2007-09-10 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Cassandra Pugh
> Sent: Monday, September 10, 2007 4:25 PM
> To: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] separate webfront
> 


> However, it has been requested that this Nagios page be "public".  I
have
> set
> it up on my box as an internal website, so I know how to do that
much...
> it's
> just having half of nagios on our "public" web server that has me
> scratching
> my head.
> 
> Any further advice?


Perhaps the Nagios Looking Glass project (NLG) might be useful to you.

--
Marc

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Graph Map file

2007-09-10 Thread Patrick Morris

On Mon, 10 Sep 2007, matt wells wrote:

> Please let me know if I need to send this to another list.
> I'm attempting to resolve this map file for nagiosgraph.
> 
> Below is the information out of the 'perfdata.log' file
> 1189461916||SERVERX.EXAMPLE.COM|NT_CHECK_DISK_C||Used: 35176 MB (50%) Free: 
> 34275 MB (49%)||
> 
> Below is my terrible attempt with the nagiosgraph 'map' file
> # Service type: ntdisk
> # check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90
> # output: c:\ - total: 25.87 Gb - used: 4.10 Gb (16%) - free 21.77 Gb (84%)
> # perfdata: c:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87
> #/perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/
> /output:.*?([0-9]) MB* Free: .*?([0-9]) MB */
> and push @s, [ ntdisk,
> [ diskused, GAUGE, $1*1024**3 ],
> [ diskfree, GAUGE, $5*1024**3 ] ];
> 
> If anyone can help I'll buy you lunch in Vegas.
> 
> Wells
> 

Your regex has issues. :)

Something like this should work (with the caveat that I write regexes
about as well as I tap dance):

/output:.*Used: ([0-9]) MB .*Free: ([0-9]) MB/

I think the lack of a "." before your "*"s  is biting you.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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 Graph Map file

2007-09-10 Thread matt wells
Please let me know if I need to send this to another list.
I'm attempting to resolve this map file for nagiosgraph.

Below is the information out of the 'perfdata.log' file
1189461916||SERVERX.EXAMPLE.COM|NT_CHECK_DISK_C||Used: 35176 MB (50%) Free:
34275 MB (49%)||

Below is my terrible attempt with the nagiosgraph 'map' file
# Service type: ntdisk
# check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90
# output: c:\ - total: 25.87 Gb - used: 4.10 Gb (16%) - free 21.77 Gb (84%)
# perfdata: c:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87
#/perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/
/output:.*?([0-9]) MB* Free: .*?([0-9]) MB */
and push @s, [ ntdisk,
[ diskused, GAUGE, $1*1024**3 ],
[ diskfree, GAUGE, $5*1024**3 ] ];

If anyone can help I'll buy you lunch in Vegas.

Wells
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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 2.9 NDOUtils 1.4b5 Debian 4.0ro mysql-server-5.0 Dont work

2007-09-10 Thread Rodrigo Pacheco
Friends,
When trying to begin Nagios 2.9 with NDOUtils it presents the following
message:

[04-09-2007 16:41:09] Finished daemonizing... (New PID=450)
[04-09-2007 16:41:09] Event broker
module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully.
[04-09-2007 16:41:09] Error: Function nebmodule_init() in
module '/usr/local/nagios/bin/ndomod.o' returned an error. Module
will be unloaded.
[04-09-2007 16:41:09] ndomod: NDOMOD 1.4b4 (06-19-2007) Copyright (c)
2005-2007 Ethan Galstad ([EMAIL PROTECTED])
[04-09-2007 16:41:09] LOG VERSION: 2.0
[04-09-2007 16:41:09] Nagios 2.9 starting... (PID=449)



can anybody help myself?



thank you

Rodrigo Pacheco

does anybody know as installing the nagios 2.9 with ndoutils in Debian?
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] $HOSTn$ macros?

2007-09-10 Thread Paul Dugas
Would it be possible in a future release to support something like a
$HOSTn$ macro?  I'm running into some larger configs where this would be
very useful.

I've got hundreds of CCTV cameras with serial PTZ-control ports and
analog video outputs.  Their serial ports are connected to various
terminal servers scattered around a rather large network.  Their video
outputs are connected to separate video encoders.  

I have standard hosts definitions for the terminal servers and encoders.
I have bogus host definitions for the cameras (with check_command set to
check_none).  The camera hosts are in a hostgroup are so I can provide
consolidated reports to camera technicians.  

I currently have a whole slew of service definitions for the cameras
that actually check the serial ports and video inputs on the real
devices the camera is connected to.  I'd love to be able to do something
like this instead:

> define host{
> host_name   cam-844
> hostgroups  CAM
> host_data   ts-23,12,enc-45,3 # terminal-server host, port, 
> encoder host, port
> use cam-host
> }
> define command{
> command_namecheck_cam_control
> command_line$USER1$/local/check_cam_control -H $HOST1$ -P 
> $HOST2$
> }
> define command{
> command_namecheck_cam_video
> command_line$USER1$/local/check_cam_video -H $HOST3$ -P 
> $HOST4$
> }
> define service{
> hostgroup_name  CAM
> service_description CONTROL
> servicegroups   CAM-CONTROL
> check_command   check_cam_control
> use cam-service
> }
> define servicedependency{
> host_name   $HOST1$
> service_description PING
> dependent_hostgroup_nameCAM
> dependent_service_description   CONTROL
> execution_failure_criteria  w,u,c,p
> notification_failure_criteria   w,u,c,p
> }
> define service{
> hostgroup_name  CAM
> service_description VIDEO
> servicegroups   CAM-VIDEO
> check_command   check_cam_video
> use cam-service
> }
> define servicedependency{
> host_name   $HOST3$
> service_description PING
> dependent_hostgroup_nameCAM
> dependent_service_description   VIDEO
> execution_failure_criteria  w,u,c,p
> notification_failure_criteria   w,u,c,p
> }

Three ideas here:
  1: add CSV "host_data" attribute to "host" definitions.
  2: make "host_data" pieces available in commands via $HOSTn$
  3: make $HOSTn$ vars available in related object definitions

Maybe a pipe dream.  Worth throwing out though.  Maybe I'll look at a
hack where I pack the info into the $HOSTNOTES$ extended attributes

Paul
-- 
Paul Dugas <[EMAIL PROTECTED]>
Dugas Enterprises, LLC


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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] Configuration Error - 3.0.b3

2007-09-10 Thread Dennis Huenseler
Hello out there,

 

the error means that you have a host in your windows.cfg which looks like

 

define host{

use windows-server  ; Inherit default values from a template

host_name   winserver   ; The name we're giving to this host

alias   My Windows Server   ; A longer name associated with 
the host

address 192.168.1.2 ; IP address of the host

hostgroups  allhosts; Host groups this server is associated 
with

}

 

Where the host is defined as a member of the hostgroup allhosts which isn't 
defined anywhere. Take a look at your configs where your hostgroups are defined 
and search for allhosts. If you can't find a matching entry just comment out 
the line

hostgroups  allhosts; Host groups this server is associated 
with

in your windows.cfg.

 

 

Kind regards, 

Dennis Hünseler



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patel, Bipin
Sent: Monday, September 10, 2007 10:42 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Configuration Error - 3.0.b3

 

I have just installed nagios 3.0b3 on Linux box 2.4.21-47.ELsmp #1 SMP. I am 
trying to monitor windows machines and when I have uncommented windows.cfg line 
from /etc/nagios/nagios.cfg and ran configuration check, I am getting following 
errors.

*

# bin/nagios -v etc/nagios/nagios.cfg

 

Nagios 3.0b3

Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)

Last Modified: 08-30-2007

License: GPL

 

Reading configuration data...

Error: Could not find any hostgroup matching 'allhosts' (config file 
'/usr/local/nagios/etc/objects/windows.cfg', starting on line 25)

Error: Hostgroup has no members (config file 
'/usr/local/nagios/etc/objects/windows.cfg', starting on line 47)

 

***> One or more problems was encountered while processing the config files...

 

 Check your configuration file(s) to ensure that they contain valid

 directives and data defintions.  If you are upgrading from a previous

 version of Nagios, you should be aware that some variables/definitions

 may have been removed or modified in this version.  Make sure to read

 the HTML documentation regarding the config files, as well as the

 'Whats New' section to find out what has changed.

 

It works If I have comment out windows.cfg line in nagios.cfg - No error. But I 
also like to monitor my windows boxes.

So what I am doing wrong? Attached are cfg.cfg, nagios.cfg & windows.cfg

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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