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