Host State for machines that don't allow ping

Daniel McLaughlin daniel.mclaughlin at bizneteis.com
Mon Sep 10 17:22:42 CEST 2007


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!

nagios-users-request at lists.sourceforge.net wrote:
> Send Nagios-users mailing list submissions to
>         nagios-users at 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
>         nagios-users-request at lists.sourceforge.net
>
> You can reach the person managing the list at
>         nagios-users-owner at lists.sourceforge.net
>
> 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 (tom.welsh at bt.com)
>    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 <vadi.ksdba at gmail.com>
> Subject: [Nagios-users] NDOUtiles not working
> To: Nagios-users at lists.sourceforge.net
> Message-ID:
>         <5f6b57ee0709092133t31a932e8u4cb869e2dba55dd4 at mail.gmail.com>
> 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" <Uwe.Knop at lds.brandenburg.de>
> Subject: [Nagios-users] Antw:  nagios 3.0b3 abnormal cpu load ?
> To: "SCHAER Frederic" <frederic.schaer at cea.fr>,
>         <nagios-users at lists.sourceforge.net>
> Message-ID: <46E50246.1311.0075.3 at lds.brandenburg.de>
> 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" <frederic.schaer at cea.fr> schrieb am Fr, Sep 7,
>>>>         
> 2007 um  5:51  in Nachricht
> <EA04FF699CD5274E9EC52CB5EC0508707666FF at DIODON.extra.cea.fr>:
>
> 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 <ton.voon at altinity.com>
> Subject: Re: [Nagios-users] Disks not reporting correctly
> To: Craig Jackson <CJackson at abbott-simses.com>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <883CD1B1-AD7E-4813-AAAE-A7BD3C528628 at altinity.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> 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
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 10 Sep 2007 10:30:36 +0200 (CEST)
> From: "Sven Bauknecht" <sbauknecht at gmail.com>
> Subject: Re: [Nagios-users] NDOUtiles not working
> To: nagios-users at lists.sourceforge.net
> Message-ID:
>         <37444.217.66.32.101.1189413036.squirrel at mail.pizzatimer.de>
> Content-Type: text/plain;charset=iso-8859-1
>
> 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
>
> <zitiere wer="vadi">
>   
>> 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/vse0120000070mrt/direct/01/_______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>     
>
>
> --
> mail : sbauknecht at pizzatimer.de
> 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.
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 10 Sep 2007 10:38:43 +0200 (CEST)
> From: "Sven Bauknecht" <sbauknecht at gmail.com>
> Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ?
> To: nagios-users at lists.sourceforge.net
> Message-ID:
>         <40501.217.66.32.101.1189413523.squirrel at mail.pizzatimer.de>
> Content-Type: text/plain;charset=iso-8859-1
>
> 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
>
>
> <zitiere wer="SCHAER Frederic">
>   
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>     
>
>
> --
> mail : sbauknecht at pizzatimer.de
> 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.
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 10 Sep 2007 09:44:09 +0100
> From: <tom.welsh at bt.com>
> Subject: Re: [Nagios-users] NDOUtiles not working
> To: <sbauknecht at gmail.com>,     <nagios-users at lists.sourceforge.net>
> Message-ID:
>         <6546343904687E41B19D8E5A26AB9F53014CE236 at E03MVB2-UKBR.domain1.systemhost.net>
>
> Content-Type: text/plain;       charset="us-ascii"
>
> 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: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Sven
> Bauknecht
> Sent: 10 September 2007 09:31
> To: nagios-users at 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
>
> <zitiere wer="vadi">
>   
>> 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/vse0120000070mrt/direct/01/_______________
>> ________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when
>> reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>     
>
>
> --
> mail : sbauknecht at pizzatimer.de
> 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/vse0120000070mrt/direct/01/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 10 Sep 2007 09:52:10 +0100
> From: Hari Sekhon <hpsekhon at googlemail.com>
> Subject: [Nagios-users] Host State for machines that don't allow ping
> To: Nagios Users mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID: <46E505BA.7070302 at googlemail.com>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> 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
>
>
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 10 Sep 2007 10:58:22 +0200
> From: "SCHAER Frederic" <frederic.schaer at cea.fr>
> Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ?
> To: <nagios-users at lists.sourceforge.net>
> Message-ID:
>         <EA04FF699CD5274E9EC52CB5EC050870766730 at DIODON.extra.cea.fr>
> Content-Type: text/plain;       charset="us-ascii"
>
> 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
>>
>>
>>     
>
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 10 Sep 2007 11:22:45 +0200
> From: Andreas Ericsson <ae at op5.se>
> Subject: Re: [Nagios-users] Host State for machines that don't allow
>         ping
> To: Hari Sekhon <hpsekhon at googlemail.com>
> Cc: Nagios Users mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID: <46E50CE5.4020602 at op5.se>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> 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                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>
>
>
> ------------------------------
>
> Message: 10
> Date: Mon, 10 Sep 2007 12:25:07 +0200
> From: "SCHAER Frederic" <frederic.schaer at cea.fr>
> Subject: Re: [Nagios-users] nagios 3.0b3 abnormal cpu load ?
> To: <nagios-users at lists.sourceforge.net>
> Message-ID:
>         <EA04FF699CD5274E9EC52CB5EC050870766748 at DIODON.extra.cea.fr>
> Content-Type: text/plain; charset="us-ascii"
>
> 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: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of SCHAER
> Frederic
> Sent: Friday, September 07, 2007 5:51 PM
> To: nagios-users at 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...
>
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 11
> Date: Mon, 10 Sep 2007 11:55:58 +0100
> From: Hari Sekhon <hpsekhon at googlemail.com>
> Subject: Re: [Nagios-users] Host State for machines that don't allow
>         ping
> To: Andreas Ericsson <ae at op5.se>
> Cc: Nagios Users mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID: <46E522BE.4020207 at googlemail.com>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
>
>
> 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
>
>
>
> ------------------------------
>
> Message: 12
> Date: Mon, 10 Sep 2007 11:59:07 +0100
> From: Hari Sekhon <hpsekhon at googlemail.com>
> Subject: Re: [Nagios-users] Host State for machines that don't allow
>         ping
> To: Nagios Users mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID: <46E5237B.9050008 at googlemail.com>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> 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
>
>
>
> ------------------------------
>
> Message: 13
> Date: Mon, 10 Sep 2007 13:06:28 +0200
> From: Andreas Ericsson <ae at op5.se>
> Subject: Re: [Nagios-users] Host State for machines that don't allow
>         ping
> To: Hari Sekhon <hpsekhon at googlemail.com>
> Cc: Nagios Users mailinglist <nagios-users at lists.sourceforge.net>
> Message-ID: <46E52534.1040008 at op5.se>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> 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                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>
>
>
> ------------------------------
>
> Message: 14
> Date: 10 Sep 2007 12:03:32 -0000
> From: "RaJESH  KANNA" <tr_rajeshkanna at rediffmail.com>
> Subject: [Nagios-users] nagios-plugin unable to compile
> To: nagios-users at lists.sourceforge.net
> Message-ID: <20070910120332.7545.qmail at webmail103.rediffmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>  ?
> 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
>
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 15
> Date: Mon, 10 Sep 2007 14:13:14 +0200
> From: Andreas Ericsson <ae at op5.se>
> Subject: Re: [Nagios-users] nagios-plugin unable to compile
> To: RaJESH KANNA <tr_rajeshkanna at rediffmail.com>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <46E534DA.6010502 at op5.se>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> 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 nagiosplug-help at lists.sourceforge.net
>
> --
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>
>
>
> ------------------------------
>
> Message: 16
> Date: 10 Sep 2007 12:31:19 -0000
> From: "RaJESH  KANNA" <tr_rajeshkanna at rediffmail.com>
> Subject: Re: [Nagios-users] nagios-plugin unable to compile
> To: nagios-users at lists.sourceforge.net
> Message-ID: <20070910123119.2504.qmail at webmail94.rediffmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>  ?
> 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 nagiosplug-help at lists.sourceforge.net
>>
>> -- Andreas Ericsson                   andreas.ericsson at op5.se
>> OP5 AB                             www.op5.se
>> Tel: +46 8-230225                  Fax: +46 8-230231
>>     
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 17
> Date: Mon, 10 Sep 2007 10:23:48 -0400
> From: Paul Dugas <paul at dugas.cc>
> Subject: [Nagios-users] servicegroup dependant on other service
> To: nagios-users at lists.sourceforge.net
> Message-ID: <1189434228.3481.59.camel at pcpad.dugas.cc>
> Content-Type: text/plain; charset="us-ascii"
>
> 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_name        CAM
>>         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 <paul at dugas.cc>
> Dugas Enterprises, LLC
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 189 bytes
> Desc: This is a digitally signed message part
>
> ------------------------------
>
> Message: 18
> Date: Mon, 10 Sep 2007 16:39:58 +0200
> From: Andreas Ericsson <ae at op5.se>
> Subject: Re: [Nagios-users] servicegroup dependant on other service
> To: Paul Dugas <paul at dugas.cc>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <46E5573E.1060206 at op5.se>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> 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_name        CAM
>>>         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                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>
>
>
> ------------------------------
>
> Message: 19
> Date: Mon, 10 Sep 2007 11:06:07 -0400
> From: "Zembower, Kevin" <kzembowe at jhuccp.org>
> Subject: [Nagios-users] Newbie: Passing parameters to standard plugins
> To: <nagios-users at lists.sourceforge.net>
> Message-ID:
>         <2E8AE992B157C0409B18D0225D0B476306CD8F4B at XCH-VN01.sph.ad.jhsph.edu>
> Content-Type: text/plain;       charset="us-ascii"
>
> 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/vse0120000070mrt/direct/01/
>
> ------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
> End of Nagios-users Digest, Vol 16, Issue 13
> ********************************************
>   

-- 
Daniel Mclaughlin
Web Applications Infrastructure Technician

Biznet
MH Pavilion,
UUSRP (Magee Campus),
Northland Road,
Northern Ireland.
BT48 7UU
T: +44 (0)28 7129 5912
F: +44 (0)28 7129 5900
M: +44 (0)78 1698 7560
E:daniel.mclaughlin at bizneteis.com
W:http://www.bizneteis.com

Biznet
Suite 505,
Riverway 3,
Post Oak Lane,
Houston, TX 77056,
USA.
T: +1 713 425 6317
F: +1 713 783 0067
E:daniel.mclaughlin at bizneteis.com
W:http://www.bizneteis.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list