Nagios-users Digest, Vol 18, Issue 48

NTOUGHE GUY-SERGE ntoughe at hotmail.com
Thu Nov 29 17:48:35 CET 2007


Hi All,
I want to define 3D drawing by defining hostextinfo.cfg and seviceextinfo.cfg
 when i launched the checking of nagios *.cfg  files :
 /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
i got this error message:


Error: Could not add duplicate hostextinfo entry for host 'americano'.
Error: Could not allocate memory for hostextinfo list to add extended info for host 'americano'.
Error: Could not register extended host information (config file '/usr/local/nagios/etc/servers/hostextinfo.cfg', starting on line 6)

I defined host americano in the differents file it has to be :
host.cfg
hostgroups.cfg
services.cfg
servicegroups.cfg
 
If you have experienced such a problem, could you please give me a clue for solving this little headache?
Regards.



ntoughe at hotmail.com

> From: nagios-users-request at lists.sourceforge.net
> Subject: Nagios-users Digest, Vol 18, Issue 48
> To: nagios-users at lists.sourceforge.net
> Date: Thu, 29 Nov 2007 08:09:43 -0800
> 
> 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. max_check_attempts not working for me (Jeremy C. Reed)
>    2. Re: NSCA Confusing host check results	asservice	checks
>       (Chris Haulmark)
>    3. SMS gateway (Marcel Hecko)
>    4. Re: SMS gateway (Eric Frazier)
>    5. Re: max_check_attempts not working for me (Marc Powell)
>    6. Re: NSCA Confusing host check resultsasservice	checks
>       (Marc Powell)
>    7. Re: max_check_attempts not working for me (Jeremy C. Reed)
>    8. Re: max_check_attempts not working for me (Marc Powell)
>    9. what is log format? (Jeremy C. Reed)
>   10. Re: max_check_attempts not working for me (Jeremy C. Reed)
>   11. Re: what is log format? (Jeremy C. Reed)
>   12. Re: what is log format? (Marc Powell)
>   13. Re: SMS gateway (Dennis H?nseler)
>   14. Re: SMS gateway (nagios)
>   15. Dealing with nightly high load (Jasper Filon)
>   16. snmptraphandling.py (Giles Coochey)
>   17. Re: Dealing with nightly high load (Duncan Ferguson)
>   18. Re: snmptraphandling.py (Duncan Ferguson)
>   19. Re: snmptraphandling.py (Giles Coochey)
>   20. Re: SMS gateway (R.Oxley)
>   21. test (Carsten Philipp)
>   22. Re: SMS gateway (Phil Costelloe)
>   23. RES:  SMS gateway (Dario B. Bestetti)
>   24. obsessing and event handlers (mark redding)
>   25. Re: Dealing with nightly high load (mark.potter at academy.com)
>   26. Need help using check_by_ssh with check_disk (Sean Bowers)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 28 Nov 2007 15:15:55 -0600 (CST)
> From: "Jeremy C. Reed" <reed at reedmedia.net>
> Subject: [Nagios-users] max_check_attempts not working for me
> To: Nagios-users at lists.sourceforge.net
> Message-ID: <Pine.LNX.4.64.0711281438080.16386 at reedmedia.net>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> I have templates that define max_check_attempts as 3 and others as 5 with 
> retry_check_interval as 1 (my interval_length is 60).
> 
> But I never see any indication that the failures are retried at all before 
> I receive a notification.
> 
> I get a service notification on the first CRITICAL failure which 
> becomes immediately HARD.
> 
> I set:
> 
> log_service_retries=1
> log_host_retries=1
> 
> But I don't get any logging about any retries.
> 
> How can I troubleshoot why my max_check_attempts doesn't work?
> 
> I want it to not do any notification on first failure. I want it to retry 
> the failed service in approximately one minute. And only then notify if it 
> fails again.
> 
> This is on Nagios 2.8.
> 
> Here is the template I am using:
> 
> define service{
> 	name				service-template	; The 'name' of this service template, referenced in other service definitions
> 	active_checks_enabled		1	; Active service checks are enabled
> 	passive_checks_enabled		1	; Passive service checks are enabled/accepted
> 	parallelize_check		1	; Active service checks should be parallelized (disabling this can lead to major performance problems)
> 	obsess_over_service		1	; We should obsess over this service (if necessary)
> 	check_freshness			0	; Default is to NOT check service 'freshness'
> 	notifications_enabled		1	; Service notifications are enabled
> 	event_handler_enabled		1	; Service event handler is enabled
> 	flap_detection_enabled		1	; Flap detection is enabled
> 	process_perf_data		1	; Process performance data
> 	retain_status_information	1	; Retain status information across program restarts
> 	retain_nonstatus_information	1	; Retain non-status information across program restarts
> 
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           5
>         retry_check_interval            1
>         contact_groups                  noc-admins
>         notification_interval           0	; disable recurring notifications
>         notification_period             24x7
>         notification_options            w,u,c,r
> 
> 	register			0	; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
> 	}
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 28 Nov 2007 16:41:43 -0500
> From: "Chris Haulmark" <chris at sigd.net>
> Subject: Re: [Nagios-users] NSCA Confusing host check results
> 	asservice	checks
> To: "Brian A. Seklecki" <lavalamp at spiritual-machines.org>,	"Marc
> 	Powell" <marc at ena.com>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID:
> 	<6FC9F9894A9F8C49A722CF9F2132FC220F7C787F at ms05.mailstreet2003.net>
> Content-Type: text/plain;	charset="us-ascii"
> 
> 
> 
> > -----Original Message-----
> > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> > bounces at lists.sourceforge.net] On Behalf Of Brian A. Seklecki
> > Sent: Wednesday, November 28, 2007 1:45 PM
> > To: Marc Powell
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] NSCA Confusing host check results
> asservice
> > checks
> > 
> > > Where did you get a send_nsca that expects comma-delimited input?
> The
> > > standard send_nsca expects tab-delimited input so this problem
> > doesn't
> > > arise.
> > >
> > 
> > Chris Haulmark can provide the ISBN and revision of the book in which
> > the example code was taken.
> 
> It is Pro Nagios 2.0 written by James Turnbull.
> ISBN-13 978-1-59059-609-8
> ISBN-10 1-59059-609-9
> 
> Page 277 at the bottom shows that if you leave out -d for the send_nsca
> program, it would use tab by default.  The script examples show that it
> is
> using -d "," and two examples are shown on page 278.
> 
> Chris
> 
> > 
> > Its his project -- I just get involved for the goofy stuff.
> > 
> > ~BAS
> > 
> > 
> >
> -----------------------------------------------------------------------
> > --
> > SF.Net email is sponsored by: The Future of Linux Business White Paper
> > from Novell.  From the desktop to the data center, Linux is going
> > mainstream.  Let it simplify your IT future.
> > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> > _______________________________________________
> > 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: 3
> Date: Wed, 28 Nov 2007 22:40:06 +0100 (CET)
> From: "Marcel Hecko" <maco at maco.sk>
> Subject: [Nagios-users] SMS gateway
> To: nagios-users at lists.sourceforge.net
> Message-ID: <iSeXznEC.1196286006.0182960.maco at blava.net>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> 
> Hi, does anybody know of any HARDWARE solution into which I would just
> stick GSM SIM card and send SMS messages from Nagios?
> Something with ethernet interface - like - I would just call HTTP URI and
> the device will send the SMS text to the number encoded in the HTTP
> request (both - the text and phone number).
> 
> Basically - very basic SMS gateway. With pre-paid sim card that would be
> just magic!
> 
> Does something like that exist? Possibly with two-way communitaction?
> What price should I be looking at?
> 
> Cheers!
> Marcel
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Wed, 28 Nov 2007 18:15:35 -0400
> From: "Eric Frazier" <efrazier at ic-agency.com>
> Subject: Re: [Nagios-users] SMS gateway
> To: "'Marcel Hecko'" <maco at maco.sk>,
> 	<nagios-users at lists.sourceforge.net>
> Message-ID: <000001c8320c$3500f270$6389b3cf at eric>
> Content-Type: text/plain;	charset="us-ascii"
> 
> Hi,
> 
> This looks like a winner. Since it is a command line tool it should be easy
> to get working with Nagios.
> 
> http://www.gnokii.org/
> 
> Others? 
> 
> 
> 
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marcel
> Hecko
> Sent: Wednesday, November 28, 2007 5:40 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] SMS gateway
> 
> 
> Hi, does anybody know of any HARDWARE solution into which I would just stick
> GSM SIM card and send SMS messages from Nagios?
> Something with ethernet interface - like - I would just call HTTP URI and
> the device will send the SMS text to the number encoded in the HTTP request
> (both - the text and phone number).
> 
> Basically - very basic SMS gateway. With pre-paid sim card that would be
> just magic!
> 
> Does something like that exist? Possibly with two-way communitaction?
> What price should I be looking at?
> 
> Cheers!
> Marcel
> 
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper from
> Novell.  From the desktop to the data center, Linux is going mainstream.
> Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> _______________________________________________
> 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: 5
> Date: Wed, 28 Nov 2007 16:54:49 -0600
> From: "Marc Powell" <marc at ena.com>
> Subject: Re: [Nagios-users] max_check_attempts not working for me
> To: <Nagios-users at lists.sourceforge.net>
> Message-ID: <A7B0A9F02975A74A845FE85D0B95B8FA09124720 at misex01.ena.com>
> Content-Type: text/plain;	charset="US-ASCII"
> 
> 
> 
> > -----Original Message-----
> > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> > bounces at lists.sourceforge.net] On Behalf Of Jeremy C. Reed
> > Sent: Wednesday, November 28, 2007 3:16 PM
> > To: Nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] max_check_attempts not working for me
> > 
> > I have templates that define max_check_attempts as 3 and others as 5
> with
> > retry_check_interval as 1 (my interval_length is 60).
> > 
> > But I never see any indication that the failures are retried at all
> before
> > I receive a notification.
> > 
> > I get a service notification on the first CRITICAL failure which
> > becomes immediately HARD.
> 
> 
> > Here is the template I am using:
> > 
> > define service{
> > 	name				service-template	; The
> 'name' of this
> 
> <chop>
> >         is_volatile                     0
> >         check_period                    24x7
> >         max_check_attempts              3
> >         normal_check_interval           5
> >         retry_check_interval            1
> 
> Assuming this is the template that you have applied to the service in
> question and you don't override any of the relevant values in your
> service definition, this should do nearly what you want (it'd be about 3
> minutes before notification actually). This is a common configuration
> and I'm not aware of any bugs related to it ever appearing. Are you sure
> nagios was restarted after applying this configuration? That you only
> have one daemon process running? Are you sure that nagios is reading
> this file? Are you sure that this template is applied to your services
> in question? Are you sure that it's a service notification that you're
> receiving and not a host notification?
> 
> --
> Marc
> 
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Wed, 28 Nov 2007 16:57:56 -0600
> From: "Marc Powell" <marc at ena.com>
> Subject: Re: [Nagios-users] NSCA Confusing host check resultsasservice
> 	checks
> To: <nagios-users at lists.sourceforge.net>
> Message-ID: <A7B0A9F02975A74A845FE85D0B95B8FA09124721 at misex01.ena.com>
> Content-Type: text/plain;	charset="US-ASCII"
> 
> 
> 
> > -----Original Message-----
> > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> > bounces at lists.sourceforge.net] On Behalf Of Chris Haulmark
> > Sent: Wednesday, November 28, 2007 3:42 PM
> > To: Brian A. Seklecki; Marc Powell
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] NSCA Confusing host check resultsasservice
> > checks
> 
> 
> > It is Pro Nagios 2.0 written by James Turnbull.
> > ISBN-13 978-1-59059-609-8
> > ISBN-10 1-59059-609-9
> > 
> > Page 277 at the bottom shows that if you leave out -d for the
> send_nsca
> > program, it would use tab by default.  The script examples show that
> it
> > is
> > using -d "," and two examples are shown on page 278.
> 
> Seems like an unusual example to choose considering it's a pretty clear
> conflict with the most common plugin test around (check_ping,
> check_icmp). In any event, tabs are the way to go IMHO.
> 
> --
> Marc
> 
> 
> 
> ------------------------------
> 
> Message: 7
> Date: Wed, 28 Nov 2007 17:59:33 -0600 (CST)
> From: "Jeremy C. Reed" <reed at reedmedia.net>
> Subject: Re: [Nagios-users] max_check_attempts not working for me
> To: Marc Powell <marc at ena.com>
> Cc: Nagios-users at lists.sourceforge.net
> Message-ID: <Pine.LNX.4.64.0711281753520.16386 at reedmedia.net>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> On Wed, 28 Nov 2007, Marc Powell wrote:
> 
> > > Here is the template I am using:
> > > 
> > > define service{
> > > 	name				service-template	; The
> > 'name' of this
> > 
> > <chop>
> > >         is_volatile                     0
> > >         check_period                    24x7
> > >         max_check_attempts              3
> > >         normal_check_interval           5
> > >         retry_check_interval            1
> > 
> > Assuming this is the template that you have applied to the service in
> > question and you don't override any of the relevant values in your
> > service definition, this should do nearly what you want (it'd be about 3
> > minutes before notification actually). This is a common configuration
> > and I'm not aware of any bugs related to it ever appearing. Are you sure
> > nagios was restarted after applying this configuration? That you only
> > have one daemon process running? Are you sure that nagios is reading
> > this file? Are you sure that this template is applied to your services
> > in question? Are you sure that it's a service notification that you're
> > receiving and not a host notification?
> 
> This is the template we have used for a long time (probably with those 
> same settings and over a hundred nagios restarts). I also have similar for 
> my host template (but it is "max_check_attempts 5").
> 
> You mention "3 minutes" above,  but I don't see any indication that it is 
> checked multiple times before the notification.
> 
> What types of logs would I see if it checked but not notifying yet because 
> still max_check_attempts-1 to do?
> 
> When I watch my logs I only see one indication of the "SERVICE 
> ALERT:...CRITICAL;HARD" and then immediately (same second) followed by the 
> corresponding "SERVICE NOTIFICATION"s.
> \
> Also when I previously setup debugging for nrpe, I didn't see them checked 
> multiple times (every minute) on failures. But I may try that again.
> 
> 
> 
> ------------------------------
> 
> Message: 8
> Date: Wed, 28 Nov 2007 19:52:09 -0600
> From: Marc Powell <marc at ena.com>
> Subject: Re: [Nagios-users] max_check_attempts not working for me
> To: Nagios-users at lists.sourceforge.net
> Message-ID: <69AC6F93-4D6C-4356-ACD4-D3E2F26101BA at ena.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
> 
> 
> On Nov 28, 2007, at 5:59 PM, Jeremy C. Reed wrote:
> 
> > On Wed, 28 Nov 2007, Marc Powell wrote:
> >
> >>> Here is the template I am using:
> >>>
> >>> define service{
> >>> 	name				service-template	; The
> >> 'name' of this
> >>
> >> <chop>
> >>>        is_volatile                     0
> >>>        check_period                    24x7
> >>>        max_check_attempts              3
> >>>        normal_check_interval           5
> >>>        retry_check_interval            1
> >>
> >> Assuming this is the template that you have applied to the service in
> >> question and you don't override any of the relevant values in your
> >> service definition, this should do nearly what you want (it'd be  
> >> about 3
> >> minutes before notification actually). This is a common configuration
> >> and I'm not aware of any bugs related to it ever appearing. Are you  
> >> sure
> >> nagios was restarted after applying this configuration? That you only
> >> have one daemon process running? Are you sure that nagios is reading
> >> this file? Are you sure that this template is applied to your  
> >> services
> >> in question? Are you sure that it's a service notification that  
> >> you're
> >> receiving and not a host notification?
> >
> > This is the template we have used for a long time (probably with those
> > same settings and over a hundred nagios restarts). I also have  
> > similar for
> > my host template (but it is "max_check_attempts 5").
> 
> Does that one work as expected or are they all 'broken'? If they're  
> all broken then I'd hazard that something is still amiss with your  
> configuration.
> 
> > You mention "3 minutes" above,  but I don't see any indication that  
> > it is
> > checked multiple times before the notification.
> 
> yup. 3 check attempts (max_check_attempts) at 1 minute retry interval.
> 
> > What types of logs would I see if it checked but not notifying yet  
> > because
> > still max_check_attempts-1 to do?
> 
> It's displayed in the web interface in the 'Attempts' column or  
> Current Attempt if you're looking at a specific service detail. It'll  
> be 1/3, 2/3 or 3/3. If you see 1/1 then your template isn't being  
> applied as you think it is.
> 
> --
> Marc
> 
> 
> 
> ------------------------------
> 
> Message: 9
> Date: Wed, 28 Nov 2007 23:20:19 -0600 (CST)
> From: "Jeremy C. Reed" <reed at reedmedia.net>
> Subject: [Nagios-users] what is log format?
> To: Nagios-users at lists.sourceforge.net
> Message-ID: <Pine.LNX.4.64.0711282314210.16386 at reedmedia.net>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> Where is the log format described?
> 
> I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not 
> same as my /var/log/nagios/nagios.log. For example, I don't see any retry 
> number.
> 
> Here are some examples from a Nagios 2.8 system:
> 
> [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL 
> ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2]
> 
> [1196236855] SERVICE NOTIFICATION: 
> jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK CRITICAL 
> [469380 kB (5%) free on /dev/sda2]
> 
> [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW: 
> Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000% Variance: 
> 0.000000%
> 
> 
> 
> ------------------------------
> 
> Message: 10
> Date: Thu, 29 Nov 2007 00:35:47 -0600 (CST)
> From: "Jeremy C. Reed" <reed at reedmedia.net>
> Subject: Re: [Nagios-users] max_check_attempts not working for me
> To: Nagios-users at lists.sourceforge.net
> Message-ID: <Pine.LNX.4.64.0711290025550.16386 at reedmedia.net>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> On Wed, 28 Nov 2007, Marc Powell wrote:
> 
> > It's displayed in the web interface in the 'Attempts' column or  
> > Current Attempt if you're looking at a specific service detail. It'll  
> > be 1/3, 2/3 or 3/3. If you see 1/1 then your template isn't being  
> > applied as you think it is.
> 
> Thank you Marc for this and other information. I read the docs over and 
> over again, but your explanations made it more clear for me.
> 
> I see it was working and now that I knew what to look for even my old 
> nagios logs showed it in action. For anyone reading the archive, here is 
> an example once I added more logging with:
> log_service_retries=1
> 
> [1196288346] SERVICE ALERT: 
> foo.example.com;mysql;CRITICAL;SOFT;1;CHECK_NRPE: Socket timeout after 20 
> seconds.
> 
> [1196288406] SERVICE ALERT: 
> foo.example.com;mysql;CRITICAL;SOFT;2;CHECK_NRPE: Socket timeout after 20 
> seconds.
> 
> [1196288466] SERVICE ALERT: 
> foo.example.com;mysql;CRITICAL;HARD;3;CHECK_NRPE: Socket timeout after 20 
> seconds.
> 
> [1196288466] SERVICE NOTIFICATION: 
> jeremy;foo.example.com;mysql;CRITICAL;notify-by-epager;CHECK_NRPE: Socket 
> timeout after 20 seconds.
> 
> It shows three attempts.
> 
> 
> 
> ------------------------------
> 
> Message: 11
> Date: Thu, 29 Nov 2007 00:38:09 -0600 (CST)
> From: "Jeremy C. Reed" <reed at reedmedia.net>
> Subject: Re: [Nagios-users] what is log format?
> To: Nagios-users at lists.sourceforge.net
> Message-ID: <Pine.LNX.4.64.0711290036010.16386 at reedmedia.net>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> On Wed, 28 Nov 2007, Jeremy C. Reed wrote:
> 
> > Where is the log format described?
> > 
> > I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not 
> > same as my /var/log/nagios/nagios.log. For example, I don't see any retry 
> > number.
> 
> I didn't see the retry number because it was in a different place than 
> documented in above FAQ. But it is there.
> 
> > Here are some examples from a Nagios 2.8 system:
> > 
> > [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL 
> > ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2]
> 
> So above is 3 (see HARD;3).
> 
> > [1196236855] SERVICE NOTIFICATION: 
> > jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK CRITICAL 
> > [469380 kB (5%) free on /dev/sda2]
> > 
> > [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW: 
> > Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000% Variance: 
> > 0.000000%
> 
> And above is a second retry (see SOFT;2).
> 
> 
> 
> ------------------------------
> 
> Message: 12
> Date: Thu, 29 Nov 2007 00:40:14 -0600
> From: Marc Powell <marc at ena.com>
> Subject: Re: [Nagios-users] what is log format?
> To: Nagios-users at lists.sourceforge.net
> Message-ID: <EF3989E4-6D43-49E5-BEE2-238581D102C5 at ena.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
> 
> 
> On Nov 28, 2007, at 11:20 PM, Jeremy C. Reed wrote:
> 
> > Where is the log format described?
> 
> in base/logging.c or in a fairly recent post by me to this list (in  
> the last couple of weeks).
> 
> > I found http://www.nagios.org/faqs/viewfaq.php?faq_id=66 but it is not
> > same as my /var/log/nagios/nagios.log. For example, I don't see any  
> > retry
> > number.
> 
> That's for the status.dat file. As you've seen, it has a slightly  
> different format.
> 
> > Here are some examples from a Nagios 2.8 system:
> >
> > [1196236855] SERVICE ALERT: foo.example.com;foo.disk1;CRITICAL
> > ;HARD;3;DISK CRITICAL [469380 kB (5%) free on /dev/sda2]
> 
> This service has reached a HARD state on the 3rd non-ok check attempt.
> 
> >
> > [1196236855] SERVICE NOTIFICATION:
> > jeremy;foo.example.com;foo.disk1;CRITICAL;notify-by-epager;DISK  
> > CRITICAL
> > [469380 kB (5%) free on /dev/sda2]
> 
> A notification was sent out upon reaching a HARD state  
> (max_check_attempts).
> 
> > [1196312026] SERVICE ALERT: bar.example.org;bar.cpu;OK;SOFT;2;NOW:
> > Mean:0.000000% Variance: 0.000000% CUMULATIVE: Mean:0.000000%  
> > Variance:
> > 0.000000%
> 
> This service is in a SOFT state as it's only on retry 2 of some  
> unknown number. (unknown because it's not recorded in the log file at  
> this point). It appears this service may be bouncing between states?
> 
> Based on these entries, nagios is not alerting on the first non-ok  
> check result.
> 
> --
> Marc
> 
> 
> 
> 
> ------------------------------
> 
> Message: 13
> Date: Thu, 29 Nov 2007 08:58:18 +0100
> From: Dennis H?nseler <dennis at huenseler.net>
> Subject: Re: [Nagios-users] SMS gateway
> To: Marcel Hecko <maco at maco.sk>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <0bd3fc7d48f45593d85909eaf26fabf0 at localhost>
> Content-Type: text/plain; charset="UTF-8"
> 
> 
> Hi everybody,
> 
> the solution i prefer is using a gsm modem like Siemens TC35i and the
> smstools, which are available as Debian Package or as source for example.
> The modem gets connected via serial and is controlled by smstools. Just ask
> google for smstools and tc35i...
> 
> Kind regards, Dennis
> 
> On Wed, 28 Nov 2007 22:40:06 +0100 (CET), "Marcel Hecko" <maco at maco.sk>
> wrote:
> > 
> > Hi, does anybody know of any HARDWARE solution into which I would just
> > stick GSM SIM card and send SMS messages from Nagios?
> > Something with ethernet interface - like - I would just call HTTP URI and
> > the device will send the SMS text to the number encoded in the HTTP
> > request (both - the text and phone number).
> > 
> > Basically - very basic SMS gateway. With pre-paid sim card that would be
> > just magic!
> > 
> > Does something like that exist? Possibly with two-way communitaction?
> > What price should I be looking at?
> > 
> > Cheers!
> > Marcel
> > 
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by: The Future of Linux Business White Paper
> > from Novell.  From the desktop to the data center, Linux is going
> > mainstream.  Let it simplify your IT future.
> > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> > _______________________________________________
> > 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: 14
> Date: Thu, 29 Nov 2007 09:28:55 +0100
> From: nagios <nagios at ggaweb.ch>
> Subject: Re: [Nagios-users] SMS gateway
> To: Nagios-users at lists.sourceforge.net
> Message-ID: <474E7847.3080408 at ggaweb.ch>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi Marcel
> have a lock at
> http://www.kannel.org/
> and
> http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#AEN4201
> Regards Florian
> 
> Marcel Hecko schrieb:
> > Hi, does anybody know of any HARDWARE solution into which I would just
> > stick GSM SIM card and send SMS messages from Nagios?
> > Something with ethernet interface - like - I would just call HTTP URI and
> > the device will send the SMS text to the number encoded in the HTTP
> > request (both - the text and phone number).
> >
> > Basically - very basic SMS gateway. With pre-paid sim card that would be
> > just magic!
> >
> > Does something like that exist? Possibly with two-way communitaction?
> > What price should I be looking at?
> >
> > Cheers!
> > Marcel
> >
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by: The Future of Linux Business White Paper
> > from Novell.  From the desktop to the data center, Linux is going
> > mainstream.  Let it simplify your IT future.
> > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> > _______________________________________________
> > 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: 15
> Date: Thu, 29 Nov 2007 09:30:20 +0100
> From: "Jasper Filon" <J.Filon at office.caiw.nl>
> Subject: [Nagios-users] Dealing with nightly high load
> To: <nagios-users at lists.sourceforge.net>
> Message-ID:
> 	<6EFD6B9CD50A0643A79CEE5BA3894B8801DF7776 at neo.office.caiw.intern>
> Content-Type: text/plain;	charset="US-ASCII"
> 
> All,
> 
> I'm trying to deal with a bunch of servers that generate some high load
> during the night. That is, between 00:00 and 06:00 a series of job is
> run that will generate load from 10 to 15. Outside this windows, load
> should be no more than 3.
> 
> I have read all the documentation, but I cant find a way to implement
> this in Nagios. I have found 2 options:
> - defining 2 services (load_daily and load_nightly) with different
> tresholds. This will make 2 services show up in nagios that are
> essential the same
> - using escalations to supress messages during the night. This will
> however still show errors in the webinterface and spoil you reports with
> fake errors
> 
> How can I tell Nagios that during the day the load should be max 3
> (warning) and max 5 (critical) but during the night, it's ok if they are
> 8 (warning) and 10 (critical)? I'm sure other people have ran into this
> same problem and found a solution for it? Please share!
> 
> I'm running Nagios 2.10
> 
> Thanx for the help.
> 
> Met vriendelijke groet/With kind regards, 
> 
> Jasper Filon
> 
> CAIWAY Business
> 
> 
> 
> ------------------------------
> 
> Message: 16
> Date: Thu, 29 Nov 2007 09:53:45 +0100
> From: "Giles Coochey" <gcoochey at sapphire.gi>
> Subject: [Nagios-users] snmptraphandling.py
> To: <nagios-users at lists.sourceforge.net>
> Cc: francois at iecholden.com
> Message-ID:
> 	<9D30659ABCA7FB428CF91E386C3A5744A59FA5 at hermes.sapphire-int.gi>
> Content-Type: text/plain;	charset="us-ascii"
> 
> Is anyone using Francois Meehan's snmptraphandling.py script?
> 
> There's a part of the script where it opens the Nagios.cmd file. I'm not
> a python coder, but it appears to me that it writes to the file with 'w'
> which would overwrite any pending commands that Nagios has not yet
> processed:
> 
>         #print mondata_res
>         output = open('/opt/nagios/var/rw/nagios.cmd', 'w')
>         results = "[" + mytime + "] " + "PROCESS_SERVICE_CHECK_RESULT;"
> \
>           + host + ";" + "TRAP-" + service_suffix + ";" \
>           + return_code + ";" + mondata_res + "\n"
>         output.write(results)
> 
> I'm thinking that this script should be opening the file with the 'a'
> (Append) mode, so that unprocessed commands in nagios.cmd do not get
> overwritten.
> 
> I do appear to be missing some traps within Nagios, I can see them as
> far as snmptt, but it seems either sec.pl or snmptraphandling.py somehow
> doesn't process them and the trap doesn't make it as far as Nagios.
> 
> 
> 
> ------------------------------
> 
> Message: 17
> Date: Thu, 29 Nov 2007 08:54:32 +0000
> From: Duncan Ferguson <duncan.ferguson at altinity.com>
> Subject: Re: [Nagios-users] Dealing with nightly high load
> To: Jasper Filon <J.Filon at office.caiw.nl>
> Cc: nagios-users at lists.sourceforge.net
> Message-ID: <6465B05E-B90E-4BC6-BEC3-E6469F66218C at altinity.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> 
> 
> On 29 Nov 2007, at 08:30, Jasper Filon wrote:
> 
> > All,
> >
> > I'm trying to deal with a bunch of servers that generate some high  
> > load
> > during the night. That is, between 00:00 and 06:00 a series of job is
> > run that will generate load from 10 to 15. Outside this windows, load
> > should be no more than 3.
> >
> 
> http://altinity.blogs.com/dotorg/2007/04/changing_a_serv.html
> 
> It works for us...
> 
>    Duncs
> 
> -- 
> Duncan Ferguson
> Senior Developer, Altinity Limited
> 
> http://www.altinity.com
> Tel: +44 (0)870 787 9243
> US:  +1 866 879 9184
> Fax: +44 (0)845 280 1725
> Skype: duncan_j_ferguson
> MSN: duncan.ferguson at altinity.com
> 
> The contents of this email and any files transmitted with it are  
> confidential and intended solely for the use of the individuals to  
> whom it is addressed.
> If you are not the intended recipient or have received this e-mail in  
> error please notify the sender and delete this e-mail immediately.
> Any unauthorised copying, disclosure or distribution of the material  
> in this e-mail is strictly prohibited.
> 
> Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United  
> Kingdom
> Registered in England and Wales under company number 4743767
> 
> 
> 
> 
> ------------------------------
> 
> Message: 18
> Date: Thu, 29 Nov 2007 09:40:17 +0000
> From: Duncan Ferguson <duncan.ferguson at altinity.com>
> Subject: Re: [Nagios-users] snmptraphandling.py
> To: "Giles Coochey" <gcoochey at sapphire.gi>
> Cc: nagios-users at lists.sourceforge.net, francois at iecholden.com
> Message-ID: <DC03AC64-6A6C-4EAF-AAC1-F4C387A5B6A6 at altinity.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> 
> 
> On 29 Nov 2007, at 08:53, Giles Coochey wrote:
> 
> > Is anyone using Francois Meehan's snmptraphandling.py script?
> >
> > There's a part of the script where it opens the Nagios.cmd file.  
> > I'm not
> > a python coder, but it appears to me that it writes to the file  
> > with 'w'
> > which would overwrite any pending commands that Nagios has not yet
> > processed:
> >
> 
> nagios.cmd is a pipe, not an ordinary file and the contents cannot be  
> overwritten as such - whatever gets written into the pipe will be  
> read out of the pipe by the controlling binary in the same order.
> 
> If you cat the pipe then the contents will be lost to nagios, as when  
> items are read from the pipe they are automatically removed from it.
> 
> Pipes have the first letter as a 'p' on 'ls -l'.
> 
>    Duncs
> 
> -- 
> Duncan Ferguson
> Senior Developer, Altinity Limited
> 
> http://www.altinity.com
> Tel: +44 (0)870 787 9243
> US:  +1 866 879 9184
> Fax: +44 (0)845 280 1725
> Skype: duncan_j_ferguson
> MSN: duncan.ferguson at altinity.com
> 
> The contents of this email and any files transmitted with it are  
> confidential and intended solely for the use of the individuals to  
> whom it is addressed.
> If you are not the intended recipient or have received this e-mail in  
> error please notify the sender and delete this e-mail immediately.
> Any unauthorised copying, disclosure or distribution of the material  
> in this e-mail is strictly prohibited.
> 
> Altinity Limited | 404 Seven Sisters Road | London | N4 2LX | United  
> Kingdom
> Registered in England and Wales under company number 4743767
> 
> 
> 
> 
> ------------------------------
> 
> Message: 19
> Date: Thu, 29 Nov 2007 11:07:43 +0100
> From: "Giles Coochey" <gcoochey at sapphire.gi>
> Subject: Re: [Nagios-users] snmptraphandling.py
> To: "Duncan Ferguson" <duncan.ferguson at altinity.com>
> Cc: nagios-users at lists.sourceforge.net, francois at iecholden.com
> Message-ID:
> 	<9D30659ABCA7FB428CF91E386C3A5744A59FB9 at hermes.sapphire-int.gi>
> Content-Type: text/plain;	charset="us-ascii"
> 
> > On 29 Nov 2007, at 08:53, Giles Coochey wrote:
> > 
> > > Is anyone using Francois Meehan's snmptraphandling.py script?
> > >
> > > There's a part of the script where it opens the Nagios.cmd file.
> > > I'm not
> > > a python coder, but it appears to me that it writes to the file
> > > with 'w'
> > > which would overwrite any pending commands that Nagios has not yet
> > > processed:
> > >
> > 
> > nagios.cmd is a pipe, not an ordinary file and the contents cannot be
> > overwritten as such - whatever gets written into the pipe will be
> > read out of the pipe by the controlling binary in the same order.
> > 
> > If you cat the pipe then the contents will be lost to nagios, as when
> > items are read from the pipe they are automatically removed from it.
> > 
> > Pipes have the first letter as a 'p' on 'ls -l'.
> > 
> 
> Thanks Duncan, so it's a FIFO. So now I need to find out why I'm losing
> events along the way :-(
> 
> 
> 
> ------------------------------
> 
> Message: 20
> Date: Thu, 29 Nov 2007 10:14:26 +0000
> From: "R.Oxley" <rafe.oxley at moving-edge.net>
> Subject: Re: [Nagios-users] SMS gateway
> To: nagios-users at lists.sourceforge.net
> Message-ID: <474E9102.1010104 at moving-edge.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> I use a Nokia 6210e with a data cable connected to the serial port, 
> running gnokii to handle sending the SMSs.
> Cheap and functional,
> regards
> Rafe
> 
> 
> Marcel Hecko wrote:
> > Hi, does anybody know of any HARDWARE solution into which I would just
> > stick GSM SIM card and send SMS messages from Nagios?
> > Something with ethernet interface - like - I would just call HTTP URI and
> > the device will send the SMS text to the number encoded in the HTTP
> > request (both - the text and phone number).
> > 
> > Basically - very basic SMS gateway. With pre-paid sim card that would be
> > just magic!
> > 
> > Does something like that exist? Possibly with two-way communitaction?
> > What price should I be looking at?
> > 
> > Cheers!
> > Marcel
> > 
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by: The Future of Linux Business White Paper
> > from Novell.  From the desktop to the data center, Linux is going
> > mainstream.  Let it simplify your IT future.
> > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> > _______________________________________________
> > 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: 21
> Date: Thu, 29 Nov 2007 11:19:15 +0100
> From: Carsten Philipp <caphilipp at cbs.mpg.de>
> Subject: [Nagios-users] test
> To: Nagios-users at lists.sourceforge.net
> Message-ID: <474E9223.9040301 at cbs.mpg.de>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> only a testmail
> 
> -- 
> 
> 
> Mit freundlichen Gr??en
> 
> Max-Planck-Institut fuer Kognitions- und Neurowissenschaften 
> Carsten Philipp			Web: http://www.cbs.mpg.de
> Stephanstr. 1a			Mail: caphilipp at cbs.mpg.de
> 04103 Leipzig			Phone: +49 341 9940-169
> 
> 
> 
> 
> ------------------------------
> 
> Message: 22
> Date: Thu, 29 Nov 2007 10:38:09 -0000
> From: "Phil Costelloe" <philc at foundation-it.com>
> Subject: Re: [Nagios-users] SMS gateway
> To: <nagios-users at lists.sourceforge.net>
> Message-ID: <B25A11A2459AD84BA9B8A4DA3D815532D00B87 at CADWELL.fit.local>
> Content-Type: text/plain;	charset="us-ascii"
> 
> I use Gnokii with a Nokia phone and it works really well but it relies
> on a wired or wireless connection (serial, usb, infrared or Bluetooth
> according to the website) between the server and the phone. I use some
> simple shell scripts to interface between Nagios and Gnokii. It could be
> part of what the OP wants if somebody writes (or has already written) an
> http-to-gnokii gateway, but then that wouldn't really be a hardware
> solution as requested. I've never run across anything that implements
> the sending interface and modem hardware in one product but it may be
> out there.
> 
> -- 
> Phil Costelloe
> Foundation IT, Hermitage, Berkshire RG18 9SE
> (apologies for the top post, we were already on that path)
> 
> 
> 
> 
> --------------------------------------------------------
> 
> Phil Costelloe
> Technical Consultant
> 
> 
> philc at foundation-it.com
> http://www.foundation-it.com
> Foundation IT
> Foundation Court
> Old Street
> Oare
> Hermitage Berkshire RG18 9SE
> Switch: +44 (0) 1635 203700
> Helpdesk: +44 (0) 800 0121099
> DDI: +44 (0) 1635 203719
> Fax: +44 (0) 8700 543537
> Mobile: +44 (0) 7884 236299
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --------------------------------------------------------
> 
> 
> This message contains confidential information and is intended only for nagios-users at lists.sourceforge.net. If you are not nagios-users at lists.sourceforge.net you should not disseminate, distribute or copy this e-mail. Please notify Foundation IT immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Foundation IT therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. 
> 
> Foundation IT
> Registered Office: Foundation Court, Old Street, Oare, Hermitage, Berkshire, RG18 9SE
> Registered in England Number 3281803
> --------------------------------------------------------
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> 
> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Eric
> Frazier
> Sent: 28 November 2007 22:16
> To: 'Marcel Hecko'; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] SMS gateway
> 
> Hi,
> 
> This looks like a winner. Since it is a command line tool it should be
> easy
> to get working with Nagios.
> 
> http://www.gnokii.org/
> 
> Others? 
> 
> 
> 
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marcel
> Hecko
> Sent: Wednesday, November 28, 2007 5:40 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] SMS gateway
> 
> 
> Hi, does anybody know of any HARDWARE solution into which I would just
> stick
> GSM SIM card and send SMS messages from Nagios?
> Something with ethernet interface - like - I would just call HTTP URI
> and
> the device will send the SMS text to the number encoded in the HTTP
> request
> (both - the text and phone number).
> 
> Basically - very basic SMS gateway. With pre-paid sim card that would be
> just magic!
> 
> Does something like that exist? Possibly with two-way communitaction?
> What price should I be looking at?
> 
> Cheers!
> Marcel
> 
> 
> 
> ------------------------------
> 
> Message: 23
> Date: Thu, 29 Nov 2007 10:11:10 -0200
> From: "Dario B. Bestetti" <dario.bestetti at opservices.com.br>
> Subject: [Nagios-users] RES:  SMS gateway
> To: <nagios-users at lists.sourceforge.net>
> Message-ID:
> 	<015301c83280$edcfcb40$c96f61c0$@bestetti at opservices.com.br>
> Content-Type: text/plain;	charset="iso-8859-1"
> 
> 
> We use Smstools (http://smstools.meinemullemaus.de/) which works very smoothly, but hardware is always a problems because of cable
> and cel devices compatibility. Lately we?ve found a little device from Huawei, the E220 model which connects trhough USB and works
> fine. I think the best hw solution would be the Falcon modems, but unfortunately they are hard and expensive to find here. Check
> with the guys from Netways (www.netways.de), I believe they have a "ready" package using Falcon as SMS gateway fully integrated with
> Nagios.
> 
> []s
> _________________________________________________
> Dario B. Bestetti????????OpServices
> ??????????????????????????????????R. Luciana de Abreu, 471 - Sala 403
> ??????????????????????????????????Porto Alegre, RS - CEP 90570-060
> Fone 55(51)30613588 Mobile? 55(51)81518218 
> Fax???? 55(51)30613588? Email??? dario.bestetti at opservices.com.br 
> ?
> ???????????????"In God we trust, the rest we monitor ..."
> _________________________________________________
> 
> 
> > -----Mensagem original-----
> > De: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] Em
> > nome de R.Oxley
> > Enviada em: quinta-feira, 29 de novembro de 2007 08:14
> > Para: nagios-users at lists.sourceforge.net
> > Assunto: Re: [Nagios-users] SMS gateway
> > 
> > 
> > 
> > I use a Nokia 6210e with a data cable connected to the serial port,
> > running gnokii to handle sending the SMSs.
> > Cheap and functional,
> > regards
> > Rafe
> > 
> > 
> > Marcel Hecko wrote:
> > > Hi, does anybody know of any HARDWARE solution into which I would just
> > > stick GSM SIM card and send SMS messages from Nagios?
> > > Something with ethernet interface - like - I would just call HTTP URI and
> > > the device will send the SMS text to the number encoded in the HTTP
> > > request (both - the text and phone number).
> > >
> > > Basically - very basic SMS gateway. With pre-paid sim card that would be
> > > just magic!
> > >
> > > Does something like that exist? Possibly with two-way communitaction?
> > > What price should I be looking at?
> > >
> > > Cheers!
> > > Marcel
> > >
> > > -------------------------------------------------------------------------
> > > SF.Net email is sponsored by: The Future of Linux Business White Paper
> > > from Novell.  From the desktop to the data center, Linux is going
> > > mainstream.  Let it simplify your IT future.
> > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> > > _______________________________________________
> > > 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
> > 
> > --
> > 
> > 
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by: The Future of Linux Business White Paper
> > from Novell.  From the desktop to the data center, Linux is going
> > mainstream.  Let it simplify your IT future.
> > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> > _______________________________________________
> > 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: 24
> Date: Thu, 29 Nov 2007 14:25:59 +0000
> From: "mark redding" <mwjredding at gmail.com>
> Subject: [Nagios-users] obsessing and event handlers
> To: nagios-users at lists.sourceforge.net
> Message-ID:
> 	<a05a54400711290625v3c76d041ib883a4fbba9495b at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi all,
> 
> Can anyone here tell me where I'm going wrong in my attempts to
> correctly setup a slave nagios server.
> 
> What I have is as follows :-
> 
> 1 master nagios host (running FreeBSD 6.2). This host executes active
> checks some of which trigger event handlers (ie. to restart web
> servers, etc... the usual stuff).
> 1 slave nagios host (running FreeBSD 5.5). This host rsyncs the nagios
> configuration files from the master, and performs the check_nagios
> plugin to determine if the master is running. If it is not, then it
> takes over active checks.
> 
> The above has been setup using the documentation accompanying the
> nagios installation and has v 2.10 installed.
> 
> Yesterday I tried to get the slave to receive service check results
> from the master by running the nsca daemon on the slave and adding
> commands to enable send_nsca on the master to transmit results to the
> slave. To achieve this I forced the master to obsess over services and
> this all worked correctly.
> 
> However, when I checked the system today I have found that although an
> event handler should have been executed overnight, it did NOT get
> executed.
> The only way I've been able to get the master to actually run the
> event handlers as needed has been to disable obsessing on the master -
> hence I no longer have the slave passively receiving service check
> results.
> I've sort of worked round this by enabling a global event handler on
> the master which calls the send_nsca command, so at the moment the
> slave is passively gettings the changes of state to services (but, as
> the http://nagios.sourceforge.net/docs/2_0/distributed.html page says,
> "We could use event handlers to report changes in the state of a
> service, but that just doesn't cut it.") and the master is happily
> executing event handlers as needed.
> 
> Anyone else had this problem with event handlers when obsessing is
> enabled ? And does anyone have this working correctly ?
> 
> thanks,
> Mark
> 
> 
> 
> ------------------------------
> 
> Message: 25
> Date: Thu, 29 Nov 2007 08:21:47 -0600
> From: mark.potter at academy.com
> Subject: Re: [Nagios-users] Dealing with nightly high load
> To: nagios-users at lists.sourceforge.net
> Message-ID:
> 	<OF48D15AF4.2D7B40B5-ON862573A2.004E0998-862573A2.004EE606 at academy.com>
> 	
> Content-Type: text/plain; charset="us-ascii"
> 
> Cell: 281-734-6965
> 
> 
> nagios-users-bounces at lists.sourceforge.net wrote on 11/29/2007 02:30:20 
> AM:
> 
> > All,
> > 
> > I'm trying to deal with a bunch of servers that generate some high load
> > during the night. That is, between 00:00 and 06:00 a series of job is
> > run that will generate load from 10 to 15. Outside this windows, load
> > should be no more than 3.
> > 
> > I have read all the documentation, but I cant find a way to implement
> > this in Nagios. I have found 2 options:
> > - defining 2 services (load_daily and load_nightly) with different
> > tresholds. This will make 2 services show up in nagios that are
> > essential the same
> > - using escalations to supress messages during the night. This will
> > however still show errors in the webinterface and spoil you reports with
> > fake errors
> > 
> > How can I tell Nagios that during the day the load should be max 3
> > (warning) and max 5 (critical) but during the night, it's ok if they are
> > 8 (warning) and 10 (critical)? I'm sure other people have ran into this
> > same problem and found a solution for it? Please share!
> > 
> > I'm running Nagios 2.10
> > 
> > Thanx for the help.
> > 
> > Met vriendelijke groet/With kind regards, 
> > 
> > Jasper Filon
> > 
> > CAIWAY Business
> > 
> <SNIP>
> 
> Jasper,
> 
> I have sort of the same issue and you have already stated the most 
> expedient, and indeed only, solution that I found. Two services with 
> different time periods for checking. It's doesn't look as pretty in the 
> web interface but it works like a charm. The other method would be to 
> write a wrapper that performs the check and alerts on the value you set 
> based on time. This wouldn't be hard to do to be honest but it seems like 
> re-inventing the wheel to some degree. The other question I have is if the 
> servers are capable of withstanding a load that high why not just have 
> your high threshold set the same all time? My situation isn't load based 
> but with the standard Nagios plugin you can alert on any of the three 
> points that uptime returns (here I make the assumption you are monitoring 
> *nix boxen). If the situation calls for being able to be alerted to spikes 
> during normal operating hours then you will either need two checks and 
> time period for each or a wrapper that checks the time and returns an 
> alert based on the time and load.
> 
> Best Regards,
> 
> Mark L. Potter
> -------------- next part --------------
> An HTML attachment was scrubbed...
> 
> ------------------------------
> 
> Message: 26
> Date: Thu, 29 Nov 2007 11:09:43 -0500
> From: "Sean Bowers" <unix678 at gmail.com>
> Subject: [Nagios-users] Need help using check_by_ssh with check_disk
> To: nagios-users at lists.sourceforge.net
> Message-ID:
> 	<c75092400711290809p2d00a485lba740741c7a1c6ce at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> I'm running Nagios 2.10 with plugins 1.4.10 running on:
> Linux nagioshost 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006
> x86_64 x86_64 x86_64 GNU/Linux
> 
> System information on the two remote hosts is:
> 
> Linux remotehost1 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005
> i686 i686 i386 GNU/Linux
> Linux remotehost2 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005
> i686 i686 i386 GNU/Linux
> 
> 
> My check (in commands.cfg as check_disk_by_ssh) is:
> 
> $USER1$/libexec/check_by_ssh -E -i identify.txt -l nagios -H
> $HOSTADDRESS$ -C "/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c
> $ARG2$"
> 
> The services.cmd has:
> 
> check_disk_by_ssh!10%!5%
> 
> This test runs fine on remotehost1, but on remotehost2 it returns back
> "UNKNOWN - check_by_ssh: Remote command
> '/usr/lib/nagios/plugins/check_disk -w 10% -c 5%' returned status
> 255".  At first, I thought this could be a 32 vs. 64-bit issue, but
> the Nagios host is 64-bit while both remotes are 32.
> 
> >From the command line, both hosts work fine and 'echo $?' shows 0 for
> both.  Logging into the remote boxes and running check_disk manually
> is fine as well.  Using -v doesn't help since it doesn't show tracing
> information.
> 
> Does anyone have any ideas or thoughts on this?  Are there any other
> tricks I can try for debugging this?  Any help would be appreciated
> immensely.
> 
> Thanks!
> 
> 
> 
> ------------------------------
> 
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> 
> ------------------------------
> 
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 
> 
> End of Nagios-users Digest, Vol 18, Issue 48
> ********************************************

_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071129/beaf22a3/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------- next part --------------
_______________________________________________
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