From yu.watanabe at jp.fujitsu.com Mon Aug 2 13:29:44 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Mon, 02 Aug 2010 20:29:44 +0900 Subject: About maximum performance for Nagios v 3.x Message-ID: <201008021129.AA02218@S2007337.jp.fujitsu.com> Hello all. I would like to get an advice with the maximum performance for nagios. Are there any certain values that shouldn't exceed or recomended not to? Also, it would be helpful if anyone can tell maximum host and services by one's experience. Thank you, Yu Watanabe ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From yu.watanabe at jp.fujitsu.com Mon Aug 2 14:58:40 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Mon, 02 Aug 2010 21:58:40 +0900 Subject: Status file not updating ( ver. 3.0.6 ) Message-ID: <201008021258.AA02219@S2007337.jp.fujitsu.com> Hello all. I would like to get an advice for the problem we are experiencing. Question is for Nagios ver 3.0.6. The problem is that there are times when status.log file seems to be not updating for a while. This happens randomly but mostly concentrates on midnight. Does this possibly happen whenever logrotation or anytime when restart occurs? Thank you, Yu Watanabe ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From nagios at flatto.net Mon Aug 2 18:30:03 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 02 Aug 2010 17:30:03 +0100 Subject: Status file not updating ( ver. 3.0.6 ) In-Reply-To: <201008021258.AA02219@S2007337.jp.fujitsu.com> References: <201008021258.AA02219@S2007337.jp.fujitsu.com> Message-ID: <4C56F28B.3000404@flatto.net> Yu Watanabe wrote: > Hello all. > > I would like to get an advice for the problem we are experiencing. > > Question is for Nagios ver 3.0.6. The problem is that there are times when status.log > file seems to be not updating for a while. > > This happens randomly but mostly concentrates on midnight. > > Does this possibly happen whenever logrotation or anytime when restart occurs? > > Thank you, > Yu Watanabe > > > Is your log rotation done internal to nagios or are you using logrotate ( or any other mechanisem ) ? -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From AHKAPLAN at PARTNERS.ORG Mon Aug 2 19:34:44 2010 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 2 Aug 2010 13:34:44 -0400 Subject: How to create maps in nagvis 1.5.1 Message-ID: Hi there -- I completed the installation of NagVis 1.5.1 onto our Nagios 3.1.2 server. I am now ready to create maps to visualize the systems that our Nagios server monitors on our network. I have gone through the documentation provided for NagVis, and I am confused as to how to get things going. I am trying to start off simple by using the default files. I need help creating the appropriate configuration files and so on to get the maps up and running. Can someone provide the steps that I can follow in order to create the maps and/or templates that I can use? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- 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 From tyarusso at nagios.com Mon Aug 2 20:08:30 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Mon, 02 Aug 2010 13:08:30 -0500 Subject: Nagios Community Down? In-Reply-To: <1280262445.7275.3.camel@ubuntu-desktop.SSG5-Serial> References: <4C4F1564.6060203@univie.ac.at> <1280262445.7275.3.camel@ubuntu-desktop.SSG5-Serial> Message-ID: <4C57099E.9000009@nagios.com> FYI, http://community.nagios.org/ is back up today. -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From yu.watanabe at jp.fujitsu.com Tue Aug 3 08:55:21 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Tue, 03 Aug 2010 15:55:21 +0900 Subject: Status file not updating ( ver. 3.0.6 ) In-Reply-To: <4C56F28B.3000404@flatto.net> References: <4C56F28B.3000404@flatto.net> Message-ID: <201008030655.AA02221@S2007337.jp.fujitsu.com> Hello Assaf. Thank you very much for the reply. THe Nagios is using the 'internal' log rotation which is daily. Would this have a affection to the update for status.log? Thank you, Yu Watanabe Assaf Flatto ????????: >Yu Watanabe wrote: >> Hello all. >> >> I would like to get an advice for the problem we are experiencing. >> >> Question is for Nagios ver 3.0.6. The problem is that there are times when status.log >> file seems to be not updating for a while. >> >> This happens randomly but mostly concentrates on midnight. >> >> Does this possibly happen whenever logrotation or anytime when restart occurs? >> >> Thank you, >> Yu Watanabe >> >> >> >Is your log rotation done internal to nagios or are you using logrotate >( or any other mechanisem ) ? > >-- >Never,Ever Cut A Deal With a Dragon > > >Next year I will be doing the London to Paris bike ride to >raise money for the DogTrust (www.dogtrust.co.uk) . >Please Sponsor me at http://www.justgiving.com/Assaf-Flatto > > >------------------------------------------------------------------------------ >The Palm PDK Hot Apps Program offers developers who use the >Plug-In Development Kit to bring their C/C++ apps to Palm for a share >of $1 Million in cash or HP Products. Visit us here for more details: >http://p.sf.net/sfu/dev2dev-palm >_______________________________________________ >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 > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From Naveen.R at philips.com Tue Aug 3 09:42:59 2010 From: Naveen.R at philips.com (R, Naveen) Date: Tue, 3 Aug 2010 09:42:59 +0200 Subject: Not detecting the Web site Correctly In-Reply-To: <201008030655.AA02221@S2007337.jp.fujitsu.com> References: <4C56F28B.3000404@flatto.net> <201008030655.AA02221@S2007337.jp.fujitsu.com> Message-ID: <8DF553C0530569419CAAFA4E3331C32BEB15034934@NLCLUEXM09.connect1.local> Dear All, I have configure Nagios XI to monitor some websites and if these services are UP/DOWN/UNREACHABLE, then it will send a notification through mail. My problem here is, Nagios is detecting services and sending notifications to my email id saying that this link is "DOWN" even if the links are up and running correctly. Can you please help me in resolving this problem, as it is due to network setting or anything else, so that Nagios reports and sends mails only when it is actually down. Warm regards, Naveen.R., Philips Consumer Lifestyle, Philips Innovation Campus, Philips Electronics India Ltd, Manyata Tech Park, Nagavara, Bangalore - 560045. Ph: +91 80 40162000 Extn: 2718 Mobile: 9663320455 Email: naveen.r at philips.com intranet: http://pww.bangalore.philips.com, internet: http://www.bangalore.philips.com The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From nagios at flatto.net Tue Aug 3 09:48:52 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 03 Aug 2010 08:48:52 +0100 Subject: Status file not updating ( ver. 3.0.6 ) In-Reply-To: <201008030655.AA02221@S2007337.jp.fujitsu.com> References: <4C56F28B.3000404@flatto.net> <201008030655.AA02221@S2007337.jp.fujitsu.com> Message-ID: <4C57C9E4.6090301@flatto.net> Yu Watanabe wrote: > Hello Assaf. > > Thank you very much for the reply. > > THe Nagios is using the 'internal' log rotation which is daily. > > Would this have a affection to the update for status.log? > > Thank you, > Yu Watanabe > > Assaf Flatto ????????: > >> Yu Watanabe wrote: >> >>> Hello all. >>> >>> I would like to get an advice for the problem we are experiencing. >>> >>> Question is for Nagios ver 3.0.6. The problem is that there are times when status.log >>> file seems to be not updating for a while. >>> >>> This happens randomly but mostly concentrates on midnight. >>> >>> Does this possibly happen whenever logrotation or anytime when restart occurs? >>> >>> Thank you, >>> Yu Watanabe >>> >>> >>> >>> >> Is your log rotation done internal to nagios or are you using logrotate >> ( or any other mechanisem ) ? >> Hi Yu Nagios internal's log rotation should have no impact on the the work of nagios , as it is incorporated into it's logic. take a look at the directory usualy var under the nagios default location and view the directory permissions , the file permissions and the user/group of the nagios process . Also , are there any cron jobs running in the same time slot ? or anything that might affect the disk IO or load on the machine ( try looking at the crontab or at /etc/cron.daily and /etc/cron.d ) . Assaf -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From allanc at chickenandporn.com Tue Aug 3 10:09:19 2010 From: allanc at chickenandporn.com (Allan Clark) Date: Tue, 3 Aug 2010 01:09:19 -0700 Subject: Not detecting the Web site Correctly In-Reply-To: <8DF553C0530569419CAAFA4E3331C32BEB15034934@NLCLUEXM09.connect1.local> References: <4C56F28B.3000404@flatto.net> <201008030655.AA02221@S2007337.jp.fujitsu.com> <8DF553C0530569419CAAFA4E3331C32BEB15034934@NLCLUEXM09.connect1.local> Message-ID: Hi Naveen; I'm sure you've read the past emails on this list in your own attempts to diagnose your problem, so you know we need some detail about your config. Please send some details we could use to help you: 1) your config, for starters 2) are the actual services showing as "FAIL", "WARN", or what state? (ie a screen-cap of the web interface showing state might suffice) Otherwise, we can only diagnose-by-smell, and that's really difficult. Thanks also: be aware that the 4 lines of Legal disclaimer/EULA at the end of your email after your 11 lines of .sig may cause some readers to ignore your email simply because the legalese doesn't match mailing lists (ie there is no explicit "addressee(s)" ). Allan On Tue, Aug 3, 2010 at 00:42, R, Naveen wrote: > Dear All, > I have configure Nagios XI to monitor some websites and if these services are UP/DOWN/UNREACHABLE, then it will send a notification through mail. > My problem here is, Nagios is detecting services and sending notifications to my email id saying that this link is "DOWN" even if the links are up and running correctly. Can you please help me in resolving this problem, as it is due to network setting or anything else, so that Nagios reports and sends mails only when it is actually down. > > > Warm regards, > Naveen.R., > Philips Consumer Lifestyle, Philips Innovation Campus, > Philips Electronics India Ltd, Manyata Tech Park, Nagavara, > Bangalore - 560045. > Ph: +91 80 40162000 > Extn: 2718 > Mobile: 9663320455 > Email: naveen.r at philips.com > intranet: http://pww.bangalore.philips.com, > internet: http://www.bangalore.philips.com > > > The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > 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 > -- allanc at chickenandporn.com? "??" http://linkedin.com/in/goldfish ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From yu.watanabe at jp.fujitsu.com Tue Aug 3 10:42:09 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Tue, 03 Aug 2010 17:42:09 +0900 Subject: Status file not updating ( ver. 3.0.6 ) In-Reply-To: <4C57C9E4.6090301@flatto.net> References: <4C57C9E4.6090301@flatto.net> Message-ID: <201008030842.AA02222@S2007337.jp.fujitsu.com> Thank you for the reply, Assaf. Update of the status.dat file fails randomly, there are times when it succeeds, I'd say the directory permission problem isn't the case. >From your speculation, it seems that some other process breaks in and stops the process of nagios. I will check cron's. At worst , would it be useful to check the debug for nagios? Thank you, Yu Watanabe Assaf Flatto ????????: >Yu Watanabe wrote: >> Hello Assaf. >> >> Thank you very much for the reply. >> >> THe Nagios is using the 'internal' log rotation which is daily. >> >> Would this have a affection to the update for status.log? >> >> Thank you, >> Yu Watanabe >> >> Assaf Flatto ????????: >> >>> Yu Watanabe wrote: >>> >>>> Hello all. >>>> >>>> I would like to get an advice for the problem we are experiencing. >>>> >>>> Question is for Nagios ver 3.0.6. The problem is that there are times when status.log >>>> file seems to be not updating for a while. >>>> >>>> This happens randomly but mostly concentrates on midnight. >>>> >>>> Does this possibly happen whenever logrotation or anytime when restart occurs? >>>> >>>> Thank you, >>>> Yu Watanabe >>>> >>>> >>>> >>>> >>> Is your log rotation done internal to nagios or are you using logrotate >>> ( or any other mechanisem ) ? >>> > >Hi Yu > >Nagios internal's log rotation should have no impact on the the work of >nagios , as it is incorporated into it's logic. >take a look at the directory usualy var under the nagios default >location and view the directory permissions , the file permissions and >the user/group of the nagios process . > >Also , are there any cron jobs running in the same time slot ? or >anything that might affect the disk IO or load on the machine ( try >looking at the crontab or at /etc/cron.daily and /etc/cron.d ) . > >Assaf > >-- >Never,Ever Cut A Deal With a Dragon > > >Next year I will be doing the London to Paris bike ride to >raise money for the DogTrust (www.dogtrust.co.uk) . >Please Sponsor me at http://www.justgiving.com/Assaf-Flatto > > >------------------------------------------------------------------------------ >The Palm PDK Hot Apps Program offers developers who use the >Plug-In Development Kit to bring their C/C++ apps to Palm for a share >of $1 Million in cash or HP Products. Visit us here for more details: >http://p.sf.net/sfu/dev2dev-palm >_______________________________________________ >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 > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From mikealeonetti at gmail.com Tue Aug 3 15:49:19 2010 From: mikealeonetti at gmail.com (Mike A. Leonetti) Date: Tue, 03 Aug 2010 09:49:19 -0400 Subject: Host escalation override Message-ID: <4C581E5F.2040906@gmail.com> If I define a host escalation on *, and then on a specific host group, and then on a specific host, which escalation will take precedence over the other? Or will nagios just explode? The idea is that there is a "default" escalation group, but certain users are assigned to certain hosts. And I personally want to get notifications for all hosts always. -- Mike A. Leonetti As warm as green tea ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From mikealeonetti at gmail.com Tue Aug 3 16:14:23 2010 From: mikealeonetti at gmail.com (Mike A. Leonetti) Date: Tue, 03 Aug 2010 10:14:23 -0400 Subject: Check ActiveSync In-Reply-To: References: Message-ID: <4C58243F.8090103@gmail.com> (2010?07?29? 12:28), Israel Brewster wrote: > Is there a plugin that allows me to check if I can make an ActiveSync > connection to an exchange server? I've found plugins that use, for > example, check_nt to check various parameters of the exchange server, > and of course I can make sure that IMAP and SMTP connections are > working, but I haven't found one to check if I can actually make an > activesync/exchange connection., i.e. if my users can actually > connect. Thanks. > > ----------------------------------------------- > Israel Brewster > Computer Support Technician II > Era Alaska > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x7293 > ----------------------------------------------- > > You can always attempt some sort of check on http://yourwebaddress/Microsoft-Server-ActiveSync. ActiveSync is wrapped in HTTP and the first thing you should get is a web login when you go to that site. You can start there. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- 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 From israel at frontierflying.com Tue Aug 3 18:00:22 2010 From: israel at frontierflying.com (Israel Brewster) Date: Tue, 3 Aug 2010 08:00:22 -0800 Subject: Check ActiveSync In-Reply-To: <4C58243F.8090103@gmail.com> References: <4C58243F.8090103@gmail.com> Message-ID: <4F2746B0-E609-4D93-83C8-91B07839A439@frontierflying.com> On Aug 3, 2010, at 6:14 AM, Mike A. Leonetti wrote: > (2010?07?29? 12:28), Israel Brewster wrote: >> >> Is there a plugin that allows me to check if I can make an ActiveSync connection to an exchange server? I've found plugins that use, for example, check_nt to check various parameters of the exchange server, and of course I can make sure that IMAP and SMTP connections are working, but I haven't found one to check if I can actually make an activesync/exchange connection., i.e. if my users can actually connect. Thanks. >> >> ----------------------------------------------- >> Israel Brewster >> Computer Support Technician II >> Era Alaska >> 5245 Airport Industrial Rd >> Fairbanks, AK 99709 >> (907) 450-7250 x7293 >> ----------------------------------------------- >> >> > You can always attempt some sort of check on http://yourwebaddress/Microsoft-Server-ActiveSync. ActiveSync is wrapped in HTTP and the first thing you should get is a web login when you go to that site. You can start there. Ah, thank you. I thought there was something like that, but I couldn't find it. I think simply using a http check to that address, and making sure it lets me log in should do the trick. Of course, I get a 501 error after logging in, but that's fine- at least I know it's responding and accepting credentials. Thanks. > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm_______________________________________________ > 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 ----------------------------------------------- Israel Brewster Computer Support Technician II Era Alaska 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x7293 ----------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Israel Brewster.vcf Type: text/directory Size: 417 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- 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 From GJFRATER at bechtel.com Tue Aug 3 18:21:43 2010 From: GJFRATER at bechtel.com (Frater, Greg J) Date: Tue, 3 Aug 2010 09:21:43 -0700 Subject: Nagios did not send notification to some contacts Message-ID: <872CB0AEB377C240A112DD7C10B2592909A0C840@wtps0171.amers.ibechtel.com> Hi All, I'm looking for troubleshooting suggestions to a problem we had. During a recent host down event Nagios sent notifications to 8 of the 18 configured contacts. The contacts are configured in two contact groups, of the 8 contacts that were sent notifications all were from the same contact group but there are another 4 contacts in that group that did not get notifications sent. No contacts from the second group had notifications generated. There was a routing issue on our WAN that caused this event, the SMTP server we use is across the WAN. Could the routing issue have prevented some of the SMTP notifications from being sent, wouldn't they just queue up and go once the problem was resolved? I have seen messages that did not arrive at the recipients phone but I've never seen Nagios not generate notifications for contacts that are configured for that host or service. Has anyone else seen this, any suggestions on a cause or how to troubleshoot? Nagios 3.2.0 on RHEL 5.5 Thanks, -greg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- 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 From tyarusso at nagios.com Tue Aug 3 22:09:32 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Tue, 03 Aug 2010 15:09:32 -0500 Subject: Seedcamp voting is open! Message-ID: <4C58777C.8030404@nagios.com> For those of you who haven't seen yet, the voting for Nagios Seedcamp projects began today! As background, this (first) Seedcamp was a call for completely new and interesting projects for use with Nagios Core and/or Nagios XI, including wizards, check plugins, and documentation. Fifteen submissions were received, and from the descriptions there look to be some pretty nifty things in there. So now we enter phase two, which is where YOU, all of our lovely users and community members, should go check out the submissions in the Seedcamp category of the Nagios Exchange (http://exchange.nagios.org/directory/Seedcamp) and then vote for them. Read the descriptions, download and install, play around with them, and then let us know what you think at http://www.surveymonkey.com/s/3Z9JRDX ! Voting will be open for two weeks, after which the winners will be announced. The authors of the top three projects as determined by your votes will be awarding cash prizes in the amount of $1,000, $750, and $500 USD respectively. Hopefully this will then encourage further development and improvement of those projects and others to follow. For a little more about Seedcamp (and the URL to tell your friends), see http://www.nagios.org/seedcamp . As an aside and disclosure, I'll mention that two of the projects are my own submissions. Both work with both Nagios Core and Nagios XI: * Ubuntu / Debian (and family) Nagios Agent package (works with both XI and Core) (written on company time) http://exchange.nagios.org/directory/Addons/Monitoring-Agents/Ubuntu-Nagios-Agent/details * Common Alerting Protocol check plugin (for things like severe weather notices, Amber alerts, and other civil emergency notifications (written on personal time) http://exchange.nagios.org/directory/Plugins/Others/check_cap-%252D-check-Common-Alerting-Protocol-feeds/details Now go check them all out, and don't forget to vote! -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From john at andrunas.net Tue Aug 3 22:30:34 2010 From: john at andrunas.net (John Andrunas) Date: Tue, 3 Aug 2010 13:30:34 -0700 Subject: Parent directive in non blocking network issues Message-ID: In a configuration like the following... nagios---firewall1----internet---firewall2---host1 |---host2 |---host3 if there is an issue at firewall1 that causes packet loss I get alerted for everything after firewall1, if firewall1 goes down completely I only get an alert on firewall1 since nagios sees it as a blocking outage. I have all the parents setup, so is there a way to make the packet loss scenario behave more like a outage, so I don't get 36 notifications for everything on the other side? -- John ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From rswerdlow at emergentdiscovery.com Tue Aug 3 23:22:04 2010 From: rswerdlow at emergentdiscovery.com (Robert Swerdlow) Date: Tue, 3 Aug 2010 17:22:04 -0400 Subject: check_procs on a particular python script Message-ID: I'm trying to get Nagios to monitor whether a particular background job is running on a particular server. I want to ensure that one and only one instance is running. I am using check_procs, but I can't seem to get the command name and args right. How should I do this? Details: I'm using Nagios Version 3.0.5. The command in ps appears as: 0 R myuser 26507 1 48 75 0 - 91419 - 16:05 pts/0 00:14:48 python -u -O /home/myuser/scripts/ make_async_xmlrequest_libraries.py In my commands.cfg file I tried: define command{ command_name check_my_job command_line $USER1$/check_procs -c 1:1 -C "python" -a "/home/ myuser/scripts/make_async_xmlrequest_libraries.py" } and define command{ command_name check_my_job command_line $USER1$/check_procs -c 1:1 -C "python" -a "-u - O /home/myuser/scripts/make_async_xmlrequest_libraries.py" } and define command{ command_name check_my_job command_line $USER1$/check_procs -c 1:1 -C "python -u -O / home/myuser/scripts/make_async_xmlrequest_libraries.py" } and define command{ command_name check_my_job command_line $USER1$/check_procs -c 1:1 -C "make_async_xmlrequest_libraries.py" } but Nagios always reports that there are zero processes (I can see in the UI that it is doing the new check each time, but it does not find the process). Thanks! Bob ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From ahendrix at createspace.com Tue Aug 3 23:47:47 2010 From: ahendrix at createspace.com (Hendrix, Austin) Date: Tue, 3 Aug 2010 14:47:47 -0700 Subject: check_procs on a particular python script In-Reply-To: References: Message-ID: If you're running this check on a machine other than the one running the Nagios server, you should be using one of the remote check plugins as a wrapper, either check_by_ssh or nrpe. -Austin -----Original Message----- From: Robert Swerdlow [mailto:rswerdlow at emergentdiscovery.com] Sent: Tuesday, August 03, 2010 2:22 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_procs on a particular python script I'm trying to get Nagios to monitor whether a particular background job is running on a particular server. I want to ensure that one and only one instance is running. I am using check_procs, but I can't seem to get the command name and args right. How should I do this? Details: I'm using Nagios Version 3.0.5. The command in ps appears as: 0 R myuser 26507 1 48 75 0 - 91419 - 16:05 pts/0 00:14:48 python -u -O /home/myuser/scripts/ make_async_xmlrequest_libraries.py In my commands.cfg file I tried: define command{ command_name check_my_job command_line $USER1$/check_procs -c 1:1 -C "python" -a "/home/ myuser/scripts/make_async_xmlrequest_libraries.py" } and define command{ command_name check_my_job command_line $USER1$/check_procs -c 1:1 -C "python" -a "-u - O /home/myuser/scripts/make_async_xmlrequest_libraries.py" } and define command{ command_name check_my_job command_line $USER1$/check_procs -c 1:1 -C "python -u -O / home/myuser/scripts/make_async_xmlrequest_libraries.py" } and define command{ command_name check_my_job command_line $USER1$/check_procs -c 1:1 -C "make_async_xmlrequest_libraries.py" } but Nagios always reports that there are zero processes (I can see in the UI that it is doing the new check each time, but it does not find the process). Thanks! Bob ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From nagios at flatto.net Wed Aug 4 11:17:57 2010 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 04 Aug 2010 10:17:57 +0100 Subject: Parent directive in non blocking network issues In-Reply-To: References: Message-ID: <4C593045.40901@flatto.net> John Andrunas wrote: > In a configuration like the following... > > nagios---firewall1----internet---firewall2---host1 > |---host2 > |---host3 > > if there is an issue at firewall1 that causes packet loss I get > alerted for everything after firewall1, if firewall1 goes down > completely I only get an alert on firewall1 since nagios sees it as a > blocking outage. I have all the parents setup, so is there a way to > make the packet loss scenario behave more like a outage, so I don't > get 36 notifications for everything on the other side? > > > You can set up service dependencies like this define servicedependency{ host_name firewall service_description PING - as every check depends on the fact that you can reach (ping) the "host" inherits_parent 1 dependent_service_description ( all services on the firewall ) need to add each one. execution_failure_criteria u,c,p,w notification_failure_criteria u,c,p,w } This will supress all checks ( and alerts) for all services if the ping ( or equivalent check) fails. for more information on how it works , http://nagios.sourceforge.net/docs/3_0/dependencies.html -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From lists at xodus.org Wed Aug 4 14:34:31 2010 From: lists at xodus.org (Marc Powell) Date: Wed, 4 Aug 2010 07:34:31 -0500 Subject: Nagios did not send notification to some contacts In-Reply-To: <872CB0AEB377C240A112DD7C10B2592909A0C840@wtps0171.amers.ibechtel.com> References: <872CB0AEB377C240A112DD7C10B2592909A0C840@wtps0171.amers.ibechtel.com> Message-ID: On Aug 3, 2010, at 11:21 AM, Frater, Greg J wrote: > There was a routing issue on our WAN that caused this event, the SMTP server we use is across the WAN. Could the routing issue have prevented some of the SMTP notifications from being sent, wouldn't they just queue up and go once the problem was resolved? They would be queued by the SMTP server running on your nagios machine. Redelivery attempts would occur based on the configuration there. > I have seen messages that did not arrive at the recipients phone but I've never seen Nagios not generate notifications for contacts that are configured for that host or service. Has anyone else seen this, any suggestions on a cause or how to troubleshoot? - Check nagios.log for a HOST NOTIFICATION event for that group. Make sure there were no errors logged. - Check your local SMTP server logs to see if the messages were received there and no errors were reported. - Make sure that nagios has been restarted since adding this group and contacts. - Make sure you don't have multiple nagios daemons running at the same time. -- Marc ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From mgius at createspace.com Wed Aug 4 18:54:31 2010 From: mgius at createspace.com (Gius, Mark) Date: Wed, 4 Aug 2010 09:54:31 -0700 Subject: Service notification In-Reply-To: <4C5303B7.7070503@herb-j.com> References: <8B53E489-E062-43C4-AFF9-2EB749E8AFBB@xodus.org> <4C5303B7.7070503@herb-j.com> Message-ID: <23193A17705DD246AFFFDF09B779F56F251A2FC5BA@EX-IAD6-B.ant.amazon.com> This is right. You should use your "check-host-up" service check as a host check instead. That will get the behavior you're looking for. -Gius > -----Original Message----- > From: Herb J. [mailto:nagios at herb-j.com] > Sent: Friday, July 30, 2010 9:54 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Service notification > > Nagios won't do that. If I recall correctly, when the host check fails, > it refuses to generate any further service notifications for that host > until the host check succeeds again. It also won't generate service > recovery notifications when those services actually come back online > either. > > Our solution for that was to add a second host check (i.e., create a > new > "define command" block) for devices that don't respond to PING. For > those devices, we configure them to use the new host check (i.e., use > the command you just created for that host's "check command" directive) > that checks HTTP status. I work at a web hosting company, so 100% of > our > servers listen on either PING, HTTP, or FTP, so we have those three > choices for the host check. You will need to create another host check > (or two or three if necessary) that can be used for the devices that > don't respond to PING and configure those devices to use one of the > alternate host checks. > > > On 07/30/2010 10:54 AM, Aex wrote: > > Ok, I mean that if server down - service notification cannot be send. > > How can I reconfigure Nagios to send service notification from > specific service > > even if server down? > > > > > > > > > > > > > > --------------------------------------------------------------------- > --------- > > The Palm PDK Hot Apps Program offers developers who use the > > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > > of $1 Million in cash or HP Products. Visit us here for more details: > > http://p.sf.net/sfu/dev2dev-palm > > _______________________________________________ > > 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 > > > > > ----------------------------------------------------------------------- > ------- > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > 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 ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From work at paul.dubuc.org Wed Aug 4 23:03:37 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Wed, 04 Aug 2010 17:03:37 -0400 Subject: Plugin termination signal? Message-ID: <4C59D5A9.8050008@paul.dubuc.org> I'm wondering if there is any termination signal sent to a plugin that happens to be executing at the time Nagios is restarted or shut down? So plugins need a signal handler for this case if they have cleanup that needs doing? Do plugins using the embedded Perl also get a signal? Is the signal different for restart vs. shutdown? I haven't found the answer to this in the development guidelines. Thanks, Paul Dubuc ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From eric.anderson at epsway.com Thu Aug 5 08:03:37 2010 From: eric.anderson at epsway.com (Eric Anderson) Date: Wed, 4 Aug 2010 23:03:37 -0700 Subject: Nagios Reporting Tool Message-ID: <157C8D865C773D4791AACA62211D22D51BA27EBCC3@email.epsway.local> Hello, Being relatively new to nagios I'm wondering what I should use for a reporting tool. I've looked at a few tools on NagiosExchange but I'm not sure if they fit the bill, so I wanted to ask the list for opinions. And yes, I know what opinions are like haha. Here are my requirements: 1. Send a daily message regarding the Nagios hosts/services uptime, and other results from configured checks. 2. The daily message format should be either text, pdf or even perhaps html. 3. A monthly summary message containing aggregate values for the month. It seems that I should perform a dump of nagios into mySQL or similar; however I'm not sure on the proper architecture to proceed. Any discussion on architecture, software,tools, referrals and similar is welcome. thanks, Eric Eric Anderson Manager of xChange Point(tm) IT t. 714.957.1087 m. 949.466.9591 www.epsway.com DISCLAIMER: This communication, along with any documents, files or attachments, is intended only for the use of the addressee and contains privileged and confidential information. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of any information contained in or attached to this communication is strictly prohibited. If you have received this message in error, please notify the sender immediately by email reply and destroy the original communication and its attachments without reading, printing or saving in any manner. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From adam.carter at vantageit.co.uk Thu Aug 5 11:05:40 2010 From: adam.carter at vantageit.co.uk (Adam Carter - Vantage IT) Date: Thu, 5 Aug 2010 10:05:40 +0100 Subject: check_snmp not working, but snmpget does Message-ID: <1AC09F3658C1AD4FABB78234E156F0EEC2722D@vantage01.vantageit.local> Hello, I am running nagios 2.9 on Ubuntu server. It has been functioning fine and we are starting to monitor more equipment. I am trying to get SNMP to work with the idea of monitoring a Cisco 501 through an ipsec tunnel. The VPN/networking side works fine, it is just Nagios I cannot get to work. If I run snmpwalk: snmpwalk -v 1 -c public x.x.x.x then it reutrns back the full result set from a mixture of mibs (SNMPv2-MIB,IF-MIB being the main ones) snmpget on a speceifc OID: snmpget -v 1 -c public x.x.x.x ifNumber.0 IF-MIB::ifNumber.0 = INTEGER: 2 If I try and run the check_snmp command manually, specifying the snmp v1 I get the following: ./check_snmp -H 10.0.30.1 -c cisco-assp -P 1 -o IF-MIB::ifNumber.0 External command error: Cannot find module (IF-MIB): At line 0 in (none) IF-MIB::ifNumber.0: Unknown Object Identifier The MIBS are in /usr/share/snmp/mibs, I have run the export MIBDIRS command to locate to the correct location, but check_snmp still has issue with finding them. Any ideas anyone? Adam Carter adam.carter at vantageit.co.uk http://www.vantageit.co.uk/ http://www.vantageit.co.uk/contact.php http://www.vantageit.co.uk/contact.php Please visit our website at: http://www.vantageit.co.uk/ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and then delete it. Any views or opinions in this email are solely those of the author and do not necessarily represent those of the company. The recipient should check this email and any attachments for the presence of harmful code. The company accepts no liability for any damage caused by any harmful code transmitted by or with this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4306 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 7041 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 914 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- 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 From brian at texnet.com Thu Aug 5 16:55:01 2010 From: brian at texnet.com (Brian) Date: Thu, 5 Aug 2010 09:55:01 -0500 (CDT) Subject: Xen nrpe/plugin output Message-ID: I'm checking out this plugin: http://www.novell.com/coolsolutions/feature/19490.html When run on the Xen host the output looks something like this: /usr/lib/nagios/plugins/check_xenvm -w 11 -c 10 OK: Xen Hypervisor "tngvm2.blahblahblah.com" is running Xen VMs: bret jeremy lenny roger db12 dev1 dev2 v2 train1 train2 train3 train4 On the cgi/http services output it reads like this: Xen OK 08-05-2010 09:30:03 0d 21h 56m 7s 1/10 (only 2 lines of output in the Status Information column) OK: Xen Hypervisor "tngvm2.agilemind.com" is running Xen VMs: bret I know 13 lines is a bit excessive but would like to see all DomU's that are running on a given host - at a glance. On the Service State Information page it does show all DomU's that are running on the host. What is limiting the output to 2 lines? Do I need to add html
to the plugin??? TIA -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From list at markas-al-nour.org Thu Aug 5 17:50:38 2010 From: list at markas-al-nour.org (list at markas-al-nour.org) Date: Thu, 5 Aug 2010 15:50:38 -0000 (UTC) Subject: Nagios supervising nagios? Message-ID: <29881.188.155.91.212.1281023438.squirrel@mail.markas-al-nour.org> Hi list, I searched a bit around, but I don't find a solution to my (IMO) simple idea: if I have nagios installed on different servers, is it possible to have a central nagios-instance that gets it's data from the remote ones? The idea is to have different nagios-instances which are independent, but which can be monitored from a central nagios-instance. As far as I read, both NSCA and NRPE are not exactly what I'm looking for. Could Opsview do something like that? Thanks if you have a pointer, Linus ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From rick.mangus+nagios at gmail.com Thu Aug 5 18:30:14 2010 From: rick.mangus+nagios at gmail.com (Rick Mangus) Date: Thu, 5 Aug 2010 11:30:14 -0500 Subject: Xen nrpe/plugin output In-Reply-To: References: Message-ID: Actually, it's only getting one line of input. The line ends after the first VM name. http://nagios.sourceforge.net/docs/3_0/pluginapi.html gives the "Plugin output spec" which explains how to do multi-line output. TEXT OUTPUT | OPTIONAL PERFDATA LONG TEXT LINE 1 LONG TEXT LINE 2 ... LONG TEXT LINE N | PERFDATA LINE 2 PERFDATA LINE 3 ... PERFDATA LINE N You would probably be best served by having the shell script condense the data to one line, though adding a "|\n" after the colon and before the $RUNNING in each of the echo lines would be the simplest option. --Rick On Thu, Aug 5, 2010 at 9:55 AM, Brian wrote: > I'm checking out this plugin: > > http://www.novell.com/coolsolutions/feature/19490.html > > When run on the Xen host the output looks something like this: > > /usr/lib/nagios/plugins/check_xenvm -w 11 -c 10 > > OK: Xen Hypervisor "tngvm2.blahblahblah.com" is running Xen VMs: bret > jeremy > lenny > roger > db12 > dev1 > dev2 > v2 > train1 > train2 > train3 > train4 > > On the cgi/http services output it reads like this: > > Xen OK 08-05-2010 09:30:03 0d 21h 56m 7s 1/10 > > (only 2 lines of output in the Status Information column) > > OK: Xen Hypervisor "tngvm2.agilemind.com" is running > Xen VMs: bret > > I know 13 lines is a bit excessive but would like to see all DomU's that > are running on a given host - at a glance. > > On the Service State Information page it does show all DomU's that are > running on the host. > > What is limiting the output to 2 lines? > > Do I need to add html
to the plugin??? > > TIA > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > 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 > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From nagios at herb-j.com Thu Aug 5 18:38:38 2010 From: nagios at herb-j.com (Herb J.) Date: Thu, 05 Aug 2010 12:38:38 -0400 Subject: Nagios supervising nagios? In-Reply-To: <29881.188.155.91.212.1281023438.squirrel@mail.markas-al-nour.org> References: <29881.188.155.91.212.1281023438.squirrel@mail.markas-al-nour.org> Message-ID: <4C5AE90E.5070408@herb-j.com> That would be considered a standard distributed Nagios setup. We do that in our Nagios cluster. We have a number of remote Nagios collectors in different locations. They all forward their service check results back to a central monitoring server. That server doesn't actually run any host or service checks (other than to monitor the remote collectors), but that depends on how you configure your Nagios installation. Each remote collector is fully independent in the fact that they have the standard Nagios web interface, they schedule their own service checks, and they can generate notifications for failed hosts/services (we decided against that and only have our central collector generating notifications). The data is passed back using OCP_daemon to improve performance, which feeds data back to the central collector using NSCA. However, due to the size of our setup, without heavy use of templating and fully automated configuration file management, it would be a nightmare to maintain. On 08/05/2010 11:50 AM, list at markas-al-nour.org wrote: > Hi list, > > I searched a bit around, but I don't find a solution to my (IMO) simple > idea: if I have nagios installed on different servers, is it possible to > have a central nagios-instance that gets it's data from the remote ones? > > The idea is to have different nagios-instances which are independent, but > which can be monitored from a central nagios-instance. > > As far as I read, both NSCA and NRPE are not exactly what I'm looking for. > Could Opsview do something like that? > > Thanks if you have a pointer, > > Linus > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > 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 > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From luke.salsich at gmail.com Thu Aug 5 20:07:36 2010 From: luke.salsich at gmail.com (Luke Salsich) Date: Thu, 5 Aug 2010 14:07:36 -0400 Subject: Accessing an HMI???? Message-ID: All, I've been a sys admin and Nagios lover for years. But, with this one I'm out of of my depth. I have a client who needs an HMI (Maple Systems 5070 http://www.maplesystems.com/graphic-hmi/7-inch-ethernet-widescreen-touchscreen.htm) on a series of remote industrial machines monitored. I love the idea because it's so new to me and I love a challenge. But, has anyone had any experience with this type of situation? I've been playing around with the idea, testing various scenarios and feel a little lost. the HMI does store and output various system data, has alarms when thresholds are exceeded, etc - but unless you are looking at it's screen you would never know. Any help, guidance or suggestions would be a huge help! --------------- Luke Salsich -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm -------------- 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 From gilberto.nunes at selbetti.com.br Thu Aug 5 20:55:30 2010 From: gilberto.nunes at selbetti.com.br (Gilberto Nunes) Date: Thu, 05 Aug 2010 15:55:30 -0300 Subject: Passive Host Status Check Message-ID: <1281034530.1962.6.camel@note-311a> Hi This is my first post... I have Nagios installed here, and there's some host's that use passive check, because I can't direct access this hosts... However, the host that do I monitor, always show me pedding state, 'cause I do not have an IP to direct connect to it! What can I do to monitor host state using passive checks??? Thanks Gilberto Nunes TI Selbetti Gest?o de Documentos Telefone: +55 (47) 3441-6004 Celular: +55 (47) 8861-6672 ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ 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 From list at markas-al-nour.org Thu Aug 5 22:16:04 2010 From: list at markas-al-nour.org (Linus Gasser) Date: Thu, 05 Aug 2010 22:16:04 +0200 Subject: Nagios supervising nagios? In-Reply-To: <4C5AE90E.5070408@herb-j.com> References: <29881.188.155.91.212.1281023438.squirrel@mail.markas-al-nour.org> <4C5AE90E.5070408@herb-j.com> Message-ID: <4C5B1C04.7050108@markas-al-nour.org> Le 05.08.10 18:38, Herb J. a ?crit : > That would be considered a standard distributed Nagios setup. We do that > in our Nagios cluster. > > We have a number of remote Nagios collectors in different locations. > They all forward their service check results back to a central > monitoring server. That server doesn't actually run any host or service > checks (other than to monitor the remote collectors), but that depends > on how you configure your Nagios installation. Each remote collector is > fully independent in the fact that they have the standard Nagios web > interface, they schedule their own service checks, and they can generate > notifications for failed hosts/services (we decided against that and > only have our central collector generating notifications). The data is > passed back using OCP_daemon to improve performance, which feeds data > back to the central collector using NSCA. OK, I'll try that again, then. I've been looking at NagiosCenter View, but I don't manage to make the configuration as it should be. So up to NSCA, then ;) > However, due to the size of our setup, without heavy use of templating > and fully automated configuration file management, it would be a > nightmare to maintain. Hmm, in fact, do you have to configure the central collector to let him know what the other collectors are doing? Thanks, Linus ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at herb-j.com Thu Aug 5 23:08:11 2010 From: nagios at herb-j.com (Herb J.) Date: Thu, 05 Aug 2010 17:08:11 -0400 Subject: Nagios supervising nagios? In-Reply-To: <4C5B1C04.7050108@markas-al-nour.org> References: <29881.188.155.91.212.1281023438.squirrel@mail.markas-al-nour.org> <4C5AE90E.5070408@herb-j.com> <4C5B1C04.7050108@markas-al-nour.org> Message-ID: <4C5B283B.1000400@herb-j.com> On 08/05/2010 04:16 PM, Linus Gasser wrote: > Le 05.08.10 18:38, Herb J. a ?crit : > >> That would be considered a standard distributed Nagios setup. We do that >> in our Nagios cluster. >> >> We have a number of remote Nagios collectors in different locations. >> They all forward their service check results back to a central >> monitoring server. That server doesn't actually run any host or service >> checks (other than to monitor the remote collectors), but that depends >> on how you configure your Nagios installation. Each remote collector is >> fully independent in the fact that they have the standard Nagios web >> interface, they schedule their own service checks, and they can generate >> notifications for failed hosts/services (we decided against that and >> only have our central collector generating notifications). The data is >> passed back using OCP_daemon to improve performance, which feeds data >> back to the central collector using NSCA. >> > OK, I'll try that again, then. I've been looking at NagiosCenter View, > but I don't manage to make the configuration as it should be. So up to > NSCA, then ;) > > >> However, due to the size of our setup, without heavy use of templating >> and fully automated configuration file management, it would be a >> nightmare to maintain. >> > Hmm, in fact, do you have to configure the central collector to let him > know what the other collectors are doing? > All collectors are configured with the same check commands and templates, but the remote collectors only know about their specific list of hosts and services to monitor. The central collector knows about all hosts, services, service check commands, etc. (Since Nagios ignores passive data for hosts and services it doesn't recognize, it has to know about everything being monitored.) However, the central collector is configured to not run any active checks (except for monitoring the other collectors) and is configured to accept passive check data. The remote collectors are configured to run active service checks on their list of servers (ignoring passive data since they don't receive any) and does not generate any alerts or notifications. All of this is done by having the central collector use slightly modified host and service templates. > Thanks, > > Linus > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From standalone.sysadmin at gmail.com Fri Aug 6 04:16:18 2010 From: standalone.sysadmin at gmail.com (Matt Simmons) Date: Thu, 5 Aug 2010 22:16:18 -0400 Subject: Nagios Community Down? In-Reply-To: <4C57099E.9000009@nagios.com> References: <4C4F1564.6060203@univie.ac.at> <1280262445.7275.3.camel@ubuntu-desktop.SSG5-Serial> <4C57099E.9000009@nagios.com> Message-ID: Thanks Tony! On Mon, Aug 2, 2010 at 2:08 PM, Tony Yarusso wrote: > FYI, http://community.nagios.org/ is back up today. > > -- > Tony Yarusso > Technical Team > ___ > Nagios Enterprises, LLC > Email: ?tyarusso at nagios.com > Web: ? ?www.nagios.com > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > 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 > -- LITTLE GIRL: But which cookie will you eat FIRST? COOKIE MONSTER: Me think you have misconception of cookie-eating process. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Sebastian.Ries at dtnet.de Fri Aug 6 08:44:57 2010 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Fri, 06 Aug 2010 08:44:57 +0200 Subject: check_proc --metric=CPU - alternatives? Message-ID: <1281077097.19933.12.camel@bofh.dtnet.de> Hi I have the following Problem: We have some Processes which are running but are idle for some time (maybe some weeks) and the get used by a user. While a single Process is used is should have a cpu usage varying between 10 and 50%. We have the problem that sometimes a process gets stuck and then is running at 100% cpu usage. => this is what we want to check via Nagios. I tried to use check_procs like: ./check_procs -w 80 -c 90 --metric=CPU --command=qemu-system-x86 but this did noch catch the processes. After some testing and searching on the internet I found out that this is depending on how ps calculates the cpu usage: It devides the cputime by the runtime of the process, giving the average cup usage over the whole process time -> which does not really help :-( Does anyone know of an alternative check which gives me the cpu usage actual of a process (or maybe the average over the last minute)? Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rab at walkermartyn.co.uk Fri Aug 6 09:29:02 2010 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Fri, 6 Aug 2010 08:29:02 +0100 Subject: Nagios Graphing Message-ID: I'm looking to build a Nagios server running under Solaris 10 with graphing, hopefully allowing me to view trend data in a more "pleasing" format. Anyone have any ideas what is the best graphing solution for Nagios. I know there are many, but just wanted to get a feel as to what people think is the best option. Obviously it would have to install/run correctly under Solaris 10 also. Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From AHKAPLAN at PARTNERS.ORG Fri Aug 6 14:42:28 2010 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 6 Aug 2010 08:42:28 -0400 Subject: Nagios Graphing In-Reply-To: References: Message-ID: Hi there -- I implemented pnp4nagios on our system, and it has done a great job for us. ________________________________ From: Robert Jackson [mailto:rab at walkermartyn.co.uk] Sent: Friday, August 06, 2010 3:29 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios Graphing I'm looking to build a Nagios server running under Solaris 10 with graphing, hopefully allowing me to view trend data in a more "pleasing" format. Anyone have any ideas what is the best graphing solution for Nagios. I know there are many, but just wanted to get a feel as to what people think is the best option. Obviously it would have to install/run correctly under Solaris 10 also. Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk. Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From kiran.parrey at valuelabs.net Fri Aug 6 15:00:41 2010 From: kiran.parrey at valuelabs.net (Kiran Kumar P) Date: Fri, 6 Aug 2010 18:30:41 +0530 Subject: Required plugins to monitor PIX Message-ID: Hi There, Can you please provide me the plugins to monitor PIX (Cisco) CPU and Memory usage. Regards, Kiran -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From pangrazi at gmail.com Fri Aug 6 15:29:55 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Fri, 6 Aug 2010 08:29:55 -0500 Subject: Required plugins to monitor PIX In-Reply-To: References: Message-ID: Check out the generic switch template that is in the config files. here is a set of plugins that are designed for cisco devices. http://exchange.nagios.org/directory/Plugins/Uncategorized/Software/SNMP/Cisco-SNMP-device-monitoring/details If you run "show snmp-server oidlist" on the asa it will give you the SNMP OID you should poll for a value. Here are the basics for CPU. [128] 1.3.6.1.4.1.9.9.109.1.1.1.1.2. cpmCPUTotalPhysicalIndex [129] 1.3.6.1.4.1.9.9.109.1.1.1.1.3. cpmCPUTotal5sec [130] 1.3.6.1.4.1.9.9.109.1.1.1.1.4. cpmCPUTotal1min [131] 1.3.6.1.4.1.9.9.109.1.1.1.1.5. cpmCPUTotal5min I personally use the values above and do a check_snmp on the oid to get the results i need. Greg Pangrazio On Fri, Aug 6, 2010 at 8:00 AM, Kiran Kumar P wrote: > Hi There, > > > > Can you please provide me the plugins to monitor PIX (Cisco) CPU and Memory > usage. > > > > Regards, > > Kiran > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jdevaney at blackducksoftware.com Fri Aug 6 16:16:55 2010 From: jdevaney at blackducksoftware.com (Joseph Devaney) Date: Fri, 6 Aug 2010 10:16:55 -0400 Subject: Executing a script based on text from a web page Message-ID: <0E56782E-A20E-4BF3-BD0E-B5FB5ED7A37E@blackducksoftware.com> I know that nagios can monitor pages for certain text on that page to verify that its there. In our organization we have several monitors like this currently setup and they work well for us. I want to take this operability and apply it to a webpage that only appears when there is a server error and have it kick off a script to restart a service. This is for a website within the company. When there are too many mysql connections, the site itself will not be displayed but will display a friendly error for us to perform a flush of the hosts. This error doesnt occur often and when it does occur, it doesn't always happen when someone is awake to address it. Basically what I want to happen is for nagios to monitor a website and if/when this error appears (I will set the check_command to look for the right text) nagios will execute a script to restart that service. 99% of the time, the site will be up and functioning as it should be, so I am not sure how to write this one up without giving a false positive on our monitors. Any thoughts on how to implement this? Joseph Devaney | Jr. Linux Systems Administrator | Black Duck Software | v: 781-810-1334 | m: 781-974-6729 | jdevaney at blackducksoftware.com | 265 Winter St, Waltham, MA 02451 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From mmelin at gmail.com Fri Aug 6 16:43:47 2010 From: mmelin at gmail.com (Martin Melin) Date: Fri, 6 Aug 2010 16:43:47 +0200 Subject: Executing a script based on text from a web page In-Reply-To: <0E56782E-A20E-4BF3-BD0E-B5FB5ED7A37E@blackducksoftware.com> References: <0E56782E-A20E-4BF3-BD0E-B5FB5ED7A37E@blackducksoftware.com> Message-ID: On Fri, Aug 6, 2010 at 4:16 PM, Joseph Devaney wrote: > I know that nagios can monitor pages for certain text on that page to verify > that its there. ?In our organization we have several monitors like this > currently setup and they work well for us. ?I want to take this operability > and apply it to a webpage that only appears when there is a server error and > have it kick off a script to restart a service. > This is for a website within the company. ?When there are too many mysql > connections, the site itself will not be displayed but will display a > friendly error for us to perform a flush of the hosts. ?This error doesnt > occur often and when it does occur, it doesn't always happen when someone is > awake to address it. ?Basically what I want to happen is for nagios to > monitor a website and if/when this error appears (I will set the > check_command to look for the right text) nagios will execute a script to > restart that service. ?99% of the time, the site will be up and functioning > as it should be, so I am not sure how to write this one up without giving a > false positive on our monitors. > Any thoughts on how to implement this? > This should be fairly simple to do with a service-specific event handler http://nagios.sourceforge.net/docs/3_0/eventhandlers.html and a check that uses check_http to look for that error message. I think check_http has options for inverting the default check behavior (i.e. return CRITICAL if a string is found) but otherwise you can use negate to accomplish the same thing. I may not be understanding your question fully though - how would you risk creating a false positive here? Do you want to restart the service every time the error message appears on the internal webpage, or do you also want to check if the site is down before restarting? Best regards Martin Melin ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From dit.dash at gmail.com Fri Aug 6 17:38:47 2010 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Fri, 6 Aug 2010 11:38:47 -0400 Subject: Executing a script based on text from a web page In-Reply-To: <0E56782E-A20E-4BF3-BD0E-B5FB5ED7A37E@blackducksoftware.com> References: <0E56782E-A20E-4BF3-BD0E-B5FB5ED7A37E@blackducksoftware.com> Message-ID: We've had a lot of luck with check_http with the params -u and -s -u points to the particular path on the web server and -s is the return string it expects. And then there's the hacky way of doing it; wget the page and search for presence/absence of a particular string On Fri, Aug 6, 2010 at 10:16 AM, Joseph Devaney wrote: > I know that nagios can monitor pages for certain text on that page to verify > that its there. In our organization we have several monitors like this > currently setup and they work well for us. I want to take this operability > and apply it to a webpage that only appears when there is a server error and > have it kick off a script to restart a service. > This is for a website within the company. When there are too many mysql > connections, the site itself will not be displayed but will display a > friendly error for us to perform a flush of the hosts. This error doesnt > occur often and when it does occur, it doesn't always happen when someone is > awake to address it. Basically what I want to happen is for nagios to > monitor a website and if/when this error appears (I will set the > check_command to look for the right text) nagios will execute a script to > restart that service. 99% of the time, the site will be up and functioning > as it should be, so I am not sure how to write this one up without giving a > false positive on our monitors. > Any thoughts on how to implement this? > > > > Joseph Devaney | Jr. Linux Systems Administrator | Black Duck Software | v: > 781-810-1334 | m: 781-974-6729 | jdevaney at blackducksoftware.com | 265 > Winter St, Waltham, MA 02451 > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From neil.dombrowski at hp.com Fri Aug 6 17:59:21 2010 From: neil.dombrowski at hp.com (Dombrowski, Neil) Date: Fri, 6 Aug 2010 15:59:21 +0000 Subject: setting up nagios to monitor other systems load, mem, disk Message-ID: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> I have nagios 3.2.1 installed on a RH5.5 box, and it is monitoring ssh on client systems (and host check/ping). I now want to be able to check disk capacity, cpu load, etc., on other systems(clients). It's not clear to me how to do this in the documentation. Do I need to use check_by_ssh or nrpe? Is there a way to package up part of the nagios install and distribute it to all systems I want to monitor? I would much appreciate it if someone could send me a link to the right document for this. Thanks, Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 4872 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From charlie.reddington at gmail.com Fri Aug 6 18:02:47 2010 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Fri, 6 Aug 2010 11:02:47 -0500 Subject: Passive freshness checks -> active checks Message-ID: <364707D7-0ED6-4744-939F-3486E2B230EC@gmail.com> Hi All, I'm having a bit of a problem with my nagios setup. I'm trying to move toward passive checks, with failover being a active check. For now, my failover check command is just a one liner that returns critical with a message. I'm it's looking like the active check is being run, even when I see the corresponding passive check coming in. I suspect it may be in my configs somewhere, but I'm not sure what is wrong yet. The big kicker of this, is it's not all of my checks. Only some of them. They all have different freshness thresholds, but that doesn't seem to be common. Their configs are the same, but in a different order, and that doesn't seem like the problem either as it's affecting some of one, and not of the other. Any thoughts of what I may be doing wrong? Charlie --- Nagios Version: 3.2.0 I have a service template definition that looks like this. define service{ name passive-service check_freshness 1 active_checks_enabled 0 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 notifications_enabled 0 event_handler_enabled 0 flap_detection_enabled 0 failure_prediction_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 check_period 24x7 max_check_attempts 1 contact_groups admins notification_options w,c,r notification_interval 60 notification_period 24x7 register 0 } And then I have a services defined like so. # Free Memory Check define service{ use passive-service service_description Passive Memory Check check_command check_stale hostgroups passive freshness_threshold 3600 } My active checks are defined with. # alert on stale define command{ command_name check_stale command_line $USER1$/check_dummy 2 "Check is stale, please run manually" } On my host, I use cron jobs to run things like this. I use nsca_wrapper to send my check results to the central nagios server. # Check Free Memory */15 * * * * root /usr/local/nagios/libexec/nsca_wrapper.sh -H server.name -S 'Passive Memory Check' -C '/usr/local/nagios/libexec/ check_memory -w 10 -c 5' >& /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Fri Aug 6 18:05:15 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Fri, 6 Aug 2010 09:05:15 -0700 (PDT) Subject: Executing a script based on text from a web page In-Reply-To: References: <0E56782E-A20E-4BF3-BD0E-B5FB5ED7A37E@blackducksoftware.com> Message-ID: <251637.40443.qm@web34506.mail.mud.yahoo.com> Or just use an event handler. Check out the examples in the below link. http://nagios.sourceforge.net/docs/3_0/eventhandlers.html ----- Original Message ---- From: dave stern - e-mail.pluribus.unum To: Nagios Users List Sent: Fri, August 6, 2010 11:38:47 AM Subject: Re: [Nagios-users] Executing a script based on text from a web page We've had a lot of luck with check_http with the params -u and -s -u points to the particular path on the web server and -s is the return string it expects. And then there's the hacky way of doing it; wget the page and search for presence/absence of a particular string On Fri, Aug 6, 2010 at 10:16 AM, Joseph Devaney wrote: > I know that nagios can monitor pages for certain text on that page to verify > that its there. In our organization we have several monitors like this > currently setup and they work well for us. I want to take this operability > and apply it to a webpage that only appears when there is a server error and > have it kick off a script to restart a service. > This is for a website within the company. When there are too many mysql > connections, the site itself will not be displayed but will display a > friendly error for us to perform a flush of the hosts. This error doesnt > occur often and when it does occur, it doesn't always happen when someone is > awake to address it. Basically what I want to happen is for nagios to > monitor a website and if/when this error appears (I will set the > check_command to look for the right text) nagios will execute a script to > restart that service. 99% of the time, the site will be up and functioning > as it should be, so I am not sure how to write this one up without giving a > false positive on our monitors. > Any thoughts on how to implement this? > > > > Joseph Devaney | Jr. Linux Systems Administrator | Black Duck Software | v: > 781-810-1334 | m: 781-974-6729 | jdevaney at blackducksoftware.com | 265 > Winter St, Waltham, MA 02451 > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From mmelin at gmail.com Fri Aug 6 18:09:30 2010 From: mmelin at gmail.com (Martin Melin) Date: Fri, 6 Aug 2010 18:09:30 +0200 Subject: setting up nagios to monitor other systems load, mem, disk In-Reply-To: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> References: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> Message-ID: On Fri, Aug 6, 2010 at 5:59 PM, Dombrowski, Neil wrote: > I have nagios 3.2.1 installed on a RH5.5 box, and it is monitoring ssh on > > client systems (and host check/ping). I now want to be able to check disk > > capacity, cpu load, etc., on other systems(clients). It's not clear to me > > how to do this in the documentation. Do I need to use check_by_ssh or nrpe? > > Is there a way to package up part of the nagios install and distribute it to > > all systems I want to monitor? I would much appreciate it if someone could > > send me a link to the right document for this. NRPE is what you want: http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf NRPE and the nagios-plugins package + any custom plugins you want to use is usually what you want distributed to your monitored hosts. Best regards Martin Melin > > Thanks, > > ??????? Neil > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From pangrazi at gmail.com Fri Aug 6 18:14:42 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Fri, 6 Aug 2010 11:14:42 -0500 Subject: setting up nagios to monitor other systems load, mem, disk In-Reply-To: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> References: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> Message-ID: Niel, You can do this many ways. It might be a good idea for you to start with some background info and such. I have really had good luck with James Turnbull's "Pro Nagios 2.0" book as well as "Building a Monitoring Infrastructure with Nagios" by David Josephsen. These books both help with deciding the trade offs between check by ssh, nrpe, snmp etc. Greg Pangrazio On Fri, Aug 6, 2010 at 10:59 AM, Dombrowski, Neil wrote: > I have nagios 3.2.1 installed on a RH5.5 box, and it is monitoring ssh on > > client systems (and host check/ping). I now want to be able to check disk > > capacity, cpu load, etc., on other systems(clients). It's not clear to me > > how to do this in the documentation. Do I need to use check_by_ssh or nrpe? > > Is there a way to package up part of the nagios install and distribute it to > > all systems I want to monitor? I would much appreciate it if someone could > > send me a link to the right document for this. > > Thanks, > > ??????? Neil > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From charlie.reddington at gmail.com Fri Aug 6 18:18:14 2010 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Fri, 6 Aug 2010 11:18:14 -0500 Subject: setting up nagios to monitor other systems load, mem, disk In-Reply-To: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> References: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> Message-ID: <515C5C82-F8C6-4E87-B86E-5E2F92190FE1@gmail.com> On Aug 6, 2010, at 10:59 AM, Dombrowski, Neil wrote: > I have nagios 3.2.1 installed on a RH5.5 box, and it is monitoring > ssh on > > client systems (and host check/ping). I now want to be able to check > disk > > capacity, cpu load, etc., on other systems(clients). It's not clear > to me > > how to do this in the documentation. Do I need to use check_by_ssh > or nrpe? > You can do either. I have been using check_by_ssh because I didn't want to open a new port on my client machines, and they are all running sshd on them. But this does not scale very well. We have a 2 core server, and about 300 hosts, and 1500 checks, and it's loaded the host down pretty bad. If I was to stay doing active checks, I would do NRPE as I have done in the past. It scales much better. > Is there a way to package up part of the nagios install and > distribute it to > > all systems I want to monitor? > You'll want to get the nrpe plugin along with the plugin checks. We usually just push the files to the systems, compile, install, and then put our configs in place. A smart bash script can automate most of the install for you. > I would much appreciate it if someone could > > send me a link to the right document for this. > The basics you'll need are to define another host. Define services. Define commands for those services. Add the host to those services. On the client, install and configure nrpe. Install the plugins you want to use. And then open up firewalls for these new services. Sorry I can't find the link I used to use when I first started out with nagios. > Thanks, > > Neil > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From gilberto.nunes at selbetti.com.br Fri Aug 6 18:44:47 2010 From: gilberto.nunes at selbetti.com.br (Gilberto Nunes) Date: Fri, 06 Aug 2010 13:44:47 -0300 Subject: Passive Freshness checks Message-ID: <1281113087.27892.15.camel@note-311a> Hi guys... I setting up a Nagios 3 here.. I'm using Debian Lenny for that. I setting up some host to get passive checks too. On remote host I'm using NC_NET package that provide WMI communication to a Windows 2003 host. The NC_NET tool is install on same machine. I setting NC_NET to send data at each one minuto to my Nagios Server. The problem here is that I can't get freshness to work... When the NC_NET send data, the appear on Nagios Web Interface. This take about 1 minutes... But, when NC_NET don't send nothing and ncsa don't send nothing to nagios too, the check_command running whitout wait the freshness_threshold parameter!!! Why... It's not to wait the time set on freshness_threshold??? I setting the cfg for a service like this: define service { host_name HOSTNAME service_description Free-Space-C check_command no_return is_volatile 1 max_check_attempts 5 check_interval 1 retry_interval 1 passive_checks_enabled 1 check_period 24x7 obsess_over_service 1 check_freshness 1 freshness_threshold 900 event_handler notify-host-by-email event_handler_enabled 1 flap_detection_enabled 0 process_perf_data 0 retain_status_information 0 retain_nonstatus_information 0 notification_interval 120 notification_period 24x7 notification_options w,c,s notifications_enabled 1 contacts Administrators contact_groups admins register 1 } Thanks for any help! Gilberto Nunes TI Selbetti Gest?o de Documentos Telefone: +55 (47) 3441-6004 Celular: +55 (47) 8861-6672 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Fri Aug 6 18:47:48 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Fri, 6 Aug 2010 09:47:48 -0700 (PDT) Subject: setting up nagios to monitor other systems load, mem, disk In-Reply-To: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> References: <5E1C3AF53ABCEB4A95FB524B58F680E671D32B5C81@GVW1342EXA.americas.hpqcorp.net> Message-ID: <492650.76380.qm@web34504.mail.mud.yahoo.com> SNMP is another options. I am a big fan of agentless monitoring! ________________________________ From: "Dombrowski, Neil" To: "nagios-users at lists.sourceforge.net" Sent: Fri, August 6, 2010 11:59:21 AM Subject: [Nagios-users] setting up nagios to monitor other systems load, mem, disk setting up nagios to monitor other systems load, mem, disk I have nagios 3.2.1 installed on a RH5.5 box, and it is monitoring ssh on client systems (and host check/ping). I now want to be able to check disk capacity, cpu load, etc., on other systems(clients). It's not clear to me how to do this in the documentation. Do I need to use check_by_ssh or nrpe? Is there a way to package up part of the nagios install and distribute it to all systems I want to monitor? I would much appreciate it if someone could send me a link to the right document for this. Thanks, Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From gilberto.nunes at selbetti.com.br Fri Aug 6 18:51:33 2010 From: gilberto.nunes at selbetti.com.br (Gilberto Nunes) Date: Fri, 06 Aug 2010 13:51:33 -0300 Subject: Passive Freshness checks Message-ID: <1281113493.27892.19.camel@note-311a> Hi guys... I set up a Nagios 3 here.. I'm using Debian Lenny for that. I set up some host to get passive checks too. On remote host I'm using NC_NET package that provide WMI communication to a Windows 2003 host. The NC_NET tool is install on same machine. I setting NC_NET to send data at each one minuto to my Nagios Server. The problem here is that I can't get freshness to work... When the NC_NET send data, the appear on Nagios Web Interface. This take about 1 minutes... But, when NC_NET don't send nothing and ncsa don't send nothing to nagios too, the check_command running whitout wait the freshness_threshold parameter!!! Why... It's not to wait the time set on freshness_threshold??? I set up the cfg for a service like this: define service { host_name HOSTNAME service_description Free-Space-C check_command no_return is_volatile 1 max_check_attempts 5 check_interval 1 retry_interval 1 passive_checks_enabled 1 check_period 24x7 obsess_over_service 1 check_freshness 1 freshness_threshold 900 event_handler notify-host-by-email event_handler_enabled 1 flap_detection_enabled 0 process_perf_data 0 retain_status_information 0 retain_nonstatus_information 0 notification_interval 120 notification_period 24x7 notification_options w,c,s notifications_enabled 1 contacts Administrators contact_groups admins register 1 } Thanks for any help! P.S. - I sent the message again 'cause my English is very poor... I hope somebody can help... Gilberto Nunes TI Selbetti Gest?o de Documentos Telefone: +55 (47) 3441-6004 Celular: +55 (47) 8861-6672 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From gregborbonus at gmail.com Fri Aug 6 19:07:28 2010 From: gregborbonus at gmail.com (gregborbonus at gmail.com) Date: Fri, 6 Aug 2010 17:07:28 +0000 Subject: Status.cgi layout Message-ID: <2107513639-1281114486-cardhu_decombobulator_blackberry.rim.net-1231576720-@bda516.bisx.prod.on.blackberry> Hi, I know that you can do a pattern match for hostnames and such, but is there a way to do that for hostgroups? IE: status.cgi?hostgroup=blah*&style=overview I looked through the code and did not see anything I'd recognize. I'm not a c dev, so I could have overlooked it. Thanks Greg Sent via BlackBerry from T-Mobile ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From gilberto.nunes at selbetti.com.br Fri Aug 6 19:49:21 2010 From: gilberto.nunes at selbetti.com.br (Gilberto Nunes) Date: Fri, 06 Aug 2010 14:49:21 -0300 Subject: Passive Freshness checks Message-ID: <1281116961.27892.20.camel@note-311a> Hi guys... I set up a Nagios 3 here.. I'm using Debian Lenny for that. I put some host to get passive checks too. On remote host I'm using NC_NET package that provide WMI communication to a Windows 2003 host. The NC_NET tool is installed in the same machine. I set up the NC_NET to send data at each one minute to my Nagios Server. The problem here is that I can't get freshness to work... When the NC_NET send data, appears on Nagios Web Interface. It is take about 1 minutes... But, when NC_NET don't sent nothing and ncsa don't send nothing to nagios too, the check_command running without wait the freshness_threshold parameter!!! Why??? It's not to wait the time set on freshness_threshold??? I set up the cfg for a service like this: define service { host_name HOSTNAME service_description Free-Space-C check_command no_return is_volatile 1 max_check_attempts 5 check_interval 1 retry_interval 1 passive_checks_enabled 1 check_period 24x7 obsess_over_service 1 check_freshness 1 freshness_threshold 900 event_handler notify-host-by-email event_handler_enabled 1 flap_detection_enabled 0 process_perf_data 0 retain_status_information 0 retain_nonstatus_information 0 notification_interval 120 notification_period 24x7 notification_options w,c,s notifications_enabled 1 contacts Administrators contact_groups admins register 1 } Thanks for any help! P.S. - I sent the message again 'cause my English is very poor... I hope somebody can help... Gilberto Nunes TI Selbetti Gest?o de Documentos Telefone: +55 (47) 3441-6004 Celular: +55 (47) 8861-6672 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From dinisco at gmail.com Sat Aug 7 16:40:46 2010 From: dinisco at gmail.com (jeff dinisco) Date: Sat, 7 Aug 2010 07:40:46 -0700 Subject: part of plugin output not displaying in status info Message-ID: I'm writing a plugin that monitors storage array cache utilization by processing the output of navicli (cli for EMC Clariion arrays). The problem is that the value for cache utilization is not displaying in the status information field on the nagios web interface. It seems like a whitespace or hidden character issue, but perls chomp doesn't solve it. Here's what the output looks like when the plugin is executed at the command line... # ./check_cache 90 95 Percent Dirty Pages 73 Here's what nagios is displaying in the status information field... Percent Dirty Pages So it's the variable ($dirtypages) derived from the output of navicli that doesn't display. Here's the plugin (I'm aware this script does nothing, I'm just trying to solve this particular issue)... #!/usr/bin/perl $warn = $ARGV[0]; $crit = $ARGV[1]; $clariion="garfunkel"; open (NAVIOUT, "/opt/Navisphere/bin/naviseccli -h $clariion getcache |"); while () { chomp $_; if (/^Prct Dirty Cache Pages =/) { $dirtypages = (split / +/, $_)[5]; } } chomp $dirtypages; print "Percent Dirty Pages $dirtypages"; Any help would be greatly appreciated. jd -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From gregborbonus at gmail.com Sat Aug 7 16:51:03 2010 From: gregborbonus at gmail.com (gregborbonus at gmail.com) Date: Sat, 7 Aug 2010 14:51:03 +0000 Subject: part of plugin output not displaying in status info In-Reply-To: References: Message-ID: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> Does nagios user have permissions to execute garfunkel? Sent via BlackBerry from T-Mobile -----Original Message----- From: jeff dinisco Date: Sat, 7 Aug 2010 07:40:46 To: Reply-To: Nagios Users List Subject: [Nagios-users] part of plugin output not displaying in status info ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From mmelin at gmail.com Sat Aug 7 16:52:49 2010 From: mmelin at gmail.com (Martin Melin) Date: Sat, 7 Aug 2010 16:52:49 +0200 Subject: part of plugin output not displaying in status info In-Reply-To: References: Message-ID: On Sat, Aug 7, 2010 at 4:40 PM, jeff dinisco wrote: > I'm writing a plugin that monitors storage array cache utilization by > processing the output of navicli (cli for EMC Clariion arrays).? The problem > is that the value for cache utilization is not displaying in the status > information field on the nagios web interface.? It seems like a whitespace > or hidden character issue, but perls chomp doesn't solve it. > > Here's what the output looks like when the plugin is executed at the command > line... > > # ./check_cache 90 95 > Percent Dirty Pages 73 > > Here's what nagios is displaying in the status information field... > Percent Dirty Pages > > So it's the variable ($dirtypages) derived from the output of navicli that > doesn't display.? Here's the plugin (I'm aware this script does nothing, I'm > just trying to solve this particular issue)... > > #!/usr/bin/perl > > $warn = $ARGV[0]; > $crit = $ARGV[1]; > $clariion="garfunkel"; > > open (NAVIOUT, "/opt/Navisphere/bin/naviseccli -h $clariion getcache |"); > while () { > ? chomp $_; > ? if (/^Prct Dirty Cache Pages =/) { > ??? $dirtypages = (split / +/, $_)[5]; > ? } > } > chomp $dirtypages; > print "Percent Dirty Pages $dirtypages"; > > Any help would be greatly appreciated. > > jd Interesting. Can you add some static text after $dirtypages in the print statement? Also, can you check the length of $dirtypages - it should tell you if there are any hidden characters being included. Best regards Martin Melin ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Sat Aug 7 16:59:40 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Sat, 07 Aug 2010 10:59:40 -0400 Subject: part of plugin output not displaying in status info In-Reply-To: References: Message-ID: I don't believe your output is properly formatted. Search cpan for a nagios plugin module. It makes life easier. "jeff dinisco" wrote: >I'm writing a plugin that monitors storage array cache utilization by >processing the output of navicli (cli for EMC Clariion arrays). The problem >is that the value for cache utilization is not displaying in the status >information field on the nagios web interface. It seems like a whitespace >or hidden character issue, but perls chomp doesn't solve it. > >Here's what the output looks like when the plugin is executed at the command >line... > ># ./check_cache 90 95 >Percent Dirty Pages 73 > >Here's what nagios is displaying in the status information field... >Percent Dirty Pages > >So it's the variable ($dirtypages) derived from the output of navicli that >doesn't display. Here's the plugin (I'm aware this script does nothing, I'm >just trying to solve this particular issue)... > >#!/usr/bin/perl > >$warn = $ARGV[0]; >$crit = $ARGV[1]; >$clariion="garfunkel"; > >open (NAVIOUT, "/opt/Navisphere/bin/naviseccli -h $clariion getcache |"); >while () { > chomp $_; > if (/^Prct Dirty Cache Pages =/) { > $dirtypages = (split / +/, $_)[5]; > } >} >chomp $dirtypages; >print "Percent Dirty Pages $dirtypages"; > >Any help would be greatly appreciated. > >jd >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ >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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From mmelin at gmail.com Sat Aug 7 17:05:01 2010 From: mmelin at gmail.com (Martin Melin) Date: Sat, 7 Aug 2010 17:05:01 +0200 Subject: part of plugin output not displaying in status info In-Reply-To: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> References: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> Message-ID: On Sat, Aug 7, 2010 at 4:51 PM, wrote: > Does nagios user have permissions to execute garfunkel? Oh, yeah, this is definitely the problem. Your script doesn't check that you have anything in $dirtypages and you don't check the result of open(). When testing Nagios plugins from the command line make absolutely sure you're running with the same environment that Nagios itself is running as. Cheers, Martin ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From dinisco at gmail.com Sat Aug 7 17:59:43 2010 From: dinisco at gmail.com (jeff dinisco) Date: Sat, 7 Aug 2010 11:59:43 -0400 Subject: part of plugin output not displaying in status info In-Reply-To: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> References: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> Message-ID: <-4914574737665526014@unknownmsgid> Yes, command line output would fail otherwise. On Aug 7, 2010, at 10:51 AM, gregborbonus at gmail.com wrote: > Does nagios user have permissions to execute garfunkel? > Sent via BlackBerry from T-Mobile > > -----Original Message----- > From: jeff dinisco > Date: Sat, 7 Aug 2010 07:40:46 > To: > Reply-To: Nagios Users List > Subject: [Nagios-users] part of plugin output not displaying in status info > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From dinisco at gmail.com Sat Aug 7 18:02:50 2010 From: dinisco at gmail.com (jeff dinisco) Date: Sat, 7 Aug 2010 12:02:50 -0400 Subject: part of plugin output not displaying in status info In-Reply-To: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> References: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> Message-ID: <-3610128790054209149@unknownmsgid> Wait, you're right, my bad, thanks for the help. On Aug 7, 2010, at 10:51 AM, gregborbonus at gmail.com wrote: > Does nagios user have permissions to execute garfunkel? > Sent via BlackBerry from T-Mobile > > -----Original Message----- > From: jeff dinisco > Date: Sat, 7 Aug 2010 07:40:46 > To: > Reply-To: Nagios Users List > Subject: [Nagios-users] part of plugin output not displaying in status info > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From dinisco at gmail.com Sat Aug 7 18:05:03 2010 From: dinisco at gmail.com (jeff dinisco) Date: Sat, 7 Aug 2010 12:05:03 -0400 Subject: part of plugin output not displaying in status info In-Reply-To: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> References: <1748613272-1281192700-cardhu_decombobulator_blackberry.rim.net-1358124004-@bda516.bisx.prod.on.blackberry> Message-ID: <-3315710909382499913@unknownmsgid> Wow that was simple, I haven't confirmed it yet but I'm almost positive that's it. Thanks man. On Aug 7, 2010, at 10:51 AM, gregborbonus at gmail.com wrote: > Does nagios user have permissions to execute garfunkel? > Sent via BlackBerry from T-Mobile > > -----Original Message----- > From: jeff dinisco > Date: Sat, 7 Aug 2010 07:40:46 > To: > Reply-To: Nagios Users List > Subject: [Nagios-users] part of plugin output not displaying in status info > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From list at markas-al-nour.org Sat Aug 7 20:00:40 2010 From: list at markas-al-nour.org (Linus Gasser) Date: Sat, 07 Aug 2010 20:00:40 +0200 Subject: Nagios supervising nagios? In-Reply-To: <4C5B283B.1000400@herb-j.com> References: <29881.188.155.91.212.1281023438.squirrel@mail.markas-al-nour.org> <4C5AE90E.5070408@herb-j.com> <4C5B1C04.7050108@markas-al-nour.org> <4C5B283B.1000400@herb-j.com> Message-ID: <4C5D9F48.8030203@markas-al-nour.org> Le 05.08.10 23:08, Herb J. a ?crit : >> Hmm, in fact, do you have to configure the central collector to let him >> know what the other collectors are doing? >> > > > All collectors are configured with the same check commands and > templates, but the remote collectors only know about their specific list > of hosts and services to monitor. The central collector knows about all > hosts, services, service check commands, etc. (Since Nagios ignores > passive data for hosts and services it doesn't recognize, it has to know > about everything being monitored.) However, the central collector is > configured to not run any active checks (except for monitoring the other > collectors) and is configured to accept passive check data. The remote > collectors are configured to run active service checks on their list of > servers (ignoring passive data since they don't receive any) and does > not generate any alerts or notifications. All of this is done by having > the central collector use slightly modified host and service templates. Too bad - I'll continue playing with NagiosCentral then, I don't want to configure all services twice... Thank you very much for your explanations, you spared me quite some headaches - now I know it's not what I'm looking for ;) Linus ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Sun Aug 8 03:14:40 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Sat, 07 Aug 2010 21:14:40 -0400 Subject: part of plugin output not displaying in status info In-Reply-To: References: Message-ID: <42918f2f-c902-4996-b4dd-71bd630b8e09@email.android.com> Add "use strict" to your script. It should be included in every perl script. "jeff dinisco" wrote: >I'm writing a plugin that monitors storage array cache utilization by >processing the output of navicli (cli for EMC Clariion arrays). The problem >is that the value for cache utilization is not displaying in the status >information field on the nagios web interface. It seems like a whitespace >or hidden character issue, but perls chomp doesn't solve it. > >Here's what the output looks like when the plugin is executed at the command >line... > ># ./check_cache 90 95 >Percent Dirty Pages 73 > >Here's what nagios is displaying in the status information field... >Percent Dirty Pages > >So it's the variable ($dirtypages) derived from the output of navicli that >doesn't display. Here's the plugin (I'm aware this script does nothing, I'm >just trying to solve this particular issue)... > >#!/usr/bin/perl > >$warn = $ARGV[0]; >$crit = $ARGV[1]; >$clariion="garfunkel"; > >open (NAVIOUT, "/opt/Navisphere/bin/naviseccli -h $clariion getcache |"); >while () { > chomp $_; > if (/^Prct Dirty Cache Pages =/) { > $dirtypages = (split / +/, $_)[5]; > } >} >chomp $dirtypages; >print "Percent Dirty Pages $dirtypages"; > >Any help would be greatly appreciated. > >jd >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ >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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From service at shdawson.com Sun Aug 8 20:47:00 2010 From: service at shdawson.com (Stephen H. Dawson) Date: Sun, 8 Aug 2010 14:47:00 -0400 Subject: Calculations of RRD data Message-ID: <61E00905F4734124A0E64CB7BAB07B7B@Because> Hi, Not sure if this is the correct place to ask this question, but starting here. We use Nagios for lots of monitoring, and store that data in the RRD database. We graph that data. Life is good. We have some odd thoughts about "what if" scenarios, where we need to further review the data in the RRD database. Simple arithmetic calculations of minus, division, and then some averaging of some of those minus and division outputs. We really do not want to put the monitored data into a SQL database. How (hopefully) does one do arithmetic calculations of data in an RRD database, please? Thank you, kindly SHD -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From lists at xodus.org Mon Aug 9 01:06:48 2010 From: lists at xodus.org (Marc Powell) Date: Sun, 8 Aug 2010 18:06:48 -0500 Subject: Calculations of RRD data In-Reply-To: <61E00905F4734124A0E64CB7BAB07B7B@Because> References: <61E00905F4734124A0E64CB7BAB07B7B@Because> Message-ID: <4E380FB7-A635-4A9C-A409-4454DBAB4DEE@xodus.org> On Aug 8, 2010, at 1:47 PM, Stephen H. Dawson wrote: > We really do not want to put the monitored data into a SQL database. How (hopefully) does one do arithmetic calculations of data in an RRD database, please? You can do it directly with through rrdtool (i.e. 'rrdtool graph...'). CDEF's and VDEF's can have an arbitrary RPN calculation performed on them. This might help -- http://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html#CDEF -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at flatto.net Mon Aug 9 11:17:20 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 09 Aug 2010 10:17:20 +0100 Subject: Problem with avail.cgi Message-ID: <4C5FC7A0.60105@flatto.net> Hello I have an issue with the avail.cgi and wanted to know if anyone else has encountered this behaviour . I ask nagios to produce a report for a service of the last 7 days . but when i get the report i see in the output a table with entries more then a week old , example : 1-08-2010 00:00:00 to 08-08-2010 00:00:00 Duration: 7d 0h 0m 0s First assumed service state: Report period: Backtracked archives: [ Availability report completed in 0 min 13 sec ] but in the summery table : Service Log Entries: [ View full log entries ] Event Start Time Event End Time Event Duration Event/State Type Event/State Information 28-07-2010 00:00:00 28-07-2010 09:45:29 0d 9h 45m 29s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.020 second response time 29-07-2010 00:00:00 29-07-2010 10:20:56 0d 10h 20m 56s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.022 second response time 30-07-2010 00:00:00 31-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.016 second response time 31-07-2010 00:00:00 01-08-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.030 second response time 01-08-2010 00:00:00 02-08-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.021 second response time 02-08-2010 00:00:00 02-08-2010 14:38:47 0d 14h 38m 47s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.027 second response time 03-08-2010 00:00:00 03-08-2010 11:51:23 0d 11h 51m 23s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.021 second response time 04-08-2010 00:00:00 04-08-2010 08:41:24 0d 8h 41m 24s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.031 second response time As you can see the report does not provide the details i asked for and it claims to provide and that subverts my statistics . Any one encountred this before ? can you recommend a way to fix this ? I am using nagios 3.2.0 from source. Thanks -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From lists at xodus.org Mon Aug 9 13:38:04 2010 From: lists at xodus.org (Marc Powell) Date: Mon, 9 Aug 2010 06:38:04 -0500 Subject: Problem with avail.cgi In-Reply-To: <4C5FC7A0.60105@flatto.net> References: <4C5FC7A0.60105@flatto.net> Message-ID: On Aug 9, 2010, at 4:17 AM, Assaf Flatto wrote: > but in the summery table : > > Service Log Entries: > [ View full log entries ] > Event Start Time Event End Time Event Duration Event/State Type Event/State Information > 28-07-2010 00:00:00 28-07-2010 09:45:29 0d 9h 45m 29s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.020 second response time > 29-07-2010 00:00:00 29-07-2010 10:20:56 0d 10h 20m 56s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.022 second response time > 30-07-2010 00:00:00 31-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.016 second response time > 31-07-2010 00:00:00 01-08-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.030 second response time > 01-08-2010 00:00:00 02-08-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.021 second response time > 02-08-2010 00:00:00 02-08-2010 14:38:47 0d 14h 38m 47s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.027 second response time > 03-08-2010 00:00:00 03-08-2010 11:51:23 0d 11h 51m 23s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.021 second response time > 04-08-2010 00:00:00 04-08-2010 08:41:24 0d 8h 41m 24s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.031 second response time > > As you can see the report does not provide the details i asked for and it claims to provide and that subverts my statistics . > > Any one encountred this before ? can you recommend a way to fix this ? I suspect this is because you've specified 4 backtracked archives when running the report (4 days if you have daily log rotation set up). Try specifying 0. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at flatto.net Mon Aug 9 14:26:36 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 09 Aug 2010 13:26:36 +0100 Subject: Problem with avail.cgi In-Reply-To: References: <4C5FC7A0.60105@flatto.net> Message-ID: <4C5FF3FC.5010208@flatto.net> Marc Powell wrote: > On Aug 9, 2010, at 4:17 AM, Assaf Flatto wrote: > > >> but in the summery table : >> >> Service Log Entries: >> [ View full log entries ] >> Event Start Time Event End Time Event Duration Event/State Type Event/State Information >> 28-07-2010 00:00:00 28-07-2010 09:45:29 0d 9h 45m 29s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.020 second response time >> 29-07-2010 00:00:00 29-07-2010 10:20:56 0d 10h 20m 56s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.022 second response time >> 30-07-2010 00:00:00 31-07-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.016 second response time >> 31-07-2010 00:00:00 01-08-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.030 second response time >> 01-08-2010 00:00:00 02-08-2010 00:00:00 1d 0h 0m 0s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.021 second response time >> 02-08-2010 00:00:00 02-08-2010 14:38:47 0d 14h 38m 47s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.027 second response time >> 03-08-2010 00:00:00 03-08-2010 11:51:23 0d 11h 51m 23s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.021 second response time >> 04-08-2010 00:00:00 04-08-2010 08:41:24 0d 8h 41m 24s SERVICE OK (HARD) HTTP OK: HTTP/1.1 302 Found - 611 bytes in 0.031 second response time >> >> As you can see the report does not provide the details i asked for and it claims to provide and that subverts my statistics . >> >> Any one encountred this before ? can you recommend a way to fix this ? >> > > I suspect this is because you've specified 4 backtracked archives when running the report (4 days if you have daily log rotation set up). Try specifying 0. > > -- > Marc > > Marc I did as you suggested and indeed the "extra" days are no longer appearing in the report , however i am seeing another odd occurrence : On the report summery i get one stat and when selecting that service in the report i get a different result . Servicegroup 'Weekly-report' Service State Breakdowns: Host Service % Time OK % Time Warning % Time Unknown % Time Critical % Time Undetermined XXXX dispacth.check 99.797% (99.797%) 0.000% (0.000%) 0.000% (0.000%) 0.203% (0.203%) 0.000% then selecting it on the report : Service 'dispacth. check' On Host 'XXXX' Availability Report 02-08-2010 13:19:12 to 09-08-2010 13:19:12 Duration: 7d 0h 0m 0s First assumed service state: Report period: Backtracked archives: [ Availability report completed in 0 min 9 sec ] Service State Breakdowns: State Type / Reason Time % Total Time % Known Time OK Unscheduled 6d 23h 54m 50s 99.949% 99.949% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 6d 23h 54m 50s 99.949% 99.949% Can you assist on this ? Thanks -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jim at jimavery.me.uk Mon Aug 9 17:16:29 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 9 Aug 2010 16:16:29 +0100 Subject: Passive freshness checks -> active checks In-Reply-To: <364707D7-0ED6-4744-939F-3486E2B230EC@gmail.com> References: <364707D7-0ED6-4744-939F-3486E2B230EC@gmail.com> Message-ID: On 6 August 2010 17:02, Charlie Reddington wrote: > Hi All, > > I'm having a bit of a problem with my nagios setup. I'm trying to move > toward passive checks, with failover being a active check. For now, my > failover check command is just a one liner that returns critical with > a message. > > I'm it's looking like the active check is being run, even when I see > the corresponding passive check coming in. I suspect it may be in my > configs somewhere, but I'm not sure what is wrong yet. > > The big kicker of this, is it's not all of my checks. Only some of > them. They all have different freshness thresholds, but that doesn't > seem to be common. Their configs are the same, but in a different > order, and that doesn't seem like the problem either as it's affecting > some of one, and not of the other. > > Any thoughts of what I may be doing wrong? > > Charlie > > --- I can't see any problem with the config below. If you have dozens of checks set up this way and they are all set up in crontab to run at */15 then you will get a storm of checks at each 15 minute intervals. I normally make sure I stagger the checks in cron so that they are reasonably evenly spaced. If you have thousands it might also be worth introducing a small random sleep to spread them out even more. I've not had any problems with it myself, but if you have a very busy system, you might need to check that the command buffers aren't filling (run /usr/local/nagios/bin/nagiosstats to list the current Nagios statistics). Check the logs from nsca too. If I recall correctly you may need to set debug=1 in nsca.cfg for a while to get enough information. One problem I sometimes see occurs when the clock on the sending server is way out of sync with the clock on the Nagios server, nsca will complain and not process the check. See this section in the nsca.cfg file: # MAX PACKET AGE OPTION # This option is used by the nsca daemon to determine when client # data is too old to be valid. Keeping this value as small as # possible is recommended, as it helps prevent the possibility of # "replay" attacks. This value needs to be at least as long as # the time it takes your clients to send their data to the server. # Values are in seconds. The max packet age cannot exceed 15 # minutes (900 seconds). If this variable is set to zero (0), no # packets will be rejected based on their age. max_packet_age=30 If I recall, I increased this from some smaller value to make it more forgiving of systems which are a bit out of sync. I hope that's pointed you in the right direction. Cheers, Jim > > > Nagios Version: 3.2.0 > > I have a service template definition that looks like this. > define service{ > ? ? ? ? name ? ? ? ? ? ? ? ? ? ? ? ? ? ?passive-service > ? ? ? ? check_freshness ? ? ? ? ? ? ? ? 1 > ? ? ? ? active_checks_enabled ? ? ? ? ? 0 > ? ? ? ? passive_checks_enabled ? ? ? ? ?1 > ? ? ? ? parallelize_check ? ? ? ? ? ? ? 1 > ? ? ? ? obsess_over_service ? ? ? ? ? ? 0 > ? ? ? ? notifications_enabled ? ? ? ? ? 0 > ? ? ? ? event_handler_enabled ? ? ? ? ? 0 > ? ? ? ? flap_detection_enabled ? ? ? ? ?0 > ? ? ? ? failure_prediction_enabled ? ? ?0 > ? ? ? ? process_perf_data ? ? ? ? ? ? ? 1 > ? ? ? ? retain_status_information ? ? ? 1 > ? ? ? ? retain_nonstatus_information ? ?1 > ? ? ? ? is_volatile ? ? ? ? ? ? ? ? ? ? 0 > ? ? ? ? check_period ? ? ? ? ? ? ? ? ? ?24x7 > ? ? ? ? max_check_attempts ? ? ? ? ? ? ?1 > ? ? ? ? contact_groups ? ? ? ? ? ? ? ? ?admins > ? ? ? ? notification_options ? ? ? ? ? ?w,c,r > ? ? ? ? notification_interval ? ? ? ? ? 60 > ? ? ? ? notification_period ? ? ? ? ? ? 24x7 > ? ? ? ? register ? ? ? ? ? ? ? ? ? ? ? ?0 > ? ? ? ? } > > And then I have a services defined like so. > # Free Memory Check > define service{ > ? ? ? ? use ? ? ? ? ? ? ? ? ? ? passive-service > ? ? ? ? service_description ? ? Passive Memory Check > ? ? ? ? check_command ? ? ? ? ? check_stale > ? ? ? ? hostgroups ? ? ? ? ? ? ?passive > ? ? ? ? freshness_threshold ? ? 3600 > ? ? ? ? } > > My active checks are defined with. > # alert on stale ? ?define command{ ? ? ? ?command_name > check_stale > ? ? ? ? command_line ? ? ? ? ? ?$USER1$/check_dummy 2 "Check is > stale, please run manually" > ? ? ? ? } > > On my host, I use cron jobs to run things like this. I use > nsca_wrapper to send my check results to the central nagios server. > # Check Free Memory > */15 * * * * root /usr/local/nagios/libexec/nsca_wrapper.sh -H > server.name -S 'Passive Memory Check' -C '/usr/local/nagios/libexec/ > check_memory -w 10 -c 5' ?>& /dev/null > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Mon Aug 9 17:34:53 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 9 Aug 2010 16:34:53 +0100 Subject: Calculations of RRD data In-Reply-To: <61E00905F4734124A0E64CB7BAB07B7B@Because> References: <61E00905F4734124A0E64CB7BAB07B7B@Because> Message-ID: On 8 August 2010 19:47, Stephen H. Dawson wrote: > Hi, > > > Not sure if this is the correct place to ask this question, but starting > here. > > We use Nagios for lots of monitoring, and store that data in the RRD > database.? We graph that data.? Life is good.? We have some odd thoughts > about "what if" scenarios, where we need to further review the data in the > RRD database.? Simple arithmetic calculations of minus, division, and then > some averaging of some of those minus and division outputs. > > We really do not want to put the monitored data into a SQL database.? How > (hopefully) does one do arithmetic calculations of data in an RRD database, > please? I find DRRAW really useful for that sort of thing. As Marc said, you can use rrdgraph to do these things - DRRAW just makes it easier. For a version which was developed to add functionality specific to PNP4Nagios, see: http://www.semintelligent.com/blog/articles/39/pnp-aware-version-of-drraw-released I'm not sure if this was ever rolled in to the main DRRAW release which is at http://web.taranis.org/drraw/ You can also use the rrdtool xport utility to export information from an rrd to a .xml, doing some calc on it in the process, for example here's one where I get data from three different rrd files: #!/bin/sh rrdtool xport \ --start "end -14 day" \ --end "07/12/2010 00:00" \ --step 3600 \ --enumds \ DEF:a=/usr/local/nagios/share/perfdata//chp-p15/Load.rrd:1:AVERAGE \ DEF:e=/usr/local/nagios/share/perfdata//chp-p16/Load.rrd:1:AVERAGE \ DEF:b=/usr/local/nagios/share/perfdata//chp-p15/BIS_count_tBPInstances.rrd:1:MIN \ DEF:c=/usr/local/nagios/share/perfdata//chp-p15/BIS_count_tBPInstances.rrd:1:MAX \ CDEF:d=c,b,- \ XPORT:a:"Load Average App" \ XPORT:e:"Load Average DB" \ XPORT:d:"tBPInstances Delta" \ XPORT:b:"tBPInstances Min" \ XPORT:c:"tBPInstances Max" > 14days-to-20100623.xml The xml file can then be easily imported in to Microsoft Excel so you can do futher maths on it if you wish. See: http://oss.oetiker.ch/rrdtool/doc/rrdxport.en.html Another neat thing you can do is use rrdcgi to publish graphs on the web. See: http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html I found the learning curve for all this lot fairly steep, but using drraw helps (as it can show you what rrd commands it is building) and the rewards are great. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From charlie.reddington at gmail.com Mon Aug 9 17:38:25 2010 From: charlie.reddington at gmail.com (Charlie Reddington) Date: Mon, 9 Aug 2010 10:38:25 -0500 Subject: Passive freshness checks -> active checks In-Reply-To: References: <364707D7-0ED6-4744-939F-3486E2B230EC@gmail.com> Message-ID: > I can't see any problem with the config below. If you have dozens of > checks set up this way and they are all set up in crontab to run at > */15 then you will get a storm of checks at each 15 minute intervals. > I normally make sure I stagger the checks in cron so that they are > reasonably evenly spaced. If you have thousands it might also be > worth introducing a small random sleep to spread them out even more. > > I've not had any problems with it myself, but if you have a very busy > system, you might need to check that the command buffers aren't > filling (run /usr/local/nagios/bin/nagiosstats to list the current > Nagios statistics). > > Check the logs from nsca too. If I recall correctly you may need to > set debug=1 in nsca.cfg for a while to get enough information. One > problem I sometimes see occurs when the clock on the sending server is > way out of sync with the clock on the Nagios server, nsca will > complain and not process the check. See this section in the nsca.cfg > file: > > # MAX PACKET AGE OPTION > # This option is used by the nsca daemon to determine when client > # data is too old to be valid. Keeping this value as small as > # possible is recommended, as it helps prevent the possibility of > # "replay" attacks. This value needs to be at least as long as > # the time it takes your clients to send their data to the server. > # Values are in seconds. The max packet age cannot exceed 15 > # minutes (900 seconds). If this variable is set to zero (0), no > # packets will be rejected based on their age. > > max_packet_age=30 > > If I recall, I increased this from some smaller value to make it more > forgiving of systems which are a bit out of sync. > > > I hope that's pointed you in the right direction. > > Cheers, > > Jim Hey Jim, Thanks for the info, I have increased the time offset to be a minute or two. But all our systems should be close as we use NTP to keep them in sync, and nagios currently does active checks on this one to make sure things are happy. I'll check out the stats and turn on debugging next to see if there is anything there. In the mean time, what version of nagios are you running? Thanks, Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From service at shdawson.com Mon Aug 9 17:39:11 2010 From: service at shdawson.com (Stephen H. Dawson) Date: Mon, 9 Aug 2010 11:39:11 -0400 Subject: Calculations of RRD data In-Reply-To: References: <61E00905F4734124A0E64CB7BAB07B7B@Because> Message-ID: Yes, we use DRRAW as well. However, running those cal's, and then graphing within Nagios or DRRAW or pnp4nagios would be nice. I guess it is an export from RRD, do the calc's, and review outside of Nagios/DRRAW/pnp4nagios kind of thing? Thanks, SHD -----Original Message----- From: averyjim at gmail.com [mailto:averyjim at gmail.com] On Behalf Of Jim Avery Sent: Monday, August 09, 2010 11:35 E/T To: service at shdawson.com; Nagios Users List Subject: Re: [Nagios-users] Calculations of RRD data On 8 August 2010 19:47, Stephen H. Dawson wrote: > Hi, > > > Not sure if this is the correct place to ask this question, but > starting here. > > We use Nagios for lots of monitoring, and store that data in the RRD > database.? We graph that data.? Life is good.? We have some odd > thoughts about "what if" scenarios, where we need to further review > the data in the RRD database.? Simple arithmetic calculations of > minus, division, and then some averaging of some of those minus and division outputs. > > We really do not want to put the monitored data into a SQL database.? > How > (hopefully) does one do arithmetic calculations of data in an RRD > database, please? I find DRRAW really useful for that sort of thing. As Marc said, you can use rrdgraph to do these things - DRRAW just makes it easier. For a version which was developed to add functionality specific to PNP4Nagios, see: http://www.semintelligent.com/blog/articles/39/pnp-aware-version-of-drraw-re leased I'm not sure if this was ever rolled in to the main DRRAW release which is at http://web.taranis.org/drraw/ You can also use the rrdtool xport utility to export information from an rrd to a .xml, doing some calc on it in the process, for example here's one where I get data from three different rrd files: #!/bin/sh rrdtool xport \ --start "end -14 day" \ --end "07/12/2010 00:00" \ --step 3600 \ --enumds \ DEF:a=/usr/local/nagios/share/perfdata//chp-p15/Load.rrd:1:AVERAGE \ DEF:e=/usr/local/nagios/share/perfdata//chp-p16/Load.rrd:1:AVERAGE \ DEF:b=/usr/local/nagios/share/perfdata//chp-p15/BIS_count_tBPInstances.rrd:1 :MIN \ DEF:c=/usr/local/nagios/share/perfdata//chp-p15/BIS_count_tBPInstances.rrd:1 :MAX \ CDEF:d=c,b,- \ XPORT:a:"Load Average App" \ XPORT:e:"Load Average DB" \ XPORT:d:"tBPInstances Delta" \ XPORT:b:"tBPInstances Min" \ XPORT:c:"tBPInstances Max" > 14days-to-20100623.xml The xml file can then be easily imported in to Microsoft Excel so you can do futher maths on it if you wish. See: http://oss.oetiker.ch/rrdtool/doc/rrdxport.en.html Another neat thing you can do is use rrdcgi to publish graphs on the web. See: http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html I found the learning curve for all this lot fairly steep, but using drraw helps (as it can show you what rrd commands it is building) and the rewards are great. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Mon Aug 9 17:46:58 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 9 Aug 2010 16:46:58 +0100 Subject: Passive freshness checks -> active checks In-Reply-To: References: <364707D7-0ED6-4744-939F-3486E2B230EC@gmail.com> Message-ID: On 9 August 2010 16:38, Charlie Reddington wrote: > I have increased the time offset to be a minute or two. But all our systems > should be close as we use NTP to keep them in sync, and nagios currently > does active checks on this one to make sure things are happy. That's the ideal thing to do, yes. > I'll check out the stats and turn on debugging next to see if there is > anything there. In the mean time, what version of nagios are you running? Nagios Core 3.2.1 Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Mon Aug 9 18:00:40 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 9 Aug 2010 17:00:40 +0100 Subject: Calculations of RRD data In-Reply-To: References: <61E00905F4734124A0E64CB7BAB07B7B@Because> Message-ID: On 9 August 2010 16:39, Stephen H. Dawson wrote: > Yes, we use DRRAW as well. ?However, running those cal's, and then graphing > within Nagios or DRRAW or pnp4nagios would be nice. > > I guess it is an export from RRD, do the calc's, and review outside of > Nagios/DRRAW/pnp4nagios kind of thing? It depends what you want do do. I do a lot of simple maths using DRRAW in the CDEF field for each data source or by adding CDEF lines. Don't forget you can hide datasources by setting "-Nothing-" for the line/area type so you can just display the results not the original data. For some things where drraw can't quite cut it, I use rrdgraph outside of DRRAW (typically I use rrdcgi so I can easily publish to the web). See: http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html I only bother exporting to .xml and import to Excel when I want to do really fancy scatter graphs and regression analysis. If you're going to want the performance data in a database all the time, you might consider changing your Nagios perfdata processing config to output the data to MySQL or whatever instead of or as well as to PNP. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From service at shdawson.com Mon Aug 9 18:20:23 2010 From: service at shdawson.com (Stephen H. Dawson) Date: Mon, 9 Aug 2010 12:20:23 -0400 Subject: Calculations of RRD data In-Reply-To: References: <61E00905F4734124A0E64CB7BAB07B7B@Because> Message-ID: Thanks, SHD -----Original Message----- From: averyjim at gmail.com [mailto:averyjim at gmail.com] On Behalf Of Jim Avery Sent: Monday, August 09, 2010 12:01 E/T To: service at shdawson.com Cc: Nagios Users List Subject: Re: [Nagios-users] Calculations of RRD data On 9 August 2010 16:39, Stephen H. Dawson wrote: > Yes, we use DRRAW as well. ?However, running those cal's, and then > graphing within Nagios or DRRAW or pnp4nagios would be nice. > > I guess it is an export from RRD, do the calc's, and review outside of > Nagios/DRRAW/pnp4nagios kind of thing? It depends what you want do do. I do a lot of simple maths using DRRAW in the CDEF field for each data source or by adding CDEF lines. Don't forget you can hide datasources by setting "-Nothing-" for the line/area type so you can just display the results not the original data. For some things where drraw can't quite cut it, I use rrdgraph outside of DRRAW (typically I use rrdcgi so I can easily publish to the web). See: http://oss.oetiker.ch/rrdtool/doc/rrdcgi.en.html I only bother exporting to .xml and import to Excel when I want to do really fancy scatter graphs and regression analysis. If you're going to want the performance data in a database all the time, you might consider changing your Nagios perfdata processing config to output the data to MySQL or whatever instead of or as well as to PNP. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From shane.killian at irishjobs.ie Mon Aug 9 18:49:47 2010 From: shane.killian at irishjobs.ie (Shane Killian) Date: Mon, 9 Aug 2010 17:49:47 +0100 Subject: Nagios Deployment Message-ID: Hi all, I'n planning a nagios deployment at the moment but I am new to Nagios and would like to confirm that it has the features I require. I've used Nagios in the past but have never set it up from scratch. I've also been playing with Lilac over the last couple of days but I think a "Nagios only" install is the way to go. I will be deploying on Ubuntu server and I need to monitor about 100 Windows Servers and 25 Ubuntu/CentOS boxes. Services that I need to monitor: Exchange 2007 SQL Server MDaemon OpenX and the the usual. What is the easiest way to go about doing this? I would also like to monito email be sending a mail to an "echo" address and then checking for a response. I've read a reasonable amount of documentation and learned a little from trial and error but if someone could. Point me in the right direction I'd really appreciate it. Thanks Shane -------------------------- Sent using BlackBerry E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jc_322 at hotmail.com Mon Aug 9 19:25:42 2010 From: jc_322 at hotmail.com (The Champ) Date: Mon, 9 Aug 2010 17:25:42 +0000 Subject: Nagios Deployment In-Reply-To: References: Message-ID: Mujeeb can you please up load it here? Rapidshare.com > From: shane.killian at irishjobs.ie > To: nagios-users at lists.sourceforge.net > Date: Mon, 9 Aug 2010 17:49:47 +0100 > Subject: [Nagios-users] Nagios Deployment > > Hi all, > > I'n planning a nagios deployment at the moment but I am new to Nagios and would like to confirm that it has the features I require. > > I've used Nagios in the past but have never set it up from scratch. I've also been playing with Lilac over the last couple of days but I think a "Nagios only" install is the way to go. > > I will be deploying on Ubuntu server and I need to monitor about 100 Windows Servers and 25 Ubuntu/CentOS boxes. > > Services that I need to monitor: > > Exchange 2007 > SQL Server > MDaemon > OpenX and the the usual. > > What is the easiest way to go about doing this? > > I would also like to monito email be sending a mail to an "echo" address and then checking for a response. > > I've read a reasonable amount of documentation and learned a little from trial and error but if someone could. Point me in the right direction I'd really appreciate it. > > > Thanks > > > Shane > -------------------------- > Sent using BlackBerry > > E-mail Disclaimer: > > The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com > > saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jbrooks at oddelement.com Mon Aug 9 19:31:20 2010 From: jbrooks at oddelement.com (Joel Brooks) Date: Mon, 9 Aug 2010 13:31:20 -0400 Subject: question about notifications Message-ID: hey all, is there a way to include the WARNING and CRITICAL thresholds in a notification (without including the perfdata)? There doesn't seem to be a macro for this. i.e., i'd like my notification to show something like: $SERVICEDESC$ is in $SERVICESTATE$ condition. $SERVICEOUTPUT$ Current: $SERVICEVAL$ (Warning: $SERVICEWARNING$, Critical: $SERVICECRITICAL$) is there a way to do something like that? cheers, J -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jim at jimavery.me.uk Mon Aug 9 20:00:02 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 9 Aug 2010 19:00:02 +0100 Subject: Nagios Deployment In-Reply-To: References: Message-ID: On 9 August 2010 17:49, Shane Killian wrote: > I've read a reasonable amount of documentation and learned a little from trial and error but if someone could. Point me in the right direction I'd really appreciate it. I think that's the thing - the documentation is great for sorting out the nitty-gritty but not always so good for understanding how it's all supposed to work together. What I did, and what I recommend anyone new to Nagios to do is to get hold of one of the books about Nagios - my favourite (and I won't pretend I've read them all) is the one by Wolfgang Barth published by No Starch Press. http://nostarch.com/nagios.htm ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at herb-j.com Mon Aug 9 20:00:54 2010 From: nagios at herb-j.com (Herb J.) Date: Mon, 09 Aug 2010 14:00:54 -0400 Subject: question about notifications In-Reply-To: References: Message-ID: <4C604256.1040303@herb-j.com> I assume that there wouldn't be a macro for it due to the fact that it is normally up to the plugin / service check to determine and know what the thresholds are in order to know what exit code to return back to Nagios. Your best chance may be to define those values as service macros. That way you would be able to pass them through to your plugin (assuming your plugin accepts WARN and CRIT as command line args) as well as your notification command (possibly a special secondary notification command that adds the WARN and CRIT macro values to the message). On 08/09/2010 01:31 PM, Joel Brooks wrote: > hey all, > > is there a way to include the WARNING and CRITICAL thresholds in a > notification (without including the perfdata)? > > There doesn't seem to be a macro for this. > > i.e., i'd like my notification to show something like: > > > $SERVICEDESC$ is in $SERVICESTATE$ condition. > > $SERVICEOUTPUT$ > Current: $SERVICEVAL$ (Warning: $SERVICEWARNING$, Critical: > $SERVICECRITICAL$) > > is there a way to do something like that? > > cheers, > > J > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jim at jimavery.me.uk Mon Aug 9 20:12:11 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 9 Aug 2010 19:12:11 +0100 Subject: question about notifications In-Reply-To: References: Message-ID: On 9 August 2010 18:31, Joel Brooks wrote: > hey all, > > is there a way to include the WARNING and CRITICAL thresholds in a > notification (without including the perfdata)? > > There doesn't seem to be a macro for this. > > i.e., i'd like my notification to show something like: > > > $SERVICEDESC$ is in $SERVICESTATE$ condition. > > $SERVICEOUTPUT$ > Current: $SERVICEVAL$ (Warning: $SERVICEWARNING$, Critical: > $SERVICECRITICAL$) > > is there a way to do something like that? If only ... Seriously though, a warning or critical state in Nagios isn't necessarily anything to do with a threshold. For example, you could have a check_groovy plugin which warns if the colour is silver or white and is critical if the colour is navy or grey. There's no threshold so nothing to store in a macro. If you want to output both warning and critical values, you will need to re-write the plugin to show them explicitly. So, for example if you have a check_mydisk plugin which outputs "warning: disk is 82% (>80%)" you will need to re-code it to say "warning: disk is 82% (> 80% < 90%)" or somesuch instead. Most people who write plugins prefer brevity so you'll rarely see a plugin which (except in the performance data) outputs both. Push comes to shove you could write a wrapper script around an existing plugin which scrapes the warning and critical thresholds from the performance data, but personally I think that would be overkill. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From gregborbonus at gmail.com Mon Aug 9 20:24:21 2010 From: gregborbonus at gmail.com (gregborbonus at gmail.com) Date: Mon, 9 Aug 2010 18:24:21 +0000 Subject: question about notifications In-Reply-To: References: Message-ID: <236619588-1281378295-cardhu_decombobulator_blackberry.rim.net-376884322-@bda516.bisx.prod.on.blackberry> Are the command arguments passed in a scope? Such as check_groovy!WARN!CRIT If so, you could do arg1 and arg2 The best solution is to code the output of the service check. The above will not work for all checks as some do reverse, and others have different arguments. I am simply presenting a different point of view. Sent via BlackBerry from T-Mobile -----Original Message----- From: Jim Avery Date: Mon, 9 Aug 2010 19:12:11 To: Nagios Users List Reply-To: Nagios Users List Subject: Re: [Nagios-users] question about notifications On 9 August 2010 18:31, Joel Brooks wrote: > hey all, > > is there a way to include the WARNING and CRITICAL thresholds in a > notification (without including the perfdata)? > > There doesn't seem to be a macro for this. > > i.e., i'd like my notification to show something like: > > > $SERVICEDESC$ is in $SERVICESTATE$ condition. > > $SERVICEOUTPUT$ > Current: $SERVICEVAL$ (Warning: $SERVICEWARNING$, Critical: > $SERVICECRITICAL$) > > is there a way to do something like that? If only ... Seriously though, a warning or critical state in Nagios isn't necessarily anything to do with a threshold. For example, you could have a check_groovy plugin which warns if the colour is silver or white and is critical if the colour is navy or grey. There's no threshold so nothing to store in a macro. If you want to output both warning and critical values, you will need to re-write the plugin to show them explicitly. So, for example if you have a check_mydisk plugin which outputs "warning: disk is 82% (>80%)" you will need to re-code it to say "warning: disk is 82% (> 80% < 90%)" or somesuch instead. Most people who write plugins prefer brevity so you'll rarely see a plugin which (except in the performance data) outputs both. Push comes to shove you could write a wrapper script around an existing plugin which scrapes the warning and critical thresholds from the performance data, but personally I think that would be overkill. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From a31modela at hotmail.com Mon Aug 9 21:23:14 2010 From: a31modela at hotmail.com (steve f) Date: Mon, 9 Aug 2010 15:23:14 -0400 Subject: ? on monitoring the distribution servers Message-ID: I finally got a distributed server up & running in Core 3.x and have a stupid question on monitoring the dist server. I have the central server currently configured to not do active checks. On the distributed server, I had all of the localhost.cfg checks running and in the nagios.log on the central server, I see the following : EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;localhost;Root Partition;0;DISK OK - free space: / 827 MB (86% inode=88%): [1281213501] PASSIVE SERVICE CHECK: localhost;Root Partition;0;DISK OK - free space: / 827 MB (86% inode=88%): This is coming as a passive check from the distributed server with the hostname of localhost and as such, it appears that on the central server its using this check result & populating the checks for the central server. if I wanted to monitor the distributed server, would I not use the localhost.cfg on the distributed server? SHould I rename everything localhost in localhost.cfg to the name of the distributed server? Whats the most rational way to monitor the distributed server ? Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From nagios at herb-j.com Mon Aug 9 21:40:11 2010 From: nagios at herb-j.com (Herb J.) Date: Mon, 09 Aug 2010 15:40:11 -0400 Subject: ? on monitoring the distribution servers In-Reply-To: References: Message-ID: <4C60599B.60003@herb-j.com> I don't use "localhost" in any host or service configs. There is no use for "localhost", since it is such an ambiguous hostname. In a distributed setup where there are multiple sources feeding data into a single server, *every* host name must be unique, otherwise they clobber each other's data (as you have noticed). I use the actual FQDN hostnames of the collectors (even the central one) in the configs. When there is an issue with a service on one of the collectors, it shows up in the interface under that particular collector's hostname, so I know exactly which one is broken. On 08/09/2010 03:23 PM, steve f wrote: > I finally got a distributed server up & running in Core 3.x and have a > stupid question on monitoring the dist server. I have the central > server currently configured to not do active checks. On the > distributed server, I had all of the localhost.cfg checks running and > in the nagios.log on the central server, I see the following : > > EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;localhost;Root > Partition;0;DISK OK - free space: / 827 MB (86% inode=88%): > [1281213501] PASSIVE SERVICE CHECK: localhost;Root Partition;0;DISK OK > - free space: / 827 MB (86% inode=88%): > > This is coming as a passive check from the distributed server with the > hostname of localhost and as such, it appears that on the central > server its using this check result & populating the checks for the > central server. > > if I wanted to monitor the distributed server, would I not use the > localhost.cfg on the distributed server? SHould I rename everything > localhost in localhost.cfg to the name of the distributed server? > > Whats the most rational way to monitor the distributed server ? > > Thanks, > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From pangrazi at gmail.com Mon Aug 9 22:50:55 2010 From: pangrazi at gmail.com (Greg Pangrazio) Date: Mon, 9 Aug 2010 15:50:55 -0500 Subject: Nagios Deployment In-Reply-To: References: Message-ID: I use nagios on Ubuntu both 10.04 and 8.04. I recommend installing from source as it is much more stable and works better with the plugins etc. than the default Ubuntu package. Other than that since you look to be monitoring lots of windows hosts i would suggest checking out wmi which was not too difficult to install on Ubuntu 10.04LTS. Greg Pangrazio On Mon, Aug 9, 2010 at 1:00 PM, Jim Avery wrote: > On 9 August 2010 17:49, Shane Killian wrote: > >> I've read a reasonable amount of documentation and learned a little from trial and error but if someone could. Point me in the right direction I'd really appreciate it. > > I think that's the thing - the documentation is great for sorting out > the nitty-gritty but not always so good for understanding how it's all > supposed to work together. > > What I did, and what I recommend anyone new to Nagios to do is to get > hold of one of the books about Nagios - my favourite (and I won't > pretend I've read them all) is the one by Wolfgang Barth published by > No Starch Press. > > http://nostarch.com/nagios.htm > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From lists at xodus.org Tue Aug 10 04:01:12 2010 From: lists at xodus.org (Marc Powell) Date: Mon, 9 Aug 2010 21:01:12 -0500 Subject: question about notifications In-Reply-To: <236619588-1281378295-cardhu_decombobulator_blackberry.rim.net-376884322-@bda516.bisx.prod.on.blackberry> References: <236619588-1281378295-cardhu_decombobulator_blackberry.rim.net-376884322-@bda516.bisx.prod.on.blackberry> Message-ID: <717DD1C1-AB53-40A5-8A23-E47D68F29440@xodus.org> On Aug 9, 2010, at 1:24 PM, gregborbonus at gmail.com wrote: > Are the command arguments passed in a scope? > > Such as check_groovy!WARN!CRIT > > If so, you could do arg1 and arg2 These would only be available to the check_command, not the notification command. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Sebastian.Ries at dtnet.de Tue Aug 10 08:12:31 2010 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Tue, 10 Aug 2010 08:12:31 +0200 Subject: check_proc --metric=CPU - alternatives? Message-ID: <1281420751.2812.6.camel@bofh.dtnet.de> Hi as I'm not sure if my first attempt to send this message did work here i post it the second time: I have the following Problem: We have some Processes which are running but are idle for some time (maybe some weeks) and the get used by a user. While a single Process is used is should have a cpu usage varying between 10 and 50%. We have the problem that sometimes a process gets stuck and then is running at 100% cpu usage. => this is what we want to check via Nagios. I tried to use check_procs like: ./check_procs -w 80 -c 90 --metric=CPU --command=qemu-system-x86 but this did noch catch the processes. After some testing and searching on the internet I found out that this is depending on how ps calculates the cpu usage: It devides the cputime by the runtime of the process, giving the average cup usage over the whole process time -> which does not really help :-( Does anyone know of an alternative check which gives me the cpu usage actual of a process (or maybe the average over the last minute)? Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Tue Aug 10 09:03:59 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 10 Aug 2010 08:03:59 +0100 Subject: check_proc --metric=CPU - alternatives? In-Reply-To: <1281420751.2812.6.camel@bofh.dtnet.de> References: <1281420751.2812.6.camel@bofh.dtnet.de> Message-ID: On 10 August 2010 07:12, Sebastian Ries wrote: > Hi > > as I'm not sure if my first attempt to send this message did work here i post it the second time: > > I have the following Problem: > > We have some Processes which are running but are idle for some time > (maybe some weeks) and the get used by a user. > While a single Process is used is should have a cpu usage varying > between 10 and 50%. > We have the problem that sometimes a process gets stuck and then is > running at 100% cpu usage. > => this is what we want to check via Nagios. > > I tried to use check_procs like: > ./check_procs -w 80 -c 90 --metric=CPU --command=qemu-system-x86 > but this did noch catch the processes. > > After some testing and searching on the internet I found out that this > is depending on how ps calculates the cpu usage: > It devides the cputime by the runtime of the process, giving the average > cup usage over the whole process time -> which does not really help :-( > > Does anyone know of an alternative check which gives me the cpu usage > actual of a process (or maybe the average over the last minute)? "ps -ocputime" will give you the total cputime used since the process started. You could code a plugin which stores this then next time it's run will calculate the %cpu from the difference between the old and new values. It's a bit of a dirty solution, but this kind of thing is done in some of the snmp plugins for checking interface traffic counters for example http://nagios.manubulon.com/snmp_int.html ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Tue Aug 10 09:06:51 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 10 Aug 2010 08:06:51 +0100 Subject: check_proc --metric=CPU - alternatives? In-Reply-To: <1281420751.2812.6.camel@bofh.dtnet.de> References: <1281420751.2812.6.camel@bofh.dtnet.de> Message-ID: p.s. also take a look at: http://nagios.manubulon.com/snmp_process.html ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From michal.lackovic at cz.schneider-electric.com Tue Aug 10 09:25:06 2010 From: michal.lackovic at cz.schneider-electric.com (michal.lackovic at cz.schneider-electric.com) Date: Tue, 10 Aug 2010 09:25:06 +0200 Subject: Nagios Deployment In-Reply-To: References: Message-ID: We run nagios on virtual Opensuse servers without any problems (ESX). All our monitored hosts are windows server 2003 or greater. Before you are going to build an architecture for your own nagios implementation you have to select components - plugins, configuration tools and possibly alternate web interface. This is a brief lists of the components we have implemented: -Nagios 3.2.1 from source -NSClient++ SSL -NagiosQL for configuration -Apache with SingleSignOn implemented -Customized menu for creating custom views and entries All above mentioned components are part of "zero configuration build". Then the esx image is distributed to a data center where the team is trained to use NagiosQL interface only. Later then can maintain their infrastructure on their own. Michal Lackovic Greg Pangrazio 08/09/2010 10:50 PM Please respond to Nagios Users List To Nagios Users List cc Subject Re: [Nagios-users] Nagios Deployment I use nagios on Ubuntu both 10.04 and 8.04. I recommend installing from source as it is much more stable and works better with the plugins etc. than the default Ubuntu package. Other than that since you look to be monitoring lots of windows hosts i would suggest checking out wmi which was not too difficult to install on Ubuntu 10.04LTS. Greg Pangrazio On Mon, Aug 9, 2010 at 1:00 PM, Jim Avery wrote: > On 9 August 2010 17:49, Shane Killian wrote: > >> I've read a reasonable amount of documentation and learned a little from trial and error but if someone could. Point me in the right direction I'd really appreciate it. > > I think that's the thing - the documentation is great for sorting out > the nitty-gritty but not always so good for understanding how it's all > supposed to work together. > > What I did, and what I recommend anyone new to Nagios to do is to get > hold of one of the books about Nagios - my favourite (and I won't > pretend I've read them all) is the one by Wolfgang Barth published by > No Starch Press. > > http://nostarch.com/nagios.htm > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From rab at walkermartyn.co.uk Tue Aug 10 10:38:20 2010 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Tue, 10 Aug 2010 09:38:20 +0100 Subject: Nagios With Cacti Graphing Message-ID: I've decided to go with RHEL 5.3 as the OS for my Nagios/Cacti server. Now I've got the latest Nagios core installed and running (manual download and install), I would like to get Cacti installed and integrated with Nagios. Are there any step by step guides for getting Cacti installed and integrated that someone can point me in the direction of please? Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From mlrtime3 at gmail.com Tue Aug 10 11:57:28 2010 From: mlrtime3 at gmail.com (mlrtime3) Date: Tue, 10 Aug 2010 05:57:28 -0400 Subject: check_period host - service inheritance In-Reply-To: <1281432988.24758.1389169167@webmail.messagingengine.com> References: <1281432988.24758.1389169167@webmail.messagingengine.com> Message-ID: <1281434248.29788.1389172237@webmail.messagingengine.com> I've seen some old threads in the nagios-users group but nothing recent so I thought I'd bring it up again. I have a use case to have a single service defined for 1000's of different hosts with up to 50-100 different check_period times. The only way to do this now is to create a different service with each check_period. To do this, I would need to create 50-100 different service definitions for each check_period. It makes much more sense for the service to inherit the hosts check_period value and use this for the service. This allows me to only define one service. Does anyone know of a way to get this to work, or has anyone created a patch for 3.2.x to do this? Thanks, mlr ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rab-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org Tue Aug 10 15:33:31 2010 From: rab-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org (Robert Jackson) Date: Tue, 10 Aug 2010 14:33:31 +0100 Subject: Cacti Integration With Nagios Message-ID: I have successfully managed to get Nagios and Cacti up and running as 2 separate entities on the same server I am setting up for monitoring purposes. The question I really need to know is the best way to integrate them both so firstly RRD data is transferred into Cacti from Nagios and secondly how can I view the Cacti graphs directly from Nagios? Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- next part -------------- _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Daniel.Scharon at bsz-bw.de Tue Aug 10 16:33:43 2010 From: Daniel.Scharon at bsz-bw.de (Scharon, Daniel) Date: Tue, 10 Aug 2010 16:33:43 +0200 Subject: check_openmanage ignores blacklist directive Message-ID: <028B1A54D03E7B4482CDCA4EC8F06BFD15FCC0@Bodensee.bsz-bw.de> Hello everyone! I have an issue regarding the plugin check_openmanage: Despite of giving it the parameter to ignore Warnings about the controller firmware, it still gives a Warning Status: /usr/lib/nagios/plugins/check_openmanage -b ctrl_fw -s -H 192.168.2.137 WARNING: Controller 0 [PERC 3/Di]: Firmware '2.7-1 (Bld 3170)' is out of date The check is performed via SNMP to a Dell Poweredge 2650 with OpenManage 6 running on it. Does anyone have a clue what I'm missing here? Best regards, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2242 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From benny at bennyvision.com Tue Aug 10 16:59:49 2010 From: benny at bennyvision.com (C. Bensend) Date: Tue, 10 Aug 2010 09:59:49 -0500 Subject: check_openmanage ignores blacklist directive In-Reply-To: <028B1A54D03E7B4482CDCA4EC8F06BFD15FCC0@Bodensee.bsz-bw.de> References: <028B1A54D03E7B4482CDCA4EC8F06BFD15FCC0@Bodensee.bsz-bw.de> Message-ID: <02e7bf97c6210693c9f89e2ff250bb68.squirrel@webmail.stinkweasel.net> > Despite of giving it the parameter to ignore Warnings about the > controller firmware, it still gives a Warning Status: > > /usr/lib/nagios/plugins/check_openmanage -b ctrl_fw -s -H 192.168.2.137 'ctrl_fw' isn't the complete option you need to give there - you also need to specify the ID per: http://folk.uio.no/trondham/software/check_openmanage.8.html Try 'ctrl_fw=0,1' Benny -- "Something's going on in this house - last night, I saw a face!" "Did it have a nose?" "Yes!" "That sounds like a face all right." -- Scary Movie 4 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From t.h.amundsen at usit.uio.no Tue Aug 10 18:24:56 2010 From: t.h.amundsen at usit.uio.no (Trond Hasle Amundsen) Date: Tue, 10 Aug 2010 18:24:56 +0200 Subject: check_openmanage ignores blacklist directive In-Reply-To: <02e7bf97c6210693c9f89e2ff250bb68.squirrel@webmail.stinkweasel.net> (C. Bensend's message of "Tue, 10 Aug 2010 09:59:49 -0500") References: <028B1A54D03E7B4482CDCA4EC8F06BFD15FCC0@Bodensee.bsz-bw.de> <02e7bf97c6210693c9f89e2ff250bb68.squirrel@webmail.stinkweasel.net> Message-ID: <15ty6cebfl3.fsf@tux.uio.no> "C. Bensend" writes: >> Despite of giving it the parameter to ignore Warnings about the >> controller firmware, it still gives a Warning Status: >> >> /usr/lib/nagios/plugins/check_openmanage -b ctrl_fw -s -H 192.168.2.137 > > 'ctrl_fw' isn't the complete option you need to give there - you > also need to specify the ID per: > > http://folk.uio.no/trondham/software/check_openmanage.8.html > > Try 'ctrl_fw=0,1' Yes, or: ctrl_fw=all ..if you wish to blacklist this for all controllers and aren't interested in specifying controller IDs. Cheers, -- Trond H. Amundsen Center for Information Technology Services, University of Oslo ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Bradley.Radjoo at is.co.za Tue Aug 10 18:41:44 2010 From: Bradley.Radjoo at is.co.za (Bradley Radjoo) Date: Tue, 10 Aug 2010 18:41:44 +0200 Subject: GroundWork Monitor Community Edition 6.0(GWMCE) and Nagios 3 Message-ID: Hi All, Does anybody have any guides OR could you provide any assistance as to how to setup a single instance of GWMCE to manage multiple Nagios 3 server instances in differant locations ? ----- Regards, Bradley Radjoo Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaimers at is.co.za and a copy will be emailed to you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From gregborbonus at gmail.com Tue Aug 10 20:16:33 2010 From: gregborbonus at gmail.com (Greg Borbonus) Date: Tue, 10 Aug 2010 13:16:33 -0500 Subject: check_period host - service inheritance In-Reply-To: <1281434248.29788.1389172237@webmail.messagingengine.com> References: <1281432988.24758.1389169167@webmail.messagingengine.com> <1281434248.29788.1389172237@webmail.messagingengine.com> Message-ID: <4C619781.6010203@gmail.com> What about using service templates? That way, the check_period and such are all setup with service template directives, and your service only has to define the command and such. Thank you, Greg Borbonus *nix System Administrator gregborbonus at gmail.com On 8/10/2010 4:57 AM, mlrtime3 wrote: > I've seen some old threads in the nagios-users group but nothing recent > so I thought I'd bring it up again. > > I have a use case to have a single service defined for 1000's of > different hosts with up to 50-100 different check_period times. > > The only way to do this now is to create a different service with each > check_period. To do this, I would need to create 50-100 different > service definitions for each check_period. > > It makes much more sense for the service to inherit the hosts > check_period value and use this for the service. This allows me to only > define one service. > > Does anyone know of a way to get this to work, or has anyone created a > patch for 3.2.x to do this? > > Thanks, > mlr > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From AHKAPLAN at PARTNERS.ORG Tue Aug 10 21:26:39 2010 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 10 Aug 2010 15:26:39 -0400 Subject: problem adding hosts to nagvis map Message-ID: Hi there -- I completed the installation of the NagVis 1.5.1 utility onto our Nagios 3.1.2 server, and I am trying to create a map. However, I am running into issues. The first is the following: Whenever I select Map -> Add Icon -> Host, I need to do that process twice before the menu appears on-screen. The second issue is more problematic. Whenever I try to add a host, I go through the motions of selecting the host_name, and then entering the x and y coordinates. Even though I have done that, I am still getting an error that reads: A necessary value is not set. All red marked values are compulsory values. What am I doing wrong here, and how can I fix it? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From joel-huebner at uiowa.edu Tue Aug 10 23:11:18 2010 From: joel-huebner at uiowa.edu (Joel Huebner) Date: Tue, 10 Aug 2010 16:11:18 -0500 Subject: help changing nagios pages to different http port Message-ID: Hi, I have other things running on the server I want to run Nagsios on. I have a web site on port 80, 81, and 8000. I wanted to run the Nagios pages on port 85. I have the main page, and the documentation page (the first two tabs) working. http://lcua141:85/nagios/main.php http://lcua141:85/nagios/docs/ But when I go to any of the other pages http://lcua141:85/nagios/cgi-bin/tac.cgi http://lcua141:85/nagios/cgi-bin/trends.cgi I get this error... I checked the nagios.log, nothing in there... Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ________________________________ Apache/2.2.14 (Ubuntu) Server at lcua141 Port 85 Any ideas' would be appreciated. jlh -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From gregborbonus at gmail.com Tue Aug 10 23:57:59 2010 From: gregborbonus at gmail.com (gregborbonus at gmail.com) Date: Tue, 10 Aug 2010 21:57:59 +0000 Subject: help changing nagios pages to different http port In-Reply-To: References: Message-ID: <1286248712-1281477512-cardhu_decombobulator_blackberry.rim.net-605053284-@bda516.bisx.prod.on.blackberry> What do the apache error logs say? Sent via BlackBerry from T-Mobile -----Original Message----- From: "Joel Huebner" Date: Tue, 10 Aug 2010 16:11:18 To: Reply-To: Nagios Users List Subject: [Nagios-users] help changing nagios pages to different http port ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From phila at cascopoint.com Wed Aug 11 01:48:53 2010 From: phila at cascopoint.com (Anton Yurchenko) Date: Tue, 10 Aug 2010 16:48:53 -0700 Subject: Service in Scheduled downtime shows up as Unscheduled under CRITICAL Message-ID: <4C61E565.4030008@cascopoint.com> Hi all, When I do an availability report for a service that had a scheduled downtime, the time that it was down shows up in both Scheduled OK state and Unscheduled Critical. I am not sure I understand this behavior, I would think that if it had scheduled downtime it should not show up at in the Critical Unscheduled category. Here is sample report below. State Type / Reason Time % Total Time % Known Time OK Unscheduled 1158050441d 6h 53m 16s -0.486% -16.780% Scheduled 0d 0h 15m 42s 1.090% 37.635% Total 0d 0h 8m 42s 0.604% 20.855% WARNING Unscheduled 0d 0h 17m 19s 1.203% 41.510% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 0h 17m 19s 1.203% 41.510% UNKNOWN Unscheduled 0d 0h 0m 0s 0.000% 0.000% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 0h 0m 0s 0.000% 0.000% CRITICAL Unscheduled 0d 0h 15m 42s 1.090% 37.635% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 0h 15m 42s 1.090% 37.635% Undetermined Nagios Not Running 0d 0h 0m 0s 0.000% Insufficient Data 0d 23h 18m 17s 97.103% Total 0d 23h 18m 17s 97.103% All Total 1d 0h 0m 0s 100.000% 100.000% Thank you in advance! Anton -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ravishankar.gundlapali at wipro.com Wed Aug 11 10:13:10 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Wed, 11 Aug 2010 13:43:10 +0530 Subject: Nagios Plugins and NSClient compatibilty In-Reply-To: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F028750E7@HYD-MKD-MBX02.wipro.com> Hi All, Request you to let me know whether the following versions of UNIX will be supported by nagios-plugins-1.4.13.tar.gz and NSClient++-0.3.6-x64.zip HP-UX : 11.00 ,11.11 ,11.23 ,11.31 Sun Solaris : Sol 6, Sol 7,Sol 8 ,Sol 9 IBM AIX : 5.3 Linux : RHEL 3 ,RHEL 4 ,RHEL 5 , RHEL 6 Thanks, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From mlrtime3 at gmail.com Wed Aug 11 10:30:18 2010 From: mlrtime3 at gmail.com (mlrtime3) Date: Wed, 11 Aug 2010 04:30:18 -0400 Subject: check_period host - service inheritance In-Reply-To: <1281515184.31872.1389350893@webmail.messagingengine.com> References: <1281432988.24758.1389169167@webmail.messagingengine.com><1281434248.29788.1389172237@webmail.messagingengine.com><4C619781.6010203@gmail.com> <1281515184.31872.1389350893@webmail.messagingengine.com> Message-ID: <1281515418.32478.1389351699@webmail.messagingengine.com> I do use templates heavily now. I would still need 50-100 service definitions, they would just be smaller. Just want to try a cleaner approach, I curious to know why we use inheritance in some places and not others. Thanks for the suggestion. mlr On Tue, 10 Aug 2010 13:16 -0500, "Greg Borbonus" wrote: > What about using service templates? > > That way, the check_period and such are all setup with service template > directives, and your service only has to define the command and such. > > Thank you, > Greg Borbonus > *nix System Administrator > gregborbonus at gmail.com > > > On 8/10/2010 4:57 AM, mlrtime3 wrote: > > I've seen some old threads in the nagios-users group but nothing recent > > so I thought I'd bring it up again. > > > > I have a use case to have a single service defined for 1000's of > > different hosts with up to 50-100 different check_period times. > > > > The only way to do this now is to create a different service with each > > check_period. To do this, I would need to create 50-100 different > > service definitions for each check_period. > > > > It makes much more sense for the service to inherit the hosts > > check_period value and use this for the service. This allows me to only > > define one service. > > > > Does anyone know of a way to get this to work, or has anyone created a > > patch for 3.2.x to do this? > > > > Thanks, > > mlr > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > http://p.sf.net/sfu/RIM-dev2dev > > _______________________________________________ > > 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 > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From luc.maignan at winxpert.com Wed Aug 11 15:52:21 2010 From: luc.maignan at winxpert.com (Luc MAIGNAN) Date: Wed, 11 Aug 2010 15:52:21 +0200 Subject: Nagios & SNMP Message-ID: <4C62AB15.1090806@winxpert.com> Hi, I don't succeed to make Nagios with SNMP work together. So I'm looking for an UP-TO-DATE howto. The documentation on the nagios official website seems to be down. Can anybody tell me where I can find a such howto ? BR ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From bparish at cognex.com Wed Aug 11 16:51:00 2010 From: bparish at cognex.com (Parish, Brent) Date: Wed, 11 Aug 2010 10:51:00 -0400 Subject: Nagios & SNMP In-Reply-To: <4C62AB15.1090806@winxpert.com> References: <4C62AB15.1090806@winxpert.com> Message-ID: Hi When you say "work together", does that mean you already have SNMP running and gathering data? If you mean just using Nagios to collect data via SNMP, there is a built-in check (part of the plugins package), called check_snmp I think. I used Perl to write all my own SNMP checks and that works very well. As long as the output of the agent/plugin conforms to the Nagios requirements: http://nagios.sourceforge.net/docs/3_0/pluginapi.html You should be ok. Brent -----Original Message----- From: Luc MAIGNAN [mailto:luc.maignan at winxpert.com] Sent: Wednesday, August 11, 2010 9:52 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios & SNMP Hi, I don't succeed to make Nagios with SNMP work together. So I'm looking for an UP-TO-DATE howto. The documentation on the nagios official website seems to be down. Can anybody tell me where I can find a such howto ? BR ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Wed Aug 11 16:58:03 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Wed, 11 Aug 2010 07:58:03 -0700 (PDT) Subject: Nagios & SNMP In-Reply-To: <4C62AB15.1090806@winxpert.com> References: <4C62AB15.1090806@winxpert.com> Message-ID: <703852.59491.qm@web34508.mail.mud.yahoo.com> What is your objective? If you are trying to monitor a host or appliance via snmp, I would recommend getting it working with snmpwalk fisrt. Your question is too general to be answered. ----- Original Message ---- From: Luc MAIGNAN To: nagios-users at lists.sourceforge.net Sent: Wed, August 11, 2010 9:52:21 AM Subject: [Nagios-users] Nagios & SNMP Hi, I don't succeed to make Nagios with SNMP work together. So I'm looking for an UP-TO-DATE howto. The documentation on the nagios official website seems to be down. Can anybody tell me where I can find a such howto ? BR ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From bparish at cognex.com Wed Aug 11 16:42:27 2010 From: bparish at cognex.com (Parish, Brent) Date: Wed, 11 Aug 2010 10:42:27 -0400 Subject: question about notifications In-Reply-To: References: Message-ID: Hi Joel. As everyone else has already said, the best way appears to be within the agent, not the notification. I found this useful for disk checks, where the thresholds in my environment often vary from machine to machine, depending on how large the disks are, likely fill rate, etc. I wrote an SNMP disk check that puts the threshold in the email alerts: DISK WARNING - [Threshold=90%, 91% full,4.9gb free on /home] and also the Nagios status page: http://exchange.nagios.org/directory/image/429 The bottom image is the HTML version (can toggle in the agent) that includes the tiny blue image. Mouse over that and the threshold pops up in a comment tag. HTH Brent From: Joel Brooks [mailto:jbrooks at oddelement.com] Sent: Monday, August 09, 2010 1:31 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] question about notifications hey all, is there a way to include the WARNING and CRITICAL thresholds in a notification (without including the perfdata)? There doesn't seem to be a macro for this. i.e., i'd like my notification to show something like: $SERVICEDESC$ is in $SERVICESTATE$ condition. $SERVICEOUTPUT$ Current: $SERVICEVAL$ (Warning: $SERVICEWARNING$, Critical: $SERVICECRITICAL$) is there a way to do something like that? cheers, J -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From luc.maignan at winxpert.com Wed Aug 11 17:23:36 2010 From: luc.maignan at winxpert.com (Luc MAIGNAN) Date: Wed, 11 Aug 2010 17:23:36 +0200 Subject: Nagios & SNMP In-Reply-To: References: <4C62AB15.1090806@winxpert.com> Message-ID: <4C62C078.6070802@winxpert.com> Well, in fact no. I use nagios with several plugins but not yet snmp. I would like use SNMP plugin to monitor printers, network switchs, IP thermometer... I don't succeed to use the check_snmp so I'm looking for a howto. Le 11/08/10 16:51, Parish, Brent a ?crit : > Hi > > When you say "work together", does that mean you already have SNMP > running and gathering data? > > If you mean just using Nagios to collect data via SNMP, there is a > built-in check (part of the plugins package), called check_snmp I think. > I used Perl to write all my own SNMP checks and that works very well. > > As long as the output of the agent/plugin conforms to the Nagios > requirements: > http://nagios.sourceforge.net/docs/3_0/pluginapi.html > You should be ok. > > Brent > > > -----Original Message----- > From: Luc MAIGNAN [mailto:luc.maignan at winxpert.com] > Sent: Wednesday, August 11, 2010 9:52 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios& SNMP > > Hi, > > I don't succeed to make Nagios with SNMP work together. So I'm looking > for an UP-TO-DATE howto. The documentation on the nagios official > website seems to be down. > > Can anybody tell me where I can find a such howto ? > > BR > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rab-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org Wed Aug 11 18:41:39 2010 From: rab-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org (Robert Jackson) Date: Wed, 11 Aug 2010 17:41:39 +0100 Subject: CISCO Catalyst MIB's Message-ID: I was wondering if I needed MIB's for the CISCO Catalyst 2960/2960G Series switches we are looking to monitor? If I do need them, how do I go about downloading and getting them installed within the Nagios framework? Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- next part -------------- _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgius at createspace.com Wed Aug 11 18:57:40 2010 From: mgius at createspace.com (Gius, Mark) Date: Wed, 11 Aug 2010 12:57:40 -0400 Subject: Nagios & SNMP In-Reply-To: <4C62C078.6070802@winxpert.com> References: <4C62AB15.1090806@winxpert.com> <4C62C078.6070802@winxpert.com> Message-ID: <23193A17705DD246AFFFDF09B779F56F251A4BED1B@EX-IAD6-B.ant.amazon.com> I'm not aware of any good SNMP tutorials. Your best bet is probably the Wikipedia entry for SNMP (which focuses more on the protocol and less on using snmp to actually monitor stuff) or the net-snmp project's FAQ and documentation (http://net-snmp.sourceforge.net/docs/FAQ.html). Your first step should be to determine if the tools from net-snmp are able to successfully scrape data from the target device. Once you're able to do that using the 'snmpwalk' or 'snmpget' set of commands, you'll be in good shape to have Nagios pull information from target devices. Trying to debug SNMP through Nagios is far harder than doing it via the commandline. -Gius > -----Original Message----- > From: Luc MAIGNAN [mailto:luc.maignan at winxpert.com] > Sent: Wednesday, August 11, 2010 8:24 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios & SNMP > > Well, in fact no. I use nagios with several plugins but not yet snmp. > > I would like use SNMP plugin to monitor printers, network switchs, IP > thermometer... > > I don't succeed to use the check_snmp so I'm looking for a howto. > > > Le 11/08/10 16:51, Parish, Brent a ?crit : > > Hi > > > > When you say "work together", does that mean you already have SNMP > > running and gathering data? > > > > If you mean just using Nagios to collect data via SNMP, there is a > > built-in check (part of the plugins package), called check_snmp I > think. > > I used Perl to write all my own SNMP checks and that works very well. > > > > As long as the output of the agent/plugin conforms to the Nagios > > requirements: > > http://nagios.sourceforge.net/docs/3_0/pluginapi.html > > You should be ok. > > > > Brent > > > > > > -----Original Message----- > > From: Luc MAIGNAN [mailto:luc.maignan at winxpert.com] > > Sent: Wednesday, August 11, 2010 9:52 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios& SNMP > > > > Hi, > > > > I don't succeed to make Nagios with SNMP work together. So I'm > looking > > for an UP-TO-DATE howto. The documentation on the nagios official > > website seems to be down. > > > > Can anybody tell me where I can find a such howto ? > > > > BR > > > > --------------------------------------------------------------------- > --- > > ------ > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > http://p.sf.net/sfu/RIM-dev2dev > > _______________________________________________ > > 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 > > > > --------------------------------------------------------------------- > --------- > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > http://p.sf.net/sfu/RIM-dev2dev > > _______________________________________________ > > 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 > > > ----------------------------------------------------------------------- > ------- > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Wed Aug 11 19:05:24 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Wed, 11 Aug 2010 10:05:24 -0700 (PDT) Subject: CISCO Catalyst MIB's In-Reply-To: References: Message-ID: <466788.43711.qm@web34508.mail.mud.yahoo.com> It depends on the plug-in you choose to use for monitoring. Most plug-ins just use the OIDs, so there is no need to keep the MIB local. Your best bet is to search around nagios-exchange for a plug-in that does what you need. ________________________________ From: Robert Jackson To: nagiosplug-help at lists.sourceforge.net; nagios-users at lists.sourceforge.net Sent: Wed, August 11, 2010 12:41:39 PM Subject: [Nagios-users] CISCO Catalyst MIB's CISCO Catalyst MIB's I was wondering if I needed MIB?s for the CISCO Catalyst 2960/2960G Series switcheswe are looking to monitor? If I do need them, how do I go about downloading and getting them installed within the Nagios framework? Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email:rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web:http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk. Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From Stuart.Jones at health.wa.gov.au Thu Aug 12 03:27:32 2010 From: Stuart.Jones at health.wa.gov.au (Jones, Stuart) Date: Thu, 12 Aug 2010 09:27:32 +0800 Subject: Accessing an HMI???? In-Reply-To: References: Message-ID: Have you tried contacting Maple Systems to see what SNMP MIBs exist or are planned? ________________________________ From: Luke Salsich [mailto:luke.salsich at gmail.com] Sent: Friday, 6 August 2010 2:08 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Accessing an HMI???? All, I've been a sys admin and Nagios lover for years. But, with this one I'm out of of my depth. I have a client who needs an HMI (Maple Systems 5070 http://www.maplesystems.com/graphic-hmi/7-inch-ethernet-widescreen-touch screen.htm) on a series of remote industrial machines monitored. I love the idea because it's so new to me and I love a challenge. But, has anyone had any experience with this type of situation? I've been playing around with the idea, testing various scenarios and feel a little lost. the HMI does store and output various system data, has alarms when thresholds are exceeded, etc - but unless you are looking at it's screen you would never know. Any help, guidance or suggestions would be a huge help! --------------- Luke Salsich -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From vagabond_king at yahoo.com Thu Aug 12 04:27:53 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Wed, 11 Aug 2010 22:27:53 -0400 Subject: Accessing an HMI???? In-Reply-To: References: Message-ID: <3b335c15-75ae-4aba-9d48-e9f4d98427d9@email.android.com> Or even a snmpwalk of the device? "Jones, Stuart" wrote: >Have you tried contacting Maple Systems to see what SNMP MIBs exist or >are planned? > >________________________________ > >From: Luke Salsich [mailto:luke.salsich at gmail.com] >Sent: Friday, 6 August 2010 2:08 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] Accessing an HMI???? > > >All, > >I've been a sys admin and Nagios lover for years. But, with this one I'm >out of of my depth. I have a client who needs an HMI (Maple Systems 5070 >http://www.maplesystems.com/graphic-hmi/7-inch-ethernet-widescreen-touch >screen.htm) on a series of remote industrial machines monitored. > >I love the idea because it's so new to me and I love a challenge. But, >has anyone had any experience with this type of situation? I've been >playing around with the idea, testing various scenarios and feel a >little lost. > >the HMI does store and output various system data, has alarms when >thresholds are exceeded, etc - but unless you are looking at it's screen >you would never know. > >Any help, guidance or suggestions would be a huge help! > >--------------- >Luke Salsich > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ >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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Daniel.Scharon at bsz-bw.de Thu Aug 12 11:23:16 2010 From: Daniel.Scharon at bsz-bw.de (Scharon, Daniel) Date: Thu, 12 Aug 2010 11:23:16 +0200 Subject: check_openmanage ignores blacklist directive In-Reply-To: References: Message-ID: <028B1A54D03E7B4482CDCA4EC8F06BFD15FCC4@Bodensee.bsz-bw.de> > "C. Bensend" writes: > > >> Despite of giving it the parameter to ignore Warnings about the > >> controller firmware, it still gives a Warning Status: > >> > >> /usr/lib/nagios/plugins/check_openmanage -b ctrl_fw -s -H 192.168.2.137 > > > > 'ctrl_fw' isn't the complete option you need to give there - you > > also need to specify the ID per: > > > > http://folk.uio.no/trondham/software/check_openmanage.8.html > > > > Try 'ctrl_fw=0,1' > > Yes, or: > > ctrl_fw=all > > ..if you wish to blacklist this for all controllers and aren't > interested in specifying controller IDs. Thanks a lot! Working like a charm now. Really a great plugin btw. Regards, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2722 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ravishankar.gundlapali at wipro.com Thu Aug 12 13:49:42 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Thu, 12 Aug 2010 17:19:42 +0530 Subject: CHECK_NRPE: Error receiving data from daemon. References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F02875340@HYD-MKD-MBX02.wipro.com> Hi All, I have configured a Unix server in Nagios however the output is not as expected. Please see the output. Someone please guide me on this. Thanks, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3051 bytes Desc: image001.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From Naveen.R-//tT4aWmXyZBDgjK7y7TUQ at public.gmane.org Thu Aug 12 14:16:43 2010 From: Naveen.R-//tT4aWmXyZBDgjK7y7TUQ at public.gmane.org (R, Naveen) Date: Thu, 12 Aug 2010 14:16:43 +0200 Subject: Not Detecting the services properly Message-ID: <8DF553C0530569419CAAFA4E3331C32BEB150F50D7@NLCLUEXM09.connect1.local> Dear All, I have configure Nagios XI to monitor some websites and if these services are UP/DOWN/UNREACHABLE, then it will send a notification through mail. My problem here is, Nagios is detecting services and sending notifications to my email id saying that this link is "DOWN" even if the links are up and running correctly. Can you please help me in resolving this problem, as it is due to network setting or anything else, so that Nagios reports and sends mails only when it is actually down. I have attached the screen shots of the configuration and also the reports. Kindly guide me in resolving this problem. Warm regards, Naveen.R., Philips Consumer Lifestyle, Philips Innovation Campus, Philips Electronics India Ltd, Manyata Tech Park, Nagavara, Bangalore - 560045. Ph: +91 80 40162000 Extn: 2718 Mobile: 9663320455 Email: naveen.r-//tT4aWmXyZBDgjK7y7TUQ at public.gmane.org intranet: http://pww.bangalore.philips.com, internet: http://www.bangalore.philips.com [cid:image001.png-1Xo5IFrEYzHWuTbMfDdJJDRmByFHzeGd at public.gmane.org] ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4858 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Image2.zip Type: application/x-zip-compressed Size: 123641 bytes Desc: Image2.zip URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- next part -------------- _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at flatto.net Thu Aug 12 14:24:16 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 12 Aug 2010 13:24:16 +0100 Subject: CHECK_NRPE: Error receiving data from daemon. In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F02875340@HYD-MKD-MBX02.wipro.com> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F02875340@HYD-MKD-MBX02.wipro.com> Message-ID: <4C63E7F0.1060908@flatto.net> ravishankar.gundlapali at wipro.com wrote: > > Hi All, > > > > I have configured a Unix server in Nagios however the output is not as > expected. > > > > Please see the output. Someone please guide me on this. > > > > > > Thanks, > > Ravi G > > ------------------------------------------------------------------------ > > Have you complied the nrpe on the remote machine ? Does it have ssl enabled ? To test try to execute the same command from the CLI , but add the -n flag to the check _nrpe . and see if you get a response . If the -n supplies a response , it means your nrpe does not use SSL and you'll have to modify the command to work without ssl . -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From CMacleod at edrington.co.uk Thu Aug 12 14:04:18 2010 From: CMacleod at edrington.co.uk (Macleod, Chris) Date: Thu, 12 Aug 2010 13:04:18 +0100 Subject: CHECK_NRPE: Error receiving data from daemon. Message-ID: Hi, Have you installed NRPE on the Unix server? Chris From: ravishankar.gundlapali at wipro.com [mailto:ravishankar.gundlapali at wipro.com] Sent: 12 August 2010 12:50 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] CHECK_NRPE: Error receiving data from daemon. Hi All, I have configured a Unix server in Nagios however the output is not as expected. Please see the output. Someone please guide me on this. Thanks, Ravi G ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. TEG-IN ________________________________________________________________________ This e-mail has been scanned for all viruses by Message Labs. Please enjoy our brands responsibly. www.drinkaware.co.uk The Edrington Group is a private limited company registered in Scotland (Registered Number SC 36374) with its Registered Office at 2500 Great Western Road, Glasgow, G15 6RW. ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3051 bytes Desc: image001.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ravishankar.gundlapali at wipro.com Thu Aug 12 14:35:28 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Thu, 12 Aug 2010 18:05:28 +0530 Subject: CHECK_NRPE: Error receiving data from daemon. In-Reply-To: <4C63E7F0.1060908@flatto.net> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com><618F928F9E2D824AAB26DCAA0F25221F02875340@HYD-MKD-MBX02.wipro.com> <4C63E7F0.1060908@flatto.net> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F02875359@HYD-MKD-MBX02.wipro.com> Hi, When I run the command from usr/local/nagios/libexec (please see below)I am getting the output [nagios at localhost libexec]$ ./check_nrpe -H cetus -n -p 5666 -c check_mem RAM OK - 16402 MB out of 65248 MB RAM unused. But in the web console it is showing as CHECK_NRPE: Error receiving data from daemon. Please guide me on this. Thanks, Ravi G -----Original Message----- From: Assaf Flatto [mailto:nagios at flatto.net] Sent: Thursday, August 12, 2010 5:54 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] CHECK_NRPE: Error receiving data from daemon. ravishankar.gundlapali at wipro.com wrote: > > Hi All, > > > > I have configured a Unix server in Nagios however the output is not as > expected. > > > > Please see the output. Someone please guide me on this. > > > > > > Thanks, > > Ravi G > > ------------------------------------------------------------------------ > > Have you complied the nrpe on the remote machine ? Does it have ssl enabled ? To test try to execute the same command from the CLI , but add the -n flag to the check _nrpe . and see if you get a response . If the -n supplies a response , it means your nrpe does not use SSL and you'll have to modify the command to work without ssl . -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From ravishankar.gundlapali at wipro.com Thu Aug 12 14:40:13 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Thu, 12 Aug 2010 18:10:13 +0530 Subject: CHECK_NRPE: Error receiving data from daemon. In-Reply-To: References: Message-ID: <618F928F9E2D824AAB26DCAA0F25221F0287535D@HYD-MKD-MBX02.wipro.com> Yes NRPE has been installed on the Unix server. From: Macleod, Chris [mailto:CMacleod at edrington.co.uk] Sent: Thursday, August 12, 2010 5:34 PM To: Nagios Users List Subject: Re: [Nagios-users] CHECK_NRPE: Error receiving data from daemon. Hi, Have you installed NRPE on the Unix server? Chris From: ravishankar.gundlapali at wipro.com [mailto:ravishankar.gundlapali at wipro.com] Sent: 12 August 2010 12:50 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] CHECK_NRPE: Error receiving data from daemon. Hi All, I have configured a Unix server in Nagios however the output is not as expected. Please see the output. Someone please guide me on this. Thanks, Ravi G ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. TEG-IN ________________________________________________________________________ This e-mail has been scanned for all viruses by Message Labs. Please enjoy our brands responsibly. www.drinkaware.co.uk The Edrington Group is a private limited company registered in Scotland (Registered Number SC 36374) with its Registered Office at 2500 Great Western Road, Glasgow, G15 6RW. ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 3051 bytes Desc: image001.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From nagios at flatto.net Thu Aug 12 14:43:55 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 12 Aug 2010 13:43:55 +0100 Subject: CHECK_NRPE: Error receiving data from daemon. In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F02875359@HYD-MKD-MBX02.wipro.com> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com><618F928F9E2D824AAB26DCAA0F25221F02875340@HYD-MKD-MBX02.wipro.com> <4C63E7F0.1060908@flatto.net> <618F928F9E2D824AAB26DCAA0F25221F02875359@HYD-MKD-MBX02.wipro.com> Message-ID: <4C63EC8B.7020705@flatto.net> you'll need to change the definitions of the check_nrpe command in the command.cfg file to include the -n flag , and then reload nagios Assaf ravishankar.gundlapali at wipro.com wrote: > Hi, > > When I run the command from usr/local/nagios/libexec (please see below)I > am getting the output > > [nagios at localhost libexec]$ ./check_nrpe -H cetus -n -p 5666 -c > check_mem > RAM OK - 16402 MB out of 65248 MB RAM unused. > > But in the web console it is showing as CHECK_NRPE: Error receiving data > from daemon. > > Please guide me on this. > > Thanks, > Ravi G > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From lists-NEWPmbwQflbYtjvyW6yDsg at public.gmane.org Thu Aug 12 14:41:48 2010 From: lists-NEWPmbwQflbYtjvyW6yDsg at public.gmane.org (Marc Powell) Date: Thu, 12 Aug 2010 07:41:48 -0500 Subject: Not Detecting the services properly In-Reply-To: <8DF553C0530569419CAAFA4E3331C32BEB150F50D7-j3ufQnpbJpMka9OrT6L8grrP7TKNM4pAZkel5v8DVj8@public.gmane.org> References: <8DF553C0530569419CAAFA4E3331C32BEB150F50D7@NLCLUEXM09.connect1.local> Message-ID: On Aug 12, 2010, at 7:16 AM, R, Naveen wrote: > > Dear All, > I have configure Nagios XI to monitor some websites and if these services are UP/DOWN/UNREACHABLE, then it will send a notification through mail. Hi William. We don't provide support for Nagios XI here, only the open source version. They have an online support forum at http://support.nagios.com/forum. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ravishankar.gundlapali at wipro.com Thu Aug 12 15:01:18 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Thu, 12 Aug 2010 18:31:18 +0530 Subject: CHECK_NRPE: Error receiving data from daemon. In-Reply-To: <4C63EC8B.7020705@flatto.net> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com><618F928F9E2D824AAB26DCAA0F25221F02875340@HYD-MKD-MBX02.wipro.com><4C63E7F0.1060908@flatto.net><618F928F9E2D824AAB26DCAA0F25221F02875359@HYD-MKD-MBX02.wipro.com> <4C63EC8B.7020705@flatto.net> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F0287536F@HYD-MKD-MBX02.wipro.com> Hi, The -n flag is already included, please see the definition below. Please guide me on this. define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -t 90 } Thanks, Ravi G -----Original Message----- From: Assaf Flatto [mailto:nagios at flatto.net] Sent: Thursday, August 12, 2010 6:14 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] CHECK_NRPE: Error receiving data from daemon. you'll need to change the definitions of the check_nrpe command in the command.cfg file to include the -n flag , and then reload nagios Assaf ravishankar.gundlapali at wipro.com wrote: > Hi, > > When I run the command from usr/local/nagios/libexec (please see below)I > am getting the output > > [nagios at localhost libexec]$ ./check_nrpe -H cetus -n -p 5666 -c > check_mem > RAM OK - 16402 MB out of 65248 MB RAM unused. > > But in the web console it is showing as CHECK_NRPE: Error receiving data > from daemon. > > Please guide me on this. > > Thanks, > Ravi G > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Matsushita.Nobuo at tchden.org Thu Aug 12 15:14:27 2010 From: Matsushita.Nobuo at tchden.org (Matsushita, Nobuo) Date: Thu, 12 Aug 2010 07:14:27 -0600 Subject: minutes or seconds????? Message-ID: HI, I am using Nagios 3.2. When I checked the web documentation : >> Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes But when I checked the nagios.cfg file: # INTERVAL LENGTH # This is the seconds per unit interval as used in the # host/contact/service configuration files. Setting this to 60 means # that each interval is one minute long (60 seconds). So the time interval unit is in Minutes or Seconds????? Thanks in advance Nobuo ---------------------------------------------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail is confidential, may be legally privileged,
and for the intended recipient only. Access, disclosure, copying, forwarding and
distribution by any means is strictly prohibited. If received in error,
do not read but delete and e-mail confirmation to the sender.
==========================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
-------------- 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

From senapati2001 at yahoo.com  Thu Aug 12 15:29:23 2010
From: senapati2001 at yahoo.com (p sena)
Date: Thu, 12 Aug 2010 06:29:23 -0700 (PDT)
Subject: minutes or seconds?????
In-Reply-To: 
References: 
Message-ID: <58389.7131.qm@web45104.mail.sp1.yahoo.com>

1 means 1 minute i;e 60 seconds. And 15s means 15 seconds. multiple is 60 if s is noto mentioned.

Regards & Thanks
P Sena
--- On Thu, 8/12/10, Matsushita, Nobuo wrote: From: Matsushita, Nobuo Subject: [Nagios-users] minutes or seconds????? To: "nagios-users at lists.sourceforge.net" Date: Thursday, August 12, 2010, 6:44 PM HI, ? I am using Nagios 3.2. When I checked? the web documentation : ? >> Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes ? But when I checked the nagios.cfg file: ? # INTERVAL LENGTH # This is the seconds per unit interval as used in the # host/contact/service configuration files.? Setting this to 60 means # that each interval is one minute long (60 seconds). ? So the time interval unit is in Minutes or Seconds????? ? Thanks in advance ? Nobuo --------------------------------------------------------------------------------------------------------------------- CONFIDENTIALITY NOTICE: This e-mail is confidential, may be legally privileged, and for the intended recipient only. Access, disclosure, copying, forwarding and distribution by any means is strictly prohibited. If received in error, do not read but delete and e-mail confirmation to the sender. ========================================================== -----Inline Attachment Follows----- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -----Inline Attachment Follows----- _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From cauasiqueira-/E1597aS9LRfJ/NunPodnw at public.gmane.org Thu Aug 12 15:45:33 2010 From: cauasiqueira-/E1597aS9LRfJ/NunPodnw at public.gmane.org (=?iso-8859-1?Q?Cau=E3_Siqueira?=) Date: Thu, 12 Aug 2010 06:45:33 -0700 (PDT) Subject: I'm checking hosts with private key In-Reply-To: <8DF553C0530569419CAAFA4E3331C32BEB150F50D7-j3ufQnpbJpMka9OrT6L8grrP7TKNM4pAZkel5v8DVj8@public.gmane.org> References: <8DF553C0530569419CAAFA4E3331C32BEB150F50D7@NLCLUEXM09.connect1.local> Message-ID: <946537.35760.qm@web31007.mail.mud.yahoo.com> Hi, I have my network being monitored with Nagios, only that the security policy here does not allow access to Linux hosts without a key. I can not access the linux hosts with password, key only. How to configure Nagios to log in hosts with key? Thanks, Cau?. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- next part -------------- _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rick.mangus+nagios at gmail.com Thu Aug 12 16:52:33 2010 From: rick.mangus+nagios at gmail.com (Rick Mangus) Date: Thu, 12 Aug 2010 09:52:33 -0500 Subject: minutes or seconds????? In-Reply-To: References: Message-ID: Interstitial reply: On Thu, Aug 12, 2010 at 8:14 AM, Matsushita, Nobuo wrote: > HI, > > > > I am using Nagios 3.2. When I checked? the web documentation : > > > >>> Unless you've changed the interval_length directive from the default >>> value of 60, this number will mean minutes You don't state what part of the documentation you were reading, but I strongly suspect you were reading about check_interval, retry_interval, or notification interval. Those are measured in "intervals", the length of which is set by the interval_length variable in the configuration. The interval length is in seconds and is set in the config file near where you quoted below. > > > > But when I checked the nagios.cfg file: > > > > # INTERVAL LENGTH > > # This is the seconds per unit interval as used in the > # host/contact/service configuration files.? Setting this to 60 means > # that each interval is one minute long (60 seconds). > Here you can set the interval length.... > > > So the time interval unit is in Minutes or Seconds????? So, if you have interval_length = 60, then each interval is 60 seconds, if you set interval_length=5, then each interval is 5 seconds. The default is to have a 1 minute (60 second) interval, so a service with check_interval=5 will be checked every 5 minutes. Illustrative Example: You want to run some checks every 15 seconds, some every 40 and the rest every 5 minutes. You need to set interval_length=5 (global setting), then on the 15 second checks, check_interval=3; on the 40 second ones, check_interval=8; and on the rest, check_interval=60. Note that those numbers were used due to 5 seconds being the lowest common denominator. I suspect that using the longest possible interval will be more efficient for scheduling, and make no claims as to what will happen if a new interval begins before all checks executing in the prior interval are completed. > > > Thanks in advance > > > > Nobuo > I hope I was a help. --Rick ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From mike.saldivar at advocatecreditrepair.com Thu Aug 12 18:03:25 2010 From: mike.saldivar at advocatecreditrepair.com (Michael Saldivar) Date: Thu, 12 Aug 2010 10:03:25 -0600 Subject: CHECK_NRPE: Error receiving data from daemon. In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F0287536F@HYD-MKD-MBX02.wipro.com> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F02875340@HYD-MKD-MBX02.wipro.com> <4C63E7F0.1060908@flatto.net> <618F928F9E2D824AAB26DCAA0F25221F02875359@HYD-MKD-MBX02.wipro.com> <4C63EC8B.7020705@flatto.net> <618F928F9E2D824AAB26DCAA0F25221F0287536F@HYD-MKD-MBX02.wipro.com> Message-ID: On Thu, Aug 12, 2010 at 7:01 AM, wrote: > Hi, > > The -n flag is already included, please see the definition below. Please > guide me on this. > > define command{ > command_name check_nrpe > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ > -t 90 > } > > Thanks, > Ravi G > Will you send us next the host configuration file, so we can see how you are using the command in your check? -Mike ravishankar.gundlapali at wipro.com wrote: > Hi, > > When I run the command from usr/local/nagios/libexec (please see below)I > am getting the output > > [nagios at localhost libexec]$ ./check_nrpe -H cetus -n -p 5666 -c > check_mem > RAM OK - 16402 MB out of 65248 MB RAM unused. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jim at jimavery.me.uk Thu Aug 12 20:28:37 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 12 Aug 2010 19:28:37 +0100 Subject: Not Detecting the services properly In-Reply-To: <8DF553C0530569419CAAFA4E3331C32BEB150F50D7@NLCLUEXM09.connect1.local> References: <8DF553C0530569419CAAFA4E3331C32BEB150F50D7@NLCLUEXM09.connect1.local> Message-ID: On 12 August 2010 13:16, R, Naveen wrote: > > > > Dear All, > > I have configure Nagios XI to monitor some websites and if these services are UP/DOWN/UNREACHABLE, then it will send a notification through mail. > > My problem here is, Nagios is detecting services and sending notifications to my email id saying that this link is "DOWN" even if the links are up and running correctly. Can you please help me in resolving this problem, as it is due to network setting or anything else, so that Nagios reports and sends mails only when it is actually down. > > > > I have attached the screen shots of the configuration and also the reports. Kindly guide me in resolving this problem. The check_http plugin is quite 'dumb' in that it's not a browser, so if the website you are trying to check has anything clever which checks the browser type it might fail. Also note that typically check_http doesn't get past proxy servers. There are some options to check_http which will get you past ordinary proxy servers - try running check_http with the --help option to see what those options are. Get the check_http command running ok from the command line in Linux before you try to configure the command and service definitions in Nagios for it. If you're unlucky enough to have an ISA proxy server between your Nagios server and the internet, you need to install and configure something called ntlmaps to allow you to get through to the external web sites (I'm not familiar with ntlmaps on Centos so I won't attempt to tell you how to configure it). I warn you that whenever I've used ntlmaps it's been quite resource-hungry. Another issue may be that there could be some firewall or other between you and the web sites you are trying to monitor. As a start, I would pick a web server which is in your local network and check that (hint: Nagios itself is on a web server). When that is working okay, then try monitoring the external web sites and troubleshooting why they're not reporting ok. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jhall at iodatacenters.com Thu Aug 12 22:27:10 2010 From: jhall at iodatacenters.com (Hall, JC) Date: Thu, 12 Aug 2010 13:27:10 -0700 Subject: Applying a multiplier to check_snmp results Message-ID: <57F018B226E004449B318DAF71A6014658BCF5014A@IO-SCD-EX-M-01.corp.iodatacenters.com> I have a situation where I would like to apply a multiplier to the results of a check_snmp output. The situation is this: The value received from my check_snmp = 20717. The integer multiplier for this particular OID is 0.01. The output I want reported to Nagios is 20717 x 0.01 = 207.17. Looking through the options of the check_snmp plugin, I can't determine how I could accomplish this. Any thoughts are appreciated. TIA JC -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From shane.killian at irishjobs.ie Thu Aug 12 23:06:03 2010 From: shane.killian at irishjobs.ie (Shane Killian) Date: Thu, 12 Aug 2010 22:06:03 +0100 Subject: ICMP Blocked - Windows Host Message-ID: Hi all, I am using NSClient++ to monitor several Windows boxes. It is not possible to allow ICMP echo on these boxes. For this reason, I can monitor processes and services but the host itself shows as up. Is there a way around this? Is it possible to do a check other than ping to show a host status of up? Thanks Shane -------------------------- Sent using BlackBerry E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Thu Aug 12 23:05:42 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 12 Aug 2010 22:05:42 +0100 Subject: Applying a multiplier to check_snmp results In-Reply-To: <57F018B226E004449B318DAF71A6014658BCF5014A@IO-SCD-EX-M-01.corp.iodatacenters.com> References: <57F018B226E004449B318DAF71A6014658BCF5014A@IO-SCD-EX-M-01.corp.iodatacenters.com> Message-ID: On 12 August 2010 21:27, Hall, JC wrote: > I have a situation where I would like to apply a multiplier to the results > of a check_snmp output. > > The situation is this: > > The value received from my check_snmp = 20717.? The integer multiplier for > this particular OID is 0.01. > > The output I want reported to Nagios is 20717 x 0.01 = 207.17. > > Looking through the options of the check_snmp plugin, I can?t determine how > I could accomplish this. > > > > Any thoughts are appreciated. +1 to that! I was doing some monitoring on a UPS yesterday and found the current is given as an integer which is 10x the Amps, so it would be great to be able to divide by 10 (or multiply by whatever) in check_snmp. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From shane.killian at irishjobs.ie Thu Aug 12 23:11:54 2010 From: shane.killian at irishjobs.ie (Shane Killian) Date: Thu, 12 Aug 2010 22:11:54 +0100 Subject: Email echo monitoring Message-ID: Hi, I would like to monitor email delivery. I'm using microsoft exchange and I want to automate a message to echo at esat.net - this is an autoresponding address with an ISP. Does anyone have a method for this? Shane -------------------------- Sent using BlackBerry E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Thu Aug 12 23:17:13 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Thu, 12 Aug 2010 14:17:13 -0700 (PDT) Subject: Applying a multiplier to check_snmp results In-Reply-To: References: <57F018B226E004449B318DAF71A6014658BCF5014A@IO-SCD-EX-M-01.corp.iodatacenters.com> Message-ID: <687542.86663.qm@web34503.mail.mud.yahoo.com> I ran into the same thing, I ended up writing my own plugins. Just look for a non binary plugin (perl/python etc) and then hack away. ----- Original Message ---- From: Jim Avery To: Nagios Users List Sent: Thu, August 12, 2010 5:05:42 PM Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results On 12 August 2010 21:27, Hall, JC wrote: > I have a situation where I would like to apply a multiplier to the results > of a check_snmp output. > > The situation is this: > > The value received from my check_snmp = 20717. The integer multiplier for > this particular OID is 0.01. > > The output I want reported to Nagios is 20717 x 0.01 = 207.17. > > Looking through the options of the check_snmp plugin, I can?t determine how > I could accomplish this. > > > > Any thoughts are appreciated. +1 to that! I was doing some monitoring on a UPS yesterday and found the current is given as an integer which is 10x the Amps, so it would be great to be able to divide by 10 (or multiply by whatever) in check_snmp. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Thu Aug 12 23:37:53 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 12 Aug 2010 22:37:53 +0100 Subject: ICMP Blocked - Windows Host In-Reply-To: References: Message-ID: On 12 August 2010 22:06, Shane Killian wrote: > Hi all, > > I am using NSClient++ to monitor several Windows boxes. It is not possible to allow ICMP echo on these boxes. > > For this reason, I can monitor processes and services but the host itself shows as up. > > Is there a way around this? > Is it possible to do a check other than ping to show a host status of up? Yes, the host check can be anything you like. Something like check_nt -V client_version would do the trick (forgive me if my syntax isn't quite right - going from memory). You could alternatively do an snmp query of the switch port the host is connected to, but that's a bit complicated I guess. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jhall at iodatacenters.com Fri Aug 13 00:48:04 2010 From: jhall at iodatacenters.com (Hall, JC) Date: Thu, 12 Aug 2010 15:48:04 -0700 Subject: Applying a multiplier to check_snmp results In-Reply-To: <687542.86663.qm@web34503.mail.mud.yahoo.com> References: <57F018B226E004449B318DAF71A6014658BCF5014A@IO-SCD-EX-M-01.corp.iodatacenters.com> <687542.86663.qm@web34503.mail.mud.yahoo.com> Message-ID: <57F018B226E004449B318DAF71A6014658BCF501C8@IO-SCD-EX-M-01.corp.iodatacenters.com> I certainly wish I could do that. I'm just a novice. I can basically accomplish what I want (in regards to multiplying the output) with snmpget. printf "scale=2;%d*0.01\n" $(snmpget -v 1 -c public 192.168.104.37 .enterprises.6347.1.1.17 -O Qve)|bc 208.72 Any thoughts surrounding how I could run this as an external command and pipe it back into nagios? -----Original Message----- From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] Sent: Thursday, August 12, 2010 2:17 PM To: Nagios Users List Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results I ran into the same thing, I ended up writing my own plugins. Just look for a non binary plugin (perl/python etc) and then hack away. ----- Original Message ---- From: Jim Avery To: Nagios Users List Sent: Thu, August 12, 2010 5:05:42 PM Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results On 12 August 2010 21:27, Hall, JC wrote: > I have a situation where I would like to apply a multiplier to the results > of a check_snmp output. > > The situation is this: > > The value received from my check_snmp = 20717. The integer multiplier for > this particular OID is 0.01. > > The output I want reported to Nagios is 20717 x 0.01 = 207.17. > > Looking through the options of the check_snmp plugin, I can?t determine how > I could accomplish this. > > > > Any thoughts are appreciated. +1 to that! I was doing some monitoring on a UPS yesterday and found the current is given as an integer which is 10x the Amps, so it would be great to be able to divide by 10 (or multiply by whatever) in check_snmp. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From eric.anderson at epsway.com Fri Aug 13 01:00:42 2010 From: eric.anderson at epsway.com (Eric Anderson) Date: Thu, 12 Aug 2010 16:00:42 -0700 Subject: Send_nsca problem Message-ID: <157C8D865C773D4791AACA62211D22D51BA27EBD13@email.epsway.local> Hello, I have what I think is a very basic problem but I cannot seem to locate it. I believe it to be a permissions issue. I'm attempting to use send_nsca to forward received syslog traffic to the Nagios process. This article describes using using syslog to forward to send_nsca and then to a Nagios server running nsca: http://exchange.nagios.org/directory/Addons/Log-File-Management/Syslog%252Dng-Integration-Tool/details I'm attempting something similar except with a twist; the basic idea is this: 1. Syslog receives messages from clients. 2. A script parses syslog and sends the info to send_nsca process on the same host. 3. Send_nsca sends to nsca running on this host 4. NSCA forwards to Nagios. I've successfully got Nagios and NSCA running. At this point I want to test send_nsca with the following command: send_nsca locahost -c /usr/local/nagios/nsca-2.7.2/sample-config/ < /home/nagios/test The test file contaings: localhostTestMessage0This is a test message. After running this file, I get this in my /var/log/messages file: Aug 12 22:16:54 . nsca[25712]: Handling the connection... Aug 12 22:16:54 . nsca[25712]: SERVICE CHECK -> Host name: 'localhost', Service Description: 'Test Message', Return Code: '0', Output: 'This is a test message.' Aug 12 22:16:54 . nsca[25712]: Command file '/var/spool/nagios/cmd/nagios.cmd' does not exist, attempt to use alternate dump file '/var/spool/nagios/cmd/nsca.dump' for output Aug 12 22:16:54 . nsca[25712]: Could not open alternate dump file '/var/spool/nagios/cmd/nsca.dump' for appending Aug 12 22:16:54 . nsca[25712]: End of connection... Can anyone suggest where I may be going wrong here? NSCA.CFG nsca_user=nagios nsca_group=nagcmd nsca_chroot=/var/spool/nagios/cmd command_file=/var/spool/nagios/cmd/nagios.cmd alternate_dump_file=/var/spool/nagios/cmd/nsca.dump NAGIOS.CFG nagios_user=nagios nagios_group=nagios command_file=/var/spool/nagios/cmd/nagios.cmd If I ls -haltr on /var/spool/nagios/cmd I get the following: drwxr-xr-x 3 nagios nagios 4.0k 2009-11-10 11:09 .. prw-rw-r-- 1 nagios nagcmd 0 2010-08-12 15:16 nagios.cmd prw-rw-r-- 1 nagios nagcmd 0 2010-08-12 15:25 nsca.dump Eric Anderson Manager of xChange Point(tm) IT t. 714.957.1087 m. 949.466.9591 www.epsway.com DISCLAIMER: This communication, along with any documents, files or attachments, is intended only for the use of the addressee and contains privileged and confidential information. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of any information contained in or attached to this communication is strictly prohibited. If you have received this message in error, please notify the sender immediately by email reply and destroy the original communication and its attachments without reading, printing or saving in any manner. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From perldork at webwizarddesign.com Fri Aug 13 01:08:54 2010 From: perldork at webwizarddesign.com (Max) Date: Thu, 12 Aug 2010 19:08:54 -0400 Subject: Applying a multiplier to check_snmp results In-Reply-To: <57F018B226E004449B318DAF71A6014658BCF501C8@IO-SCD-EX-M-01.corp.iodatacenters.com> References: <57F018B226E004449B318DAF71A6014658BCF5014A@IO-SCD-EX-M-01.corp.iodatacenters.com> <687542.86663.qm@web34503.mail.mud.yahoo.com> <57F018B226E004449B318DAF71A6014658BCF501C8@IO-SCD-EX-M-01.corp.iodatacenters.com> Message-ID: I have written and maintain a perl library that extends Nagios::Plugin - it is called Nagios::Plugin::SNMP. It is available on CPAN and while it does not take the complexity out of SNMP data it does simplify writing plugins that retrieve SNMP data. The team I am on at my job uses it extensively - you might find it helpful for creating custom plugins tht need to not only retrieve but also cook SNMP data before doing thresholding on it. - Max On 8/12/10, Hall, JC wrote: > I certainly wish I could do that. I'm just a novice. > > I can basically accomplish what I want (in regards to multiplying the > output) with snmpget. > > printf "scale=2;%d*0.01\n" $(snmpget -v 1 -c public 192.168.104.37 > .enterprises.6347.1.1.17 -O Qve)|bc > > 208.72 > > Any thoughts surrounding how I could run this as an external command and > pipe it back into nagios? > > -----Original Message----- > From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] > Sent: Thursday, August 12, 2010 2:17 PM > To: Nagios Users List > Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results > > I ran into the same thing, I ended up writing my own plugins. Just look for > a > non binary plugin (perl/python etc) and then hack away. > > > > ----- Original Message ---- > From: Jim Avery > To: Nagios Users List > Sent: Thu, August 12, 2010 5:05:42 PM > Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results > > On 12 August 2010 21:27, Hall, JC wrote: >> I have a situation where I would like to apply a multiplier to the >> results >> of a check_snmp output. >> >> The situation is this: >> >> The value received from my check_snmp = 20717. The integer multiplier >> for >> this particular OID is 0.01. >> >> The output I want reported to Nagios is 20717 x 0.01 = 207.17. >> >> Looking through the options of the check_snmp plugin, I can?t determine >> how >> I could accomplish this. >> >> >> >> Any thoughts are appreciated. > > > +1 to that! > > I was doing some monitoring on a UPS yesterday and found the current > is given as an integer which is 10x the Amps, so it would be great to > be able to divide by 10 (or multiply by whatever) in check_snmp. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From gevery at gmail.com Fri Aug 13 01:33:32 2010 From: gevery at gmail.com (Gary Every) Date: Thu, 12 Aug 2010 16:33:32 -0700 Subject: Applying a multiplier to check_snmp results In-Reply-To: <57F018B226E004449B318DAF71A6014658BCF501C8@IO-SCD-EX-M-01.corp.iodatacenters.com> References: <57F018B226E004449B318DAF71A6014658BCF5014A@IO-SCD-EX-M-01.corp.iodatacenters.com> <687542.86663.qm@web34503.mail.mud.yahoo.com> <57F018B226E004449B318DAF71A6014658BCF501C8@IO-SCD-EX-M-01.corp.iodatacenters.com> Message-ID: You can add an executable to your snmpd.conf file to execute your snmpget locally, receive the output and modify it to your heart's content. To run executables: -- On your nagios server: /check_snmp -H -C -o enterprises.ucdavis.extTable.extEntry.extResult.<###>,enterprises.ucdavis.extTable.extEntry.extOutput.<###> -w 0 -c 1 The variables you'll need to supply are: - The IP of the remote host - Self-explanatory <###> - The number of the "exec" in snmpd.conf (see below) -- On your remote server In /etc/snmp/snmpd.conf: exec GENERIC_NAME_OF_CHECK /usr/local/bin/modify_output.sh ## If the above line is the only 'exec' directive in your snmpd.conf, then the <###> above will be a 1, if it's the third exec directive, it will be a 3, and so on.... Now, in /usr/local/bin/modify_output.sh !#/bin/bash ## Execute your snmpget here and capture it in a variable output=`snmpget -v 1 -c public localhost .enterprises.6347.1.1.17 -O Qve` ## $output now should hold something akin to 20717 or whatever the actual output is ## Check for zero if [ "$output" = "0" ] then ## Some error here: echo "OOPS! This is zero. Why?" exit 1 fi ## Ok, it's not zero, divide by 100 or multiply by .01 modified_output=`expr $output \* .01` ## Note the backslash escaping the * echo $modified_output Restart snmpd Now, from nagios, run the command above, which will call out to the snmpd server on the remote host, find the <###>th 'exec' entry in snmpd.conf, execute the shell script, and return whatever you echo out from within your shell script. Remember that check_snmp only returns one line, so any line breaks, etc will be lost when it's run from the nagios server. Hope this helps! g.; On Thu, Aug 12, 2010 at 3:48 PM, Hall, JC wrote: > I certainly wish I could do that. I'm just a novice. > > I can basically accomplish what I want (in regards to multiplying the > output) with snmpget. > > printf "scale=2;%d*0.01\n" $(snmpget -v 1 -c public 192.168.104.37 > .enterprises.6347.1.1.17 -O Qve)|bc > > 208.72 > > Any thoughts surrounding how I could run this as an external command and > pipe it back into nagios? > > -----Original Message----- > From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] > Sent: Thursday, August 12, 2010 2:17 PM > To: Nagios Users List > Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results > > I ran into the same thing, I ended up writing my own plugins. Just look > for a > non binary plugin (perl/python etc) and then hack away. > > > > ----- Original Message ---- > From: Jim Avery > To: Nagios Users List > Sent: Thu, August 12, 2010 5:05:42 PM > Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results > > On 12 August 2010 21:27, Hall, JC wrote: > > I have a situation where I would like to apply a multiplier to the > results > > of a check_snmp output. > > > > The situation is this: > > > > The value received from my check_snmp = 20717. The integer multiplier > for > > this particular OID is 0.01. > > > > The output I want reported to Nagios is 20717 x 0.01 = 207.17. > > > > Looking through the options of the check_snmp plugin, I can?t determine > how > > I could accomplish this. > > > > > > > > Any thoughts are appreciated. > > > +1 to that! > > I was doing some monitoring on a UPS yesterday and found the current > is given as an integer which is 10x the Amps, so it would be great to > be able to divide by 10 (or multiply by whatever) in check_snmp. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 -- Gary Every "Pay it Forward!" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From trisha at rockyou.com Fri Aug 13 02:18:15 2010 From: trisha at rockyou.com (Trisha Hoang) Date: Thu, 12 Aug 2010 17:18:15 -0700 Subject: displaying multiple lines of output in the GUI Message-ID: Hi, I've upgraded nrpe to 2.12 and got multiple lines output from NRPE, and on the nagios server, I can see multiple lines in the "Service State Information" dialog box when clicked on the service link. However, on the main page, only 1 long line shows up and the 2nd line is cut off. Is it possible to have multiple lines of output per service on the 'main' page? Please let me know if you need more info. Thanks. Trisha -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 8300 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From senapati2001 at yahoo.com Fri Aug 13 06:10:26 2010 From: senapati2001 at yahoo.com (p sena) Date: Thu, 12 Aug 2010 21:10:26 -0700 (PDT) Subject: help explanation. Message-ID: <826260.8972.qm@web45114.mail.sp1.yahoo.com> Hi All, I was trying to understand from this example below. Can someone please explain me(considering newbie) this simple example on it's flow, the stages and the actions/events etc... Why the rows form 2-5 says State change = Yes consecutively ? This is from the bottommost example in this link (in case the below pasted one is unclear)- http://nagios.sourceforge.net/docs/3_0/statetypes.html Example Here's an example of how state types are determined, when state changes occur, and when event handlers and notifications are sent out. The table below shows consecutive checks of a service over time. The service has a max_check_attempts value of 3. Time Check # State State Type State Change Notes 0 1 OK HARD No Initial state of the service 1 1 CRITICAL SOFT Yes First detection of a non-OK state. Event handlers execute. 2 2 WARNING SOFT Yes Service continues to be in a non-OK state. Event handlers execute. 3 3 CRITICAL HARD Yes Max check attempts has been reached, so service goes into a HARD state. Event handlers execute and a problem notification is sent out. Check # is reset to 1 immediately after this happens. 4 1 WARNING HARD Yes Service changes to a HARD WARNING state. Event handlers execute and a problem notification is sent out. 5 1 WARNING HARD No Service stabilizes in a HARD problem state. Depending on what the notification interval for the service is, another notification might be sent out. 6 1 OK HARD Yes Service experiences a HARD recovery. Event handlers execute and a recovery notification is sent out. 7 1 OK HARD No Service is still OK. 8 1 UNKNOWN SOFT Yes Service is detected as changing to a SOFT non-OK state. Event handlers execute. 9 2 OK SOFT Yes Service experiences a SOFT recovery. Event handlers execute, but notification are not sent, as this wasn't a "real" problem. State type is set HARD and check # is reset to 1 immediately after this happens. 10 1 OK HARD No Service stabilizes in an OK state. Thanks in advance, sena ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From shane.killian at irishjobs.ie Fri Aug 13 09:27:19 2010 From: shane.killian at irishjobs.ie (Shane Killian) Date: Fri, 13 Aug 2010 08:27:19 +0100 Subject: ICMP Blocked - Windows Host In-Reply-To: References: Message-ID: Awesome, Thanks for the response. I'm a total novice when it comes to Nagios so I'm going to be figuring this out for a while :) Kind Regards, Shane Killian Systems Administrator Irishjobs.ie -----Original Message----- From: Jim Avery [mailto:jim at jimavery.me.uk] Sent: 12 August 2010 22:38 To: Nagios Users List Subject: Re: [Nagios-users] ICMP Blocked - Windows Host On 12 August 2010 22:06, Shane Killian wrote: > Hi all, > > I am using NSClient++ to monitor several Windows boxes. It is not possible to allow ICMP echo on these boxes. > > For this reason, I can monitor processes and services but the host itself shows as up. > > Is there a way around this? > Is it possible to do a check other than ping to show a host status of up? Yes, the host check can be anything you like. Something like check_nt -V client_version would do the trick (forgive me if my syntax isn't quite right - going from memory). You could alternatively do an snmp query of the switch port the host is connected to, but that's a bit complicated I guess. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Sebastian.Ries at dtnet.de Fri Aug 13 09:27:51 2010 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Fri, 13 Aug 2010 09:27:51 +0200 Subject: check_proc --metric=CPU - alternatives? In-Reply-To: References: <1281420751.2812.6.camel@bofh.dtnet.de> Message-ID: <1281684471.5064.3.camel@bofh.dtnet.de> Hi > p.s. also take a look at: > > http://nagios.manubulon.com/snmp_process.html Thanks this was nearly what I was looking for ;-) It solves my calculation problem but it seams that it only counts the whole CPU usage for all processes. I have about 60 processes (with the same name) and need to get an alert if ONE (or more) of them uses mor than 90% CPU. Did I miss the right option? Or ss there a similar script that covers my needs? Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Fri Aug 13 10:34:00 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 13 Aug 2010 09:34:00 +0100 Subject: ICMP Blocked - Windows Host In-Reply-To: References: Message-ID: On 13 August 2010 08:27, Shane Killian wrote: > Awesome, > > Thanks for the response. > I'm a total novice when it comes to Nagios so I'm going to be figuring this out for ?a while :) If you want a head start, I can heartily recommend the book 'Nagios' by Wofgang Barth, published by No Starch Press. It explains how everything fits together in Nagios really well. Obviously keep asking here too. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Fri Aug 13 10:43:44 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 13 Aug 2010 09:43:44 +0100 Subject: check_proc --metric=CPU - alternatives? In-Reply-To: <1281684471.5064.3.camel@bofh.dtnet.de> References: <1281420751.2812.6.camel@bofh.dtnet.de> <1281684471.5064.3.camel@bofh.dtnet.de> Message-ID: On 13 August 2010 08:27, Sebastian Ries wrote: > Hi > >> p.s. also take a look at: >> >> http://nagios.manubulon.com/snmp_process.html > > Thanks this was nearly what I was looking for ;-) > > It solves my calculation problem but it seams that it only counts the > whole CPU usage for all processes. > > I have about 60 processes (with the same name) and need to get an alert > if ONE (or more) of them uses mor than 90% CPU. > > Did I miss the right option? According to the documentation, the -n option is used to give a regex which selects which process(es) you are monitoring and the -u option should work on the sum of the CPU for those selected processes only. The example given is: ./check_snmp_process.pl -H 127.0.0.1 -C public -n http -w 3,8 -c 0,15 -m 9,25 -u 70,99 which should alert if the total cpu of all processes haveing 'http' in the name is > 70. To get the plugin to do exactly what you describe, you will need to edit the perl code a bit. Bear in mind that you can never have more than one process using >90% cpu in the same period! ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rab at walkermartyn.co.uk Fri Aug 13 11:20:20 2010 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Fri, 13 Aug 2010 10:20:20 +0100 Subject: What Switch Metric Are You Monitoring Message-ID: I'm currently on Nagios Core 3.2.1 and I'm just starting to setup monitoring of our network switches. Can someone share what switch metrics they are recording (and find most useful). Just now, I'm only registering PING and Uptime (through SMNP). Also how are you handling parent/child relationships for the switches/ports etc? Basically if a switch is down, then I would only want to receive and alert regarding this and not anything else related to the port or device connected to the port. Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From CMacleod at edrington.co.uk Fri Aug 13 11:57:54 2010 From: CMacleod at edrington.co.uk (Macleod, Chris) Date: Fri, 13 Aug 2010 10:57:54 +0100 Subject: What Switch Metric Are You Monitoring Message-ID: Hello Rab, I monitor the following services on my Cisco Switches. Ping Uplink status + bandwidth utilisation CPU (Avg 5 mins) Environment (FAN, PSU) If my server was connected to the network as below: Server1 => Switch1 => Switch2 => Localhost (Nagios) I would configure the parent/child relationship this way. Server1 Parent = Switch1 Switch1 Parent = Switch2 Switch2 Parent = Localhost If you do this you will end up with the Nagios network map looking like your network documentation. Also If switch2 does down Nagios will assume Switch1 and Server1 are also unavailable and will suppress notifications. I have also setup service dependencies so that all my switch as follows define servicedependency { dependent_host_name HPK3044 dependent_service_description CPU 5 min average,Environmental monitoring,Link to HPD-LRE Bandwidth,Link to HPD-LRE Status,Link to HPKDC1 Bandwidth,Link to HPKDC1 Status,Vlan 1 Bandwidth,Vlan 1 Status host_name HPK3044 service_description Ping inherits_parent 1 execution_failure_criteria w,u,c notification_failure_criteria w,u,c dependency_period 24x7 This makes all the monitored services on the switch dependant on the switch being pingable. If the ping service is in the warning, critical or unknown state all the other services will not produce notifications. Hope this helps Chris Macleod From: Robert Jackson [mailto:rab at walkermartyn.co.uk] Sent: 13 August 2010 10:20 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] What Switch Metric Are You Monitoring I'm currently on Nagios Core 3.2.1 and I'm just starting to setup monitoring of our network switches. Can someone share what switch metrics they are recording (and find most useful). Just now, I'm only registering PING and Uptime (through SMNP). Also how are you handling parent/child relationships for the switches/ports etc? Basically if a switch is down, then I would only want to receive and alert regarding this and not anything else related to the port or device connected to the port. Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk. Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** ________________________________________________________________________ This e-mail has been scanned for all viruses by MessageLabs. TEG-IN ________________________________________________________________________ This e-mail has been scanned for all viruses by Message Labs. Please enjoy our brands responsibly. www.drinkaware.co.uk The Edrington Group is a private limited company registered in Scotland (Registered Number SC 36374) with its Registered Office at 2500 Great Western Road, Glasgow, G15 6RW. ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From Sebastian.Ries at dtnet.de Fri Aug 13 12:10:47 2010 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Fri, 13 Aug 2010 12:10:47 +0200 Subject: check_proc --metric=CPU - alternatives? In-Reply-To: References: <1281420751.2812.6.camel@bofh.dtnet.de> <1281684471.5064.3.camel@bofh.dtnet.de> Message-ID: <1281694247.5064.14.camel@bofh.dtnet.de> Hi > According to the documentation, the -n option is used to give a regex > which selects which process(es) you are monitoring and the -u option > should work on the sum of the CPU for those selected processes only. > > The example given is: > > ./check_snmp_process.pl -H 127.0.0.1 -C public -n http -w 3,8 -c 0,15 > -m 9,25 -u 70,99 This is what I tried but as I described all processes have the same name :-( > which should alert if the total cpu of all processes haveing 'http' in > the name is > 70. And I want to get an alert if ANY of these processes uses more than the given value. > To get the plugin to do exactly what you describe, you will need to > edit the perl code a bit. Bear in mind that you can never have more > than one process using >90% cpu in the same period! Not really true ;-) As this machine has 8 real CPU-Cores with HT enabled there can be up to 16 Processes with more than 90% CPU usage ;-) I will have a look in the perl code. Maybe it is a only small adaption... Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Sebastian.Ries at dtnet.de Fri Aug 13 12:11:37 2010 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Fri, 13 Aug 2010 12:11:37 +0200 Subject: check_proc --metric=CPU - alternatives? In-Reply-To: References: <1281420751.2812.6.camel@bofh.dtnet.de> <1281684471.5064.3.camel@bofh.dtnet.de> Message-ID: <1281694297.5064.16.camel@bofh.dtnet.de> Hi > According to the documentation, the -n option is used to give a regex > which selects which process(es) you are monitoring and the -u option > should work on the sum of the CPU for those selected processes only. > > The example given is: > > ./check_snmp_process.pl -H 127.0.0.1 -C public -n http -w 3,8 -c 0,15 > -m 9,25 -u 70,99 This is what I tried but as I described all processes have the same name :-( > which should alert if the total cpu of all processes haveing 'http' in > the name is > 70. And I want to get an alert if ANY of these processes uses more than the given value. > To get the plugin to do exactly what you describe, you will need to > edit the perl code a bit. Bear in mind that you can never have more > than one process using >90% cpu in the same period! Not really true ;-) As this machine has 8 real CPU-Cores with HT enabled there can be up to 16 Processes with more than 90% CPU usage ;-) I will have a look in the perl code. Maybe it is a only small adaption... Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at isprime.org Fri Aug 13 13:01:56 2010 From: nagios at isprime.org (Kyle O'Donnell) Date: Fri, 13 Aug 2010 07:01:56 -0400 Subject: =?utf-8?q?check=5Fproc_--metric=3DCPU_-_alternativ?= =?utf-8?b?ZXM/?= In-Reply-To: <1281694297.5064.16.camel@bofh.dtnet.de> References: <1281420751.2812.6.camel@bofh.dtnet.de> <1281684471.5064.3.camel@bofh.dtnet.de> <1281694297.5064.16.camel@bofh.dtnet.de> Message-ID: <903893a7d700d277dd0a7aa8621f1c2d@localhost> I wrote one. I cant find it online anymore but here it is: Tries to use top if in linux, in solaris and aix i have a new version of top installed into my nagios tree, otherwise it falls back on prstat or ps feel free to use, might be buggy though! On Fri, 13 Aug 2010 12:11:37 +0200, Sebastian Ries wrote: > Hi > >> According to the documentation, the -n option is used to give a regex >> which selects which process(es) you are monitoring and the -u option >> should work on the sum of the CPU for those selected processes only. >> >> The example given is: >> >> ./check_snmp_process.pl -H 127.0.0.1 -C public -n http -w 3,8 -c 0,15 >> -m 9,25 -u 70,99 > > This is what I tried but as I described all processes have the same > name :-( > >> which should alert if the total cpu of all processes haveing 'http' in >> the name is > 70. > > And I want to get an alert if ANY of these processes uses more than the > given value. > >> To get the plugin to do exactly what you describe, you will need to >> edit the perl code a bit. Bear in mind that you can never have more >> than one process using >90% cpu in the same period! > > Not really true ;-) > As this machine has 8 real CPU-Cores with HT enabled there can be up to > 16 Processes with more than 90% CPU usage ;-) > > I will have a look in the perl code. Maybe it is a only small > adaption... > > Regards > Sebastian Ries -------------- next part -------------- #!/opt/nagios/bin/perl # use strict; use Getopt::Long; use POSIX "uname"; use vars qw($PROGNAME); use lib "/opt/nagios/libexec"; use utils qw (%ERRORS &print_revision &support &usage); sub print_help (); sub print_usage (); # set variables my ($opt_c, $opt_w, $opt_a, $opt_m, $opt_p, $opt_h, $opt_V, $PROGVER, $opt_t, $deftype); my ($line, $pid, $user, $prior, $nice, $vsz, $rss, $shr, $state, $cpu, $mem, $time, $cmd, @args); my ($chkcmd, $tty, $start, $tty, $date1, $date2, $date3, $startm, $startd); my ($avg, $m, $sumavg, %add, $message, @arrcmd, $size, $pri, $lwp, $uid, $args, $wcpu); my $loop = 0; my $sum = 0; my $pidcount = 0; my $exitcode = 0; my $opt_i = 2; my $opt_d = 1; $PROGNAME="check_procs_usage"; $PROGVER="1.0"; # set commands to gather data for each OS my ($sysname, $nodename, $release, $version, $machine ) = uname; Getopt::Long::Configure('bundling'); GetOptions( "V" => \$opt_V, "version" => \$opt_V, "h" => \$opt_h, "help" => \$opt_h, "m=s" => \$opt_m, "metric=s" => \$opt_m, "w=f" => \$opt_w, "warn=f" => \$opt_w, "c=f" => \$opt_c, "crit=f" => \$opt_c, "p=s" => \$opt_p, "pidname=s" => \$opt_p, "a=s" => \$opt_a, "args=s" => \$opt_a, "d=f" => \$opt_d, "delay=f" => \$opt_d, "t=s" => \$opt_t, "type=s" => \$opt_t, "i=f" => \$opt_i, "iter=f" => \$opt_i); if ($sysname =~ /Linux/) { $deftype = "top"; if (($opt_t =~ /$deftype/) || ($opt_t eq "")) { $chkcmd = "/usr/bin/top -b -c -n $opt_i -d $opt_d"; } else { print "*** $sysname only supports $deftype ***\n" } } elsif ($sysname =~ /SunOS/) { $deftype = "top"; if (($opt_t =~ /$deftype/) || ($opt_t eq "")) { $chkcmd = "/opt/nagios/bin/top -b -c -C -u -d $opt_i -s $opt_d all"; } elsif ($opt_t =~ /prstat/) { $chkcmd = "/usr/bin/prstat -n 10000 $opt_d $opt_i | /usr/bin/tee"; } else { printf "*** $sysname doesn't support $opt_t ***\n"; } } elsif ($sysname =~ /AIX/) { $deftype = "ps"; if (($opt_t =~ /$deftype/) || ($opt_t eq "")) { $chkcmd = "/usr/bin/ps auxww"; } elsif ($opt_t =~ /top/) { $chkcmd = "/opt/nagios/bin/top -b -c -C -u -d $opt_i -s $opt_d all"; } else { print "*** $sysname does not support $opt_t ***\n"; } } else { printf "$sysname not supported"; } if ($opt_V) { print "$PROGNAME $PROGVER\n"; exit $ERRORS{'UNKNOWN'}; } if ($opt_h) { print_help(); exit $ERRORS{'UNKNOWN'}; } # if required options not set print usage and exit if ((! $opt_w) || (! $opt_c) || (! $opt_m) || (! $opt_p)) { print_usage(); exit $ERRORS{'UNKNOWN'}; } # exit if any of the input does not match requirements if (($opt_w !~ /[0-9]/) || ($opt_c !~ /[0-9]/) || ($opt_m !~ /(CPU|MEM)/) || ($opt_i !~ /[0-9]/) || ($opt_d !~ /[0-9]/)) { print_help; print "\n***unsupported options: warn($opt_w) crit($opt_c) metric($opt_m) delay($opt_d) iterations($opt_i) ***\n\n"; exit $ERRORS{UNKNOWN}; } sub print_usage () { print "\nusage:\n"; print " $PROGNAME -w -c -m -p [-a pidarg] [-d delay] [-i iterations] [-t type] \n"; print " $PROGNAME [-h | --help]\n"; print " $PROGNAME [-V | --version]\n\n"; } sub print_help () { print "\n$PROGNAME $PROGVER\n\n"; print "Kyle O'Donnell (03-05-2009)\n"; print_usage(); print "\n"; print " warn\t\tpercent used resulting in warning state\n"; print " crit\t\tpercent used resulting in critical status\n"; print " metric\tCPU or MEM\n"; print " pidname\tname of process to search for\n"; print " pidarg\targument of a process fot search for\n"; print " delay\t\tdelay in seconds between polling of data (default: 1)\n"; print " iter\t\tnumber of iterations of the top output (default: 2)\n"; print " type\t\tthe command type to use for obtaining metrics (default: see below)\n\n"; print "example: $PROGNAME -w 80 -c 90 -m CPU -p nscd -d 2 -i 5\n"; print " monitor cpu usage of the nscd process, wait 2 secs between collection of 5 data sets\n\n"; print "example: $PROGNAME -w 80 -c 90 -m CPU -p java -a xyz\n"; print " monitor cpu usage of a java process with the argument ayx\n\n"; if ($sysname =~ /SunOS/) { print "*** SunOS detected ... ***\n"; print "*** MEM is not supported! ***\n"; print "*** types supported top ps prstat (default: top) ***\n"; print "*** prstat does not print arguments -a ignored! ***\n\n"; } if ($sysname =~ /AIX/) { print "*** AIX detected ... ***\n"; print "*** types supported: top* ps (default: ps) ***\n"; print "*** man ps to determine if the way CPU% is calcuated matches your requirements ***\n\n"; print "*** expirimental* unixtop does not work fully in AIX ***\n"; print "*** top does not print command names properly ***\n"; print "*** top does not print MEM% -m MEM ignored! ***\n"; print "*** top does not print command arguments ***\n\n"; } if ($sysname =~ /Linux/) { print "*** Linux detected ... ***\n"; print "*** types supported: top (default: top) ***\n\n"; } } #################################################### # # get data by running the command and looping where appropriate # #################################################### sub get_data () { my @output = `$chkcmd`; # this is the most accurate because we can output multiple instaces of top and loop through each set # i have chosen to considered process or processes with the same arguments as one metric # ie: if there are 8 processes with the word httpd and each is consuming 1.0% memory this script # considers httpd to be consuming 8.0% memory (8 processes * 1.0% memory) if ($sysname =~ /Linux/) { foreach $line (@output) { chomp $line; # start the loop on PID, and calculate the sums for each processes until the next PID # PID is a unique identifier used to determine when the next dataset from 'top' starts if ($line =~ /PID/) { $add{$loop} = $sum; undef $sum; $loop++; } else { $line =~ s/^[\s]+//g; ($pid, $user, $prior, $nice, $vsz, $rss, $shr, $state, $cpu, $mem, $time, $cmd, @args) = split(/[\s]+/, $line); if ($cmd =~ /^\//) { # extract the binary name of the command running if path is present @arrcmd = split(/\/+/, $cmd); $cmd = $arrcmd[$#arrcmd]; } if (!defined($opt_a)) { if (($cmd =~ /$opt_p/) && ($line !~ /$PROGNAME/)) { if ($opt_m eq "CPU") { $sum = $sum + $cpu; } if ($opt_m eq "MEM") { $sum = $sum + $mem; } # this variable is used to determine how many $opt_p's are running $pidcount = $pidcount + 1; } else { $message = "OK - process $opt_p is not running"; } } elsif (defined($opt_a)) { if (($cmd =~ /$opt_p/) && ("@args" =~ /$opt_a/) && ($line !~ /$PROGNAME/)) { if ($opt_m eq "CPU") { $sum = $sum + $cpu; } if ($opt_m eq "MEM") { $sum = $sum + $mem; } $pidcount = $pidcount + 1; } else { $message = "OK - process $opt_p with argument $opt_a is not running"; } } else { print "something whacky!"; } } #else } #foreach $line # this is sneaky $add{$loop} = $sum; foreach $m (keys %add) { if ($m > 0) { $sumavg = $add{$m} + $sumavg; } } #foreach $m # calculate average based on sum divided by iterations $avg = $sumavg / $opt_i; # since linux uses top and can get multiple datasets we divide $pidcount by $loop to normalize the number $pidcount = $pidcount / $loop; } #if Linux elsif ($sysname =~ /AIX/) { # aix doesn't have top, or anything equiv out of the box # I've decided to use ps with berkeley options as this gives me the data needed # since this is only one data set it is less accurate as Linux # because we do not calculate average based iterations foreach $line (@output) { chomp $line; if ($line =~ /PID/) { $add{$loop} = $sum; undef $sum; $loop++; } else { $line =~ s/^[\s]+//g; if ($chkcmd =~ /top/) { # top 3.6.1 values ($pid, $uid, $pri, $nice, $size, $rss, $state, $time, $wcpu, $cpu, $cmd) = split(/[\s]+/, $line); } else { # ps values ($user, $pid, $cpu, $mem, $vsz, $rss, $tty, $state, $start, $time, $cmd, @args) = split(/[\s]+/, $line); if ($start =~ /[a-z]/) { ($user, $pid, $cpu, $mem, $vsz, $rss, $tty, $state, $startm, $startd, $time, $cmd, @args) = split(/[\s]+/, $line); } chomp @args; } if ($cmd =~ /^\//) { @arrcmd = split(/\/+/, $cmd); $cmd = $arrcmd[$#arrcmd]; } if (!defined($opt_a)) { if (($cmd =~ /$opt_p/) && ($line !~ /$PROGNAME/)) { if ($opt_m eq "CPU") { $sum = $sum + $cpu; } if ($opt_m eq "MEM") { $sum = $sum + $mem; } $pidcount = $pidcount + 1; } else { $message = "OK - process $opt_p is not running"; } } #if !defined elsif (defined($opt_a)) { if ($chkcmd =~ /ps/) { if (($cmd =~ /$opt_p/) && (@args =~ /$opt_a/) && ($line !~ /$PROGNAME/)) { if ($opt_m eq "CPU") { $sum = $sum + $cpu; } if ($opt_m eq "MEM") { $sum = $sum + $mem; } $pidcount = $pidcount + 1; } else { $message = "OK - process $opt_p with argument $opt_a is not running"; } } #if chkcmd ps else { print "*** -a option cannot be used with top ***\n"; exit 1; } #else chkcmd ps } #elsif defined' else { print "something whacky!"; } } #else PID } #foreach $line $add{$loop} = $sum; foreach $m (keys %add) { if ($m > 0) { $sumavg = $add{$m} + $sumavg; } } #foreach $m $avg = $sumavg; $pidcount = $pidcount / $loop } #elsif AIX elsif ($sysname =~ /SunOS/) { foreach $line (@output) { chomp $line; # start the loop on PID, and calculate the sums for each processes until the next PID # PID is a unique identifier used to determine when the next dataset from 'prstat' starts if ($line =~ /PID/) { $add{$loop} = $sum; undef $sum; $loop++; } #if PID else { $line =~ s/^[\s]+//g; if ($chkcmd =~ /top/) { # top 3.6.1 values ($pid, $uid, $lwp, $pri, $nice, $size, $rss, $state, $time, $cpu, $cmd, @args) = split(/[\s]+/, $line); chomp @args; } else { # prstat values ($pid, $user, $size, $rss, $state, $pri, $nice, $time, $cpu, $cmd) = split(/[\s]+/, $line); } if ($cmd =~ /^\//) { @arrcmd = split(/\/+/, $cmd); $cmd = $arrcmd[$#arrcmd]; } #if $cmd if ($cpu =~ /%/) { $cpu =~ s/%//; } if (!defined($opt_a)) { if (($cmd =~ /$opt_p/) && ($line !~ /$PROGNAME/)) { if ($opt_m eq "CPU") { $sum = $sum + $cpu; } if ($opt_m eq "MEM") { $sum = $sum + $mem; } # this variable is used to determine how many $opt_p's are running $pidcount = $pidcount + 1; } else { $message = "OK - process $opt_p is not running"; } } #if !defined elsif (defined($opt_a)) { if ($chkcmd =~ /top/) { if (($cmd =~ /$opt_p/) && ("@args" =~ /$opt_a/) && ($line !~ /$PROGNAME/)) { if ($opt_m eq "CPU") { $sum = $sum + $cpu; } if ($opt_m eq "MEM") { $sum = $sum + $mem; } $pidcount = $pidcount + 1; } else { $message = "OK - process $opt_p with argument $opt_a is not running"; } } #if chkcmd top else { print "*** -a option cannot be used with prstat, please install top ***\n"; exit 1; } #else chkcmd top } #elsif defined else { print "something whacky\n"; } } #else PID } #foreach $line $add{$loop} = $sum; foreach $m (keys %add) { if ($m > 0) { $sumavg = $add{$m} + $sumavg; } } #foreach $m $avg = $sumavg / $opt_i; $pidcount = $pidcount / $loop; } #elsif SunOS else { printf "what did i tell you about $sysname!\n"; } } #get_data #################################################### # # this sub routine just evaluates output and exits with appropriate message/exitcode # #################################################### sub do_math() { get_data(); if (!defined($sum)) { $message = $message; } elsif ($avg < $opt_w) { if (!defined($opt_a)) { $message = "OK - $pidcount instance(s) of $opt_p using $avg% $opt_m (<$opt_w%)"; } elsif (defined($opt_a)) { $message = "OK - $pidcount instance(s) of $opt_p with arg $opt_a using $avg% $opt_m (<$opt_w%)"; } } elsif ($avg > $opt_c) { if (!defined($opt_a)) { $message = "CRITICAL - $pidcount instance(s) of $opt_p using $avg% $opt_m (>$opt_c%)"; } elsif (defined($opt_a)) { $message = "CRITICAL - $pidcount instance(s) of $opt_p with arg $opt_a using $avg% $opt_m (>$opt_c%)"; } $exitcode = 2; } elsif ($avg > $opt_w) { if (!defined($opt_a)) { $message = "WARNING - $pidcount instance(s) of $opt_p using $avg% $opt_m (>$opt_w%)"; } elsif (defined($opt_a)) { $message = "WARNING - $pidcount instance(s) of $opt_p with arg $opt_a using $avg% $opt_m (>$opt_w%)"; } $exitcode = 1; } else { printf "UNKNOWN - logic broken"; $exitcode = 3; } } #do_math do_math(); print "$message\n"; exit $exitcode; -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jim at jimavery.me.uk Fri Aug 13 13:25:31 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 13 Aug 2010 12:25:31 +0100 Subject: What Switch Metric Are You Monitoring In-Reply-To: References: Message-ID: On 13 August 2010 10:20, Robert Jackson wrote: > I?m currently on Nagios Core 3.2.1 and I?m just starting to setup monitoring > of our network switches. Can someone share what switch metrics they are > recording (and find most useful). Just now, I?m only registering PING and > Uptime (through SMNP). Also how are you handling parent/child relationships > for the switches/ports etc? Basically if a switch is down, then I would only > want to receive and alert regarding this and not anything else related to > the port or device connected to the port. I configure the switch to send traps to the Nagios server (received using snmptrapd and processed using snmptt), and configure the switch so that traps are sent if switch-switch links go up/down but not ordinary switch ports with servers and PCs on. Other than that, I monitor link bandwidth where it really interests me, for example on the ports serving our most busy systems and one or two which link main data centres together. The usual rule with Nagios parent relationships is that the parent is the device closer to the Nagios server than the child. Don't forget you can have more than one parent if that's how your network is. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From dario.bestetti at opservices.com.br Fri Aug 13 14:36:00 2010 From: dario.bestetti at opservices.com.br (Dario B. Bestetti (OpServices)) Date: Fri, 13 Aug 2010 09:36:00 -0300 (BRT) Subject: OpService's DaVINCI In-Reply-To: <1869167.20980.1281702814603.JavaMail.root@mail.opservices.com.br> References: <1869167.20980.1281702814603.JavaMail.root@mail.opservices.com.br> Message-ID: <13092159.20995.1281702960051.JavaMail.root@mail.opservices.com.br> For those of you that want to give it a try: http://www.opservices.com.br/opservices-davinci []s Dario -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ck at claudiokuenzler.com Fri Aug 13 16:32:49 2010 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Fri, 13 Aug 2010 16:32:49 +0200 Subject: What Switch Metric Are You Monitoring In-Reply-To: References: Message-ID: The same checks as the others mentioned: CPU utilization, environment (Power Supplies, FAN), child-parent relationship and uptime. Additionally to that, depending on the switch, I also check the Cisco Stack status, the memory usage and either a single port or several port ranges for their operational status. On Fri, Aug 13, 2010 at 1:25 PM, Jim Avery wrote: > On 13 August 2010 10:20, Robert Jackson wrote: > > I?m currently on Nagios Core 3.2.1 and I?m just starting to setup > monitoring > > of our network switches. Can someone share what switch metrics they are > > recording (and find most useful). Just now, I?m only registering PING and > > Uptime (through SMNP). Also how are you handling parent/child > relationships > > for the switches/ports etc? Basically if a switch is down, then I would > only > > want to receive and alert regarding this and not anything else related to > > the port or device connected to the port. > > I configure the switch to send traps to the Nagios server (received > using snmptrapd and processed using snmptt), and configure the switch > so that traps are sent if switch-switch links go up/down but not > ordinary switch ports with servers and PCs on. > > Other than that, I monitor link bandwidth where it really interests > me, for example on the ports serving our most busy systems and one or > two which link main data centres together. > > The usual rule with Nagios parent relationships is that the parent is > the device closer to the Nagios server than the child. Don't forget > you can have more than one parent if that's how your network is. > > hth, > > Jim > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From linuxassassin at gmail.com Fri Aug 13 17:03:44 2010 From: linuxassassin at gmail.com (Charlie Reddington) Date: Fri, 13 Aug 2010 10:03:44 -0500 Subject: Passive freshness checks -> active checks In-Reply-To: References: <364707D7-0ED6-4744-939F-3486E2B230EC@gmail.com> Message-ID: <847C52FB-318C-423C-B4B7-AB954C56BF93@gmail.com> Hey All, >> I'll check out the stats and turn on debugging next to see if there >> is >> anything there. In the mean time, what version of nagios are you >> running? > > Nagios Core 3.2.1 This seems to be the problem right here. I upgraded to nagios 3.2.1 from 3.2.0 and nagios now honors my thresholds properly. I looked at the change log and didn't see this listed as a fix, but maybe I'm just blind. Either way, this is the fix (upgrading) for those that follow in my foot steps. Thanks, Charlie ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rab at walkermartyn.co.uk Fri Aug 13 19:01:36 2010 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Fri, 13 Aug 2010 18:01:36 +0100 Subject: rab@walkermartyn.co.uk - Bayesian Filter detected spam - Re: What Switch Metric Are You Monitoring References: Message-ID: I'm having problems sourcing a plug-in to monitor CPU and interface bandwidth. I would also prefer plug-ins with output to allow graphing trends by PNP4Nagios. Do you know of any? From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] Sent: Friday 13 August 2010 15:33 To: Nagios Users List Subject: rab at walkermartyn.co.uk - Bayesian Filter detected spam - Re: [Nagios-users] What Switch Metric Are You Monitoring The same checks as the others mentioned: CPU utilization, environment (Power Supplies, FAN), child-parent relationship and uptime. Additionally to that, depending on the switch, I also check the Cisco Stack status, the memory usage and either a single port or several port ranges for their operational status. On Fri, Aug 13, 2010 at 1:25 PM, Jim Avery wrote: On 13 August 2010 10:20, Robert Jackson wrote: > I'm currently on Nagios Core 3.2.1 and I'm just starting to setup monitoring > of our network switches. Can someone share what switch metrics they are > recording (and find most useful). Just now, I'm only registering PING and > Uptime (through SMNP). Also how are you handling parent/child relationships > for the switches/ports etc? Basically if a switch is down, then I would only > want to receive and alert regarding this and not anything else related to > the port or device connected to the port. I configure the switch to send traps to the Nagios server (received using snmptrapd and processed using snmptt), and configure the switch so that traps are sent if switch-switch links go up/down but not ordinary switch ports with servers and PCs on. Other than that, I monitor link bandwidth where it really interests me, for example on the ports serving our most busy systems and one or two which link main data centres together. The usual rule with Nagios parent relationships is that the parent is the device closer to the Nagios server than the child. Don't forget you can have more than one parent if that's how your network is. hth, Jim ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From tinzauro at ha-solutions.net Fri Aug 13 20:56:22 2010 From: tinzauro at ha-solutions.net (Terry Inzauro) Date: Fri, 13 Aug 2010 13:56:22 -0500 Subject: Exclude host from status map Message-ID: <4C659556.2030303@ha-solutions.net> List, I would like to exclude a host from the status map. Is there a way to accomplish this? Basically, I am trying to monitor some IP aliases without cluttering up my map. kind regards, Terry ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Fri Aug 13 21:58:52 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 13 Aug 2010 20:58:52 +0100 Subject: Exclude host from status map In-Reply-To: <4C659556.2030303@ha-solutions.net> References: <4C659556.2030303@ha-solutions.net> Message-ID: On 13 August 2010 19:56, Terry Inzauro wrote: > List, > > I would like to exclude a host from the status map. Is there a way to accomplish this? ?Basically, I am trying to monitor > some IP aliases without cluttering up my map. I don't think you can do that unless you use an alternative map addon like NexSM for example. You could maybe monitor the IP Aliases as services rather than hosts? ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From polifemos at conedsolutions.com Sat Aug 14 01:58:46 2010 From: polifemos at conedsolutions.com (Polifemo, Salvatore) Date: Fri, 13 Aug 2010 19:58:46 -0400 Subject: Email echo monitoring In-Reply-To: References: Message-ID: <5BE7D0404F28DC44B780100927AA4CB018664A03@whplex3.int.cecdes.net> Shane I currently doing a similar thing to check for delivery delay and did not find any existing plugins that do that. I wrote a couple of scripts one to send email via gmail "with the time stamp in the subject field" and a second script to check the Exchange mailbox and calculate diffelrence between the received time stamp and the sent time stamp in the subject field. I completed these scripts and need to finish the last script to calculate the delay and pass the values it to Nagios. The scripts are written in perl, if you are interested I will post them. Sal -----Original Message----- From: Shane Killian [mailto:shane.killian at irishjobs.ie] Sent: Thursday, August 12, 2010 5:12 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Email echo monitoring Hi, I would like to monitor email delivery. I'm using microsoft exchange and I want to automate a message to echo at esat.net - this is an autoresponding address with an ISP. Does anyone have a method for this? Shane -------------------------- Sent using BlackBerry E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From noc at fohnet.co.uk Sat Aug 14 14:07:53 2010 From: noc at fohnet.co.uk (Richard Clark) Date: Sat, 14 Aug 2010 13:07:53 +0100 Subject: Email echo monitoring In-Reply-To: <5BE7D0404F28DC44B780100927AA4CB018664A03@whplex3.int.cecdes.net> References: <5BE7D0404F28DC44B780100927AA4CB018664A03@whplex3.int.cecdes.net> Message-ID: <2B822997-6A54-47D8-B46F-3A6D92B2AA7C@fohnet.co.uk> yes please. I was going to write something similar but if you've already done the work.. -- Richard Clark richard at fohnet.co.uk On 14 Aug 2010, at 00:58, "Polifemo, Salvatore" wrote: > Shane > > I currently doing a similar thing to check for delivery delay and did > not find any existing plugins that do that. > I wrote a couple of scripts one to send email via gmail "with the time > stamp in the subject field" and a second script to check the Exchange > mailbox and calculate diffelrence between the received time stamp and > the sent time stamp in the subject field. > I completed these scripts and need to finish the last script to > calculate the delay and pass the values it to Nagios. > > The scripts are written in perl, if you are interested I will post > them. > > Sal > > -----Original Message----- > From: Shane Killian [mailto:shane.killian at irishjobs.ie] > Sent: Thursday, August 12, 2010 5:12 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Email echo monitoring > > Hi, > > I would like to monitor email delivery. > > I'm using microsoft exchange and I want to automate a message to > echo at esat.net - this is an autoresponding address with an ISP. > > > Does anyone have a method for this? > > > Shane > > -------------------------- > Sent using BlackBerry > > E-mail Disclaimer: > > The information contained in this message is confidential and is > intended for the addressee only. If you have received this message in > error or there are any problems please notify the originator > immediately. The unauthorized use, disclosure, copying or alteration > of > this message is strictly forbidden. This mail and any attachments have > been scanned for viruses prior to leaving the network of saongroup.com > > saongroup.com will not be liable for direct, special, indirect or > consequential damages arising from alteration of the contents of this > message by a third party or as a result of any virus being passed on. > saongroup.com reserves the right to monitor and record e-mail messages > sent to and from this address for the purposes of investigating or > detecting any unauthorized use of its system and ensuring its > effective > operation. > > > > --- > --------------------------------------------------------------------- > ------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > > --- > --- > --- > --------------------------------------------------------------------- > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From lists at xodus.org Sat Aug 14 15:29:23 2010 From: lists at xodus.org (Marc Powell) Date: Sat, 14 Aug 2010 08:29:23 -0500 Subject: Email echo monitoring In-Reply-To: References: Message-ID: On Aug 12, 2010, at 4:11 PM, Shane Killian wrote: > Hi, > > I would like to monitor email delivery. > > I'm using microsoft exchange and I want to automate a message to echo at esat.net - this is an autoresponding address with an ISP. > > > Does anyone have a method for this? check_email_loop would probably work fine for this. http://exchange.nagios.org/directory/Plugins/Email-and-Groupware/check_email_loop/details -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From benny at bennyvision.com Sat Aug 14 15:44:49 2010 From: benny at bennyvision.com (C. Bensend) Date: Sat, 14 Aug 2010 08:44:49 -0500 Subject: Email echo monitoring In-Reply-To: <2B822997-6A54-47D8-B46F-3A6D92B2AA7C@fohnet.co.uk> References: <5BE7D0404F28DC44B780100927AA4CB018664A03@whplex3.int.cecdes.net> <2B822997-6A54-47D8-B46F-3A6D92B2AA7C@fohnet.co.uk> Message-ID: <16cfb2eef7ace6876ead2c6fa3f32dd6.squirrel@webmail.stinkweasel.net> > yes please. > > I was going to write something similar but if you've already done the > work.. C'mon, people, where did you look? http://exchange.nagios.org/directory/Plugins/Email-and-Groupware/check_email_delivery/details This package contains multiple plugins, that when they are all set up, will check your mail delivery system end-to-end. While the initial configuration gave me some gray hairs, it has been monitoring our Exchange environment for many months now and has caught everything I'd expect it to. Benny -- "Something's going on in this house - last night, I saw a face!" "Did it have a nose?" "Yes!" "That sounds like a face all right." -- Scary Movie 4 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From polifemos at conedsolutions.com Sat Aug 14 19:47:18 2010 From: polifemos at conedsolutions.com (Polifemo, Salvatore) Date: Sat, 14 Aug 2010 13:47:18 -0400 Subject: Email echo monitoring References: <5BE7D0404F28DC44B780100927AA4CB018664A03@whplex3.int.cecdes.net><2B822997-6A54-47D8-B46F-3A6D92B2AA7C@fohnet.co.uk> <16cfb2eef7ace6876ead2c6fa3f32dd6.squirrel@webmail.stinkweasel.net> Message-ID: <5BE7D0404F28DC44B780100927AA4CB00C011F00@whplex3.int.cecdes.net> Benny, Thanks for the reply, this saved me a lot of extra work. -----Original Message----- From: C. Bensend [mailto:benny at bennyvision.com] Sent: Sat 8/14/2010 9:44 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Email echo monitoring > yes please. > > I was going to write something similar but if you've already done the > work.. C'mon, people, where did you look? http://exchange.nagios.org/directory/Plugins/Email-and-Groupware/check_email_delivery/details This package contains multiple plugins, that when they are all set up, will check your mail delivery system end-to-end. While the initial configuration gave me some gray hairs, it has been monitoring our Exchange environment for many months now and has caught everything I'd expect it to. Benny -- "Something's going on in this house - last night, I saw a face!" "Did it have a nose?" "Yes!" "That sounds like a face all right." -- Scary Movie 4 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From benny at bennyvision.com Sat Aug 14 22:57:55 2010 From: benny at bennyvision.com (C. Bensend) Date: Sat, 14 Aug 2010 15:57:55 -0500 Subject: Email echo monitoring In-Reply-To: <5BE7D0404F28DC44B780100927AA4CB00C011F00@whplex3.int.cecdes.net> References: <5BE7D0404F28DC44B780100927AA4CB018664A03@whplex3.int.cecdes.net><2B822997-6A54-47D8-B46F-3A6D92B2AA7C@fohnet.co.uk> <16cfb2eef7ace6876ead2c6fa3f32dd6.squirrel@webmail.stinkweasel.net> <5BE7D0404F28DC44B780100927AA4CB00C011F00@whplex3.int.cecdes.net> Message-ID: <3065ee0f27d5804472573f4bada2a4cd.squirrel@webmail.stinkweasel.net> > Thanks for the reply, this saved me a lot of extra work. No worries... Configuration was a pain, but it works *very* well. It will alert when the message sent is not received, as well as when message delivery latency exceeds your thresholds. Very nice. NOTE: Make it a part of your scheduled maintenance to manually check the inbox of the account you're delivering to - there *will* be occasional timeouts, and the test messages can tend to accumulate if you don't have a method to clean them up periodically. Benny -- "Something's going on in this house - last night, I saw a face!" "Did it have a nose?" "Yes!" "That sounds like a face all right." -- Scary Movie 4 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From wcooley at nakedape.cc Mon Aug 16 00:28:27 2010 From: wcooley at nakedape.cc (Wil Cooley) Date: Sun, 15 Aug 2010 15:28:27 -0700 Subject: Sane (ab)use of escalations? Message-ID: <1281911307.8120.113.camel@wiltop> We are in the process of rebuilding our Nagios setup, which is an ancient 1.x installation, to 3.2.1. We want to re-implement the following policy for notifications: * During the work day, everyone in contactgroup gets notifications * Outside of working hours, * On-call person gets paged immediately * Everyone in contactgroup gets paged after 5 notifications This is currently implemented by having 2 contact objects for every user, one for work-hours and one for off-hours, each with appropriate *_notification_periods. Notifications go to all N*2 contacts and the individual contact's notification periods handles whether or not to page. I believe we can implement the policy using escalations. First, all hosts & services have a contact that delivers notifications to a shared IMAP folder, to get around the requirement of these objects having contacts. Next, to implement the work-hours piece, a service escalation such as: define serviceescalation { hostgroup_name unix-hosts service_description * contact_groups unix-admins first_notification 1 last_notification 0 escalation_period work-hours } And a corresponding hostescalation. To implement the off-hours piece, escalations such as: define serviceescalation { hostgroup_name unix-hosts contact_groups on-call service_description * first_notification 1 last_notification 0 escalation_period off-hours } define serviceescalation { hostgroup_name unix-hosts contact_groups unix-admins service_description * first_notification 5 last_notification 0 escalation_options c escalation_period off-hours } With this setup, all "real" notifications happen through these escalations, in effect using them as a "servicenotification" object, which kinda seems better from a data-normalization perspective (but IANADBA). Does this seem like it should work as I expect? Can anyone see any problems? I have not actually tried this, so I don't know if it works. As an aside, does anyone have any ideas of how to test this kind of thing? Perhaps submitting passive check results and having timeperiods of "oddminutes" and "evenminutes"? Wil ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Stuart.Jones at health.wa.gov.au Mon Aug 16 02:21:11 2010 From: Stuart.Jones at health.wa.gov.au (Jones, Stuart) Date: Mon, 16 Aug 2010 08:21:11 +0800 Subject: What Switch Metric Are You Monitoring In-Reply-To: References: Message-ID: Here are some that we're using, it is primarily a personal choice and setting dependant: check_snmp!-C public -o sysUpTime.0 check_snmp!-C public -o ifOperStatus.10125 -r 1 -m RFC1213-MIB [for specific interfaces - up/downlinks - trunks] check_snmp!-C public -o 1.3.6.1.4.1.9.2.1.57.0 -w 80 -c 90 [60 second CPU load c3xx0] check_snmp!-C public -o 1.3.6.1.4.1.9.9.48.1.1.1.6.1!50000 [free CPU memory c3xx0] check_snmp!-C public -o 1.3.6.1.4.1.9.9.48.1.1.1.6.2!10000 [free I-O memory c3xx0] check_snmp!-C public -P 2c -o 1.3.6.1.4.1.9.9.13.1.3.1.3.60010 -w 60 -c 65 [c650x module 1 temperature .60010 - .60019 plus] check_snmp!-C public -P 2c -o 1.3.6.1.4.1.9.9.13.1.3.1.6.60010 -r 1 [module 1 temperature state c650x] check_snmp!-C public -P 2c -o 1.3.6.1.4.1.9.9.13.1.5.1.3.1 -r 1 [power supply c650x state] check_snmp!-C public -P 2c -o 1.3.6.1.4.1.9.9.13.1.4.1.3.1 -r 1 [c650x fan tray state] check_snmp!-C public -P 2c -o 1.3.6.1.4.1.9.9.13.1.4.1.3.2 -r 1 [PSU 1 fan state c650x] check_snmp!-C public -P 2c -o 1.3.6.1.4.1.9.9.13.1.5.1.3.1 -r 1 [PSU 1 state c650x] check_snmp!-C public -P 2c -o 1.3.6.1.4.1.9.9.276.1.4.1.1.4.4 -w 7000000000 -c 7500000000 [5 min interface output load c650x .2.4 for the input] ________________________________ From: Robert Jackson [mailto:rab at walkermartyn.co.uk] Sent: Friday, 13 August 2010 5:20 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] What Switch Metric Are You Monitoring I'm currently on Nagios Core 3.2.1 and I'm just starting to setup monitoring of our network switches. Can someone share what switch metrics they are recording (and find most useful). Just now, I'm only registering PING and Uptime (through SMNP). Also how are you handling parent/child relationships for the switches/ports etc? Basically if a switch is down, then I would only want to receive and alert regarding this and not anything else related to the port or device connected to the port. Regards, Rab. ===================================================== Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus Place Email: rab at walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk ===================================================== ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk. Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From mike-nagios at 5dninja.net Mon Aug 16 02:37:22 2010 From: mike-nagios at 5dninja.net (Mike Lindsey) Date: Sun, 15 Aug 2010 17:37:22 -0700 (PDT) Subject: 3.2.1 and non-incrementing notification count? Message-ID: I just migrated to a 3.2.1 instance, from a 3.0.6 instance, with the same configuration. Now I have some UNKNOWN results that are generating a notification every five minutes. The notification interval on the services is 720 minutes, and same for the service escalation. Every five minutes I'm getting a new email from the services, and the notification counts in the ui still reads '0'. Anyone seen this before? -- Mike Lindsey ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From mike-nagios at 5dninja.net Mon Aug 16 04:11:36 2010 From: mike-nagios at 5dninja.net (Mike Lindsey) Date: Sun, 15 Aug 2010 19:11:36 -0700 Subject: 3.2.1 and non-incrementing notification count? In-Reply-To: References: Message-ID: Had bad source. Recompiled and it's gone away. On Aug 15, 2010, at 5:37 PM, Mike Lindsey wrote: > I just migrated to a 3.2.1 instance, from a 3.0.6 instance, with the same > configuration. Now I have some UNKNOWN results that are generating a > notification every five minutes. The notification interval on the > services is 720 minutes, and same for the service escalation. > > Every five minutes I'm getting a new email from the services, and the > notification counts in the ui still reads '0'. > > Anyone seen this before? > > -- > Mike Lindsey > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From ravishankar.gundlapali at wipro.com Mon Aug 16 13:44:38 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Mon, 16 Aug 2010 17:14:38 +0530 Subject: Using two nagios servers... References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0BE5@PNE-HJN-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F028756D9@HYD-MKD-MBX02.wipro.com> Hi All, I am planning to configure all the servers in my client environment in two Nagios servers(in two different locations) in order to create Back up. Please let me know whether there will be any overload on the servers as two Nagios servers will be polling them. Thanks, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From diego.roccia at gmail.com Mon Aug 16 14:49:48 2010 From: diego.roccia at gmail.com (Diego Roccia) Date: Mon, 16 Aug 2010 14:49:48 +0200 Subject: embedded option in cgi Message-ID: Hi guys, I'm integrating nagios in an homemade monitoring and asset management solution, with dokuwiki and request tracker. In order to accomplish it, I need the cgi not to print part of the page. running through the code, I've found out that I've to pass the "embedded=true" option. Awesome; Exactly what I was looking for. But the links in the generated page will not inherit the "embedded" options, so, with the next click I will receive a complete HTML page. I did not find any cgi.conf option for adding a "static" part to all links. Before I'll start to patch all CGIs, do you have some advice? thanks in advance Diego -- Diego Roccia diego.roccia (at) gmail (dot) com ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From cbeattie at geninfo.com Mon Aug 16 15:20:42 2010 From: cbeattie at geninfo.com (Chris Beattie) Date: Mon, 16 Aug 2010 09:20:42 -0400 Subject: Using two nagios servers... Message-ID: Your servers will probably be fine servicing the extra Nagios polling, unless they are overloaded already. Since I run Nagios on virtual machines, however, I tried to keep the load on my failover Nagios server minimized. My failover Nagios server runs a cron job that uses the check_nagios plugin to monitor the state of the primary Nagios server. If the primary server is up and running, the failover server will just rsync the state and configuration files from the primary. If the primary server becomes unavailable, the cron job will start the Nagios service on the failover server and keep it running until it detects the primary has recovered. From: ravishankar.gundlapali at wipro.com [mailto:ravishankar.gundlapali at wipro.com] Sent: Monday, August 16, 2010 7:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Using two nagios servers... Hi All, I am planning to configure all the servers in my client environment in two Nagios servers(in two different locations) in order to create Back up. Please let me know whether there will be any overload on the servers as two Nagios servers will be polling them. Thanks, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ravishankar.gundlapali at wipro.com Mon Aug 16 16:44:41 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Mon, 16 Aug 2010 20:14:41 +0530 Subject: Using two nagios servers... In-Reply-To: References: Message-ID: <618F928F9E2D824AAB26DCAA0F25221F02875748@HYD-MKD-MBX02.wipro.com> Hi, Even I run Nagios on Virtual machines. Please let me know where can I get the support for running cron job on my secondary Nagios server to monitor the Nagios service on primary Nagios server? Thanks, Ravi G From: Chris Beattie [mailto:cbeattie at geninfo.com] Sent: Monday, August 16, 2010 6:51 PM To: Nagios Users List Subject: Re: [Nagios-users] Using two nagios servers... Your servers will probably be fine servicing the extra Nagios polling, unless they are overloaded already. Since I run Nagios on virtual machines, however, I tried to keep the load on my failover Nagios server minimized. My failover Nagios server runs a cron job that uses the check_nagios plugin to monitor the state of the primary Nagios server. If the primary server is up and running, the failover server will just rsync the state and configuration files from the primary. If the primary server becomes unavailable, the cron job will start the Nagios service on the failover server and keep it running until it detects the primary has recovered. From: ravishankar.gundlapali at wipro.com [mailto:ravishankar.gundlapali at wipro.com] Sent: Monday, August 16, 2010 7:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Using two nagios servers... Hi All, I am planning to configure all the servers in my client environment in two Nagios servers(in two different locations) in order to create Back up. Please let me know whether there will be any overload on the servers as two Nagios servers will be polling them. Thanks, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From it.toonz at gmail.com Mon Aug 16 21:10:55 2010 From: it.toonz at gmail.com (IT@Toonz) Date: Tue, 17 Aug 2010 00:40:55 +0530 Subject: Mail sending issue. Message-ID: <4c698eec.049e720a.21de.ffffb828@mx.google.com> Hi all, We are testing with "Fully Automated Nagios". Have installed and started monitoring 2 Windows 2003 servers. But we can't get notification to work. When we certify Nagios installation we get the following error send-mail: fatal: config variable inet_interfaces: host not found: local host What does "notify-host-by-mail" mean? Is the notification send to host only. How can we make FAN send mails? We have an internal mail server, and are trying to send notifications to an ID there. Connectivity is fine, have entered the id in contacts.cfg file. We have installed NSClient++ in these servers, but the host server, shows connection refused, there is no firewall! Please help!! Ananth. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From dit.dash at gmail.com Mon Aug 16 21:37:17 2010 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Mon, 16 Aug 2010 15:37:17 -0400 Subject: Mail sending issue. In-Reply-To: <4c698eec.049e720a.21de.ffffb828@mx.google.com> References: <4c698eec.049e720a.21de.ffffb828@mx.google.com> Message-ID: Sounds like a postfix error. You DID configure postfix mail, right? Take a look at http://www.postfix.org/BASIC_CONFIGURATION_README.html This isn't a nagios question On Mon, Aug 16, 2010 at 3:10 PM, IT at Toonz wrote: > Hi all, > > > > We are testing with "Fully Automated Nagios". Have installed and started > > monitoring 2 Windows 2003 servers. But we can't get notification to > work. > > > > When we certify Nagios installation we get the following error > > send-mail: fatal: config variable inet_interfaces: host not found: local > host > > > > What does "notify-host-by-mail" mean? Is the notification send to host > only. > > How can we make FAN send mails? > > > > We have an internal mail server, and are trying to send notifications to > an > > ID there. Connectivity is fine, have entered the id in contacts.cfg > file. > > > > We have installed NSClient++ in these servers, but the host server, > shows > > connection refused, there is no firewall! > > > > Please help!! > > Ananth. > > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From it.toonz at gmail.com Mon Aug 16 21:43:16 2010 From: it.toonz at gmail.com (Toonz IT) Date: Tue, 17 Aug 2010 01:13:16 +0530 Subject: Mail notification problem Message-ID: Hi all, We are testing with "Fully Automated Nagios". Have installed and started monitoring 2 Windows 2003 servers. But we can't get notification to work. When we certify Nagios installation we get the following error send-mail: fatal: config variable inet_interfaces: host not found: local host What does "notify-host-by-mail" mean? Is the notification send to host only. How can we make FAN send mails? We have an internal mail server, and are trying to send notifications to an ID there. Connectivity is fine, have entered the id in contacts.cfg file. We have installed NSClient++ in these servers, but the host server, shows connection refused, there is no firewall! Please help!! Ananth. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From allanc at chickenandporn.com Mon Aug 16 21:51:17 2010 From: allanc at chickenandporn.com (Allan Clark) Date: Mon, 16 Aug 2010 12:51:17 -0700 Subject: Mail sending issue. In-Reply-To: <4c698eec.049e720a.21de.ffffb828@mx.google.com> References: <4c698eec.049e720a.21de.ffffb828@mx.google.com> Message-ID: On Mon, Aug 16, 2010 at 12:10, IT at Toonz wrote: > Hi all, > > We are testing with "Fully Automated Nagios". Have installed and started > > ??? monitoring 2 Windows 2003 servers. But we can't get notification to > work. > > When we certify Nagios installation we get the following error > > send-mail: fatal: config variable inet_interfaces: host not found: local > host > > ??? What does "notify-host-by-mail" mean? Is the notification send to host > only. > > ??? How can we make FAN send mails? > > ??? We have an internal mail server, and are trying to send notifications to > an > > ??? ID there. Connectivity is fine, have entered the id in contacts.cfg > file. > > ??? We have installed NSClient++ in these servers, but the host server, > shows > > ??? connection refused, there is no firewall! It might help if you shared: 1) your Nagios config (all of it) 2) your email config 3) the result of a test by telnetting to your mailserver and faking a mail transaction similar to what you're trying to do. This might seem fairly intuitive to some, but not to others, so I'm explicitly suggesting. In general, detail is useful -- if you're afraid to spam a maillist that reaches thousands, then simply provide the same detail at a URL where it can be downloaded, and just give the URL in your message. NOT providing detail merely means people may have to ask for it -- ultimately delaying your solution -- or waste time guessing. As Dave Stern points out, it might not be a Nagios problem if your mail server -- for whatever reason -- won't let the nagios user or the Nagios server box send a message... ie it's not Nagios' issue if the mailserver refuses, regardless what attempts are made. Please ensure you have your mailserver administrator onboard with what you're doing. If the collection of this background data and discussion with your mailserver admin resolves the issue, please let us know :) Allan -- allanc at chickenandporn.com? "??" http://linkedin.com/in/goldfish ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From trisha at rockyou.com Mon Aug 16 22:10:27 2010 From: trisha at rockyou.com (Trisha Hoang) Date: Mon, 16 Aug 2010 13:10:27 -0700 Subject: displaying multiple lines of output in the GUI In-Reply-To: References: Message-ID: Does anyone know how to configure nagios to display multiple lines output in the CGI? We're using nagios 3.2.0 and apparently, having multiple lines in the cgi is not done automagically. Thank you. On Thu, Aug 12, 2010 at 5:18 PM, Trisha Hoang wrote: > Hi, > I've upgraded nrpe to 2.12 and got multiple lines output from NRPE, and on > the nagios server, I can see multiple lines in the "Service State > Information" dialog box when clicked on the service link. However, on the > main page, only 1 long line shows up and the 2nd line is cut off. > Is it possible to have multiple lines of output per service on the 'main' > page? Please let me know if you need more info. > Thanks. > Trisha > > -- Trisha Hoang | IT/Operations | Rockyou, Inc. | Phone: 408-472-3989 | AIM: rockyoutrisha -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From mhuber at ascentdata.com Mon Aug 16 23:01:17 2010 From: mhuber at ascentdata.com (Huber, Melissa) Date: Mon, 16 Aug 2010 17:01:17 -0400 Subject: nagios plugins return code issue Message-ID: Hello all, I've googled around everywhere trying to find an answer here and came up unsuccessful, so if anyone has had experience in this situation, I'd appreciate help! Basically, the issue that I'm having is that I have a couple of temperature plugins that are reporting errors in Nagios and at the command line they're exiting in 0: check7204temp.pl - Return code of 255 is out of bounds and checkciscotemp.pl - Return code of 9 is out of bounds If I run a "echo $?" at the command line after running the command successfully, I get 0. Thanks for any help anyone can provide!! My perms are 755 and nagios user owns the plugins and I've run successfully with nagios user and got 0 output. I'm really stumped!! Here's the code for the plugins: ******************************************* check7204temp.pl: #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ******************************************************* code for checkciscotemp.pl? #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ********************************************* Thanks, Missy -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From tyarusso at nagios.com Mon Aug 16 23:37:09 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Mon, 16 Aug 2010 16:37:09 -0500 Subject: nagios plugins return code issue In-Reply-To: References: Message-ID: <4C69AF85.2080207@nagios.com> This probably means that a subroutine from one of the used perl libraries is bailing out with an error, although why I don't know. Are you sure you're passing all of the arguments the same on the command line as Nagios is? One thing that I can tell you is that those plugins are out of date, since they use the old value of -1 for Unknown which should be 3 now, so who knows what other issues there are. (Sorry I can't tell you more - I don't really do Perl.) -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at herb-j.com Mon Aug 16 23:55:48 2010 From: nagios at herb-j.com (Herb J.) Date: Mon, 16 Aug 2010 17:55:48 -0400 Subject: nagios plugins return code issue In-Reply-To: <4C69AF85.2080207@nagios.com> References: <4C69AF85.2080207@nagios.com> Message-ID: <4C69B3E4.8020900@herb-j.com> Additionally, Nagios is really sensitive about how the Perl script is written. It should be written well-enough to run with "use strict" without any errors. (I see that it is commented out of both of your scripts.) Additionally, the embedded Perl interpreter causes the scripts to be run in what I consider to be a somewhat "non-standard" way in regards to how the parameters are sent to the script. (In our installation we have to surround host and service macros with quotes before sending them to any plugins written in Perl.) The copyright date on that file is 2000, so you will definitely want to find (or write) a more up to date version. On 08/16/2010 05:37 PM, Tony Yarusso wrote: > This probably means that a subroutine from one of the used perl > libraries is bailing out with an error, although why I don't know. Are > you sure you're passing all of the arguments the same on the command > line as Nagios is? One thing that I can tell you is that those plugins > are out of date, since they use the old value of -1 for Unknown which > should be 3 now, so who knows what other issues there are. (Sorry I > can't tell you more - I don't really do Perl.) > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rab at walkermartyn.co.uk Tue Aug 17 07:55:24 2010 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Tue, 17 Aug 2010 06:55:24 +0100 Subject: Bonding/Teaming Monitoring Message-ID: My current situation is that I have 2 core switches (Cisco 2960G's) in a failover capability. Every one of our servers (Windows, RHEL & Solaris) has NIC bonding/teaming enabled and obviously one switch serves network access to NIC #0, the other switch serves network access to NIC #1. I'm looking for the best way to setup failover monitoring of the switch ports and server connections under my setup. ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jim at jimavery.me.uk Tue Aug 17 09:56:09 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 17 Aug 2010 08:56:09 +0100 Subject: Bonding/Teaming Monitoring In-Reply-To: References: Message-ID: On 17 August 2010 06:55, Robert Jackson wrote: > My current situation is that I have 2 core switches (Cisco 2960G?s) in a > failover capability. Every one of our servers (Windows, RHEL & Solaris) has > NIC bonding/teaming enabled and obviously one switch serves network access > to NIC #0, the other switch serves network access to NIC #1. > > I?m looking for the best way to setup failover monitoring of the switch > ports and server connections under my setup. I don't use Cisco kit myself, but I would guess you would get the relevant alerts by configuring your switches to send snmp traps. You'll need to configure snmptrapd on your Nagios server to receive them and use snmptt to get them in to Nagios one way or another (either via the command interface or via a database using NagTrap for example). hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rab at walkermartyn.co.uk Tue Aug 17 10:50:54 2010 From: rab at walkermartyn.co.uk (Robert Jackson) Date: Tue, 17 Aug 2010 09:50:54 +0100 Subject: rab@walkermartyn.co.uk - Email found in subject - Re: Bonding/Teaming Monitoring References: Message-ID: Thanks for the reply Jim, I take it I'm looking at duplicating hosts and services if I choose not to go down the route of the switches sending traps (just seems like more work I can do without)? I was kind of thinking the switches would be parents of the ports which in turn would be parents of the network devices (servers, pc's printers etc). That way if a port went down for instance, I would only get alerts for the port and not for the services of the device attached to that port. Seem logical? -----Original Message----- From: Jim Avery [mailto:jim at jimavery.me.uk] Sent: Tuesday 17 August 2010 08:56 To: Nagios Users List Subject: rab at walkermartyn.co.uk - Email found in subject - Re: [Nagios-users] Bonding/Teaming Monitoring On 17 August 2010 06:55, Robert Jackson wrote: > My current situation is that I have 2 core switches (Cisco 2960G's) in a > failover capability. Every one of our servers (Windows, RHEL & Solaris) has > NIC bonding/teaming enabled and obviously one switch serves network access > to NIC #0, the other switch serves network access to NIC #1. > > I'm looking for the best way to setup failover monitoring of the switch > ports and server connections under my setup. I don't use Cisco kit myself, but I would guess you would get the relevant alerts by configuring your switches to send snmp traps. You'll need to configure snmptrapd on your Nagios server to receive them and use snmptt to get them in to Nagios one way or another (either via the command interface or via a database using NagTrap for example). hth, Jim ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 orting info will risk being sent to /dev/null ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Tue Aug 17 13:34:26 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 17 Aug 2010 12:34:26 +0100 Subject: rab@walkermartyn.co.uk - Email found in subject - Re: Bonding/Teaming Monitoring In-Reply-To: References: Message-ID: On 17 August 2010 09:50, Robert Jackson wrote: > Thanks for the reply Jim, > > I take it I'm looking at duplicating hosts and services if I choose not > to go down the route of the switches sending traps (just seems like more > work I can do without)? I was kind of thinking the switches would be > parents of the ports which in turn would be parents of the network > devices (servers, pc's printers etc). That way if a port went down for > instance, I would only get alerts for the port and not for the services > of the device attached to that port. Seem logical? That's one way of doing it. Personally I think it's overkill to monitor individual switch ports for each server, although there are always going to be some cases when it's useful to do so. For ordinary single-homed hosts, if the switch port is down the host check for the server will fail anyway - I'm not sure it helps a great deal then to monitor the individual switch port. It's all horses for courses though - ultimately it's for you to decide what is important to you. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From yu.watanabe at jp.fujitsu.com Tue Aug 17 13:38:23 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Tue, 17 Aug 2010 20:38:23 +0900 Subject: Possibility of service check rescheduling problem Message-ID: <201008171138.AA02275@S2007337.jp.fujitsu.com> Hello all. I would like to confirm if there is such possibility that , whenever program restart occurs, service check resume properly as it is stored in the state retention file. In this condition , following options are activated in nagios.cfg: State retention option State retention file Retention update interval Use retained program state Use retained scheduling info Any advice would be helpful. Thank you Yu Watanabe ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Tue Aug 17 13:50:58 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Tue, 17 Aug 2010 07:50:58 -0400 Subject: rab@walkermartyn.co.uk - Email found in subject - Re: Bonding/Teaming Monitoring In-Reply-To: References: Message-ID: If you want to monitor ports you could probably check the port status from the switch via snmp and add that as a dependency to the server. You could also check the port status of the bonded nics via snmp on the server itself. No need to duplicate anything. "Robert Jackson" wrote: >Thanks for the reply Jim, > >I take it I'm looking at duplicating hosts and services if I choose not >to go down the route of the switches sending traps (just seems like more >work I can do without)? I was kind of thinking the switches would be >parents of the ports which in turn would be parents of the network >devices (servers, pc's printers etc). That way if a port went down for >instance, I would only get alerts for the port and not for the services >of the device attached to that port. Seem logical? > >-----Original Message----- >From: Jim Avery [mailto:jim at jimavery.me.uk] >Sent: Tuesday 17 August 2010 08:56 >To: Nagios Users List >Subject: rab at walkermartyn.co.uk - Email found in subject - Re: >[Nagios-users] Bonding/Teaming Monitoring > >On 17 August 2010 06:55, Robert Jackson wrote: >> My current situation is that I have 2 core switches (Cisco 2960G's) in >a >> failover capability. Every one of our servers (Windows, RHEL & >Solaris) has >> NIC bonding/teaming enabled and obviously one switch serves network >access >> to NIC #0, the other switch serves network access to NIC #1. >> >> I'm looking for the best way to setup failover monitoring of the >switch >> ports and server connections under my setup. > >I don't use Cisco kit myself, but I would guess you would get the >relevant alerts by configuring your switches to send snmp traps. >You'll need to configure snmptrapd on your Nagios server to receive >them and use snmptt to get them in to Nagios one way or another >(either via the command interface or via a database using NagTrap for >example). > >hth, > >Jim > >------------------------------------------------------------------------ >------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >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 >orting info will risk being sent to /dev/null > > >************************************************************************ >The information in this internet E-mail is confidential and is intended >solely for the addressee. Access, copying or re-use of information in it >by anyone else is unauthorised. Any views or opinions presented are >solely those of the author and do not necessarily represent those of >Walker Martyn Ltd or any of its affiliates. If you are not the >intended recipient please contact administrator at walkermartyn.co.uk > >Walker Martyn Ltd, company number SC197533. Company is >registered in Scotland and has its registered office at 1 Park >Circus Place, Glasgow G3 6AH, UK. >**************************************************************** > > > > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From it.toonz at gmail.com Tue Aug 17 15:21:43 2010 From: it.toonz at gmail.com (Toonz IT) Date: Tue, 17 Aug 2010 18:51:43 +0530 Subject: Mail notification problem Message-ID: Hi Allan, Thanks for writing... our test environment is as follows. Server is Windows 2003 Server with 2GB RAM, we downloaded Fully Automated Nagios from http://fannagioscd.sourceforge.net/drupal/ Using VMPlayer we created a new virtual machine and installed using the fan iso image. Nagios version 3.0.6. After full installation we set up IP, routes and dns and access using the web interface. Installed NSClient++ in 2 windows servers and edited the nsc.ini file also. edited the nagios.cfg file and windows.cfg we entered the mail address for notification to be send to in contacts.cfg file. the mail id is an intranet id and is in the same network as the nagios ipaddr. is there any other file where we have to enter smtp settings and all... we haven't set the mail server settings anywhere couldn't find where that has to be set!! mail server ip is 192.168.3.240 and nagios server ip is 192.18.3.241. and when we give nagios verification we get the below error. telnet also resulted in connection refused. we strongly suspect that mail settings are not complete.. but donno where to enter those details. the only entry we made is adding sysadmin at toonz.com in contacts.cfg file. nowhere we have entered the mail server ipaddress!! Please advice.... after this we have more queries!!! :-) ananth. Date: Mon, 16 Aug 2010 12:51:17 -0700 From: Allan Clark Subject: Re: [Nagios-users] Mail sending issue. To: Nagios Users List Message-ID: > Content-Type: text/plain; charset=UTF-8 On Mon, Aug 16, 2010 at 12:10, IT at Toonz wrote: > Hi all, > > We are testing with "Fully Automated Nagios". Have installed and started > > ??? monitoring 2 Windows 2003 servers. But we can't get notification to > work. > > When we certify Nagios installation we get the following error > > send-mail: fatal: config variable inet_interfaces: host not found: local > host > > ??? What does "notify-host-by-mail" mean? Is the notification send to host > only. > > ??? How can we make FAN send mails? > > ??? We have an internal mail server, and are trying to send notifications to > an > > ??? ID there. Connectivity is fine, have entered the id in contacts.cfg > file. > > ??? We have installed NSClient++ in these servers, but the host server, > shows > > ??? connection refused, there is no firewall! It might help if you shared: 1) your Nagios config (all of it) 2) your email config 3) the result of a test by telnetting to your mailserver and faking a mail transaction similar to what you're trying to do. This might seem fairly intuitive to some, but not to others, so I'm explicitly suggesting. In general, detail is useful -- if you're afraid to spam a maillist that reaches thousands, then simply provide the same detail at a URL where it can be downloaded, and just give the URL in your message. NOT providing detail merely means people may have to ask for it -- ultimately delaying your solution -- or waste time guessing. As Dave Stern points out, it might not be a Nagios problem if your mail server -- for whatever reason -- won't let the nagios user or the Nagios server box send a message... ie it's not Nagios' issue if the mailserver refuses, regardless what attempts are made. Please ensure you have your mailserver administrator onboard with what you're doing. If the collection of this background data and discussion with your mailserver admin resolves the issue, please let us know :) Allan -- allanc at chickenandporn.com? "??" http://linkedin.com/in/goldfish -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From Gerald.Ortner at gespag.at Tue Aug 17 15:39:57 2010 From: Gerald.Ortner at gespag.at (Ortner, Gerald) Date: Tue, 17 Aug 2010 15:39:57 +0200 Subject: Mail notification problem In-Reply-To: References: Message-ID: <13579FFE8B208F4DBA327EE25F804AAB8EE79053@swvbpheaglxmb02.health.local> Hi, http://fannagioscd.sourceforge.net/drupal/?q=node/10 ? gerald Von: Toonz IT [mailto:it.toonz at gmail.com] Gesendet: Dienstag, 17. August 2010 15:22 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Mail notification problem Hi Allan, Thanks for writing... our test environment is as follows. Server is Windows 2003 Server with 2GB RAM, we downloaded Fully Automated Nagios from http://fannagioscd.sourceforge.net/drupal/ Using VMPlayer we created a new virtual machine and installed using the fan iso image. Nagios version 3.0.6. After full installation we set up IP, routes and dns and access using the web interface. Installed NSClient++ in 2 windows servers and edited the nsc.ini file also. edited the nagios.cfg file and windows.cfg we entered the mail address for notification to be send to in contacts.cfg file. the mail id is an intranet id and is in the same network as the nagios ipaddr. is there any other file where we have to enter smtp settings and all... we haven't set the mail server settings anywhere couldn't find where that has to be set!! mail server ip is 192.168.3.240 and nagios server ip is 192.18.3.241. and when we give nagios verification we get the below error. telnet also resulted in connection refused. we strongly suspect that mail settings are not complete.. but donno where to enter those details. the only entry we made is adding sysadmin at toonz.com in contacts.cfg file. nowhere we have entered the mail server ipaddress!! Please advice.... after this we have more queries!!! :-) ananth. Date: Mon, 16 Aug 2010 12:51:17 -0700 From: Allan Clark > Subject: Re: [Nagios-users] Mail sending issue. To: Nagios Users List > Message-ID: > Content-Type: text/plain; charset=UTF-8 On Mon, Aug 16, 2010 at 12:10, IT at Toonz > wrote: > Hi all, > > We are testing with "Fully Automated Nagios". Have installed and started > > ??? monitoring 2 Windows 2003 servers. But we can't get notification to > work. > > When we certify Nagios installation we get the following error > > send-mail: fatal: config variable inet_interfaces: host not found: local > host > > ??? What does "notify-host-by-mail" mean? Is the notification send to host > only. > > ??? How can we make FAN send mails? > > ??? We have an internal mail server, and are trying to send notifications to > an > > ??? ID there. Connectivity is fine, have entered the id in contacts.cfg > file. > > ??? We have installed NSClient++ in these servers, but the host server, > shows > > ??? connection refused, there is no firewall! It might help if you shared: 1) your Nagios config (all of it) 2) your email config 3) the result of a test by telnetting to your mailserver and faking a mail transaction similar to what you're trying to do. This might seem fairly intuitive to some, but not to others, so I'm explicitly suggesting. In general, detail is useful -- if you're afraid to spam a maillist that reaches thousands, then simply provide the same detail at a URL where it can be downloaded, and just give the URL in your message. NOT providing detail merely means people may have to ask for it -- ultimately delaying your solution -- or waste time guessing. As Dave Stern points out, it might not be a Nagios problem if your mail server -- for whatever reason -- won't let the nagios user or the Nagios server box send a message... ie it's not Nagios' issue if the mailserver refuses, regardless what attempts are made. Please ensure you have your mailserver administrator onboard with what you're doing. If the collection of this background data and discussion with your mailserver admin resolves the issue, please let us know :) Allan -- allanc at chickenandporn.com? "??" http://linkedin.com/in/goldfish ________________________________ OOe. Gesundheits- und Spitals-AG Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 p -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From kiran.parrey at valuelabs.net Tue Aug 17 16:29:30 2010 From: kiran.parrey at valuelabs.net (Kiran Kumar P) Date: Tue, 17 Aug 2010 19:59:30 +0530 Subject: Mail notification problem Message-ID: Hi, Can you try with adding smart host in sendmail.cf (/etc/mail/sendmail.cf). Regards, Kiran _____ From: Toonz IT [mailto:it.toonz at gmail.com] Sent: Tuesday, August 17, 2010 1:13 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Mail notification problem Hi all, We are testing with "Fully Automated Nagios". Have installed and started monitoring 2 Windows 2003 servers. But we can't get notification to work. When we certify Nagios installation we get the following error send-mail: fatal: config variable inet_interfaces: host not found: local host What does "notify-host-by-mail" mean? Is the notification send to host only. How can we make FAN send mails? We have an internal mail server, and are trying to send notifications to an ID there. Connectivity is fine, have entered the id in contacts.cfg file. We have installed NSClient++ in these servers, but the host server, shows connection refused, there is no firewall! Please help!! Ananth. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From Bradley.Radjoo at is.co.za Tue Aug 17 16:26:25 2010 From: Bradley.Radjoo at is.co.za (Bradley Radjoo) Date: Tue, 17 Aug 2010 16:26:25 +0200 Subject: Distributed Setup of Nagios Message-ID: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> Hello All, Please can you assist me as I a 1st timer to Nagios itself as I need assistance on a Distributed Monitoring Setup of Nagios. Where one server manages other instances of Nagios Servers in differant locations. Any help or documentation on installation and configuration would be of great help ;-) ----- Regards, Bradley Radjoo Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaimers at is.co.za and a copy will be emailed to you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From perldork at webwizarddesign.com Tue Aug 17 16:53:07 2010 From: perldork at webwizarddesign.com (Max) Date: Tue, 17 Aug 2010 10:53:07 -0400 Subject: Distributed Setup of Nagios In-Reply-To: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> Message-ID: On Tue, Aug 17, 2010 at 10:26 AM, Bradley Radjoo wrote: > Hello All, > Please can you assist me as I a 1st timer to Nagios itself as I need > assistance on a Distributed Monitoring Setup of Nagios. > Where one server manages other instances of Nagios Servers in differant > locations. > Any help or documentation on installation and configuration would be of > great help ;-) DNX might work for you: http://dnx.sourceforge.net/ - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From svoll.voip at gmail.com Tue Aug 17 16:59:01 2010 From: svoll.voip at gmail.com (Scott Voll) Date: Tue, 17 Aug 2010 07:59:01 -0700 Subject: Bonding/Teaming Monitoring In-Reply-To: References: Message-ID: might look at simple event correlator and do it via syslog traps. don't ask me how to do it. as it's on my list of things to do myself. Scott On Mon, Aug 16, 2010 at 10:55 PM, Robert Jackson wrote: > My current situation is that I have 2 core switches (Cisco 2960G?s) in a > failover capability. Every one of our servers (Windows, RHEL & Solaris) has > NIC bonding/teaming enabled and obviously one switch serves network access > to NIC #0, the other switch serves network access to NIC #1. > > I?m looking for the best way to setup failover monitoring of the switch > ports and server connections under my setup. > > ************************************************************************ > > The information in this internet E-mail is confidential and is intended > solely for the addressee. Access, copying or re-use of information in it by > anyone else is unauthorised. Any views or opinions presented are solely > those of the author and do not necessarily represent those of Walker Martyn > Ltd or any of its affiliates. If you are not the intended recipient please > contact administrator at walkermartyn.co.uk. > > Walker Martyn Ltd, company number SC197533. Company is registered in > Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 > 6AH, UK. > > **************************************************************** > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From hausrath.mailing.list at gmail.com Tue Aug 17 17:09:17 2010 From: hausrath.mailing.list at gmail.com (Nate Hausrath) Date: Tue, 17 Aug 2010 11:09:17 -0400 Subject: Host not defined Message-ID: Hello, This should be simple, but for some reason I can't get my nagios config to validate with a new server I want to monitor. I am monitoring plenty of hosts, but this is the first one I've used the "check_http" command for. I am following the examples found here: http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html I am using Nagios Core 3.2.0. The error message during validation is "Error: Host 'HGSec' specified in service 'HTTP' not defined anywhere!" And here is my simple config. define host { use generic-host host_name HGSec alias HGSec address X.X.X.X notification_period 24x7 notification_interval 30 notification_options d,r contact_groups admins register 0 } define service { use generic-service host_name HGSec service_description HTTP check_command check_http } I'm sure I am overlooking something simple and I feel like I've been banging my head against a wall. I probably just need to walk away from this and come back... I just want to make sure the HTTP service is running on this server. Any help is much appreciated! Thanks, Nate ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From shane.killian at irishjobs.ie Tue Aug 17 17:13:32 2010 From: shane.killian at irishjobs.ie (Shane Killian) Date: Tue, 17 Aug 2010 16:13:32 +0100 Subject: Host Groups / Definitions Message-ID: Hi guys, I'm monitoring a number of Windows servers and so far I am using only the templates provided. I would like to split my servers up using host groups so I will have each site and then the datacentre. I'm not sure how to go about this... although I have read the documentation I'm not understanding. Could someone please briefly outline this? Thanks for your help! Kind Regards, Shane E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From nagios at flatto.net Tue Aug 17 17:13:23 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 17 Aug 2010 16:13:23 +0100 Subject: Host not defined In-Reply-To: References: Message-ID: <4C6AA713.60708@flatto.net> Nate Hausrath wrote: > Hello, > > This should be simple, but for some reason I can't get my nagios config to validate with a new server I want to monitor. I am monitoring plenty of hosts, but this is the first one I've used the "check_http" command for. I am following the examples found here: > > http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html > > I am using Nagios Core 3.2.0. > > The error message during validation is "Error: Host 'HGSec' specified in service 'HTTP' not defined anywhere!" > > And here is my simple config. > > define host { > use generic-host > host_name HGSec > alias HGSec > address X.X.X.X > notification_period 24x7 > notification_interval 30 > notification_options d,r > contact_groups admins > register 0 > } > > define service { > use generic-service > host_name HGSec > service_description HTTP > check_command check_http > } > > I'm sure I am overlooking something simple and I feel like I've been banging my head against a wall. I probably just need to walk away from this and come back... I just want to make sure the HTTP service is running on this server. Any help is much appreciated! > > Thanks, > Nate > did you check the section of the nagios.cfg that lists whcih files and directories it loads the host/services definitions from ? and made sure the host entry is in one of those files/directories ? Assaf -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From breandan at dezendorf.com Tue Aug 17 17:23:24 2010 From: breandan at dezendorf.com (Breandan Dezendorf) Date: Tue, 17 Aug 2010 11:23:24 -0400 Subject: Host not defined In-Reply-To: References: Message-ID: On Tue, Aug 17, 2010 at 11:09 AM, Nate Hausrath wrote: > This should be simple, but for some reason I can't get my nagios config to validate with a new server I want to monitor. ?I am monitoring plenty of hosts, but this is the first one I've used the "check_http" command for. ?I am following the examples found here: > > http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html > > I am using Nagios Core 3.2.0. > > The error message during validation is "Error: Host 'HGSec' specified in service 'HTTP' not defined anywhere!" > > And here is my simple config. > > define host { > ? ? ? ?use ? ? ? ? ? ? ? ? ? ? generic-host > ? ? ? ?host_name ? ? ? ? ? ? ? HGSec > ? ? ? ?alias ? ? ? ? ? ? ? ? ? HGSec > ? ? ? ?address ? ? ? ? ? ? ? ? X.X.X.X > ? ? ? ?notification_period ? ? ? ? ? ? 24x7 > ? ? ? ?notification_interval ? ? ? ? ? 30 > ? ? ? ?notification_options ? ? ? ? ? ?d,r > ? ? ? ?contact_groups ? ? ? ? ? ? ? ? ?admins > ? ? ? ?register ? ? ? ? ? ? ? ? ? ? ? ?0 > } You never registered the host. (register is set to '0') > define service { > ? ? ? ?use ? ? ? ? ? ? ? ? ? ? generic-service > ? ? ? ?host_name ? ? ? ? ? ? ? HGSec > ? ? ? ?service_description ? ? HTTP > ? ? ? ?check_command ? ? ? ? ? check_http > } -- Breandan Dezendorf breandan at dezendorf.com bwdezend at gmail.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at flatto.net Tue Aug 17 17:24:13 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 17 Aug 2010 16:24:13 +0100 Subject: Host Groups / Definitions In-Reply-To: References: Message-ID: <4C6AA99D.4070206@flatto.net> Shane In the definitions of each host ( or template ) you have an option of defining the "hostgroup" this will group several host in to a group and will display them as a logical group . A host can be part of many host groups - there is not restriction on a host belonging to one hostgroup. To give an example , let say we have a host group "Dublin" that we want to hold the hosts " city " , "airport" and "dock" , and a hostgroup "Cork" to hold hosts "jazz" , "quay" and "south" . Once you defined that , you can manage the nagios to allocate services to a hostgroup Cork - and those services will be checked on that host group. Does that help clarify it a bit more ? Assaf Shane Killian wrote: > > Hi guys, > > I?m monitoring a number of Windows servers and so far I am using only > the templates provided. > > I would like to split my servers up using host groups so I will have > each site and then the datacentre. > > I?m not sure how to go about this? although I have read the > documentation I?m not understanding. > > Could someone please briefly outline this? > > Thanks for your help! > > Kind Regards, > > Shane > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From a31modela at hotmail.com Tue Aug 17 17:28:43 2010 From: a31modela at hotmail.com (steve f) Date: Tue, 17 Aug 2010 11:28:43 -0400 Subject: Host Groups / Definitions In-Reply-To: References: Message-ID: Gonna take a stab at this for you. Newer Nagios guy here as well. Here is a basic start.... You use a hostgroup.cfg file to create a group i.e define hostgroup{ hostgroup_name Remote_Hosts alias Remote Hosts members list names of all the windows servers here seperated by commas } Now in your service.cfg or command.cfg file, where it says host_name, you replace the entire host_name line with the following : # host_name some windows server name hostgroup_name Remote_Hosts Make sure your nagios.cfg file shows the path top the hostgroup.cfg file Verify the config & restart/reload nagios. Now the check you do will run against the hostgroup instead of a rambling list of hosts. Hope this helps, Steve From: shane.killian at irishjobs.ie To: nagios-users at lists.sourceforge.net Date: Tue, 17 Aug 2010 16:13:32 +0100 Subject: [Nagios-users] Host Groups / Definitions Hi guys, I?m monitoring a number of Windows servers and so far I am using only the templates provided. I would like to split my servers up using host groups so I will have each site and then the datacentre.I?m not sure how to go about this? although I have read the documentation I?m not understanding. Could someone please briefly outline this? Thanks for your help! Kind Regards, Shane E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From it.toonz at gmail.com Tue Aug 17 17:35:40 2010 From: it.toonz at gmail.com (Toonz IT) Date: Tue, 17 Aug 2010 21:05:40 +0530 Subject: Mail notification problem In-Reply-To: References: Message-ID: Hi Kiran, Thanks for writing, can you be more specific, we are complete newbie's here... Meanwhile we are checking other advices also. thanks ananth. On Tue, Aug 17, 2010 at 7:59 PM, Kiran Kumar P wrote: > Hi, > > > > Can you try with adding smart host in sendmail.cf (/etc/mail/sendmail.cf). > > > > Regards, > > Kiran > ------------------------------ > > *From:* Toonz IT [mailto:it.toonz at gmail.com] > *Sent:* Tuesday, August 17, 2010 1:13 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] Mail notification problem > > > > Hi all, > > > > We are testing with "Fully Automated Nagios". Have installed and started > > monitoring 2 Windows 2003 servers. But we can't get notification to > work. > > > > When we certify Nagios installation we get the following error > > send-mail: fatal: config variable inet_interfaces: host not found: local > host > > > > What does "notify-host-by-mail" mean? Is the notification send to host > only. > > How can we make FAN send mails? > > > > We have an internal mail server, and are trying to send notifications > to an > > ID there. Connectivity is fine, have entered the id in contacts.cfg > file. > > > > We have installed NSClient++ in these servers, but the host server, > shows > > connection refused, there is no firewall! > > > > Please help!! > > Ananth. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From hausrath.mailing.list at gmail.com Tue Aug 17 17:34:15 2010 From: hausrath.mailing.list at gmail.com (Nate Hausrath) Date: Tue, 17 Aug 2010 11:34:15 -0400 Subject: Host not defined In-Reply-To: <4C6AA713.60708@flatto.net> References: <4C6AA713.60708@flatto.net> Message-ID: <8A27023A-3062-4448-A456-8AB5ABD87F28@gmail.com> Thanks for the suggestion. I have the following: # This should give me generic-host cfg_file=/usr/local/nagios/etc/objects/templates.cfg # This is where the config I sent in my previous email is located cfg_dir=/usr/local/nagios/etc/servers So that should do it? The config I displayed below are in the servers folder in the file hgsec.cfg. Thanks, Nate On Aug 17, 2010, at 11:13 AM, Assaf Flatto wrote: > Nate Hausrath wrote: >> Hello, >> >> This should be simple, but for some reason I can't get my nagios config to validate with a new server I want to monitor. I am monitoring plenty of hosts, but this is the first one I've used the "check_http" command for. I am following the examples found here: >> >> http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html >> >> I am using Nagios Core 3.2.0. >> >> The error message during validation is "Error: Host 'HGSec' specified in service 'HTTP' not defined anywhere!" >> >> And here is my simple config. >> >> define host { >> use generic-host >> host_name HGSec >> alias HGSec >> address X.X.X.X >> notification_period 24x7 >> notification_interval 30 >> notification_options d,r >> contact_groups admins >> register 0 >> } >> >> define service { >> use generic-service >> host_name HGSec >> service_description HTTP >> check_command check_http >> } >> >> I'm sure I am overlooking something simple and I feel like I've been banging my head against a wall. I probably just need to walk away from this and come back... I just want to make sure the HTTP service is running on this server. Any help is much appreciated! >> >> Thanks, >> Nate >> > > did you check the section of the nagios.cfg that lists whcih files and > directories it loads the host/services definitions from ? > and made sure the host entry is in one of those files/directories ? > > Assaf > > > -- > Never,Ever Cut A Deal With a Dragon > > > Next year I will be doing the London to Paris bike ride to > raise money for the DogTrust (www.dogtrust.co.uk) . > Please Sponsor me at http://www.justgiving.com/Assaf-Flatto > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From it.toonz at gmail.com Tue Aug 17 17:37:02 2010 From: it.toonz at gmail.com (Toonz IT) Date: Tue, 17 Aug 2010 21:07:02 +0530 Subject: Mail notification problem In-Reply-To: <13579FFE8B208F4DBA327EE25F804AAB8EE79053@swvbpheaglxmb02.health.local> References: <13579FFE8B208F4DBA327EE25F804AAB8EE79053@swvbpheaglxmb02.health.local> Message-ID: Thanks Gerald for the link, we thought sendmail was being used in FAN. will check and update at the earliest. regards Ananth. On Tue, Aug 17, 2010 at 7:09 PM, Ortner, Gerald wrote: > Hi, > > > > http://fannagioscd.sourceforge.net/drupal/?q=node/10 ? > > > > gerald > > > > > > *Von:* Toonz IT [mailto:it.toonz at gmail.com] > *Gesendet:* Dienstag, 17. August 2010 15:22 > *An:* nagios-users at lists.sourceforge.net > *Betreff:* [Nagios-users] Mail notification problem > > > > Hi Allan, > > Thanks for writing... our test environment is as follows. > > Server is Windows 2003 Server with 2GB RAM, we downloaded Fully Automated > Nagios from http://fannagioscd.sourceforge.net/drupal/ > > Using VMPlayer we created a new virtual machine and installed using the fan > iso image. > > Nagios version 3.0.6. > > After full installation we set up IP, routes and dns and access using the > web interface. > > Installed NSClient++ in 2 windows servers and edited the nsc.ini file also. > > edited the nagios.cfg file and windows.cfg > > we entered the mail address for notification to be send to in contacts.cfg > file. the mail id is an intranet id and is in the same network as the nagios > ipaddr. is there any other file where we have to enter smtp settings and > all... we haven't set the mail server settings anywhere couldn't find where > that has to be set!! mail server ip is 192.168.3.240 and nagios server ip is > 192.18.3.241. > > and when we give nagios verification we get the below error. telnet also > resulted in connection refused. > > we strongly suspect that mail settings are not complete.. but donno where > to enter those details. the only entry we made is adding > sysadmin at toonz.com in contacts.cfg file. nowhere we have entered the mail > server ipaddress!! > > Please advice.... after this we have more queries!!! :-) > > ananth. > > > Date: Mon, 16 Aug 2010 12:51:17 -0700 > From: Allan Clark > Subject: Re: [Nagios-users] Mail sending issue. > To: Nagios Users List > Message-ID: > > ZaQVvjoHZwU02eYANwqRwJ=e04+i0- at mail.gmail.com > > Content-Type: text/plain; charset=UTF-8 > > On Mon, Aug 16, 2010 at 12:10, IT at Toonz wrote: > > Hi all, > > > > We are testing with "Fully Automated Nagios". Have installed and started > > > > ??? monitoring 2 Windows 2003 servers. But we can't get notification to > > work. > > > > When we certify Nagios installation we get the following error > > > > send-mail: fatal: config variable inet_interfaces: host not found: local > > host > > > > ??? What does "notify-host-by-mail" mean? Is the notification send to > host > > only. > > > > ??? How can we make FAN send mails? > > > > ??? We have an internal mail server, and are trying to send notifications > to > > an > > > > ??? ID there. Connectivity is fine, have entered the id in contacts.cfg > > file. > > > > ??? We have installed NSClient++ in these servers, but the host server, > > shows > > > > ??? connection refused, there is no firewall! > > It might help if you shared: > 1) your Nagios config (all of it) > 2) your email config > 3) the result of a test by telnetting to your mailserver and faking a > mail transaction similar to what you're trying to do. > > This might seem fairly intuitive to some, but not to others, so I'm > explicitly suggesting. In general, detail is useful -- if you're > afraid to spam a maillist that reaches thousands, then simply provide > the same detail at a URL where it can be downloaded, and just give the > URL in your message. > > NOT providing detail merely means people may have to ask for it -- > ultimately delaying your solution -- or waste time guessing. > > As Dave Stern points out, it might not be a Nagios problem if your > mail server -- for whatever reason -- won't let the nagios user or the > Nagios server box send a message... ie it's not Nagios' issue if the > mailserver refuses, regardless what attempts are made. > > Please ensure you have your mailserver administrator onboard with what > you're doing. > > If the collection of this background data and discussion with your > mailserver admin resolves the issue, please let us know :) > > Allan > -- > allanc at chickenandporn.com? "??" http://linkedin.com/in/goldfish > > ------------------------------ > OOe. Gesundheits- und Spitals-AG > Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, > Firmenbuchgericht: Landesgericht Linz, FN 210146 p > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From hausrath.mailing.list at gmail.com Tue Aug 17 17:45:07 2010 From: hausrath.mailing.list at gmail.com (Nate Hausrath) Date: Tue, 17 Aug 2010 11:45:07 -0400 Subject: Host not defined In-Reply-To: References: Message-ID: That was it. Thank you. I copied some of the config options from another template, which included the register 0. I knew I was overlooking something! -Nate On Aug 17, 2010, at 11:23 AM, Breandan Dezendorf wrote: > On Tue, Aug 17, 2010 at 11:09 AM, Nate Hausrath > wrote: >> This should be simple, but for some reason I can't get my nagios config to validate with a new server I want to monitor. I am monitoring plenty of hosts, but this is the first one I've used the "check_http" command for. I am following the examples found here: >> >> http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html >> >> I am using Nagios Core 3.2.0. >> >> The error message during validation is "Error: Host 'HGSec' specified in service 'HTTP' not defined anywhere!" >> >> And here is my simple config. >> >> define host { >> use generic-host >> host_name HGSec >> alias HGSec >> address X.X.X.X >> notification_period 24x7 >> notification_interval 30 >> notification_options d,r >> contact_groups admins >> register 0 >> } > > You never registered the host. (register is set to '0') > >> define service { >> use generic-service >> host_name HGSec >> service_description HTTP >> check_command check_http >> } > > > -- > Breandan Dezendorf > breandan at dezendorf.com > bwdezend at gmail.com > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From kiran.parrey at valuelabs.net Tue Aug 17 17:53:33 2010 From: kiran.parrey at valuelabs.net (Kiran Kumar P) Date: Tue, 17 Aug 2010 21:23:33 +0530 Subject: Mail notification problem In-Reply-To: References: Message-ID: Hi, Smart host is a type of mail relay server which allows an SMTP server to route e-mail to an intermediate mail server rather than directly to the recipient's server. Often this smart host requires authentication from the sender to verify that the sender has privileges to have mail forwarded through the smart host. This is an important distinction from an open relay that will forward mail from the sender without authentication So, can you add your email server details under smart host to receive the notification. Here is my configuration file # "Smart" relay host (may be null) DSmyserver.net Regards, Kiran _____ From: Toonz IT [mailto:it.toonz at gmail.com] Sent: Tuesday, August 17, 2010 9:06 PM To: Nagios Users List Subject: Re: [Nagios-users] Mail notification problem Hi Kiran, Thanks for writing, can you be more specific, we are complete newbie's here... Meanwhile we are checking other advices also. thanks ananth. On Tue, Aug 17, 2010 at 7:59 PM, Kiran Kumar P wrote: Hi, Can you try with adding smart host in sendmail.cf (/etc/mail/sendmail.cf). Regards, Kiran _____ From: Toonz IT [mailto:it.toonz at gmail.com] Sent: Tuesday, August 17, 2010 1:13 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Mail notification problem Hi all, We are testing with "Fully Automated Nagios". Have installed and started monitoring 2 Windows 2003 servers. But we can't get notification to work. When we certify Nagios installation we get the following error send-mail: fatal: config variable inet_interfaces: host not found: local host What does "notify-host-by-mail" mean? Is the notification send to host only. How can we make FAN send mails? We have an internal mail server, and are trying to send notifications to an ID there. Connectivity is fine, have entered the id in contacts.cfg file. We have installed NSClient++ in these servers, but the host server, shows connection refused, there is no firewall! Please help!! Ananth. ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From shane.killian at irishjobs.ie Tue Aug 17 18:03:55 2010 From: shane.killian at irishjobs.ie (Shane Killian) Date: Tue, 17 Aug 2010 17:03:55 +0100 Subject: Host Groups / Definitions In-Reply-To: References: Message-ID: Thanks guys, So for example I have the windows.cfg file. I should define all windows servers here? That file contains the following portion: # Define a hostgroup for Windows machines # All hosts that use the windows-server template will automatically be a member of this group define hostgroup{ hostgroup_name windows-servers ; The name of the hostgroup alias Windows Servers ; Long name of the group } Do I need to remove this? Then, define each host group in the hostgroup.cfg file (I mean literally, a file called hostgroup.cfg file - I know that's a stupid question but I need to ask!). Define the members in this file also. Then in the windows.cfg file, under each process or service define each host group that the check should be run against e.g. define service{ use generic-service hostgroup_name Datacenter service_description NSClient++ Version check_command check_nt!CLIENTVERSION } Correct? Kind Regards, Shane From: steve f [mailto:a31modela at hotmail.com] Sent: 17 August 2010 16:29 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Host Groups / Definitions Gonna take a stab at this for you. Newer Nagios guy here as well. Here is a basic start.... You use a hostgroup.cfg file to create a group i.e define hostgroup{ hostgroup_name Remote_Hosts alias Remote Hosts members list names of all the windows servers here seperated by commas } Now in your service.cfg or command.cfg file, where it says host_name, you replace the entire host_name line with the following : # host_name some windows server name hostgroup_name Remote_Hosts Make sure your nagios.cfg file shows the path top the hostgroup.cfg file Verify the config & restart/reload nagios. Now the check you do will run against the hostgroup instead of a rambling list of hosts. Hope this helps, Steve ________________________________ From: shane.killian at irishjobs.ie To: nagios-users at lists.sourceforge.net Date: Tue, 17 Aug 2010 16:13:32 +0100 Subject: [Nagios-users] Host Groups / Definitions Hi guys, I'm monitoring a number of Windows servers and so far I am using only the templates provided. I would like to split my servers up using host groups so I will have each site and then the datacentre. I'm not sure how to go about this... although I have read the documentation I'm not understanding. Could someone please briefly outline this? Thanks for your help! Kind Regards, Shane E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 E-mail Disclaimer: The information contained in this message is confidential and is intended for the addressee only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. This mail and any attachments have been scanned for viruses prior to leaving the network of saongroup.com saongroup.com will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. saongroup.com reserves the right to monitor and record e-mail messages sent to and from this address for the purposes of investigating or detecting any unauthorized use of its system and ensuring its effective operation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From nagios at flatto.net Tue Aug 17 18:11:34 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 17 Aug 2010 17:11:34 +0100 Subject: Host Groups / Definitions In-Reply-To: References: Message-ID: <4C6AB4B6.7020806@flatto.net> removing the template is not necessary unless you with to use the hostgroup name yourself. if you don't assign hosts to the group it will have not impact ( except for an empty group in the cgi) . As for the file name - I use the same naming conventions for my nagios config - it is easy to understand what the file purpose is and will also be good for the next person to be taking over . As for the service definitions , once you defined the host group "Datacenter" and assigned the hosts to the group , then the service definition you gave will be correct . Assaf Shane Killian wrote: > > Thanks guys, > > So for example I have the windows.cfg file. > > I should define all windows servers here? > > That file contains the following portion: > > # Define a hostgroup for Windows machines > > # All hosts that use the windows-server template will automatically be > a member of this group > > define hostgroup{ > > hostgroup_name & nbsp; windows-servers ; The name of the hostgroup > > alias Windows Servers ; Long name of the group > > } > > Do I need to remove this? > > Then, define each host group in the hostgroup.cfg file (I mean > literally, a file called hostgroup.cfg file ? I know that?s a stupid > question but I need to ask!). > > Define the members in this file also. > > Then in the windows.cfg file, under each process or service define > each host group that the check should be run against e.g. > > define service{ > > use & nbsp; generic-service > > hostgroup_name Datacenter > > service_description NSClient++ Version > > check_co mmand check_nt!CLIENTVERSION > > } > > Correct? > > Kind Regards, > > Shane > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From tyarusso at nagios.com Tue Aug 17 19:13:20 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Tue, 17 Aug 2010 12:13:20 -0500 Subject: Distributed Setup of Nagios In-Reply-To: References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> Message-ID: <4C6AC330.8030200@nagios.com> On 8/17/2010 9:53 AM, Max wrote: > DNX might work for you: > > http://dnx.sourceforge.net/ > > - Max I would second this suggestion. I've been trying it out in the office here, and it seems WAY simpler than the traditional method for distributed setups. The one caution I'll give with that is that it only distributes the checks, so if you have for instances pnp4nagios for performance graphs that load will still be centralized. I wrote a script last week meant to aid in the installation of DNX - you can download that from http://assets.nagios.com/downloads/nagiosxi/scripts/NagiosXI-DNX.sh and let me know how it works for you. Unfortunately I don't have documentation to go along with it yet, but it's mostly self explanatory with the usual --help switch to the script. -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From mhuber at ascentdata.com Tue Aug 17 20:41:23 2010 From: mhuber at ascentdata.com (Huber, Melissa) Date: Tue, 17 Aug 2010 14:41:23 -0400 Subject: nagios plugins return code issue In-Reply-To: References: Message-ID: Hello all, I've googled around everywhere trying to find an answer here and came up unsuccessful, so if anyone has had experience in this situation, I'd appreciate help! Basically, the issue that I'm having is that I have a couple of temperature plugins that are reporting errors in Nagios and at the command line they're exiting in 0: check7204temp.pl - Return code of 255 is out of bounds and checkciscotemp.pl - Return code of 9 is out of bounds If I run a "echo $?" at the command line after running the command successfully, I get 0. Thanks for any help anyone can provide!! My perms are 755 and nagios user owns the plugins and I've run successfully with nagios user and got 0 output. I'm really stumped!! Here's the code for the plugins: ******************************************* check7204temp.pl: #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ******************************************************* code for checkciscotemp.pl? #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ********************************************* Thanks, Missy -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From mhuber at ascentdata.com Tue Aug 17 20:45:51 2010 From: mhuber at ascentdata.com (Huber, Melissa) Date: Tue, 17 Aug 2010 14:45:51 -0400 Subject: nagios plugins return code issue In-Reply-To: References: Message-ID: Sorry - accidentally resent! Melissa A. Huber Linux-Unix Administrator ASCENTDATA Advanced, Secure, Data Centers www.ascentdata.com mhuber at ascentdata.com 412-968-4030 ________________________________ From: Huber, Melissa Sent: Tuesday, August 17, 2010 2:41 PM To: 'nagios-users at lists.sourceforge.net' Subject: nagios plugins return code issue Hello all, I've googled around everywhere trying to find an answer here and came up unsuccessful, so if anyone has had experience in this situation, I'd appreciate help! Basically, the issue that I'm having is that I have a couple of temperature plugins that are reporting errors in Nagios and at the command line they're exiting in 0: check7204temp.pl - Return code of 255 is out of bounds and checkciscotemp.pl - Return code of 9 is out of bounds If I run a "echo $?" at the command line after running the command successfully, I get 0. Thanks for any help anyone can provide!! My perms are 755 and nagios user owns the plugins and I've run successfully with nagios user and got 0 output. I'm really stumped!! Here's the code for the plugins: ******************************************* check7204temp.pl: #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ******************************************************* code for checkciscotemp.pl? #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ********************************************* Thanks, Missy -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From vagabond_king at yahoo.com Tue Aug 17 20:58:29 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Tue, 17 Aug 2010 11:58:29 -0700 (PDT) Subject: nagios plugins return code issue In-Reply-To: References: Message-ID: <619106.3702.qm@web34507.mail.mud.yahoo.com> For starters, why is use strict commented out? ________________________________ From: "Huber, Melissa" To: nagios-users at lists.sourceforge.net Sent: Tue, August 17, 2010 2:41:23 PM Subject: [Nagios-users] nagios plugins return code issue ? Hello all, I've googled around everywhere trying to find an answer here and came up unsuccessful, so if anyone has had experience in this situation, I'd appreciate help! Basically, the issue that I'm having is that I have a couple of temperature plugins that are reporting errors in Nagios and at the command line they're exiting in 0: check7204temp.pl - Return code of 255 is out of bounds and checkciscotemp.pl - Return code of 9 is out of bounds If I run a "echo $?" at the command line after running the command successfully, I get 0. Thanks for any help anyone can provide!! My perms are 755 and nagios user owns the plugins and I've run successfully with nagios user and got 0 output. I'm really stumped!! Here's the code for the plugins: ******************************************* check7204temp.pl: #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ******************************************************* code for checkciscotemp.pl?#!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ********************************************* Thanks, Missy -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From mhuber at ascentdata.com Tue Aug 17 21:20:42 2010 From: mhuber at ascentdata.com (Huber, Melissa) Date: Tue, 17 Aug 2010 15:20:42 -0400 Subject: nagios plugins return code issue In-Reply-To: <619106.3702.qm@web34507.mail.mud.yahoo.com> References: <619106.3702.qm@web34507.mail.mud.yahoo.com> Message-ID: Umm... Not sure. I just tried uncommenting and got the same results though. I'm taking over managing the nagios server that we have from another collegue who left the company. I've actually migrated everything over to another server that is now running the latest nagios. The previous server was 3.0.6 I believe. I tried searching for an updated version of these plugins, but couldn't find any. I'm not that great with perl scripting either. :/ Missy -----Original Message----- From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] Sent: Tuesday, August 17, 2010 2:58 PM To: Nagios Users List Cc: Huber, Melissa Subject: Re: [Nagios-users] nagios plugins return code issue For starters, why is use strict commented out? ________________________________ From: "Huber, Melissa" To: nagios-users at lists.sourceforge.net Sent: Tue, August 17, 2010 2:41:23 PM Subject: [Nagios-users] nagios plugins return code issue ? Hello all, I've googled around everywhere trying to find an answer here and came up unsuccessful, so if anyone has had experience in this situation, I'd appreciate help! Basically, the issue that I'm having is that I have a couple of temperature plugins that are reporting errors in Nagios and at the command line they're exiting in 0: check7204temp.pl - Return code of 255 is out of bounds and checkciscotemp.pl - Return code of 9 is out of bounds If I run a "echo $?" at the command line after running the command successfully, I get 0. Thanks for any help anyone can provide!! My perms are 755 and nagios user owns the plugins and I've run successfully with nagios user and got 0 output. I'm really stumped!! Here's the code for the plugins: ******************************************* check7204temp.pl: #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ******************************************************* code for checkciscotemp.pl? #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ********************************************* Thanks, Missy ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Tue Aug 17 21:45:29 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Tue, 17 Aug 2010 12:45:29 -0700 (PDT) Subject: nagios plugins return code issue In-Reply-To: References: <619106.3702.qm@web34507.mail.mud.yahoo.com> Message-ID: <62604.96449.qm@web34501.mail.mud.yahoo.com> What is your command line? Are you calling the script directly or is it wrapped in a shell script? I took a quick look at the script, and it needs quite a bit of improvement. Not sure if it was a result of my copy and paste, but there is only so much I can blame on bad formatting. I would recommend looking for a different script that does the same thing. ----- Original Message ---- From: "Huber, Melissa" To: Matthew J. Salerno ; Nagios Users List Sent: Tue, August 17, 2010 3:20:42 PM Subject: RE: [Nagios-users] nagios plugins return code issue Umm... Not sure. I just tried uncommenting and got the same results though. I'm taking over managing the nagios server that we have from another collegue who left the company. I've actually migrated everything over to another server that is now running the latest nagios. The previous server was 3.0.6 I believe. I tried searching for an updated version of these plugins, but couldn't find any. I'm not that great with perl scripting either. :/ Missy -----Original Message----- From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] Sent: Tuesday, August 17, 2010 2:58 PM To: Nagios Users List Cc: Huber, Melissa Subject: Re: [Nagios-users] nagios plugins return code issue For starters, why is use strict commented out? ________________________________ From: "Huber, Melissa" To: nagios-users at lists.sourceforge.net Sent: Tue, August 17, 2010 2:41:23 PM Subject: [Nagios-users] nagios plugins return code issue ? Hello all, I've googled around everywhere trying to find an answer here and came up unsuccessful, so if anyone has had experience in this situation, I'd appreciate help! Basically, the issue that I'm having is that I have a couple of temperature plugins that are reporting errors in Nagios and at the command line they're exiting in 0: check7204temp.pl - Return code of 255 is out of bounds and checkciscotemp.pl - Return code of 9 is out of bounds If I run a "echo $?" at the command line after running the command successfully, I get 0. Thanks for any help anyone can provide!! My perms are 755 and nagios user owns the plugins and I've run successfully with nagios user and got 0 output. I'm really stumped!! Here's the code for the plugins: ******************************************* check7204temp.pl: #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ******************************************************* code for checkciscotemp.pl? #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ********************************************* Thanks, Missy ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From mhuber at ascentdata.com Tue Aug 17 22:01:28 2010 From: mhuber at ascentdata.com (Huber, Melissa) Date: Tue, 17 Aug 2010 16:01:28 -0400 Subject: nagios plugins return code issue In-Reply-To: <62604.96449.qm@web34501.mail.mud.yahoo.com> References: <619106.3702.qm@web34507.mail.mud.yahoo.com> <62604.96449.qm@web34501.mail.mud.yahoo.com> Message-ID: Ahh - I just realized something... I got the same response in Nagios when I uncommented "use strict;", but not at the command line. I get the following at the command line with it commented out: If I run: ./checkciscotemp.pl -C '' -H I get: OK Inlet Temp: 18 Outlet Temp: 22 Then if I do a: echo $? I get: 0 But with "use strict;" uncommented at the command line I get a whole range of requirements that I need to define for global symbols such as: Global symbol "$hostname" requires explicit package name at checkciscotemp.pl line 59. I can try defining them and see where that gets me first. I did try looking a little for another script, but I guess I'll have to try harder as this seems to be most likely too outdated for the new version of nagios. Missy -----Original Message----- From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] Sent: Tuesday, August 17, 2010 3:45 PM To: Huber, Melissa; Nagios Users List Subject: Re: [Nagios-users] nagios plugins return code issue What is your command line? Are you calling the script directly or is it wrapped in a shell script? I took a quick look at the script, and it needs quite a bit of improvement. Not sure if it was a result of my copy and paste, but there is only so much I can blame on bad formatting. I would recommend looking for a different script that does the same thing. ----- Original Message ---- From: "Huber, Melissa" To: Matthew J. Salerno ; Nagios Users List Sent: Tue, August 17, 2010 3:20:42 PM Subject: RE: [Nagios-users] nagios plugins return code issue Umm... Not sure. I just tried uncommenting and got the same results though. I'm taking over managing the nagios server that we have from another collegue who left the company. I've actually migrated everything over to another server that is now running the latest nagios. The previous server was 3.0.6 I believe. I tried searching for an updated version of these plugins, but couldn't find any. I'm not that great with perl scripting either. :/ Missy -----Original Message----- From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] Sent: Tuesday, August 17, 2010 2:58 PM To: Nagios Users List Cc: Huber, Melissa Subject: Re: [Nagios-users] nagios plugins return code issue For starters, why is use strict commented out? ________________________________ From: "Huber, Melissa" To: nagios-users at lists.sourceforge.net Sent: Tue, August 17, 2010 2:41:23 PM Subject: [Nagios-users] nagios plugins return code issue ? Hello all, I've googled around everywhere trying to find an answer here and came up unsuccessful, so if anyone has had experience in this situation, I'd appreciate help! Basically, the issue that I'm having is that I have a couple of temperature plugins that are reporting errors in Nagios and at the command line they're exiting in 0: check7204temp.pl - Return code of 255 is out of bounds and checkciscotemp.pl - Return code of 9 is out of bounds If I run a "echo $?" at the command line after running the command successfully, I get 0. Thanks for any help anyone can provide!! My perms are 755 and nagios user owns the plugins and I've run successfully with nagios user and got 0 output. I'm really stumped!! Here's the code for the plugins: ******************************************* check7204temp.pl: #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ******************************************************* code for checkciscotemp.pl? #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ********************************************* Thanks, Missy ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From diego.roccia at gmail.com Tue Aug 17 22:57:38 2010 From: diego.roccia at gmail.com (diego.roccia at gmail.com) Date: Tue, 17 Aug 2010 20:57:38 +0000 Subject: nagios plugins return code issue In-Reply-To: <62604.96449.qm@web34501.mail.mud.yahoo.com> References: <619106.3702.qm@web34507.mail.mud.yahoo.com><62604.96449.qm@web34501.mail.mud.yahoo.com> Message-ID: <220177112-1282078659-cardhu_decombobulator_blackberry.rim.net-67174409-@bda204.bisx.produk.on.blackberry> Hi Melissa, if you disable the embedded perl interpreter in nagios.cfg, does the script start to work? Diego Sent from my BlackBerry? wireless device -----Original Message----- From: "Matthew J. Salerno" Date: Tue, 17 Aug 2010 12:45:29 To: Huber, Melissa; Nagios Users List Reply-To: "Matthew J. Salerno" , Nagios Users List Subject: Re: [Nagios-users] nagios plugins return code issue What is your command line? Are you calling the script directly or is it wrapped in a shell script? I took a quick look at the script, and it needs quite a bit of improvement. Not sure if it was a result of my copy and paste, but there is only so much I can blame on bad formatting. I would recommend looking for a different script that does the same thing. ----- Original Message ---- From: "Huber, Melissa" To: Matthew J. Salerno ; Nagios Users List Sent: Tue, August 17, 2010 3:20:42 PM Subject: RE: [Nagios-users] nagios plugins return code issue Umm... Not sure. I just tried uncommenting and got the same results though. I'm taking over managing the nagios server that we have from another collegue who left the company. I've actually migrated everything over to another server that is now running the latest nagios. The previous server was 3.0.6 I believe. I tried searching for an updated version of these plugins, but couldn't find any. I'm not that great with perl scripting either. :/ Missy -----Original Message----- From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] Sent: Tuesday, August 17, 2010 2:58 PM To: Nagios Users List Cc: Huber, Melissa Subject: Re: [Nagios-users] nagios plugins return code issue For starters, why is use strict commented out? ________________________________ From: "Huber, Melissa" To: nagios-users at lists.sourceforge.net Sent: Tue, August 17, 2010 2:41:23 PM Subject: [Nagios-users] nagios plugins return code issue ? Hello all, I've googled around everywhere trying to find an answer here and came up unsuccessful, so if anyone has had experience in this situation, I'd appreciate help! Basically, the issue that I'm having is that I have a couple of temperature plugins that are reporting errors in Nagios and at the command line they're exiting in 0: check7204temp.pl - Return code of 255 is out of bounds and checkciscotemp.pl - Return code of 9 is out of bounds If I run a "echo $?" at the command line after running the command successfully, I get 0. Thanks for any help anyone can provide!! My perms are 755 and nagios user owns the plugins and I've run successfully with nagios user and got 0 output. I'm really stumped!! Here's the code for the plugins: ******************************************* check7204temp.pl: #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ******************************************************* code for checkciscotemp.pl? #!/usr/bin/perl -w # check_ciscotemp.pl # # Copyright (C) 2000 Leland E. Vandervort # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA #################################### # Nagios pluging to check inlet and outlet temperatures on # Cisco router platforms which support environmental monitoring # (7200, 7500, GSR12000...) #################################### # default temperature thresholds are 30C for inlet, 40C outlet. # if input or output is less than thresholds, returns OK # if equal to (the temps don't change that rapidly) returns WARNING # if greater than threshold, returns CRITICAL # if undetermined, or cannot access environmental, returns UNKNOWN # (in accordance with the plugin coding guidelines) #################################### use Net::SNMP; use Getopt::Long; #use strict; &Getopt::Long::config('auto_abbrev'); #my $critical_vals; #my $warning_vals; #my $inlet_warn; #my $outlet_warn; #my $status; my $response = ""; my $timeout = 10; my $community = "blah"; my $port = 161; my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh = 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; #my $error; my %STATUSCODE = ( 'UNKNOWN' => '-1', 'OK' => '0', 'WARNING' => '1', 'CRITICAL' => '2'); my $state = "UNKNOWN"; ? $SIG{'ALRM'} = sub { print "ERROR: No snmp response from $hostnm (sigALRM)\n"; exit($STATUSCODE{"UNKNOWN"}); }; Getopt::Long::Configure('bundling'); $status = GetOptions ("community=s", \$community, "C=s", \$community, "H=s", \$hostnm, "hostname=s", \$hostnm, "port=i", \$port, "timeout=i", \$timeout, "c=s", \$critical_vals, "w=s", \$warning_vals, "ithresh=i", \$inlet_thresh, "othresh=i", \$outlet_thresh); if($status == 0) { &show_help; } unless (defined($hostnm)) { $hostnm = shift || &show_help; } if (defined($critical_vals)) { if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { ($inlet_thresh,$outlet_thresh) = ($1, $2); } else { die "Cannot Parse Critical Thresholds\n"; } } if (defined($warning_vals)) { if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { ($inlet_warn,$outlet_warn) = ($1, $2); } else { die "Cannot Parse Warning Thresholds\n"; } }else{ $inlet_warn=$inlet_thresh; $outlet_warn=$outlet_thresh; } alarm($timeout); $in_temp = &SNMPGET($INTAKE_TEMP); $out_temp = &SNMPGET($OUTLET_TEMP); if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { $state = "OK"; } elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } } elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { $state = "CRITICAL"; } else { $state = "WARNING"; } print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; exit($STATUSCODE{$state}); sub show_help { printf("\nPerl envmon temperature plugin for Nagios\n"); printf("Usage:\n"); printf(" check_ciscotemp [options] Options: -C snmp-community -p snmp-port -i input temperature threshold -o output temperature threshold "); printf("Copyright (C)2000 Leland E. Vandervort\n"); printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or explicit\n"); printf("This program is licensed under the terms of the\n"); printf("GNU General Public License\n(check source code for details)\n\n\n"); exit($STATUSCODE{"UNKNOWN"}); } sub SNMPGET { $OID = shift; ($session,$error) = Net::SNMP->session( Hostname => $hostnm, Community => $community, Port => $port ); if(!defined($session)) { printf("$state %s\n", $error); exit($STATUSCODE{$state}); } if(!defined($response = $session->get_request($OID))) { printf("$state %s\n", $session->error()); $session->close(); exit($STATUSCODE{$state}); } $session->close(); return($response->{$OID}); } ********************************************* Thanks, Missy ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From webknowledge at gmail.com Tue Aug 17 23:18:59 2010 From: webknowledge at gmail.com (Marcel) Date: Tue, 17 Aug 2010 18:18:59 -0300 Subject: nagios plugins return code issue In-Reply-To: <220177112-1282078659-cardhu_decombobulator_blackberry.rim.net-67174409-@bda204.bisx.produk.on.blackberry> References: <619106.3702.qm@web34507.mail.mud.yahoo.com> <62604.96449.qm@web34501.mail.mud.yahoo.com> <220177112-1282078659-cardhu_decombobulator_blackberry.rim.net-67174409-@bda204.bisx.produk.on.blackberry> Message-ID: Are you sure you are trying to test plugin execution with the nagios user? Try that. On Tue, Aug 17, 2010 at 5:57 PM, wrote: > Hi Melissa, > if you disable the embedded perl interpreter in nagios.cfg, does the > script start to work? > Diego > Sent from my BlackBerry? wireless device > > -----Original Message----- > From: "Matthew J. Salerno" > Date: Tue, 17 Aug 2010 12:45:29 > To: Huber, Melissa; Nagios Users List< > nagios-users at lists.sourceforge.net> > Reply-To: "Matthew J. Salerno" , > Nagios Users List > Subject: Re: [Nagios-users] nagios plugins return code issue > > What is your command line? Are you calling the script directly or is it > wrapped > in a shell script? I took a quick look at the script, and it needs quite a > bit > of improvement. Not sure if it was a result of my copy and paste, but > there is > only so much I can blame on bad formatting. I would recommend looking for > a > different script that does the same thing. > > > > > ----- Original Message ---- > From: "Huber, Melissa" > To: Matthew J. Salerno ; Nagios Users List > > Sent: Tue, August 17, 2010 3:20:42 PM > Subject: RE: [Nagios-users] nagios plugins return code issue > > Umm... Not sure. I just tried uncommenting and got the same results > though. > I'm taking over managing the nagios server that we have from another > collegue > who left the company. I've actually migrated everything over to another > server > that is now running the latest nagios. The previous server was 3.0.6 I > believe. I tried searching for an updated version of these plugins, but > couldn't find any. I'm not that great with perl scripting either. :/ > > Missy > > -----Original Message----- > From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] > Sent: Tuesday, August 17, 2010 2:58 PM > To: Nagios Users List > Cc: Huber, Melissa > Subject: Re: [Nagios-users] nagios plugins return code issue > > For starters, why is use strict commented out? > > > ________________________________ > > From: "Huber, Melissa" > To: nagios-users at lists.sourceforge.net > Sent: Tue, August 17, 2010 2:41:23 PM > Subject: [Nagios-users] nagios plugins return code issue > > ? > Hello all, > > I've googled around everywhere trying to find an answer here and came up > unsuccessful, so if anyone has had experience in this situation, I'd > appreciate > help! > > > Basically, the issue that I'm having is that I have a couple of temperature > plugins that are reporting errors in Nagios and at the command line they're > exiting in 0: > > check7204temp.pl - Return code of 255 is out of bounds and > checkciscotemp.pl - > Return code of 9 is out of bounds > > If I run a "echo $?" at the command line after running the command > successfully, > I get 0. > > Thanks for any help anyone can provide!! My perms are 755 and nagios user > owns > the plugins and I've run successfully with nagios user and got 0 output. > I'm > really stumped!! > > Here's the code for the plugins: > > ******************************************* > check7204temp.pl: > > #!/usr/bin/perl -w > > # check_ciscotemp.pl > > # > > # Copyright (C) 2000 Leland E. Vandervort # # This > program > is free software; you can redistribute it and/or # modify it under the > terms of > the GNU General Public License # as published by the Free Software > Foundation; > either version 2 # of the License, or (at your option) any later version. > > # > > # This program is distributed in the hope that it will be useful, # but > WITHOUT > ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or > FITNESS > FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more > details. > > # > > # you should have received a copy of the GNU General Public License # along > with > this program (or with Nagios); if not, write to the # Free Software > Foundation, > Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA > #################################### > > # Nagios pluging to check inlet and outlet temperatures on # Cisco router > platforms which support environmental monitoring # (7200, 7500, > GSR12000...) > #################################### > > # default temperature thresholds are 30C for inlet, 40C outlet. > > # if input or output is less than thresholds, returns OK # if equal to (the > temps don't change that rapidly) returns WARNING # if greater than > threshold, > returns CRITICAL # if undetermined, or cannot access environmental, returns > UNKNOWN # (in accordance with the plugin coding guidelines) > #################################### > > use Net::SNMP; > > use Getopt::Long; > > #use strict; > > &Getopt::Long::config('auto_abbrev'); > > #my $critical_vals; > > #my $warning_vals; > > #my $inlet_warn; > > #my $outlet_warn; > > #my $status; > > my $response = ""; > > my $timeout = 10; > > my $community = "blah"; > > my $port = 161; > > my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = > "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh > = > 30; my $outlet_thresh = 34; my $hostnm; #my $OID; #my $session; #my $state; > #my > $error; > > my %STATUSCODE = ( 'UNKNOWN' => '-1', > > 'OK' => '0', > > 'WARNING' => '1', > > 'CRITICAL' => '2'); > > my $state = "UNKNOWN"; > > > > $SIG{'ALRM'} = sub { > > print "ERROR: No snmp response from $hostnm (sigALRM)\n"; > > exit($STATUSCODE{"UNKNOWN"}); > > }; > > Getopt::Long::Configure('bundling'); > > $status = GetOptions > > ("community=s", \$community, > > "C=s", \$community, > > "H=s", \$hostnm, > > "hostname=s", \$hostnm, > > "port=i", \$port, > > "timeout=i", \$timeout, > > "c=s", \$critical_vals, > > "w=s", \$warning_vals, > > "ithresh=i", \$inlet_thresh, > > "othresh=i", \$outlet_thresh); > > if($status == 0) { > > &show_help; > > } > > unless (defined($hostnm)) { > > $hostnm = shift || &show_help; > > } > > if (defined($critical_vals)) { > > if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { > > ($inlet_thresh,$outlet_thresh) = ($1, $2); > > } else { > > die "Cannot Parse Critical Thresholds\n"; > > } > > } > > if (defined($warning_vals)) { > > if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { > > ($inlet_warn,$outlet_warn) = ($1, $2); > > } else { > > die "Cannot Parse Warning Thresholds\n"; > > } > > }else{ > > $inlet_warn=$inlet_thresh; > > $outlet_warn=$outlet_thresh; > > } > > alarm($timeout); > > $in_temp = &SNMPGET($INTAKE_TEMP); > > $out_temp = &SNMPGET($OUTLET_TEMP); > > if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { > > $state = "OK"; > > } > > elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { > > if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { > > $state = "CRITICAL"; > > } > > else { > > $state = "WARNING"; > > } > > } > > elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { > > $state = "CRITICAL"; > > } > > else { > > $state = "WARNING"; > > } > > print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; > exit($STATUSCODE{$state}); > > sub show_help { > > printf("\nPerl envmon temperature plugin for Nagios\n"); > > printf("Usage:\n"); > > printf(" > > check_ciscotemp [options] > > Options: > > -C snmp-community > > -p snmp-port > > -i input temperature threshold > > -o output temperature threshold > > "); > > printf("Copyright (C)2000 Leland E. Vandervort\n"); > > printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or > explicit\n"); > > printf("This program is licensed under the terms of the\n"); > > printf("GNU General Public License\n(check source code for > details)\n\n\n"); > > exit($STATUSCODE{"UNKNOWN"}); > > } > > sub SNMPGET { > > $OID = shift; > > ($session,$error) = Net::SNMP->session( > > Hostname => $hostnm, > > Community => $community, > > Port => $port > > ); > > if(!defined($session)) { > > printf("$state %s\n", $error); > > exit($STATUSCODE{$state}); > > } > > if(!defined($response = $session->get_request($OID))) { > > printf("$state %s\n", $session->error()); > > $session->close(); > > exit($STATUSCODE{$state}); > > } > > $session->close(); > > return($response->{$OID}); > > } > > ******************************************************* > code for checkciscotemp.pl > > #!/usr/bin/perl -w > > # check_ciscotemp.pl > > # > > # Copyright (C) 2000 Leland E. Vandervort # # This > program > is free software; you can redistribute it and/or # modify it under the > terms of > the GNU General Public License # as published by the Free Software > Foundation; > either version 2 # of the License, or (at your option) any later version. > > # > > # This program is distributed in the hope that it will be useful, # but > WITHOUT > ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or > FITNESS > FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more > details. > > # > > # you should have received a copy of the GNU General Public License # along > with > this program (or with Nagios); if not, write to the # Free Software > Foundation, > Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA > #################################### > > # Nagios pluging to check inlet and outlet temperatures on # Cisco router > platforms which support environmental monitoring # (7200, 7500, > GSR12000...) > #################################### > > # default temperature thresholds are 30C for inlet, 40C outlet. > > # if input or output is less than thresholds, returns OK # if equal to (the > temps don't change that rapidly) returns WARNING # if greater than > threshold, > returns CRITICAL # if undetermined, or cannot access environmental, returns > UNKNOWN # (in accordance with the plugin coding guidelines) > #################################### > > use Net::SNMP; > > use Getopt::Long; > > #use strict; > > &Getopt::Long::config('auto_abbrev'); > > #my $critical_vals; > > #my $warning_vals; > > #my $inlet_warn; > > #my $outlet_warn; > > #my $status; > > my $response = ""; > > my $timeout = 10; > > my $community = "blah"; > > my $port = 161; > > my $INTAKE_TEMP = "1.3.6.1.4.1.9.9.13.1.3.1.3.1"; my $OUTLET_TEMP = > "1.3.6.1.4.1.9.9.13.1.3.1.3.3"; my $in_temp; my $out_temp; my $inlet_thresh > = > 22; my $outlet_thresh = 32; my $hostnm; #my $OID; #my $session; #my $state; > #my > $error; > > my %STATUSCODE = ( 'UNKNOWN' => '-1', > > 'OK' => '0', > > 'WARNING' => '1', > > 'CRITICAL' => '2'); > > my $state = "UNKNOWN"; > > > > $SIG{'ALRM'} = sub { > > print "ERROR: No snmp response from $hostnm (sigALRM)\n"; > > exit($STATUSCODE{"UNKNOWN"}); > > }; > > Getopt::Long::Configure('bundling'); > > $status = GetOptions > > ("community=s", \$community, > > "C=s", \$community, > > "H=s", \$hostnm, > > "hostname=s", \$hostnm, > > "port=i", \$port, > > "timeout=i", \$timeout, > > "c=s", \$critical_vals, > > "w=s", \$warning_vals, > > "ithresh=i", \$inlet_thresh, > > "othresh=i", \$outlet_thresh); > > if($status == 0) { > > &show_help; > > } > > unless (defined($hostnm)) { > > $hostnm = shift || &show_help; > > } > > if (defined($critical_vals)) { > > if ($critical_vals =~ m/^([0-9]+)[,:]([0-9]+)$/) { > > ($inlet_thresh,$outlet_thresh) = ($1, $2); > > } else { > > die "Cannot Parse Critical Thresholds\n"; > > } > > } > > if (defined($warning_vals)) { > > if ($warning_vals =~ m/^([0-9]+)[:,]([0-9]+)$/) { > > ($inlet_warn,$outlet_warn) = ($1, $2); > > } else { > > die "Cannot Parse Warning Thresholds\n"; > > } > > }else{ > > $inlet_warn=$inlet_thresh; > > $outlet_warn=$outlet_thresh; > > } > > alarm($timeout); > > $in_temp = &SNMPGET($INTAKE_TEMP); > > $out_temp = &SNMPGET($OUTLET_TEMP); > > if (($in_temp < $inlet_thresh) && ($out_temp < $outlet_thresh)) { > > $state = "OK"; > > } > > elsif (($in_temp == $inlet_thresh) || ($out_temp == $outlet_thresh)) { > > if(($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { > > $state = "CRITICAL"; > > } > > else { > > $state = "WARNING"; > > } > > } > > elsif (($in_temp > $inlet_thresh) || ($out_temp > $outlet_thresh)) { > > $state = "CRITICAL"; > > } > > else { > > $state = "WARNING"; > > } > > print "$state Inlet Temp: $in_temp Outlet Temp: $out_temp\n"; > exit($STATUSCODE{$state}); > > sub show_help { > > printf("\nPerl envmon temperature plugin for Nagios\n"); > > printf("Usage:\n"); > > printf(" > > check_ciscotemp [options] > > Options: > > -C snmp-community > > -p snmp-port > > -i input temperature threshold > > -o output temperature threshold > > "); > > printf("Copyright (C)2000 Leland E. Vandervort\n"); > > printf("check_ciscotemp comes with absolutely NO WARRANTY either implied or > explicit\n"); > > printf("This program is licensed under the terms of the\n"); > > printf("GNU General Public License\n(check source code for > details)\n\n\n"); > > exit($STATUSCODE{"UNKNOWN"}); > > } > > sub SNMPGET { > > $OID = shift; > > ($session,$error) = Net::SNMP->session( > > Hostname => $hostnm, > > Community => $community, > > Port => $port > > ); > > if(!defined($session)) { > > printf("$state %s\n", $error); > > exit($STATUSCODE{$state}); > > } > > if(!defined($response = $session->get_request($OID))) { > > printf("$state %s\n", $session->error()); > > $session->close(); > > exit($STATUSCODE{$state}); > > } > > $session->close(); > > return($response->{$OID}); > > } > > ********************************************* > > Thanks, > > Missy > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From yu.watanabe at jp.fujitsu.com Wed Aug 18 04:24:26 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Wed, 18 Aug 2010 11:24:26 +0900 Subject: Tuning for Passive Check latency Message-ID: <201008180224.AA02277@S2007337.jp.fujitsu.com> Hello all. We would like to ask some tips with how to tune up fof the Passvie Check. Currently we are experiencing following latency in passive check, Passive Service Latency: 0.586 / 101257.403 / 768.626 sec # nagios version is 3.0.6 I have read manual but I would like to get an advice exactly which parameteres should I change in nagios.cfg. Thank you, Yu Watanabe ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From it.toonz at gmail.com Wed Aug 18 06:19:36 2010 From: it.toonz at gmail.com (Toonz IT) Date: Wed, 18 Aug 2010 09:49:36 +0530 Subject: Mail notification problem In-Reply-To: <13579FFE8B208F4DBA327EE25F804AAB8EE79053@swvbpheaglxmb02.health.local> References: <13579FFE8B208F4DBA327EE25F804AAB8EE79053@swvbpheaglxmb02.health.local> Message-ID: Hi Gerald, Got stuck at # postmap /etc/postfix/sasl_passwd error returned was postmap: fatal: config variable inet interfaces: host not found: localhost out host name is Nagios. we have edited in /etc/sysconfig/network file. please advice. regards Ananth. On Tue, Aug 17, 2010 at 7:09 PM, Ortner, Gerald wrote: > Hi, > > > > http://fannagioscd.sourceforge.net/drupal/?q=node/10 ? > > > > gerald > > > > > > *Von:* Toonz IT [mailto:it.toonz at gmail.com] > *Gesendet:* Dienstag, 17. August 2010 15:22 > *An:* nagios-users at lists.sourceforge.net > *Betreff:* [Nagios-users] Mail notification problem > > > > Hi Allan, > > Thanks for writing... our test environment is as follows. > > Server is Windows 2003 Server with 2GB RAM, we downloaded Fully Automated > Nagios from http://fannagioscd.sourceforge.net/drupal/ > > Using VMPlayer we created a new virtual machine and installed using the fan > iso image. > > Nagios version 3.0.6. > > After full installation we set up IP, routes and dns and access using the > web interface. > > Installed NSClient++ in 2 windows servers and edited the nsc.ini file also. > > edited the nagios.cfg file and windows.cfg > > we entered the mail address for notification to be send to in contacts.cfg > file. the mail id is an intranet id and is in the same network as the nagios > ipaddr. is there any other file where we have to enter smtp settings and > all... we haven't set the mail server settings anywhere couldn't find where > that has to be set!! mail server ip is 192.168.3.240 and nagios server ip is > 192.18.3.241. > > and when we give nagios verification we get the below error. telnet also > resulted in connection refused. > > we strongly suspect that mail settings are not complete.. but donno where > to enter those details. the only entry we made is adding > sysadmin at toonz.com in contacts.cfg file. nowhere we have entered the mail > server ipaddress!! > > Please advice.... after this we have more queries!!! :-) > > ananth. > > > Date: Mon, 16 Aug 2010 12:51:17 -0700 > From: Allan Clark > Subject: Re: [Nagios-users] Mail sending issue. > To: Nagios Users List > Message-ID: > > ZaQVvjoHZwU02eYANwqRwJ=e04+i0- at mail.gmail.com > > Content-Type: text/plain; charset=UTF-8 > > On Mon, Aug 16, 2010 at 12:10, IT at Toonz wrote: > > Hi all, > > > > We are testing with "Fully Automated Nagios". Have installed and started > > > > ??? monitoring 2 Windows 2003 servers. But we can't get notification to > > work. > > > > When we certify Nagios installation we get the following error > > > > send-mail: fatal: config variable inet_interfaces: host not found: local > > host > > > > ??? What does "notify-host-by-mail" mean? Is the notification send to > host > > only. > > > > ??? How can we make FAN send mails? > > > > ??? We have an internal mail server, and are trying to send notifications > to > > an > > > > ??? ID there. Connectivity is fine, have entered the id in contacts.cfg > > file. > > > > ??? We have installed NSClient++ in these servers, but the host server, > > shows > > > > ??? connection refused, there is no firewall! > > It might help if you shared: > 1) your Nagios config (all of it) > 2) your email config > 3) the result of a test by telnetting to your mailserver and faking a > mail transaction similar to what you're trying to do. > > This might seem fairly intuitive to some, but not to others, so I'm > explicitly suggesting. In general, detail is useful -- if you're > afraid to spam a maillist that reaches thousands, then simply provide > the same detail at a URL where it can be downloaded, and just give the > URL in your message. > > NOT providing detail merely means people may have to ask for it -- > ultimately delaying your solution -- or waste time guessing. > > As Dave Stern points out, it might not be a Nagios problem if your > mail server -- for whatever reason -- won't let the nagios user or the > Nagios server box send a message... ie it's not Nagios' issue if the > mailserver refuses, regardless what attempts are made. > > Please ensure you have your mailserver administrator onboard with what > you're doing. > > If the collection of this background data and discussion with your > mailserver admin resolves the issue, please let us know :) > > Allan > -- > allanc at chickenandporn.com? "??" http://linkedin.com/in/goldfish > > ------------------------------ > OOe. Gesundheits- und Spitals-AG > Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, > Firmenbuchgericht: Landesgericht Linz, FN 210146 p > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jm+nagios-users at roth.lu Wed Aug 18 09:24:24 2010 From: jm+nagios-users at roth.lu (jm+nagios-users at roth.lu) Date: Wed, 18 Aug 2010 09:24:24 +0200 (CEST) Subject: contactgroup definition Message-ID: Is it normal that there is NO error on startup when I - in a contact definition - add a contactgroups directive - for a contactgroup that has not been defined? I only get an error when I try to use a non-existing contact group in a service definition. This makes me wonder what is going on. [FEATURE REQUEST] No matter how it finally works, it would be nice to be able to generate the groups "on-the-fly" as mentioned above, but with the possibility to view the resulting groups. Thanks JM ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Wed Aug 18 09:52:19 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 18 Aug 2010 08:52:19 +0100 Subject: Tuning for Passive Check latency In-Reply-To: <201008180224.AA02277@S2007337.jp.fujitsu.com> References: <201008180224.AA02277@S2007337.jp.fujitsu.com> Message-ID: On 18 August 2010 03:24, Yu Watanabe wrote: > Hello all. > > We would like to ask some tips with how to tune up fof the Passvie Check. > > Currently we are experiencing following latency in passive check, > > Passive Service Latency: ? ? ? ? ? ? ? ?0.586 / 101257.403 / 768.626 sec > > # nagios version is 3.0.6 > > I have read manual but I would like to get an advice > exactly which parameteres should I change in nagios.cfg. Which manual have you read? The most relevant page is: http://nagios.sourceforge.net/docs/3_0/tuning.html Can you increase the check_interval for some of your service checks? ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Bradley.Radjoo at is.co.za Wed Aug 18 10:20:18 2010 From: Bradley.Radjoo at is.co.za (Bradley Radjoo) Date: Wed, 18 Aug 2010 10:20:18 +0200 Subject: Distributed Setup of Nagios In-Reply-To: References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> Message-ID: <7FC76047-D748-4165-B841-A888BADF712A@is.co.za> Thank you Max, I'll check it out ;-) Regards, Bradley On 17 Aug 2010, at 4:53 PM, Max wrote: > On Tue, Aug 17, 2010 at 10:26 AM, Bradley Radjoo > wrote: >> Hello All, >> Please can you assist me as I a 1st timer to Nagios itself as I need >> assistance on a Distributed Monitoring Setup of Nagios. >> Where one server manages other instances of Nagios Servers in differant >> locations. >> Any help or documentation on installation and configuration would be of >> great help ;-) > > DNX might work for you: > > http://dnx.sourceforge.net/ > > - Max > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaimers at is.co.za and a copy will be emailed to you. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From ravishankar.gundlapali at wipro.com Wed Aug 18 10:20:49 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Wed, 18 Aug 2010 13:50:49 +0530 Subject: Ports to be opened... Message-ID: <618F928F9E2D824AAB26DCAA0F25221F0287599A@HYD-MKD-MBX02.wipro.com> Hi All, I would like to configure few windows servers in Nagios . Please let me know ports that are required to be opened for Nagios communication. Thanks, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From Bradley.Radjoo at is.co.za Wed Aug 18 10:21:12 2010 From: Bradley.Radjoo at is.co.za (Bradley Radjoo) Date: Wed, 18 Aug 2010 10:21:12 +0200 Subject: Distributed Setup of Nagios In-Reply-To: <4C6AC330.8030200@nagios.com> References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> <4C6AC330.8030200@nagios.com> Message-ID: <05E16718-77DD-4E8A-9490-D05812DF7B29@is.co.za> Nice ! Thank you Tony Yeah, its concerning that there is hardly no documentation around this... Regards, Bradley On 17 Aug 2010, at 7:13 PM, Tony Yarusso wrote: > On 8/17/2010 9:53 AM, Max wrote: >> DNX might work for you: >> >> http://dnx.sourceforge.net/ >> >> - Max > I would second this suggestion. I've been trying it out in the office > here, and it seems WAY simpler than the traditional method for > distributed setups. The one caution I'll give with that is that it only > distributes the checks, so if you have for instances pnp4nagios for > performance graphs that load will still be centralized. > > I wrote a script last week meant to aid in the installation of DNX - you > can download that from > http://assets.nagios.com/downloads/nagiosxi/scripts/NagiosXI-DNX.sh and > let me know how it works for you. Unfortunately I don't have > documentation to go along with it yet, but it's mostly self explanatory > with the usual --help switch to the script. > > -- > Tony Yarusso > Technical Team > ___ > Nagios Enterprises, LLC > Email: tyarusso at nagios.com > Web: www.nagios.com > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaimers at is.co.za and a copy will be emailed to you. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From ck at claudiokuenzler.com Wed Aug 18 10:24:19 2010 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Wed, 18 Aug 2010 10:24:19 +0200 Subject: Ports to be opened... In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F0287599A@HYD-MKD-MBX02.wipro.com> References: <618F928F9E2D824AAB26DCAA0F25221F0287599A@HYD-MKD-MBX02.wipro.com> Message-ID: If you use NSClient++ this would be port 12489 On Wed, Aug 18, 2010 at 10:20 AM, wrote: > Hi All, > > > > I would like to configure few windows servers in Nagios . > > > > Please let me know ports that are required to be opened for Nagios > communication. > > > > Thanks, > > Ravi G > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ravishankar.gundlapali at wipro.com Wed Aug 18 10:37:50 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Wed, 18 Aug 2010 14:07:50 +0530 Subject: Ports to be opened... In-Reply-To: References: <618F928F9E2D824AAB26DCAA0F25221F0287599A@HYD-MKD-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F028759A5@HYD-MKD-MBX02.wipro.com> Hi All, Sorry I have missed out in my previous email, I would like to monitor few Unix servers also so any idea on the port to be opened? Thanks, Ravi G From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] Sent: Wednesday, August 18, 2010 1:54 PM To: Nagios Users List Subject: Re: [Nagios-users] Ports to be opened... If you use NSClient++ this would be port 12489 On Wed, Aug 18, 2010 at 10:20 AM, wrote: Hi All, I would like to configure few windows servers in Nagios . Please let me know ports that are required to be opened for Nagios communication. Thanks, Ravi G ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ck at claudiokuenzler.com Wed Aug 18 10:37:00 2010 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Wed, 18 Aug 2010 10:37:00 +0200 Subject: Ports to be opened... In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F0287599D@HYD-MKD-MBX02.wipro.com> References: <618F928F9E2D824AAB26DCAA0F25221F0287599A@HYD-MKD-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F0287599D@HYD-MKD-MBX02.wipro.com> Message-ID: Depends how you want to monitor the Unix servers. You could do this by using a SSH connection where you'd use port 22 (by default) or if you use the NRPE daemon on the target Unix server you'd use port 5666 (by default). On Wed, Aug 18, 2010 at 10:31 AM, wrote: > Hi , > > > > I wanted to monitor few Unix servers also. > > > > Any idea on this? > > > > Thanks, > > Ravi G > > > > *From:* Claudio Kuenzler [mailto:ck at claudiokuenzler.com] > *Sent:* Wednesday, August 18, 2010 1:54 PM > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] Ports to be opened... > > > > If you use NSClient++ this would be port 12489 > > On Wed, Aug 18, 2010 at 10:20 AM, > wrote: > > Hi All, > > > > I would like to configure few windows servers in Nagios . > > > > Please let me know ports that are required to be opened for Nagios > communication. > > > > Thanks, > > Ravi G > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > > > > * Please do not print this email unless it is absolutely necessary. * > > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and may > contain proprietary, confidential or privileged information. If you are not > the intended recipient, you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately and destroy all copies of this > message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. The > company accepts no liability for any damage caused by any virus transmitted > by this email. > > www.wipro.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ravishankar.gundlapali at wipro.com Wed Aug 18 10:38:41 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Wed, 18 Aug 2010 14:08:41 +0530 Subject: Recall: Ports to be opened... Message-ID: <618F928F9E2D824AAB26DCAA0F25221F028759A7@HYD-MKD-MBX02.wipro.com> Ravishankar Gundlapali (WT01 - Energy and Utilities) would like to recall the message, "[Nagios-users] Ports to be opened...". -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From ravishankar.gundlapali at wipro.com Wed Aug 18 10:39:30 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Wed, 18 Aug 2010 14:09:30 +0530 Subject: Ports to be opened... In-Reply-To: References: <618F928F9E2D824AAB26DCAA0F25221F0287599A@HYD-MKD-MBX02.wipro.com><618F928F9E2D824AAB26DCAA0F25221F0287599D@HYD-MKD-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F028759A8@HYD-MKD-MBX02.wipro.com> Thanks a lot .... From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] Sent: Wednesday, August 18, 2010 2:07 PM To: Ravishankar Gundlapali (WT01 - Energy and Utilities) Cc: Nagios Users List Subject: Re: [Nagios-users] Ports to be opened... Depends how you want to monitor the Unix servers. You could do this by using a SSH connection where you'd use port 22 (by default) or if you use the NRPE daemon on the target Unix server you'd use port 5666 (by default). On Wed, Aug 18, 2010 at 10:31 AM, wrote: Hi , I wanted to monitor few Unix servers also. Any idea on this? Thanks, Ravi G From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] Sent: Wednesday, August 18, 2010 1:54 PM To: Nagios Users List Subject: Re: [Nagios-users] Ports to be opened... If you use NSClient++ this would be port 12489 On Wed, Aug 18, 2010 at 10:20 AM, wrote: Hi All, I would like to configure few windows servers in Nagios . Please let me know ports that are required to be opened for Nagios communication. Thanks, Ravi G ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From tonvoon at gmail.com Wed Aug 18 13:22:16 2010 From: tonvoon at gmail.com (Ton Voon) Date: Wed, 18 Aug 2010 12:22:16 +0100 Subject: Distributed Setup of Nagios In-Reply-To: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> Message-ID: On 17 Aug 2010, at 15:26, Bradley Radjoo wrote: > Please can you assist me as I a 1st timer to Nagios itself as I need > assistance on a Distributed Monitoring Setup of Nagios. > Where one server manages other instances of Nagios Servers in > differant locations. You may want to look at Opsview (http://opsview.com). From a single point of configuration, it pushes out the nagios configuration to the remote slaves which are independently running their own copy of Nagios. We have users going up to 25 slaves! Ton ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From kaushalshriyan at gmail.com Wed Aug 18 15:27:26 2010 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Wed, 18 Aug 2010 18:57:26 +0530 Subject: tw_cli command Message-ID: Hi, I have the below bash script for nagios plugin. The issue is that i dont need to hard code the controller c0 or c1 or c2 or c3. so on some servers there may be two controllers c0, and c1 and on some server there may be four controllers c0,1,2 and 3. I dont know it off hand Typically if i run tw_cli info i get tw_cli info Ctl Model Ports Drives Units NotOpt RRate VRate BBU ------------------------------------------------------------------------ c0 9550SX-8LP 8 8 4 0 1 1 OK c1 9550SX-8LP 8 8 2 0 1 1 OK ##################################################################################################### controllers=$(tw_cli info | awk '/^c[0-9]/{print $1}) for c in $controllers; do sudo /usr/bin/tw_cli info $c | grep -eq "DEVICE-ERROR|DEGRADED| INOPERABLE|SMART-FAILURE" if [ $? -eq 0 ]; then echo "Critical: raid problem with controller $c"; exit 2 fi echo "Ok:raid is fine" exit 0 done ##################################################################################################### The issue with the above bash script is that it will exit with 2 if the controller c0 fail and it wont check for other controllers. I need to check for other controllers too at the same time Please suggest. Thanks, Kaushal ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From perldork at webwizarddesign.com Wed Aug 18 16:38:41 2010 From: perldork at webwizarddesign.com (Max) Date: Wed, 18 Aug 2010 10:38:41 -0400 Subject: Distributed Setup of Nagios In-Reply-To: References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> Message-ID: On Wed, Aug 18, 2010 at 7:22 AM, Ton Voon wrote: > You may want to look at Opsview (http://opsview.com). > > ?From a single point of configuration, it pushes out the nagios > configuration to the remote slaves which are independently running > their own copy of Nagios. We have users going up to 25 slaves! Cool - how many active service checks / active host checks per poller? - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From tonvoon at gmail.com Wed Aug 18 16:51:55 2010 From: tonvoon at gmail.com (Ton Voon) Date: Wed, 18 Aug 2010 15:51:55 +0100 Subject: Distributed Setup of Nagios In-Reply-To: References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> Message-ID: On 18 Aug 2010, at 15:38, Max wrote: > On Wed, Aug 18, 2010 at 7:22 AM, Ton Voon wrote: >> You may want to look at Opsview (http://opsview.com). >> >> From a single point of configuration, it pushes out the nagios >> configuration to the remote slaves which are independently running >> their own copy of Nagios. We have users going up to 25 slaves! > > Cool - how many active service checks / active host checks per poller? As many as a single nagios instance runs. You can scale out by adding more slaves. We also have a feature where you can have slave clusters to do workload balancing and redundancy, so you can just add another node if hardware is the issue. The bottleneck would be at the central master, but that is very fast because of only processing passive results. Ton ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rick.mangus+nagios at gmail.com Wed Aug 18 16:54:56 2010 From: rick.mangus+nagios at gmail.com (Rick Mangus) Date: Wed, 18 Aug 2010 09:54:56 -0500 Subject: tw_cli command In-Reply-To: References: Message-ID: Your code exits on the first controller no matter what. The answer is simple: Don't exit from within your loop. Keep status information, then exit after checking all controllers. Simplest version: > retval=0 > for c in $controllers; > do sudo /usr/bin/tw_cli info $c | grep -eq "DEVICE-ERROR|DEGRADED| > INOPERABLE|SMART-FAILURE" > if [ $? -eq 0 ]; then > echo "Critical: raid problem with controller $c"; > retval=2 > fi > echo "Ok: Controller $c is fine" > done > exit $retval This will output (for example): Ok: Controller c0 is fine Ok: Controller c1 is fine Critical: raid problem with controller c2 Ok: Controller c3 is fine and then return 2. For further help with bash scripting, might I suggest the Advanced Bash-Scripting Guide at http://tldp.org/LDP/abs/html/ Also, please read http://nagios.sourceforge.net/docs/3_0/pluginapi.html to learn how to format multi-line output from your plugin. --Rick On Wed, Aug 18, 2010 at 8:27 AM, Kaushal Shriyan wrote: > Hi, > > I have the below bash script for nagios plugin. The issue is that i > dont need to hard code the controller c0 or c1 or c2 or c3. so on some > servers there may be two controllers c0, and c1 and on some server > there may be four controllers c0,1,2 and 3. I dont know it off hand > > Typically if i run tw_cli info i get > > tw_cli info > > Ctl ? Model ? ? ? ?Ports ? Drives ? Units ? NotOpt ? RRate ? VRate > BBU > ------------------------------------------------------------------------ > c0 ? ?9550SX-8LP ? 8 ? ? ? 8 ? ? ? ?4 ? ? ? 0 ? ? ? ?1 ? ? ? 1 > OK > c1 ? ?9550SX-8LP ? 8 ? ? ? 8 ? ? ? ?2 ? ? ? 0 ? ? ? ?1 ? ? ? 1 > OK > > ##################################################################################################### > controllers=$(tw_cli info | awk '/^c[0-9]/{print $1}) > for c in $controllers; > do sudo /usr/bin/tw_cli info $c | grep -eq "DEVICE-ERROR|DEGRADED| > INOPERABLE|SMART-FAILURE" > if [ $? -eq 0 ]; then > ?echo "Critical: raid problem with controller $c"; > ?exit 2 > ?fi > ?echo "Ok:raid is fine" > ?exit 0 > done > ##################################################################################################### > > The issue with the above bash script is that it will exit with 2 if > the controller c0 fail and it wont check for other controllers. > I need to check for other controllers too at the same time > > Please suggest. > > Thanks, > > Kaushal > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at isprime.org Wed Aug 18 17:07:14 2010 From: nagios at isprime.org (Kyle O'Donnell) Date: Wed, 18 Aug 2010 11:07:14 -0400 Subject: Distributed Setup of Nagios In-Reply-To: References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> Message-ID: <5df1ba6615c9e128d6f918b83e011861@localhost> we have ~ 30000 services and ~3000 hosts we have 6 pollers (each have a backup) processing checks and forwarding back to a central nagios host. our busiest poller has ~1000 hosts and ~9000 services... avg service check interval is 5 minutes, but there are a bunch at 1 and 2 minute intervals. avg service check latency is less than 1 second This is ~3yr old hardware too, i suspect we could increase capacity by 50% if we move to the new intel nahalems we dont use active host checks On Wed, 18 Aug 2010 15:51:55 +0100, Ton Voon wrote: > On 18 Aug 2010, at 15:38, Max wrote: > >> On Wed, Aug 18, 2010 at 7:22 AM, Ton Voon wrote: >>> You may want to look at Opsview (http://opsview.com). >>> >>> From a single point of configuration, it pushes out the nagios >>> configuration to the remote slaves which are independently running >>> their own copy of Nagios. We have users going up to 25 slaves! >> >> Cool - how many active service checks / active host checks per poller? > > As many as a single nagios instance runs. You can scale out by adding > more slaves. We also have a feature where you can have slave clusters > to do workload balancing and redundancy, so you can just add another > node if hardware is the issue. > > The bottleneck would be at the central master, but that is very fast > because of only processing passive results. > > Ton > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Peter.Ringe at web.de Wed Aug 18 17:25:18 2010 From: Peter.Ringe at web.de (Peter Ringe) Date: Wed, 18 Aug 2010 17:25:18 +0200 Subject: Bonding/Teaming Monitoring In-Reply-To: References: Message-ID: <4C6BFB5E.2070702@web.de> did you google for check_bonding+Nagios ? at least for bonding on different linuxes, you can monitor the bonding state. regards, peter Am 17.08.2010 07:55, schrieb Robert Jackson: > My current situation is that I have 2 core switches (Cisco 2960G?s) in a > failover capability. Every one of our servers (Windows, RHEL & Solaris) > has NIC bonding/teaming enabled and obviously one switch serves network > access to NIC #0, the other switch serves network access to NIC #1. > > I?m looking for the best way to setup failover monitoring of the switch > ports and server connections under my setup. > > ************************************************************************ > > The information in this internet E-mail is confidential and is intended > solely for the addressee. Access, copying or re-use of information in it > by anyone else is unauthorised. Any views or opinions presented are > solely those of the author and do not necessarily represent those of > Walker Martyn Ltd or any of its affiliates. If you are not the intended > recipient please contact administrator at walkermartyn.co.uk > . > > Walker Martyn Ltd, company number SC197533. Company is registered in > Scotland and has its registered office at 1 Park Circus Place, Glasgow > G3 6AH, UK. > > **************************************************************** > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Bradley.Radjoo at is.co.za Wed Aug 18 17:54:36 2010 From: Bradley.Radjoo at is.co.za (Bradley Radjoo) Date: Wed, 18 Aug 2010 17:54:36 +0200 Subject: Distributed Setup of Nagios In-Reply-To: <5df1ba6615c9e128d6f918b83e011861@localhost> References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> <5df1ba6615c9e128d6f918b83e011861@localhost> Message-ID: WoW ! That is definately impressive Would this be the Opsview Community edition Kyle ? On 18 Aug 2010, at 5:07 PM, Kyle O'Donnell wrote: > we have ~ 30000 services and ~3000 hosts > > we have 6 pollers (each have a backup) processing checks and forwarding > back to a central nagios host. > > our busiest poller has ~1000 hosts and ~9000 services... avg service check > interval is 5 minutes, but there are a bunch at 1 and 2 minute intervals. > > avg service check latency is less than 1 second > > This is ~3yr old hardware too, i suspect we could increase capacity by 50% > if we move to the new intel nahalems > > we dont use active host checks > On Wed, 18 Aug 2010 15:51:55 +0100, Ton Voon wrote: >> On 18 Aug 2010, at 15:38, Max wrote: >> >>> On Wed, Aug 18, 2010 at 7:22 AM, Ton Voon wrote: >>>> You may want to look at Opsview (http://opsview.com). >>>> >>>> From a single point of configuration, it pushes out the nagios >>>> configuration to the remote slaves which are independently running >>>> their own copy of Nagios. We have users going up to 25 slaves! >>> >>> Cool - how many active service checks / active host checks per poller? >> >> As many as a single nagios instance runs. You can scale out by adding >> more slaves. We also have a feature where you can have slave clusters >> to do workload balancing and redundancy, so you can just add another >> node if hardware is the issue. >> >> The bottleneck would be at the central master, but that is very fast >> because of only processing passive results. >> >> Ton >> >> >> > ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> 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 > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaimers at is.co.za and a copy will be emailed to you. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rosenski at alternate.de Wed Aug 18 17:45:24 2010 From: rosenski at alternate.de (Axel Rosenski) Date: Wed, 18 Aug 2010 17:45:24 +0200 Subject: tw_cli command In-Reply-To: References: Message-ID: <201008181745.24958.rosenski@alternate.de> > Hi, > > The issue with the above bash script is that it will exit with 2 if > the controller c0 fail and it wont check for other controllers. > I need to check for other controllers too at the same time > > Please suggest. Take a look at the attachement. I use this script to check our controllers and discs. Regards, Axel -- Axel Rosenski - Administration - ______________________________ Wave Computersysteme GmbH Philipp-Reis-Str. 1-3 / 9 35440 Linden Gesch?ftsf?hrer: Carsten Kellmann Registergericht Gie?en HRB 1823 Tel.: +49 (0)6403 / 9050 8317 Fax: +49 (0)6403 / 9050 5089 mailto:rosenski at wave-computer.de http://www.wave-computer.de -------------- next part -------------- A non-text attachment was scrubbed... Name: check_3ware.sh Type: application/x-shellscript Size: 3145 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From nagios at isprime.org Wed Aug 18 18:17:49 2010 From: nagios at isprime.org (Kyle O'Donnell) Date: Wed, 18 Aug 2010 12:17:49 -0400 Subject: Distributed Setup of Nagios In-Reply-To: References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> <5df1ba6615c9e128d6f918b83e011861@localhost> Message-ID: <87b26584a1f8deb76a291e0511efd8ea@localhost> groundwork monitor On Wed, 18 Aug 2010 17:54:36 +0200, Bradley Radjoo wrote: > WoW ! That is definately impressive > > Would this be the Opsview Community edition Kyle ? > > On 18 Aug 2010, at 5:07 PM, Kyle O'Donnell wrote: > >> we have ~ 30000 services and ~3000 hosts >> >> we have 6 pollers (each have a backup) processing checks and forwarding >> back to a central nagios host. >> >> our busiest poller has ~1000 hosts and ~9000 services... avg service >> check >> interval is 5 minutes, but there are a bunch at 1 and 2 minute intervals. >> >> avg service check latency is less than 1 second >> >> This is ~3yr old hardware too, i suspect we could increase capacity by >> 50% >> if we move to the new intel nahalems >> >> we dont use active host checks >> On Wed, 18 Aug 2010 15:51:55 +0100, Ton Voon wrote: >>> On 18 Aug 2010, at 15:38, Max wrote: >>> >>>> On Wed, Aug 18, 2010 at 7:22 AM, Ton Voon wrote: >>>>> You may want to look at Opsview (http://opsview.com). >>>>> >>>>> From a single point of configuration, it pushes out the nagios >>>>> configuration to the remote slaves which are independently running >>>>> their own copy of Nagios. We have users going up to 25 slaves! >>>> >>>> Cool - how many active service checks / active host checks per poller? >>> >>> As many as a single nagios instance runs. You can scale out by adding >>> more slaves. We also have a feature where you can have slave clusters >>> to do workload balancing and redundancy, so you can just add another >>> node if hardware is the issue. >>> >>> The bottleneck would be at the central master, but that is very fast >>> because of only processing passive results. >>> >>> Ton >>> >>> >>> >> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by >>> >>> Make an app they can't live without >>> Enter the BlackBerry Developer Challenge >>> http://p.sf.net/sfu/RIM-dev2dev >>> _______________________________________________ >>> 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 >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> 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 > > Please note: This email and its content are subject to the disclaimer as > displayed at the following link > http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. > Should you not have Web access, send a mail to disclaimers at is.co.za and a > copy will be emailed to you. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From perldork at webwizarddesign.com Wed Aug 18 18:21:45 2010 From: perldork at webwizarddesign.com (Max) Date: Wed, 18 Aug 2010 12:21:45 -0400 Subject: Distributed Setup of Nagios In-Reply-To: <5df1ba6615c9e128d6f918b83e011861@localhost> References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> <5df1ba6615c9e128d6f918b83e011861@localhost> Message-ID: On Wed, Aug 18, 2010 at 11:07 AM, Kyle O'Donnell wrote: > we have ~ 30000 services and ~3000 hosts > > we have 6 pollers (each have a backup) processing checks and forwarding > back to a central nagios host. > > our busiest poller has ~1000 hosts and ~9000 services... avg service check > interval is 5 minutes, but there are a bunch at 1 and 2 minute intervals. > > avg service check latency is less than 1 second > > This is ~3yr old hardware too, i suspect we could increase capacity by 50% > if we move to the new intel nahalems Nice - appreciate you sharing your numbers - everyone who does distributed code around Nagios adds overhead, so it is nice to see real numbers as opposed to 'as many as can be done' as we all know how wildly that varies :) - I have spent many many hours with my colleagues tuning the 'as many as can be done' numbers. We have done a distributed variant of Nagios as well - our non-distributed pollers (Compaq 380s with 8 GB RAM + RAID 10) poll 2k host checks (every 10 minutes) and 11k service checks (avg interval 5 minutes), all checks send performance data through a NEB module as well to our performance data processing tier - with our distributed code in place that falls to around 1.5k host checks and 8-9k service checks per poller. Average non-distributed host and service check latency around 1.2 seconds, distributed around 2.4 seconds. Our new hardware consists of Dell R710s - dual 8 core processors, wow do those rock - with our distributed code we are getting around 2x those numbers per poller even with the overhead of the distribution mechanism in place. We will be releasing our distributed variant as open source software in the next month or so - i suspect that our methodology is org specific enough that it will not work for many places, but for higher volume polling it might be worthwhile to adopt and some of the concepts and metholodigies in it we hope will lead to sparking ideas in others for better ways to do distributed Nagios. We also take the approach of pushing out configs to remote pollers - we have a redundant UI tier where we stage a configuration - after the configuration is staged, we have code (will allow for manual operator adjustment in a dot release) that will equally distribute checks among pollers desginated as being available for use - that code then builds out a common retention.dat file for all pollers along with objects.pre-cache files for each poller - those files are pushed out to each poller and the pollers are restarted (yes, we have thought through and worked out all the synchronization issues involved). Our UI then lets users take the actions the Nagios Ui does and knows where to send the commands to affect the real poller instances. Working well so far, and as with all the alternate Nagios UIs, we are able to make a much more intuitive and flexible UI. Code should be available in early October. - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From kaushalshriyan at gmail.com Wed Aug 18 19:02:19 2010 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Wed, 18 Aug 2010 22:32:19 +0530 Subject: tw_cli command In-Reply-To: <201008181745.24958.rosenski@alternate.de> References: <201008181745.24958.rosenski@alternate.de> Message-ID: On Wed, Aug 18, 2010 at 9:15 PM, Axel Rosenski wrote: >> Hi, >> >> The issue with the above bash script is that it will exit with 2 if >> the controller c0 fail and it wont check for other controllers. >> I need to check for other controllers too at the same time >> >> Please suggest. > > Take a look at the attachement. I use this script to check our controllers and > discs. > > Regards, Axel Thanks Rick for correcting my bash script. Thanks a lot Axel :-). I will try it out and update you on this email thread. Thanks, Kaushal ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From himanshuarora7 at gmail.com Wed Aug 18 21:56:20 2010 From: himanshuarora7 at gmail.com (Himanshu Arora) Date: Thu, 19 Aug 2010 01:26:20 +0530 Subject: Help Needed | Web Authentication Message-ID: It would be really appreciated if somone can help me out setting up nagios monitoring for a website or a secured website. I just wanted to match the string after the website is authenticated. for eg: i am trying to setup the monitoring for facebook.com, and the command i am using for this is- ./check_http -H facebook.com -u "http://www.facebook.com" -a myfbusername:myfbpassword -s "Facebook helps you connect" -f follow Plugin responds back --- HTTP OK: HTTP/1.1 200 OK - 27441 bytes in 2.614 second response time |time=2.613975s;;;0.000000 size=27441B;;;0 even if the password is incorrect i gives me same response because it is verifying the string and responds back correctly. So i need to know what am i doing wrong here or may be i am not using the right plugin to do so because as i know its not the "basic authentication" that i am going through. Need your help, trying to get this done from couple of days now... but not getting it solved. Please help or suggest... Thanks Himanshu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From tyarusso at nagios.com Wed Aug 18 22:20:19 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Wed, 18 Aug 2010 15:20:19 -0500 Subject: Help Needed | Web Authentication In-Reply-To: References: Message-ID: <4C6C4083.6060605@nagios.com> On 8/18/2010 2:56 PM, Himanshu Arora wrote: > So i need to know what am i doing wrong here or may be i am not using > the right plugin to do so because as i know its not the "basic > authentication" that i am going through. You want to use WebInject for this (it's an extra library plus Nagios plugin) http://www.webinject.org/plugin.html It lets you say "first, go to Facebook. Then fill out the form with these credentials. Submit those, now check the page it returns back". You could even do something like checking whether someone is still your friend, or whether your news feed contains some string. -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Wed Aug 18 22:20:51 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Wed, 18 Aug 2010 16:20:51 -0400 Subject: Help Needed | Web Authentication In-Reply-To: References: Message-ID: The login mechanism probably doesn't work with the plugin. The plugin probably uses HTTP based auth rather than form based. Are you really trying to check fb? "Himanshu Arora" wrote: >It would be really appreciated if somone can help me out setting up nagios >monitoring for a website or a secured website. > >I just wanted to match the string after the website is authenticated. > for eg: i am trying to setup the monitoring for facebook.com, and the >command i am using for this is- > >./check_http -H facebook.com -u "http://www.facebook.com" -a >myfbusername:myfbpassword -s "Facebook helps you connect" -f follow > >Plugin responds back --- HTTP OK: HTTP/1.1 200 OK - 27441 bytes in 2.614 >second response time |time=2.613975s;;;0.000000 size=27441B;;;0 > >even if the password is incorrect i gives me same response because it is >verifying the string and responds back correctly. > >So i need to know what am i doing wrong here or may be i am not using the >right plugin to do so because as i know its not the "basic authentication" >that i am going through. > >Need your help, trying to get this done from couple of days now... but not >getting it solved. > >Please help or suggest... Thanks > > >Himanshu >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ >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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at herb-j.com Wed Aug 18 22:28:06 2010 From: nagios at herb-j.com (Herb J.) Date: Wed, 18 Aug 2010 16:28:06 -0400 Subject: Help Needed | Web Authentication In-Reply-To: References: Message-ID: <4C6C4256.8040607@herb-j.com> Basic HTTP authentication is what you would use if you were password protecting a web page using an .htaccess file. Since Facebook does not use basic HTTP authentication, Facebook is ignoring the login and password you are sending it and is just displaying the standard login page (in this situation the check_http plugin will not work with the parameters you are sending it). To verify login access to a site like Facebook you will need to configure the check to run the same way that the browser would. That means you must get the variable names from the login form (view the source code and get *all* of the form parameters that are contained in the login form, including the hidden ones) and populate them with the required values. Those parameters then need to be sent by either a "GET" request and/or a "POST" request (using key=value pairs joined by an "&", e.g. "login=myfbusername&pass=myfbpassword"), depending on how Facebook's login page is configured. (You will need to be aware that if the names of the form fields ever change you must update your check to match them.) For "GET" requests, use the "-u" parameter to populate the fields, and for "POST" requests, use the "-P" parameter. Also, if you are monitoring a Facebook login/pass by repeatedly logging into it, it is possible that you might set off a warning flag in some Facebook internal system that monitors for automated logins. If it is for some other site, make sure that the code on that site will not have any problems with constantly repeating logins. On 08/18/2010 03:56 PM, Himanshu Arora wrote: > It would be really appreciated if somone can help me out setting up > nagios monitoring for a website or a secured website. > > I just wanted to match the string after the website is authenticated. > for eg: i am trying to setup the monitoring for facebook.com > , and the command i am using for this is- > > ./check_http -H facebook.com -u > "http://www.facebook.com" -a myfbusername:myfbpassword -s "Facebook > helps you connect" -f follow > > Plugin responds back --- HTTP OK: HTTP/1.1 200 OK - 27441 bytes in > 2.614 second response time |time=2.613975s;;;0.000000 size=27441B;;;0 > > even if the password is incorrect i gives me same response because it > is verifying the string and responds back correctly. > > So i need to know what am i doing wrong here or may be i am not using > the right plugin to do so because as i know its not the "basic > authentication" that i am going through. > > Need your help, trying to get this done from couple of days now... but > not getting it solved. > > Please help or suggest... Thanks > > > Himanshu > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From danilo.godec at agenda.si Thu Aug 19 08:33:36 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Thu, 19 Aug 2010 08:33:36 +0200 Subject: cmd.cgi arguments info? Message-ID: <4C6CD040.9010906@agenda.si> Hi, where can I find information about cmd.cgi arguments available on my version of Nagios (3.0.6)? I want to acknowledge detected problems from a remote machine using 'curl' and need to turn the acknowledgment notification off... Danilo ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Thu Aug 19 10:32:16 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 19 Aug 2010 09:32:16 +0100 Subject: cmd.cgi arguments info? In-Reply-To: <4C6CD040.9010906@agenda.si> References: <4C6CD040.9010906@agenda.si> Message-ID: On 19 August 2010 07:33, Danilo Godec wrote: > ?Hi, > > where can I find information about cmd.cgi arguments available on my > version of Nagios (3.0.6)? > > I want to acknowledge detected problems from a remote machine using > 'curl' and need to turn the acknowledgment notification off... I don't think I've seen them documented anywhere, except in one of the books on Nagios. If you actually do the action in the web front-end first, then do the POST entries in the apache access.log file give you enough information? I've not tried using curl myself. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From Bradley.Radjoo at is.co.za Thu Aug 19 10:57:23 2010 From: Bradley.Radjoo at is.co.za (Bradley Radjoo) Date: Thu, 19 Aug 2010 10:57:23 +0200 Subject: Distributed Setup of Nagios In-Reply-To: <87b26584a1f8deb76a291e0511efd8ea@localhost> References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> <5df1ba6615c9e128d6f918b83e011861@localhost> <87b26584a1f8deb76a291e0511efd8ea@localhost> Message-ID: <0A3A6DB5-AD2B-4248-9AA2-6E7B74779F7F@is.co.za> Cool :-) Kyle, I assume you're not using the Community Edition of Groundwork Monitor. Because I was hoping to find some help on this mailing about a a Distributed Setup using a single instance of Groundwork Monitor Community Edition version 6+ with multiple Nagios 3 remote servers... This proves to be very hard to come by. Any help would be really appreciated On 18 Aug 2010, at 6:17 PM, Kyle O'Donnell wrote: > > groundwork monitor > > > On Wed, 18 Aug 2010 17:54:36 +0200, Bradley Radjoo > wrote: >> WoW ! That is definately impressive >> >> Would this be the Opsview Community edition Kyle ? >> >> On 18 Aug 2010, at 5:07 PM, Kyle O'Donnell wrote: >> >>> we have ~ 30000 services and ~3000 hosts >>> >>> we have 6 pollers (each have a backup) processing checks and forwarding >>> back to a central nagios host. >>> >>> our busiest poller has ~1000 hosts and ~9000 services... avg service >>> check >>> interval is 5 minutes, but there are a bunch at 1 and 2 minute > intervals. >>> >>> avg service check latency is less than 1 second >>> >>> This is ~3yr old hardware too, i suspect we could increase capacity by >>> 50% >>> if we move to the new intel nahalems >>> >>> we dont use active host checks >>> On Wed, 18 Aug 2010 15:51:55 +0100, Ton Voon wrote: >>>> On 18 Aug 2010, at 15:38, Max wrote: >>>> >>>>> On Wed, Aug 18, 2010 at 7:22 AM, Ton Voon wrote: >>>>>> You may want to look at Opsview (http://opsview.com). >>>>>> >>>>>> From a single point of configuration, it pushes out the nagios >>>>>> configuration to the remote slaves which are independently running >>>>>> their own copy of Nagios. We have users going up to 25 slaves! >>>>> >>>>> Cool - how many active service checks / active host checks per > poller? >>>> >>>> As many as a single nagios instance runs. You can scale out by adding > >>>> more slaves. We also have a feature where you can have slave clusters > >>>> to do workload balancing and redundancy, so you can just add another >>>> node if hardware is the issue. >>>> >>>> The bottleneck would be at the central master, but that is very fast >>>> because of only processing passive results. >>>> >>>> Ton >>>> >>>> >>>> >>> > ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by >>>> >>>> Make an app they can't live without >>>> Enter the BlackBerry Developer Challenge >>>> http://p.sf.net/sfu/RIM-dev2dev >>>> _______________________________________________ >>>> 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 >>> >>> > ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by >>> >>> Make an app they can't live without >>> Enter the BlackBerry Developer Challenge >>> http://p.sf.net/sfu/RIM-dev2dev >>> _______________________________________________ >>> 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 >> >> Please note: This email and its content are subject to the disclaimer as >> displayed at the following link >> > http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. >> Should you not have Web access, send a mail to disclaimers at is.co.za and > a >> copy will be emailed to you. >> >> > ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> 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 > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaimers at is.co.za and a copy will be emailed to you. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From yu.watanabe at jp.fujitsu.com Thu Aug 19 11:28:04 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Thu, 19 Aug 2010 18:28:04 +0900 Subject: Tuning for Passive Check latency In-Reply-To: References: Message-ID: <201008190928.AA02287@S2007337.jp.fujitsu.com> Hello Jim. Thank you for your support and affording your time. Yes , the document I read was the link you have sent to me. However, I was not sure whcich parameter should I change intitally. Regarding to the check_interval, we want to choose this option as a last option since ping checks are very important. I am thinking of change the parameters in following order: 1. Increase external buffer slot >From : # external_command_buffer_slots= To : external_command_buffer_slots=768 2. Change the external command check interval >From : check_external_commands=1 TO : check_external_commands=-1 Following are the details of nagiostats executed most recently: ------------------------------------------------- Total Services: 2321 Services Checked: 1928 Services Scheduled: 1077 Services Actively Checked: 1470 Services Passively Checked: 851 Total Service State Change: 0.000 / 100.000 / 16.641 % Active Service Latency: 0.000 / 1.021 / 0.383 sec Active Service Execution Time: 0.000 / 5.182 / 0.087 sec Active Service State Change: 0.000 / 11.180 / 0.008 % Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Passive Service Latency: 0.586 / 101257.403 / 768.626 sec Passive Service State Change: 0.000 / 100.000 / 45.372 % Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit: 2313 / 1 / 0 / 7 Services Flapping: 0 Services In Downtime: 0 Total Hosts: 1034 Hosts Checked: 1034 Hosts Scheduled: 0 Hosts Actively Checked: 1034 Host Passively Checked: 0 Total Host State Change: 0.000 / 0.000 / 0.000 % Active Host Latency: 0.000 / 46.420 / 0.248 sec Active Host Execution Time: 0.005 / 5.181 / 0.084 sec Active Host State Change: 0.000 / 0.000 / 0.000 % Active Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Passive Host Latency: 0.000 / 0.000 / 0.000 sec Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 1027 / 7 / 0 Hosts Flapping: 0 Hosts In Downtime: 0 Active Host Checks Last 1/5/15 min: 2 / 7 / 17 Scheduled: 0 / 0 / 0 On-demand: 2 / 7 / 17 Parallel: 2 / 7 / 15 Serial: 0 / 0 / 0 Cached: 0 / 0 / 2 Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 Active Service Checks Last 1/5/15 min: 211 / 1106 / 3300 Scheduled: 211 / 1106 / 3300 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Service Checks Last 1/5/15 min: 0 / 2 / 2 External Commands Last 1/5/15 min: 84 / 359 / 1074 ----------------------------------------------------------- If you could give us your opinion , it would be a great help. Thank you, Yu Watanabe Jim Avery さんは書きました: >On 18 August 2010 03:24, Yu Watanabe wrote: >> Hello all. >> >> We would like to ask some tips with how to tune up fof the Passvie Check. >> >> Currently we are experiencing following latency in passive check, >> >> Passive Service Latency: ? ? ? ? ? ? ? ?0.586 / 101257.403 / 768.626 sec >> >> # nagios version is 3.0.6 >> >> I have read manual but I would like to get an advice >> exactly which parameteres should I change in nagios.cfg. > >Which manual have you read? The most relevant page is: > >http://nagios.sourceforge.net/docs/3_0/tuning.html > >Can you increase the check_interval for some of your service checks? > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >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 > -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From michael.friedrich at univie.ac.at Thu Aug 19 11:58:57 2010 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Thu, 19 Aug 2010 11:58:57 +0200 Subject: cmd.cgi arguments info? In-Reply-To: <4C6CD040.9010906@agenda.si> References: <4C6CD040.9010906@agenda.si> Message-ID: <4C6D0061.9090102@univie.ac.at> Danilo Godec wrote: > Hi, > > where can I find information about cmd.cgi arguments available on my > version of Nagios (3.0.6)? > > I want to acknowledge detected problems from a remote machine using > 'curl' and need to turn the acknowledgment notification off... > Have a look into cgi/cmd.c void request_command_data(int cmd){ and then translate the cmd type e.g. CMD_DISABLE_HOST_NOTIFICATIONS into appropriate integer in include/common.h but afaik disabling only the ack notification won't be possible in that particular case, you'll need to disable host/service notifications then. kind regards, Michael > > Danilo > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > > -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedrich at univie.ac.at phone: +43 1 4277 14359 fax: +43 1 4277 14279 web: http://www.univie.ac.at/zid Icinga Core& IDOUtils Developer http://www.icinga.org ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From ravishankar.gundlapali at wipro.com Thu Aug 19 12:22:40 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Thu, 19 Aug 2010 15:52:40 +0530 Subject: Information about nagios.. Message-ID: <618F928F9E2D824AAB26DCAA0F25221F02875B89@HYD-MKD-MBX02.wipro.com> Hi All, As I am a beginner in Nagios would like to know the few things about Nagios. 1) How does nagios work and monitors the hosts ? 2) Will it use any protocol ? Thanks, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From jim at jimavery.me.uk Thu Aug 19 12:34:25 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 19 Aug 2010 11:34:25 +0100 Subject: Tuning for Passive Check latency In-Reply-To: <201008190928.AA02287@S2007337.jp.fujitsu.com> References: <201008190928.AA02287@S2007337.jp.fujitsu.com> Message-ID: 2010/8/19 Yu Watanabe : > Hello Jim. > > Thank you for your support and affording your time. > > Yes , the document I read was the link you have sent to me. > However, I was not sure whcich parameter should I change intitally. > > Regarding to the check_interval, we want to choose this option > as a last option since ping checks are very important. > > I am thinking of change the parameters in following order: > > 1. Increase external buffer slot > >From : > ?# external_command_buffer_slots= > > To ? : > ?external_command_buffer_slots=768 > > 2. Change the external command check interval > >From : > ?check_external_commands=1 > > TO ? : > ?check_external_commands=-1 check_external_commands should be either "1" or "0". I expect you were thinking of command_check_interval which yes should be set to "-1" if you want Nagios to check external commands as often as possible. This is how I have mine set: command_check_interval=-1 Does your nagiostats output include "Used/High/Total Command Buffers:" and if so, what does it say? If it helps any, I also have: external_command_buffer_slots=4096 and my nagiostats says: Used/High/Total Command Buffers: 1 / 100 / 4096 Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Thu Aug 19 13:49:06 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 19 Aug 2010 12:49:06 +0100 Subject: Information about nagios.. In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F02875B89@HYD-MKD-MBX02.wipro.com> References: <618F928F9E2D824AAB26DCAA0F25221F02875B89@HYD-MKD-MBX02.wipro.com> Message-ID: On 19 August 2010 11:22, wrote: > Hi All, Hi, and welcome to nagios-users. > As I am a beginner in Nagios would like to know the few things about Nagios. > 1)???? How does nagios work and monitors the hosts ? In: http://nagios.sourceforge.net/docs/3_0/toc.html The pages in the section "The Basics" will hopefully explain that quite well. If you decide Nagios is for you, but find the on-line documentation a bit daunting, the book "Nagios" by Wolfgang Barth, published by No Starch Press is an excellent introduction and reference. > 2)???? Will it use any protocol ? Pretty much, yes. There are lots of plugins available for Nagios which use various protocols and if you can't find a plugin you need, it's usually fairly easy to write one. I hope that helps a little. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From ravishankar.gundlapali at wipro.com Thu Aug 19 14:41:46 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Thu, 19 Aug 2010 18:11:46 +0530 Subject: Information about nagios.. In-Reply-To: References: <618F928F9E2D824AAB26DCAA0F25221F02875B89@HYD-MKD-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F02875BE7@HYD-MKD-MBX02.wipro.com> Hi, Please let me know where can I find the information on different protocols used by Nagios plugins. Thanks, Ravi G -----Original Message----- From: Jim Avery [mailto:jim at jimavery.me.uk] Sent: Thursday, August 19, 2010 5:19 PM To: Nagios Users List Subject: Re: [Nagios-users] Information about nagios.. On 19 August 2010 11:22, wrote: > Hi All, Hi, and welcome to nagios-users. > As I am a beginner in Nagios would like to know the few things about Nagios. > 1)???? How does nagios work and monitors the hosts ? In: http://nagios.sourceforge.net/docs/3_0/toc.html The pages in the section "The Basics" will hopefully explain that quite well. If you decide Nagios is for you, but find the on-line documentation a bit daunting, the book "Nagios" by Wolfgang Barth, published by No Starch Press is an excellent introduction and reference. > 2)???? Will it use any protocol ? Pretty much, yes. There are lots of plugins available for Nagios which use various protocols and if you can't find a plugin you need, it's usually fairly easy to write one. I hope that helps a little. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From flyinvap at kabano.net Thu Aug 19 15:01:37 2010 From: flyinvap at kabano.net (Flyinvap) Date: Thu, 19 Aug 2010 15:01:37 +0200 Subject: Information about nagios.. In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F02875BE7@HYD-MKD-MBX02.wipro.com> References: <618F928F9E2D824AAB26DCAA0F25221F02875B89@HYD-MKD-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F02875BE7@HYD-MKD-MBX02.wipro.com> Message-ID: <4C6D2B31.5050701@kabano.net> Le 19/08/2010 14:41, ravishankar.gundlapali at wipro.com a ?crit : > Please let me know where can I find the information on different protocols used by Nagios plugins. > As said before [0]. Nagios can use any protocol you want through plugins [1]. [0] http://nagios.sourceforge.net/docs/3_0/toc.html [1] http://nagios.sourceforge.net/docs/3_0/plugins.html -- Fly ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From smcafee at collaborativefusion.com Thu Aug 19 14:53:47 2010 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Thu, 19 Aug 2010 08:53:47 -0400 Subject: Information about nagios.. In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F02875BE7@HYD-MKD-MBX02.wipro.com> References: <618F928F9E2D824AAB26DCAA0F25221F02875B89@HYD-MKD-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F02875BE7@HYD-MKD-MBX02.wipro.com> Message-ID: <4C6D295B.5060203@collaborativefusion.com> ravishankar.gundlapali at wipro.com wrote: > Hi, > > Please let me know where can I find the information on different protocols used by Nagios plugins. > > Thanks, > Ravi G Try http://en.wikipedia.org/wiki/List_of_network_protocols Nagios is a framework. There are some stock plugins (http://nagiosplugins.org/) available, or you can use the community-provided ones (http://www.monitoringexchange.org/), or you can write your own. Please read the documentation until you understand the "framework" part of Nagios, then check out monitoringexchange.org to see what's out there and to get ideas for what you need to do. -- Sean McAfee Senior Systems Engineer ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From ravishankar.gundlapali at wipro.com Thu Aug 19 16:06:42 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Thu, 19 Aug 2010 19:36:42 +0530 Subject: Information about nagios.. In-Reply-To: <4C6D295B.5060203@collaborativefusion.com> References: <618F928F9E2D824AAB26DCAA0F25221F02875B89@HYD-MKD-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F02875BE7@HYD-MKD-MBX02.wipro.com> <4C6D295B.5060203@collaborativefusion.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F02875C2C@HYD-MKD-MBX02.wipro.com> Thanks a lot.... -----Original Message----- From: Sean McAfee [mailto:smcafee at collaborativefusion.com] Sent: Thursday, August 19, 2010 6:24 PM To: Nagios Users List Subject: Re: [Nagios-users] Information about nagios.. ravishankar.gundlapali at wipro.com wrote: > Hi, > > Please let me know where can I find the information on different protocols used by Nagios plugins. > > Thanks, > Ravi G Try http://en.wikipedia.org/wiki/List_of_network_protocols Nagios is a framework. There are some stock plugins (http://nagiosplugins.org/) available, or you can use the community-provided ones (http://www.monitoringexchange.org/), or you can write your own. Please read the documentation until you understand the "framework" part of Nagios, then check out monitoringexchange.org to see what's out there and to get ideas for what you need to do. -- Sean McAfee Senior Systems Engineer ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at isprime.org Thu Aug 19 16:39:30 2010 From: nagios at isprime.org (Kyle O'Donnell) Date: Thu, 19 Aug 2010 10:39:30 -0400 Subject: Distributed Setup of Nagios In-Reply-To: <0A3A6DB5-AD2B-4248-9AA2-6E7B74779F7F@is.co.za> References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> <5df1ba6615c9e128d6f918b83e011861@localhost> <87b26584a1f8deb76a291e0511efd8ea@localhost> <0A3A6DB5-AD2B-4248-9AA2-6E7B74779F7F@is.co.za> Message-ID: using the professional or enterprise, not sure the branding anymore... The mechanism we use to pass event data from the nagios pollers to the top level was developed by us. The methods internal to nagios; using OCHP and OCSP, or the performance data processor, to pass events did not meet our requirements... it added to much overhead to nagios and was limiting the number of active host/service checks a single nagios instance could perform. The version GW and I hacked together was fairly simple, it was also based on some code GW used for another function within their product, but was easily recyclable. It was perl script that ran as a daemon, read in the nagios status log, parsed it, sent messages back to the top level nagios via nsca. It was totally rewritten and a bunch of other features were added by one of my colleagues. I am not sure if we are allowed to opensource this code... but I would sure like the guy who wrote it to! (I know you're watching) Outside of figuring the config synchronization of each nagios pollers, which you can use monarch for (part of GW), this bit of code would make it very simple to build large distributed nagios installs. We have done some other significant changes to GW to scale as large as we did, but these had less to do with nagios and more do to with GW. We are using a ramdisk for the nagios log directory, which helps quite a bit for nagios performance. --kyleo On Thu, 19 Aug 2010 10:57:23 +0200, Bradley Radjoo wrote: > Cool :-) > > Kyle, I assume you're not using the Community Edition of Groundwork > Monitor. > > Because I was hoping to find some help on this mailing about a a > Distributed Setup using > a single instance of Groundwork Monitor Community Edition version 6+ with > multiple Nagios 3 remote servers... > This proves to be very hard to come by. > > Any help would be really appreciated > > On 18 Aug 2010, at 6:17 PM, Kyle O'Donnell wrote: > >> >> groundwork monitor >> >> >> On Wed, 18 Aug 2010 17:54:36 +0200, Bradley Radjoo >> wrote: >>> WoW ! That is definately impressive >>> >>> Would this be the Opsview Community edition Kyle ? >>> >>> On 18 Aug 2010, at 5:07 PM, Kyle O'Donnell wrote: >>> >>>> we have ~ 30000 services and ~3000 hosts >>>> >>>> we have 6 pollers (each have a backup) processing checks and forwarding >>>> back to a central nagios host. >>>> >>>> our busiest poller has ~1000 hosts and ~9000 services... avg service >>>> check >>>> interval is 5 minutes, but there are a bunch at 1 and 2 minute >> intervals. >>>> >>>> avg service check latency is less than 1 second >>>> >>>> This is ~3yr old hardware too, i suspect we could increase capacity by >>>> 50% >>>> if we move to the new intel nahalems >>>> >>>> we dont use active host checks >>>> On Wed, 18 Aug 2010 15:51:55 +0100, Ton Voon wrote: >>>>> On 18 Aug 2010, at 15:38, Max wrote: >>>>> >>>>>> On Wed, Aug 18, 2010 at 7:22 AM, Ton Voon wrote: >>>>>>> You may want to look at Opsview (http://opsview.com). >>>>>>> >>>>>>> From a single point of configuration, it pushes out the nagios >>>>>>> configuration to the remote slaves which are independently running >>>>>>> their own copy of Nagios. We have users going up to 25 slaves! >>>>>> >>>>>> Cool - how many active service checks / active host checks per >> poller? >>>>> >>>>> As many as a single nagios instance runs. You can scale out by adding >> >>>>> more slaves. We also have a feature where you can have slave clusters >> >>>>> to do workload balancing and redundancy, so you can just add another >>>>> node if hardware is the issue. >>>>> >>>>> The bottleneck would be at the central master, but that is very fast >>>>> because of only processing passive results. >>>>> >>>>> Ton >>>>> >>>>> >>>>> >>>> >> ------------------------------------------------------------------------------ >>>>> This SF.net email is sponsored by >>>>> >>>>> Make an app they can't live without >>>>> Enter the BlackBerry Developer Challenge >>>>> http://p.sf.net/sfu/RIM-dev2dev >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by >>>> >>>> Make an app they can't live without >>>> Enter the BlackBerry Developer Challenge >>>> http://p.sf.net/sfu/RIM-dev2dev >>>> _______________________________________________ >>>> 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 >>> >>> Please note: This email and its content are subject to the disclaimer as >>> displayed at the following link >>> >> http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. >>> Should you not have Web access, send a mail to disclaimers at is.co.za and >> a >>> copy will be emailed to you. >>> >>> >> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by >>> >>> Make an app they can't live without >>> Enter the BlackBerry Developer Challenge >>> http://p.sf.net/sfu/RIM-dev2dev >>> _______________________________________________ >>> 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 >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> 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 > > Please note: This email and its content are subject to the disclaimer as > displayed at the following link > http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. > Should you not have Web access, send a mail to disclaimers at is.co.za and a > copy will be emailed to you. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From mirde at oppy.com Thu Aug 19 16:55:28 2010 From: mirde at oppy.com (Mirza Dedic) Date: Thu, 19 Aug 2010 07:55:28 -0700 Subject: Email notification for service/host alerts issue ? Message-ID: Recently I upgraded my Nagios OS from Ubuntu 8.04 to 10.04, everything works as expected except my alerts are not bringing in the "$HOSTOUTPUT$" data. Basically this is what I get in my notification alert: ** PROBLEM Service Alert: van-oooo/service_SMS_SITE_COMPONENT_MANAGER is CRITICAL ** ***** Nagios ***** Notification Type: PROBLEM Service: service_SMS_SITE_COMPONENT_MANAGER Host: van-oooo Address: 172.16.x.x State: CRITICAL Date/Time: Thu Aug 19 07:51:02 PDT 2010 Additional Info: The additional info is missing, below are my notification commands, this used to work prior to upgrading. define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Any idea why this could be happening? Thanks. _____________________________________________________________ Mirza Dedic | Senior Technical Analyst/DBA - IT | mirde at oppy.com | (O) 604-461-6779 (C) 778.895.8950 P Please consider the environment before printing this email. The Oppenheimer Group ---- CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From danilo.godec at agenda.si Thu Aug 19 18:18:55 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Thu, 19 Aug 2010 18:18:55 +0200 Subject: cmd.cgi arguments info? In-Reply-To: <4C6D0061.9090102@univie.ac.at> References: <4C6CD040.9010906@agenda.si> <4C6D0061.9090102@univie.ac.at> Message-ID: <4C6D596F.9030007@agenda.si> On 19.8.2010 11:58, Michael Friedrich wrote: > Danilo Godec wrote: > >> Hi, >> >> where can I find information about cmd.cgi arguments available on my >> version of Nagios (3.0.6)? >> >> I want to acknowledge detected problems from a remote machine using >> 'curl' and need to turn the acknowledgment notification off... >> >> > Have a look into cgi/cmd.c > > void request_command_data(int cmd){ > > and then translate the cmd type e.g. CMD_DISABLE_HOST_NOTIFICATIONS into > appropriate integer in include/common.h > > but afaik disabling only the ack notification won't be possible in that > particular case, you'll need to disable host/service notifications then. > I don't want to disable ACK notifications permanetnly... When I use the web interface to acknowledge a problem, there is a check box 'Send notification' that is checked by default. If I un-check it, Nagios doesn't send out ACK notifications. That's what I want / need to do, only 'automatically'... I'll take a look at cgi/cmd.c, thanks for the idea. Thanks, Danilo ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From danilo.godec at agenda.si Thu Aug 19 18:18:08 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Thu, 19 Aug 2010 18:18:08 +0200 Subject: cmd.cgi arguments info? In-Reply-To: References: <4C6CD040.9010906@agenda.si> Message-ID: <4C6D5940.8060708@agenda.si> On 19.8.2010 10:32, Jim Avery wrote: > If you actually do the action in the web front-end first, then do the > POST entries in the apache access.log file give you enough > information? I've not tried using curl myself. > Unfortunately, the log entry is always the same and doesn't contain arguments... Danilo ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From perldork at webwizarddesign.com Thu Aug 19 19:07:40 2010 From: perldork at webwizarddesign.com (Max) Date: Thu, 19 Aug 2010 13:07:40 -0400 Subject: Distributed Setup of Nagios In-Reply-To: References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> <5df1ba6615c9e128d6f918b83e011861@localhost> <87b26584a1f8deb76a291e0511efd8ea@localhost> <0A3A6DB5-AD2B-4248-9AA2-6E7B74779F7F@is.co.za> Message-ID: On Thu, Aug 19, 2010 at 10:39 AM, Kyle O'Donnell wrote: > We have done some other significant changes to GW to scale as large as we > did, but these had less to do with nagios and more do to with GW. ?We are > using a ramdisk for the nagios log directory, which helps quite a bit for > nagios performance. I can second that - RAM disk for nagios temp files and log files, objects.cache and retention.dat (we rsync to disk every N minutes for disaster recovery) makes a very noticable difference. - max ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From karthik at socialvisioninc.com Fri Aug 20 00:34:19 2010 From: karthik at socialvisioninc.com (Karthik Kailash) Date: Thu, 19 Aug 2010 15:34:19 -0700 Subject: check_tcp send null byte Message-ID: Hi all, I want to monitor our Flash socket policy file server. The server expects a string terminated in a null byte, but I can't get check_tcp to send a null byte. Using netcat does work, however: perl -e 'printf "%c",0' | nc -v 843 Here is my check_tcp call: ./check_tcp -H -p 843 -s "`perl -e 'printf "%c",0'`" -r crit -M crit -w 1 -c 3 -v -d 2 -e "xml" The check_tcp doesn't print out any response from the server, which is consistent with server behavior when it doesn't receive a null byte (if I remove the 0 in the perl printf). Any thoughts or ideas would be greatly appreciated. Cheers, Karthik -- *Karthik Kailash** **| **Product SocialVision, Online Television Becomes a Social Experience CELL ? 408.768.7704 | WEB ? www.socialvisioninc.com | FACEBOOK ? facebook.com/socialvision | TWITTER ? twitter.com/socialvision* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From yu.watanabe at jp.fujitsu.com Fri Aug 20 02:12:50 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Fri, 20 Aug 2010 09:12:50 +0900 Subject: Tuning for Passive Check latency In-Reply-To: References: Message-ID: <201008200012.AA02289@S2007337.jp.fujitsu.com> Hello Jim. Again thank you for your reply. Following are the stats for the command buffer slots: Program Running Time: 3d 15h 5m 58s Nagios PID: 17527 Used/High/Total Command Buffers: 4 / 4096 / 4096 it seems that it have already reached the top.... Thank you, Yu Watanabe Jim Avery さんは書きました: >2010/8/19 Yu Watanabe : >> Hello Jim. >> >> Thank you for your support and affording your time. >> >> Yes , the document I read was the link you have sent to me. >> However, I was not sure whcich parameter should I change intitally. >> >> Regarding to the check_interval, we want to choose this option >> as a last option since ping checks are very important. >> >> I am thinking of change the parameters in following order: >> >> 1. Increase external buffer slot >> >From : >> ?# external_command_buffer_slots= >> >> To ? : >> ?external_command_buffer_slots=768 >> >> 2. Change the external command check interval >> >From : >> ?check_external_commands=1 >> >> TO ? : >> ?check_external_commands=-1 > >check_external_commands should be either "1" or "0". > >I expect you were thinking of command_check_interval which yes should >be set to "-1" if you want Nagios to check external commands as often >as possible. This is how I have mine set: > > command_check_interval=-1 > >Does your nagiostats output include "Used/High/Total Command Buffers:" >and if so, what does it say? > >If it helps any, I also have: > > external_command_buffer_slots=4096 > >and my nagiostats says: > > Used/High/Total Command Buffers: 1 / 100 / 4096 > > >Cheers, > >Jim > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >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 > -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From it.toonz at gmail.com Fri Aug 20 04:41:40 2010 From: it.toonz at gmail.com (Toonz IT) Date: Fri, 20 Aug 2010 08:11:40 +0530 Subject: Centreon nagiosadmin login says invalid user!!! Message-ID: We are testing Fully Automated Nagios. We were able to add some servers and start monitoring and get notification mails. But can't login to Centreon now!!! when we try with nagiosadmin nagiosadmin, it returns invalid user!!! We surely didn't change any users!! Is there any way out. rest everything is working perfectly, we logged in to centreon just after installation, but after configuring rest of nagios we see this error. We can login to Nagios using user name nagiosadmin and password nagiosadmin. But Centreon returns Invalid User! We are using FAN 2.0 please help! Newbie here!!! ananth :-( -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From perldork at webwizarddesign.com Fri Aug 20 05:21:02 2010 From: perldork at webwizarddesign.com (Max) Date: Thu, 19 Aug 2010 23:21:02 -0400 Subject: Centreon nagiosadmin login says invalid user!!! In-Reply-To: References: Message-ID: On Thu, Aug 19, 2010 at 10:41 PM, Toonz IT wrote: > We can login to Nagios using user name nagiosadmin and password nagiosadmin. > But Centreon returns Invalid User! > > We are using FAN 2.0 What did the users / developers on the Centreon / FAN mailing list say about this? They might be able to help. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From allanm78 at gmail.com Fri Aug 20 08:15:31 2010 From: allanm78 at gmail.com (newme me) Date: Thu, 19 Aug 2010 23:15:31 -0700 Subject: Nagios help In-Reply-To: References: Message-ID: Hi! I have a perl script which returns data in the following format (output from a wget) - AppName : BillingApp "status" = "OK"; AppName : PaymentApp "status" = "WARN"; AppName : OrderApp "status" = "ERROR"; AppName : RegApp "status" = "FATAL"; the output consists of 150+ apps, with each one of them returning their status. Here is what I need - Want to create a wrapper script which returns a cumulative summary. I need a step by step instructions on how to hook a script like this into nagios? What I desire - Instead of a cumulative result, can I display the result in Nagios on a per application basis using this one script (and a wrapper script on top of it)? I tried check_http but it doesnt solve my needs as I want to parse out the output from the wget rather than just doing a wget on a port. If you can also provide me with a wrapper script for reference in relation to how the result can be presented to Nagios that would be great. Please help!! Thanks, Allan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From it.toonz at gmail.com Fri Aug 20 08:41:41 2010 From: it.toonz at gmail.com (IT Toonz) Date: Fri, 20 Aug 2010 12:11:41 +0530 Subject: Centreon nagiosadmin login says invalid user!!! In-Reply-To: References: Message-ID: <4c6e2556.17018e0a.6453.ffffa924@mx.google.com> Have posted in Centreon forum, waiting for any help!! -----Original Message----- From: Max [mailto:perldork at webwizarddesign.com] Sent: 20 August 2010 08:51 To: Nagios Users List Subject: Re: [Nagios-users] Centreon nagiosadmin login says invalid user!!! On Thu, Aug 19, 2010 at 10:41 PM, Toonz IT wrote: > We can login to Nagios using user name nagiosadmin and password nagiosadmin. > But Centreon returns Invalid User! > > We are using FAN 2.0 What did the users / developers on the Centreon / FAN mailing list say about this? They might be able to help. ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From jim at jimavery.me.uk Fri Aug 20 08:50:22 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 20 Aug 2010 07:50:22 +0100 Subject: Tuning for Passive Check latency In-Reply-To: <201008200012.AA02289@S2007337.jp.fujitsu.com> References: <201008200012.AA02289@S2007337.jp.fujitsu.com> Message-ID: 2010/8/20 Yu Watanabe : > Hello Jim. > > Again thank you for your reply. > > Following are the stats for the command buffer slots: > > Program Running Time: ? ? ? ? ? ? ? ? ? 3d 15h 5m 58s > Nagios PID: ? ? ? ? ? ? ? ? ? ? ? ? ? ? 17527 > Used/High/Total Command Buffers: ? ? ? ?4 / 4096 / 4096 > > it seems that it have already reached the top.... Have you set "command_check_interval=-1" yet? If Nagios is not checking the external command file frequently enough I presume it will throw more stuff in to the command buffer. You might find it helpful to enable mrtg graphing of your Nagios stats. http://nagios.sourceforge.net/docs/3_0/mrtggraphs.html What is cpu looking like on your system generally? ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rab-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org Fri Aug 20 11:38:57 2010 From: rab-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org (Robert Jackson) Date: Fri, 20 Aug 2010 10:38:57 +0100 Subject: Can NRPE Output Be Graphed Message-ID: I'm in the process of setting up NRPE daemons on remote Linux servers to enable me to monitor them. I've set-up a couple of checks (zombie and total processes) as per the documentation. Everything is working fine and Nagios reports correctly the numbers involved. I'm now wondering if these checks can/will output to PNP4Nagios to enable them to be graphed? Also what else can I use NRPE for to monitor Linux servers? ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator-Tf5r5YWETZ7AnAuyKWTJS7VCufUGDwFn at public.gmane.org Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- next part -------------- _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danilo.godec at agenda.si Fri Aug 20 12:20:24 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Fri, 20 Aug 2010 12:20:24 +0200 Subject: cmd.cgi arguments info? - SOLVED In-Reply-To: <4C6CD040.9010906@agenda.si> References: <4C6CD040.9010906@agenda.si> Message-ID: <4C6E56E8.2080601@agenda.si> On 08/19/2010 08:33 AM, Danilo Godec wrote: > Hi, > > where can I find information about cmd.cgi arguments available on my > version of Nagios (3.0.6)? > > I want to acknowledge detected problems from a remote machine using > 'curl' and need to turn the acknowledgment notification off... I checked 'cgi.c' and I think I got it - the problem is, 'cmd.c' just checks for presence of 'send_notification' and if it's there, it sends the notification. It disregards any '=off' or '= So the solution is just to omit the 'send_notification' completely (previously I tried to set it to 'off' or 'false'). Thanks for all the help, Danilo ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From carlos at dsag.jazztel.es Fri Aug 20 12:16:48 2010 From: carlos at dsag.jazztel.es (Carlos de Santa-Ana Garcia) Date: Fri, 20 Aug 2010 12:16:48 +0200 Subject: Centreon nagiosadmin login says invalid user!!! In-Reply-To: References: Message-ID: <4C6E5610.7010205@dsag.jazztel.es> Hi, The admin user for centreon is centreonadmin, not nagiosadmin. You can conect to centreon database and make a select of the users in your centreon and you can make an update to change the password if need it. Greets. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Fri Aug 20 13:22:02 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Fri, 20 Aug 2010 07:22:02 -0400 Subject: Centreon nagiosadmin login says invalid user!!! In-Reply-To: <4C6E5610.7010205@dsag.jazztel.es> References: <4C6E5610.7010205@dsag.jazztel.es> Message-ID: <83be76c5-353a-48c2-9300-d7d413a615d6@email.android.com> Try just admin "Carlos de Santa-Ana Garcia" wrote: > Hi, > > >The admin user for centreon is centreonadmin, not nagiosadmin. > > >You can conect to centreon database and make a select of the users in >your centreon and you can make an update to change the password if need it. > > > >Greets. > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From it.toonz at gmail.com Fri Aug 20 13:28:44 2010 From: it.toonz at gmail.com (IT Toonz) Date: Fri, 20 Aug 2010 16:58:44 +0530 Subject: Centreon nagiosadmin login says invalid user!!! In-Reply-To: <83be76c5-353a-48c2-9300-d7d413a615d6@email.android.com> References: <4C6E5610.7010205@dsag.jazztel.es> <83be76c5-353a-48c2-9300-d7d413a615d6@email.android.com> Message-ID: <4c6e689d.0d308e0a.58f2.ffffb93b@mx.google.com> Tried centreoadmin and admin, with the same as password didn't work!! We used to login using nagiosadmin....wonder how it changed!! We are newbie's so kindly explain in detail... Regards Ananth. -----Original Message----- From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com] Sent: 20 August 2010 16:52 To: Nagios Users List; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Centreon nagiosadmin login says invalid user!!! Try just admin "Carlos de Santa-Ana Garcia" wrote: > Hi, > > >The admin user for centreon is centreonadmin, not nagiosadmin. > > >You can conect to centreon database and make a select of the users in >your centreon and you can make an update to change the password if need it. > > > >Greets. > >--------------------------------------------------------------------------- --- >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ---------------------------------------------------------------------------- -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From rlemerlus at merethis.com Fri Aug 20 14:12:14 2010 From: rlemerlus at merethis.com (Romain Le Merlus) Date: Fri, 20 Aug 2010 14:12:14 +0200 Subject: Centreon nagiosadmin login says invalid user!!! In-Reply-To: <4c6e689d.0d308e0a.58f2.ffffb93b@mx.google.com> References: <4C6E5610.7010205@dsag.jazztel.es> <83be76c5-353a-48c2-9300-d7d413a615d6@email.android.com> <4c6e689d.0d308e0a.58f2.ffffb93b@mx.google.com> Message-ID: Hi Ananth, Let's init the "centreonadmin" password. Please launch the following command: #echo "update contact set contact_passwd = '2995cb0650c5f107230ed569a8c4d6e5' where contact_alias like '%centreonadmin%'" | mysql -u DATABASE-USER-NAME -p DATABASE-NAME -h DATABASE-IP Replace DATABASE-USER-NAME, DATABASE-NAME, DATABASE-IP with the correct values. The password for "centreonadmin" user will be "centreon". -- Romain LE MERLUS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From it.toonz at gmail.com Fri Aug 20 14:26:36 2010 From: it.toonz at gmail.com (IT Toonz) Date: Fri, 20 Aug 2010 17:56:36 +0530 Subject: Centreon nagiosadmin login says invalid user!!! In-Reply-To: References: <4C6E5610.7010205@dsag.jazztel.es> <83be76c5-353a-48c2-9300-d7d413a615d6@email.android.com> <4c6e689d.0d308e0a.58f2.ffffb93b@mx.google.com> Message-ID: <4c6e762f.21078e0a.473a.ffffc2d0@mx.google.com> Thank you Romain, we will check this and let you know as soon as possible. Regards Ananth. From: Romain Le Merlus [mailto:rlemerlus at merethis.com] Sent: 20 August 2010 17:42 To: Nagios Users List Subject: Re: [Nagios-users] Centreon nagiosadmin login says invalid user!!! Hi Ananth, Let's init the "centreonadmin" password. Please launch the following command: #echo "update contact set contact_passwd = '2995cb0650c5f107230ed569a8c4d6e5' where contact_alias like '%centreonadmin%'" | mysql -u DATABASE-USER-NAME -p DATABASE-NAME -h DATABASE-IP Replace DATABASE-USER-NAME, DATABASE-NAME, DATABASE-IP with the correct values. The password for "centreonadmin" user will be "centreon". -- Romain LE MERLUS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From Bradley.Radjoo at is.co.za Fri Aug 20 15:14:46 2010 From: Bradley.Radjoo at is.co.za (Bradley Radjoo) Date: Fri, 20 Aug 2010 15:14:46 +0200 Subject: Distributed Setup of Nagios In-Reply-To: References: <9A4AF368-3797-4746-BA1C-0E6147AF3FB7@is.co.za> <5df1ba6615c9e128d6f918b83e011861@localhost> <87b26584a1f8deb76a291e0511efd8ea@localhost> <0A3A6DB5-AD2B-4248-9AA2-6E7B74779F7F@is.co.za> Message-ID: <73951575-5AB7-417B-8829-A06AB78079DE@is.co.za> Appreciate the valued input ;-) ----- Regards, Bradley On 19 Aug 2010, at 4:39 PM, Kyle O'Donnell wrote: > using the professional or enterprise, not sure the branding anymore... > > The mechanism we use to pass event data from the nagios pollers to the top > level was developed by us. The methods internal to nagios; using OCHP and > OCSP, or the performance data processor, to pass events did not meet our > requirements... it added to much overhead to nagios and was limiting the > number of active host/service checks a single nagios instance could > perform. > > The version GW and I hacked together was fairly simple, it was also based > on some code GW used for another function within their product, but was > easily recyclable. It was perl script that ran as a daemon, read in the > nagios status log, parsed it, sent messages back to the top level nagios > via nsca. > > It was totally rewritten and a bunch of other features were added by one > of my colleagues. > > I am not sure if we are allowed to opensource this code... but I would > sure like the guy who wrote it to! (I know you're watching) > > Outside of figuring the config synchronization of each nagios pollers, > which you can use monarch for (part of GW), this bit of code would make it > very simple to build large distributed nagios installs. > > We have done some other significant changes to GW to scale as large as we > did, but these had less to do with nagios and more do to with GW. We are > using a ramdisk for the nagios log directory, which helps quite a bit for > nagios performance. > > --kyleo > > On Thu, 19 Aug 2010 10:57:23 +0200, Bradley Radjoo > wrote: >> Cool :-) >> >> Kyle, I assume you're not using the Community Edition of Groundwork >> Monitor. >> >> Because I was hoping to find some help on this mailing about a a >> Distributed Setup using >> a single instance of Groundwork Monitor Community Edition version 6+ > with >> multiple Nagios 3 remote servers... >> This proves to be very hard to come by. >> >> Any help would be really appreciated >> >> On 18 Aug 2010, at 6:17 PM, Kyle O'Donnell wrote: >> >>> >>> groundwork monitor >>> >>> >>> On Wed, 18 Aug 2010 17:54:36 +0200, Bradley Radjoo >>> wrote: >>>> WoW ! That is definately impressive >>>> >>>> Would this be the Opsview Community edition Kyle ? >>>> >>>> On 18 Aug 2010, at 5:07 PM, Kyle O'Donnell wrote: >>>> >>>>> we have ~ 30000 services and ~3000 hosts >>>>> >>>>> we have 6 pollers (each have a backup) processing checks and > forwarding >>>>> back to a central nagios host. >>>>> >>>>> our busiest poller has ~1000 hosts and ~9000 services... avg service >>>>> check >>>>> interval is 5 minutes, but there are a bunch at 1 and 2 minute >>> intervals. >>>>> >>>>> avg service check latency is less than 1 second >>>>> >>>>> This is ~3yr old hardware too, i suspect we could increase capacity > by >>>>> 50% >>>>> if we move to the new intel nahalems >>>>> >>>>> we dont use active host checks >>>>> On Wed, 18 Aug 2010 15:51:55 +0100, Ton Voon > wrote: >>>>>> On 18 Aug 2010, at 15:38, Max wrote: >>>>>> >>>>>>> On Wed, Aug 18, 2010 at 7:22 AM, Ton Voon > wrote: >>>>>>>> You may want to look at Opsview (http://opsview.com). >>>>>>>> >>>>>>>> From a single point of configuration, it pushes out the nagios >>>>>>>> configuration to the remote slaves which are independently running >>>>>>>> their own copy of Nagios. We have users going up to 25 slaves! >>>>>>> >>>>>>> Cool - how many active service checks / active host checks per >>> poller? >>>>>> >>>>>> As many as a single nagios instance runs. You can scale out by > adding >>> >>>>>> more slaves. We also have a feature where you can have slave > clusters >>> >>>>>> to do workload balancing and redundancy, so you can just add another > >>>>>> node if hardware is the issue. >>>>>> >>>>>> The bottleneck would be at the central master, but that is very fast > >>>>>> because of only processing passive results. >>>>>> >>>>>> Ton >>>>>> >>>>>> >>>>>> >>>>> >>> > ------------------------------------------------------------------------------ >>>>>> This SF.net email is sponsored by >>>>>> >>>>>> Make an app they can't live without >>>>>> Enter the BlackBerry Developer Challenge >>>>>> http://p.sf.net/sfu/RIM-dev2dev >>>>>> _______________________________________________ >>>>>> 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 >>>>> >>>>> >>> > ------------------------------------------------------------------------------ >>>>> This SF.net email is sponsored by >>>>> >>>>> Make an app they can't live without >>>>> Enter the BlackBerry Developer Challenge >>>>> http://p.sf.net/sfu/RIM-dev2dev >>>>> _______________________________________________ >>>>> 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 >>>> >>>> Please note: This email and its content are subject to the disclaimer > as >>>> displayed at the following link >>>> >>> > http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. >>>> Should you not have Web access, send a mail to disclaimers at is.co.za > and >>> a >>>> copy will be emailed to you. >>>> >>>> >>> > ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by >>>> >>>> Make an app they can't live without >>>> Enter the BlackBerry Developer Challenge >>>> http://p.sf.net/sfu/RIM-dev2dev >>>> _______________________________________________ >>>> 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 >>> >>> > ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by >>> >>> Make an app they can't live without >>> Enter the BlackBerry Developer Challenge >>> http://p.sf.net/sfu/RIM-dev2dev >>> _______________________________________________ >>> 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 >> >> Please note: This email and its content are subject to the disclaimer as >> displayed at the following link >> > http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. >> Should you not have Web access, send a mail to disclaimers at is.co.za and > a >> copy will be emailed to you. >> >> > ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> 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 > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaimers at is.co.za and a copy will be emailed to you. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From lists at xodus.org Fri Aug 20 15:20:40 2010 From: lists at xodus.org (Marc Powell) Date: Fri, 20 Aug 2010 08:20:40 -0500 Subject: Nagios help In-Reply-To: References: Message-ID: <8A34052C-95C7-4251-B712-79DF93DC8F7F@xodus.org> Hey newme me, On Aug 20, 2010, at 1:15 AM, newme me wrote: > Here is what I need - > > Want to create a wrapper script which returns a cumulative summary. I need a step by step instructions on how to hook a script like this into nagios? It's pretty easy... - create your script to perform the check. Pay particular attention to the Output and Return Code requirements of http://nagiosplug.sourceforge.net/developer-guidelines.html - create a command{} definition that calls your script. - create one or more service definitions that reference your new command{} definition - reload nagios - ... - PROFIT! > What I desire - > > Instead of a cumulative result, can I display the result in Nagios on a per application basis using this one script (and a wrapper script on top of it)? Seems straightforward to me. Accept a command line argument referencing what you want to look for and search the output for that status. Print out the status and exit with a corresponding exit code. > If you can also provide me with a wrapper script for reference in relation to how the result can be presented to Nagios that would be great. Look at pretty much any of the plugins at http://exchange.nagios.org. I'd bet that the majority of them call some external program, parse it's output and return results. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From scott.nottingham at gmail.com Fri Aug 20 17:23:56 2010 From: scott.nottingham at gmail.com (Scott Nottingham) Date: Fri, 20 Aug 2010 10:23:56 -0500 Subject: single email alert to multiple contacts? Message-ID: Does anyone know how (or if it is even possible) to configure nagios to send a single email to all contacts associated with the host/service/etc as opposed to a separate email to each contact? The problem I'm facing is with emailing distribution lists. If both distribution_list_A and B contain user_A, said user ends up getting 2 email for the same event. If nagios could be configured to send a single email to both distribution lists, our exchange server would recognize that user_A is a member of both lists and send only 1 email to him. Thanks in advance for any insight you can provide! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev -------------- 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 From linuxassassin at gmail.com Fri Aug 20 17:49:19 2010 From: linuxassassin at gmail.com (Charlie Reddington) Date: Fri, 20 Aug 2010 10:49:19 -0500 Subject: single email alert to multiple contacts? In-Reply-To: References: Message-ID: On Aug 20, 2010, at 10:23 AM, Scott Nottingham wrote: > Does anyone know how (or if it is even possible) to configure nagios > to send a single email to all contacts associated with the host/ > service/etc as opposed to a separate email to each contact? > > The problem I'm facing is with emailing distribution lists. If both > distribution_list_A and B contain user_A, said user ends up getting > 2 email for the same event. If nagios could be configured to send a > single email to both distribution lists, our exchange server would > recognize that user_A is a member of both lists and send only 1 > email to him. > > Thanks in advance for any insight you can provide! Think of your exhange servers mailing lists as buckets. Bucket A is list A with user A in it. Bucket B is list B with user A in it. Each bucket is going to get an email, and that email is going to get copied to it's users. I don't think this way is going to be possible, unless you make another group, and put your groups in there. But I will bet that user a still gets 2 emails. But I can't say for certain, since it's been about 5 years since I used a exchange server. I would probably pull user a out, and let him get contacted separately with nagios, instead of depending on a group list if it's a big deal. The down side is this doesn't scale very well. Charlie ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at herb-j.com Fri Aug 20 18:35:13 2010 From: nagios at herb-j.com (Herb J.) Date: Fri, 20 Aug 2010 12:35:13 -0400 Subject: single email alert to multiple contacts? In-Reply-To: References: Message-ID: <4C6EAEC1.30907@herb-j.com> Issues like this is just one of the reasons why we had to abstract out all notifications from Nagios to an external script. We have servers in a number of different locations, different platform groupings, escalation tiers, etc., as well as notifications sent by Jabber. They had to do to different people, with different escalation tiers, in different locations, who manage different groups of servers. With such a variety of users receiving different emails, mailing lists were out of the question. It got to the point where the processing of service check data would be delayed by several seconds every time a notification needed to be sent. If an entire rack of machines or a whole platform went down, the check latency went through the roof due to all of the delays. The new system I put in place allows a single notification to be generated by Nagios, and regardless of how many people are configured to receive it (be it 1 or 50), there was no delay in Nagios and there is no need to use distribution lists. Of course, the down side of this method is that this system isn't possible without a fairly complex management interface (the same one we use to build all of the config files). On 08/20/2010 11:49 AM, Charlie Reddington wrote: > On Aug 20, 2010, at 10:23 AM, Scott Nottingham wrote: > > >> Does anyone know how (or if it is even possible) to configure nagios >> to send a single email to all contacts associated with the host/ >> service/etc as opposed to a separate email to each contact? >> >> The problem I'm facing is with emailing distribution lists. If both >> distribution_list_A and B contain user_A, said user ends up getting >> 2 email for the same event. If nagios could be configured to send a >> single email to both distribution lists, our exchange server would >> recognize that user_A is a member of both lists and send only 1 >> email to him. >> >> Thanks in advance for any insight you can provide! >> > Think of your exhange servers mailing lists as buckets. Bucket A is > list A with user A in it. Bucket B is list B with user A in it. > > Each bucket is going to get an email, and that email is going to get > copied to it's users. > > I don't think this way is going to be possible, unless you make > another group, and put your groups in there. But I will bet that user > a still gets 2 emails. But I can't say for certain, since it's been > about 5 years since I used a exchange server. > > I would probably pull user a out, and let him get contacted separately > with nagios, instead of depending on a group list if it's a big deal. > The down side is this doesn't scale very well. > > Charlie > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From anthony-nagios at hogan.id.au Fri Aug 20 20:43:37 2010 From: anthony-nagios at hogan.id.au (Anthony) Date: Sat, 21 Aug 2010 04:43:37 +1000 Subject: ICMP Blocked - Windows Host In-Reply-To: References: Message-ID: <20100821044337.4e34b4a3.anthony-nagios@hogan.id.au> Hi, > I am using NSClient++ to monitor several Windows boxes. It is not > possible to allow ICMP echo on these boxes. > > For this reason, I can monitor processes and services but the host > itself shows as up. > > Is there a way around this? > Is it possible to do a check other than ping to show a host status of > up? Have you considered passive monitoring instead? NSClient can be configured to push results instead of being queried on demand. You can use this in conjunction with setting the host as passively checked only and setting a freshness threshold such that if the freshness threshold is exceeded, then the active check command specified is run, which can do something like trigger a WARNING or CRITICAL state. I've used "check_dummy" as the active check command to do this. I rolled out two standard and one custom config file (altered from a template) for each nsclient install, so after installing NSClient++ with defaults, I'd just drop in my standard files and restart the service. Of course, this means that every windows host has a copy of the password to submit results to NSCA. You may or may not like this approach. Ie. Nagios: ----------- define host{ use ... name windows-server check_command host-pasv-stale active_checks_enabled 0 passive_checks_enabled 1 freshness_threshold 600 check_freshness 1 } ... define command{ command_name host-pasv-stale command_line $USER1$/check_dummy 3 "Computer or monitoring is switched off" } (This is unknown state, you might prefer another state number and message) NSClient++ NSC.ini: ------------------- [modules] NSCAAgent.dll CheckWMI.dll CheckSystem.dll CheckDisk.dll CheckEventLog.dll CheckHelpers.dll CheckExternalScripts.dll [Settings] use_file=1 [includes] ;# The order when used is "reversed" thus the last included file will be "first" ;# Included files can include other files (be carefull only do basic recursive checking) custom.ini common.ini NSClient++ common.ini: ---------------------- [External Script] command_timeout=60 allow_nasty_meta_chars=0 [External Scripts] ; Can be called as "Example_Command" later on ; Stripped out some inhouse commands here Example_Command=C:\EXAMPLE\EXAMPLE.EXE .... [External Alias] ; Can be called as "FaxRX" later on FaxRX=CheckProcState MinCritCount=0 MaxCritCount=2 faxrx.exe=started [NSCA Agent] ; Have the windows box phone home every 60 seconds interval=60 ; Must match NSCA server config encryption_method=.... password=.... nsca_host=.... nsca_port=.... [NSCA Commands] ; Common commands all hosts will run ; The next line - host_check - is what sends the passive "I'm alive" message... host_check=CheckOK "NSClient++ running" CPU_Check=checkCPU warn=100 crit=100 time=1 warn=95 crit=99 time=5 warn=90 crit=95 time=15 DiskFree=CheckDriveSize MinWarnFree=1g MinCrit=500m CheckAllOthers FilterType=FIXED Drive=A Drive=B WinServices=checkServiceState CheckAll "exclude=SysmonLog" "exclude=ATI Smart" "exclude=Ati HotKey Poller" "exclude=ATI HotKey Poller" exclude=Fax exclude=NSClientpp exclude=vmount2 exclude=RoxLiveShare10 exclude=RoxWatch10 "exclude=Roxio Upnp Server 10" exclude=SessionLauncher exclude=WebClient Example NSClient++ custom.ini: ------------------------------ [NSCA Agent] ; If you want to override the windows hostname with something else used in Nagios ; hostname=... [NSCA Commands] ; Format: ; WhatNagiosCallsIt=WhatItsDefinedAsHere FaxRX=FaxRX Explorer=CheckProcState MinCritCount=0 MaxCritCount=2 explorer.exe=started ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From vagabond_king at yahoo.com Fri Aug 20 22:40:22 2010 From: vagabond_king at yahoo.com (Matthew J. Salerno) Date: Fri, 20 Aug 2010 16:40:22 -0400 Subject: ICMP Blocked - Windows Host In-Reply-To: <20100821044337.4e34b4a3.anthony-nagios@hogan.id.au> References: <20100821044337.4e34b4a3.anthony-nagios@hogan.id.au> Message-ID: <6a861ea2-2255-4800-9beb-c1f97eb6eeb6@email.android.com> Do a tcp ping on port 3389 or 445 "Anthony" wrote: >Hi, > >> I am using NSClient++ to monitor several Windows boxes. It is not >> possible to allow ICMP echo on these boxes. >> >> For this reason, I can monitor processes and services but the host >> itself shows as up. >> >> Is there a way around this? >> Is it possible to do a check other than ping to show a host status of >> up? > >Have you considered passive monitoring instead? > >NSClient can be configured to push results instead of being queried on >demand. You can use this in conjunction with setting the host as >passively checked only and setting a freshness threshold such that if >the freshness threshold is exceeded, then the active check command >specified is run, which can do something like trigger a WARNING or >CRITICAL state. I've used "check_dummy" as the active check command >to do this. > >I rolled out two standard and one custom config file (altered from a >template) for each nsclient install, so after installing NSClient++ >with defaults, I'd just drop in my standard files and restart the >service. > >Of course, this means that every windows host has a copy of the >password to submit results to NSCA. You may or may not like this >approach. > >Ie. Nagios: >----------- >define host{ > use ... > name windows-server > check_command host-pasv-stale > active_checks_enabled 0 > passive_checks_enabled 1 > freshness_threshold 600 > check_freshness 1 > } >... >define command{ > command_name host-pasv-stale > command_line $USER1$/check_dummy 3 "Computer or monitoring is switched off" > } > >(This is unknown state, you might prefer another state number and message) > >NSClient++ NSC.ini: >------------------- >[modules] >NSCAAgent.dll >CheckWMI.dll >CheckSystem.dll >CheckDisk.dll >CheckEventLog.dll >CheckHelpers.dll >CheckExternalScripts.dll > >[Settings] >use_file=1 > >[includes] >;# The order when used is "reversed" thus the last included file will be "first" >;# Included files can include other files (be carefull only do basic recursive checking) > >custom.ini >common.ini > >NSClient++ common.ini: >---------------------- > >[External Script] >command_timeout=60 >allow_nasty_meta_chars=0 > >[External Scripts] >; Can be called as "Example_Command" later on >; Stripped out some inhouse commands here >Example_Command=C:\EXAMPLE\EXAMPLE.EXE .... > >[External Alias] >; Can be called as "FaxRX" later on >FaxRX=CheckProcState MinCritCount=0 MaxCritCount=2 faxrx.exe=started > >[NSCA Agent] >; Have the windows box phone home every 60 seconds >interval=60 >; Must match NSCA server config >encryption_method=.... >password=.... >nsca_host=.... >nsca_port=.... > >[NSCA Commands] >; Common commands all hosts will run >; The next line - host_check - is what sends the passive "I'm alive" message... >host_check=CheckOK "NSClient++ running" >CPU_Check=checkCPU warn=100 crit=100 time=1 warn=95 crit=99 time=5 warn=90 crit=95 time=15 >DiskFree=CheckDriveSize MinWarnFree=1g MinCrit=500m CheckAllOthers FilterType=FIXED Drive=A Drive=B >WinServices=checkServiceState CheckAll "exclude=SysmonLog" "exclude=ATI Smart" "exclude=Ati HotKey Poller" "exclude=ATI HotKey Poller" exclude=Fax exclude=NSClientpp exclude=vmount2 exclude=RoxLiveShare10 exclude=RoxWatch10 "exclude=Roxio Upnp Server 10" exclude=SessionLauncher exclude=WebClient > >Example NSClient++ custom.ini: >------------------------------ >[NSCA Agent] >; If you want to override the windows hostname with something else used in Nagios >; hostname=... > >[NSCA Commands] >; Format: >; WhatNagiosCallsIt=WhatItsDefinedAsHere >FaxRX=FaxRX >Explorer=CheckProcState MinCritCount=0 MaxCritCount=2 explorer.exe=started > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From alex.peeters at citap.be Mon Aug 23 08:45:03 2010 From: alex.peeters at citap.be (Alex Peeters) Date: Mon, 23 Aug 2010 08:45:03 +0200 Subject: How can we configure into nagios dynamic thresholds depending on timeframes Message-ID: <20100823084503.xj5dlqwfq4gw44w0@localhost> Dear Sire, How can we configure into nagios dynamic thresholds depending on timeframes. Example. -w = 80 -c = 90 during business hours but -w = 90 -c = 95 outsite business hours. How can we configure into nagios dynamic thresholds depending on timeframes: Part II define service{ use local-service ; Name of service template to use host_name localhost service_description Current Users check_command check_local_users!20!50 check_period nonworkhours notification_period nonworkhours } define service{ use local-service ; Name of service template to use host_name localhost service_description Current Users check_command check_local_users!40!60 check_period workhours notification_period workhours } In my above example i dit configure the same test twice. The two timeframes 'nonworkhours' en 'workhours' together equals 24x7 Is this way of configuring allowed. Because this solves my problem. 1) how will the nagios scheduling react on this configuration? 2) how will the display react on this configuration? # 'workhours' timeperiod definition define timeperiod{ timeperiod_name workhours alias "Normal" Working Hours monday 09:00-17:00 tuesday 09:00-17:00 wednesday 09:00-17:00 thursday 09:00-17:00 friday 09:00-17:00 } # 'nonworkhours' timeperiod definition define timeperiod{ timeperiod_name nonworkhours alias Non-Work Hours sunday 00:00-24:00 monday 00:00-09:00,17:00-24:00 tuesday 00:00-09:00,17:00-24:00 wednesday 00:00-09:00,17:00-24:00 thursday 00:00-09:00,17:00-24:00 friday 00:00-09:00,17:00-24:00 saturday 00:00-24:00 } check_period: This directive is used to specify the short name of the time period during which active checks of this host can be made. check_period: This directive is used to specify the short name of the time period during which active checks of this service can be made. If you do not use the check_period directive to specify a timeperiod, Nagios will be able to schedule active checks of the host or service anytime it needs to. This is essentially a 24x7 monitoring scenario. Specifying a timeperiod in the check_period directive allows you to restrict the time that Nagios perform regularly scheduled, active checks of the host or service. When Nagios attempts to reschedule a host or service check, it will make sure that the next check falls within a valid time range within the defined timeperiod. If it doesn?t, Nagios will adjust the next check time to coincide with the next "valid" time in the specified timeperiod. This means that the host or service may not get checked again for another hour, day, or week, etc. Timeperiods: Exclusions and Host/Service Checks - There is a bug in the service/host check scheduling logic that rears its head when you use timeperiod definitions that use the excludedirective. The problem occurs when Nagios Core tries to re-schedule the next check. In this case, the scheduling logic may incorrectly schedule the next check further out in the future than it should. In essence, it skips over the (missing) logic where it could determine an earlier possible time using the exception times. Imperfect Solution: Don?t use timeperiod definitions that exclude other timeperods for your host/service check periods. A fix is being worked on, and will hopefully make it into a 3.4.x release. Vriendelijke Groeten, -- Alex Peeters ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From alex.peeters at citap.be Mon Aug 23 08:14:04 2010 From: alex.peeters at citap.be (Alex Peeters) Date: Mon, 23 Aug 2010 08:14:04 +0200 Subject: (no subject) Message-ID: <20100823081404.vy2289vmw4ow8gs8@localhost> Dear Sire, How can we configure into nagios dynamic thresholds depending on timeframes. Example. -w = 80 -c = 90 during business hours but -w = 90 -c = 95 outsite business hours. How can we configure into nagios dynamic thresholds depending on timeframes: Part II define service{ use local-service ; Name of service template to use host_name localhost service_description Current Users check_command check_local_users!20!50 check_period nonworkhours notification_period nonworkhours } define service{ use local-service ; Name of service template to use host_name localhost service_description Current Users check_command check_local_users!40!60 check_period workhours notification_period workhours } In my above example i dit configure the same test twice. The two timeframes 'nonworkhours' en 'workhours' together equals 24x7 Is this way of configuring allowed. Because this solves my problem. 1) how will the nagios scheduling react on this configuration? 2) how will the display react on this configuration? # 'workhours' timeperiod definition define timeperiod{ timeperiod_name workhours alias "Normal" Working Hours monday 09:00-17:00 tuesday 09:00-17:00 wednesday 09:00-17:00 thursday 09:00-17:00 friday 09:00-17:00 } # 'nonworkhours' timeperiod definition define timeperiod{ timeperiod_name nonworkhours alias Non-Work Hours sunday 00:00-24:00 monday 00:00-09:00,17:00-24:00 tuesday 00:00-09:00,17:00-24:00 wednesday 00:00-09:00,17:00-24:00 thursday 00:00-09:00,17:00-24:00 friday 00:00-09:00,17:00-24:00 saturday 00:00-24:00 } check_period: This directive is used to specify the short name of the time period during which active checks of this host can be made. check_period: This directive is used to specify the short name of the time period during which active checks of this service can be made. If you do not use the check_period directive to specify a timeperiod, Nagios will be able to schedule active checks of the host or service anytime it needs to. This is essentially a 24x7 monitoring scenario. Specifying a timeperiod in the check_period directive allows you to restrict the time that Nagios perform regularly scheduled, active checks of the host or service. When Nagios attempts to reschedule a host or service check, it will make sure that the next check falls within a valid time range within the defined timeperiod. If it doesn?t, Nagios will adjust the next check time to coincide with the next "valid" time in the specified timeperiod. This means that the host or service may not get checked again for another hour, day, or week, etc. Timeperiods: Exclusions and Host/Service Checks - There is a bug in the service/host check scheduling logic that rears its head when you use timeperiod definitions that use the excludedirective. The problem occurs when Nagios Core tries to re-schedule the next check. In this case, the scheduling logic may incorrectly schedule the next check further out in the future than it should. In essence, it skips over the (missing) logic where it could determine an earlier possible time using the exception times. Imperfect Solution: Don?t use timeperiod definitions that exclude other timeperods for your host/service check periods. A fix is being worked on, and will hopefully make it into a 3.4.x release. Vriendelijke Groeten, -- Alex Peeters Section Supervision & Monitoring Monitoring 02/787.57.27 P ?Please consider the environment - do you really need ?to print this email? define service{ host_name host_name hostgroup_name hostgroup_name service_description service_description display_name display_name servicegroups servicegroup_names is_volatile [0/1] check_command command_name initial_state [o,w,u,c] max_check_attempts # check_interval # retry_interval # active_checks_enabled [0/1] passive_checks_enabled [0/1] check_period timeperiod_name obsess_over_service [0/1] check_freshness [0/1] freshness_threshold # event_handler command_name event_handler_enabled [0/1] low_flap_threshold # high_flap_threshold # flap_detection_enabled [0/1] flap_detection_options [o,w,c,u] process_perf_data [0/1] retain_status_information [0/1] retain_nonstatus_information [0/1] notification_interval # first_notification_delay # notification_period timeperiod_name notification_options [w,u,c,r,f,s] notifications_enabled [0/1] contacts contacts contact_groups contact_groups stalking_options [o,w,u,c] notes note_string notes_url url action_url url icon_image image_file icon_image_alt alt_string } http://nagios.sourceforge.net/docs/3_0/checkscheduling.html Service and Host Check Scheduling This documentation is being rewritten for Nagios 3. Stay tuned for more information in a later beta release... Vriendelijke Groeten, -- Alex Peeters ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at flatto.net Mon Aug 23 12:48:56 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 23 Aug 2010 11:48:56 +0100 Subject: contactgroup definition In-Reply-To: References: Message-ID: <4C725218.2000902@flatto.net> You should get at least a warning for the missing contactgroups jm+nagios-users at roth.lu wrote: > Is it normal that there is NO error on startup when I > - in a contact definition > - add a contactgroups directive > - for a contactgroup that has not been defined? > > I only get an error when I try to use a non-existing contact group in a > service definition. This makes me wonder what is going on. > > [FEATURE REQUEST] No matter how it finally works, it would be nice to be > able to generate the groups "on-the-fly" as mentioned above, but with the > possibility to view the resulting groups. > > Thanks > JM > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at flatto.net Mon Aug 23 13:36:06 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 23 Aug 2010 12:36:06 +0100 Subject: Can NRPE Output Be Graphed In-Reply-To: References: Message-ID: <4C725D26.3080304@flatto.net> Robert Jackson wrote: > > I?m in the process of setting up NRPE daemons on remote Linux servers > to enable me to monitor them. I?ve set-up a couple of checks (zombie > and total processes) as per the documentation. Everything is working > fine and Nagios reports correctly the numbers involved. I?m now > wondering if these checks can/will output to PNP4Nagios to enable them > to be graphed? > > Also what else can I use NRPE for to monitor Linux servers? > Hello Robert To answer your first question - Yes PNP4Nagios will be able to graph the data . The second question , short answer is - any thing you want , nrpe is only the "middle man" between the nagios server and the plugins to be executed on the remote machines , to that end it is able to do anything you write a plugin to check and pass the results back to nagios. Assaf -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From nagios at flatto.net Mon Aug 23 15:28:52 2010 From: nagios at flatto.net (Assaf Flatto) Date: Mon, 23 Aug 2010 14:28:52 +0100 Subject: Send_nsca problem In-Reply-To: <157C8D865C773D4791AACA62211D22D51BA27EBD13@email.epsway.local> References: <157C8D865C773D4791AACA62211D22D51BA27EBD13@email.epsway.local> Message-ID: <4C727794.2040600@flatto.net> Eric Anderson wrote: > Hello, > > I have what I think is a very basic problem but I cannot seem to locate it. I believe it to be a permissions issue. > I'm attempting to use send_nsca to forward received syslog traffic to the Nagios process. > > This article describes using using syslog to forward to send_nsca and then to a Nagios server running nsca: > http://exchange.nagios.org/directory/Addons/Log-File-Management/Syslog%252Dng-Integration-Tool/details > > I'm attempting something similar except with a twist; the basic idea is this: > 1. Syslog receives messages from clients. > 2. A script parses syslog and sends the info to send_nsca process on the same host. > 3. Send_nsca sends to nsca running on this host > 4. NSCA forwards to Nagios. > > I've successfully got Nagios and NSCA running. At this point I want to test send_nsca with the following command: > send_nsca locahost -c /usr/local/nagios/nsca-2.7.2/sample-config/ < /home/nagios/test > > The test file contaings: > localhostTestMessage0This is a test message. > > After running this file, I get this in my /var/log/messages file: > Aug 12 22:16:54 . nsca[25712]: Handling the connection... > Aug 12 22:16:54 . nsca[25712]: SERVICE CHECK -> Host name: 'localhost', Service Description: 'Test Message', Return Code: '0', Output: 'This is a test message.' > Aug 12 22:16:54 . nsca[25712]: Command file '/var/spool/nagios/cmd/nagios.cmd' does not exist, attempt to use alternate dump file '/var/spool/nagios/cmd/nsca.dump' for output > Aug 12 22:16:54 . nsca[25712]: Could not open alternate dump file '/var/spool/nagios/cmd/nsca.dump' for appending > Aug 12 22:16:54 . nsca[25712]: End of connection... > > Can anyone suggest where I may be going wrong here? > > NSCA.CFG > nsca_user=nagios > nsca_group=nagcmd > nsca_chroot=/var/spool/nagios/cmd > command_file=/var/spool/nagios/cmd/nagios.cmd > alternate_dump_file=/var/spool/nagios/cmd/nsca.dump > > NAGIOS.CFG > nagios_user=nagios > nagios_group=nagios > command_file=/var/spool/nagios/cmd/nagios.cmd > > If I ls -haltr on /var/spool/nagios/cmd I get the following: > drwxr-xr-x 3 nagios nagios 4.0k 2009-11-10 11:09 .. > prw-rw-r-- 1 nagios nagcmd 0 2010-08-12 15:16 nagios.cmd > prw-rw-r-- 1 nagios nagcmd 0 2010-08-12 15:25 nsca.dump > Is nagios part of the nagcmd group ? are you executing as root or as nagios user ? -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 From bparish at cognex.com Mon Aug 23 21:11:15 2010 From: bparish at cognex.com (Parish, Brent) Date: Mon, 23 Aug 2010 15:11:15 -0400 Subject: single email alert to multiple contacts? In-Reply-To: <4C6EAEC1.30907@herb-j.com> References: <4C6EAEC1.30907@herb-j.com> Message-ID: Agree totally! All alerts from Nagios go to the same post-processing script we built and that's where they get shuffled off where they need to go, based on user preferences. We built a database and simple CGI interface (within Nagios pages). Users click on the preferences link and "subscribe" to systems they are interested in receiving alerts from. They can then decide what email address to send to, based on time of day, hostname, alert level, etc. That takes virtually all the alert management off the Nagios maintainer (me!) and allows people to modify their own contact information (e.g. at work, send to instant messenger. on vacation, send to phone. At home, send to home email. etc) There are "fall through" rules that can optionally send to an admin group mailbox (with appropriate verbiage in the alert message indicating the fall through) if no one is subscribed to get the alert. Finally, we built a quick & dirty "reporting" page that lists all contacts for all services for all hosts, so we can glance through and pin down gaps. -----Original Message----- From: Herb J. [mailto:nagios at herb-j.com] Sent: Friday, August 20, 2010 12:35 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] single email alert to multiple contacts? Issues like this is just one of the reasons why we had to abstract out all notifications from Nagios to an external script. We have servers in a number of different locations, different platform groupings, escalation tiers, etc., as well as notifications sent by Jabber. They had to do to different people, with different escalation tiers, in different locations, who manage different groups of servers. With such a variety of users receiving different emails, mailing lists were out of the question. It got to the point where the processing of service check data would be delayed by several seconds every time a notification needed to be sent. If an entire rack of machines or a whole platform went down, the check latency went through the roof due to all of the delays. The new system I put in place allows a single notification to be generated by Nagios, and regardless of how many people are configured to receive it (be it 1 or 50), there was no delay in Nagios and there is no need to use distribution lists. Of course, the down side of this method is that this system isn't possible without a fairly complex management interface (the same one we use to build all of the config files). On 08/20/2010 11:49 AM, Charlie Reddington wrote: > On Aug 20, 2010, at 10:23 AM, Scott Nottingham wrote: > > >> Does anyone know how (or if it is even possible) to configure nagios >> to send a single email to all contacts associated with the host/ >> service/etc as opposed to a separate email to each contact? >> >> The problem I'm facing is with emailing distribution lists. If both >> distribution_list_A and B contain user_A, said user ends up getting >> 2 email for the same event. If nagios could be configured to send a >> single email to both distribution lists, our exchange server would >> recognize that user_A is a member of both lists and send only 1 >> email to him. >> >> Thanks in advance for any insight you can provide! >> > Think of your exhange servers mailing lists as buckets. Bucket A is > list A with user A in it. Bucket B is list B with user A in it. > > Each bucket is going to get an email, and that email is going to get > copied to it's users. > > I don't think this way is going to be possible, unless you make > another group, and put your groups in there. But I will bet that user > a still gets 2 emails. But I can't say for certain, since it's been > about 5 years since I used a exchange server. > > I would probably pull user a out, and let him get contacted separately > with nagios, instead of depending on a group list if it's a big deal. > The down side is this doesn't scale very well. > > Charlie > > ------------------------------------------------------------------------ ------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 > ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ 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 ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From smcafee at collaborativefusion.com Mon Aug 23 21:22:41 2010 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Mon, 23 Aug 2010 15:22:41 -0400 Subject: single email alert to multiple contacts? In-Reply-To: References: <4C6EAEC1.30907@herb-j.com> Message-ID: <4C72CA81.20201@collaborativefusion.com> Parish, Brent wrote: > Agree totally! > > All alerts from Nagios go to the same post-processing script we built > and that's where they get shuffled off where they need to go, based on > user preferences. This sounds amazing! Is there any chance this could be released to the community? -- Sean McAfee Senior Systems Engineer ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From jhein at netways.de Mon Aug 23 23:00:18 2010 From: jhein at netways.de (Julian Hein) Date: Mon, 23 Aug 2010 21:00:18 +0000 Subject: single email alert to multiple contacts? In-Reply-To: <4C72CA81.20201@collaborativefusion.com> References: <4C72CA81.20201@collaborativefusion.com> Message-ID: Am 23.08.10 21:22 schrieb "Sean McAfee" unter : > Parish, Brent wrote: >> Agree totally! >> >> All alerts from Nagios go to the same post-processing script we built >> and that's where they get shuffled off where they need to go, based on >> user preferences. > > This sounds amazing! > > Is there any chance this could be released to the community? You could look at NoMa (Notification Manager), which does the same: https://www.netways.org/projects/noma/files Julian ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From juki.emma at gmail.com Tue Aug 24 09:32:14 2010 From: juki.emma at gmail.com (Julius Kidubuka) Date: Tue, 24 Aug 2010 10:32:14 +0300 Subject: pnp4nagios configuration errors Message-ID: Hi list, I'm trying to setup and configure pnp4nagios [v0.6.6] on a currently working Nagios Core [v3.2.0] system running on openSUSE 11.1 I installed pnp4nagios from source and also installed rrdtool using an rpm. All was going well until I tried to verify the pnp configuration. Below are the specific errors; *the-host:/usr/local/pnp4nagios/libexec # ./verify_pnp_config.pl -m sync Check Nagios/Icinga/PNP integration, v0.1.21 [I] OS: Welcome to openSUSE 11.1 - Kernel (). [I] Perl: 5.010000 [I] Package Manager: /bin/rpm [I] Package: "php5-5.2.6-49.11" [I] Package: "dejavu-2.26-1.41" [I] install_opts: -o nagios -g nagios [I] PNP-version: 0.6.6 [I] using Nagios basedir "/usr/local/nagios" [I] using Nagios config "/usr/local/nagios/etc/nagios.cfg" [I] using Nagios binary "/usr/local/nagios/bin/nagios" [I] PNP mode: "sync" [I] Nagios info: Nagios Core 3.2.0 [A] verifying Nagios config [A] processing "/usr/local/nagios/etc/nagios.cfg" [I] nagios_user=nagios [I] nagios_group=nagios [A] checking RRDtool (/usr/bin/rrdtool) [I] RRDtool: RRDtool 1.2.26 [I] RRDs perl module not installed [A] processing "/usr/local/nagios/etc/resource.cfg" [I] using "/usr/local/nagios/var/objects.cache" entries [E] value "/usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /usr/local/nagios/var/service-perfdata.out" for "service_perfdata_command" is invalid [H] http://docs.pnp4nagios.org/pnp-0.6/config#sync_mode [E] value "/usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /usr/local/nagios/var/host-perfdata.out" for "host_perfdata_command" is invalid [H] http://docs.pnp4nagios.org/pnp-0.6/config#sync_mode [A] processing "/usr/local/pnp4nagios/etc/process_perfdata.cfg-sample" [I] (rra_cfg) file "/usr/local/pnp4nagios/etc/rra.cfg" doesn't exist (yet) [I] (log_file) file "/usr/local/pnp4nagios/var/perfdata.log" doesn't exist (yet) [A] processing "/usr/local/pnp4nagios/etc/config.php" [E] ($conf['template_dirs']) directory "/usr/local/check_mk/pnp-templates" is missing [A] checking of RRDpath "/usr/local/pnp4nagios/var/perfdata" [E] 0 dir(s) but NO rrd files => NO graphs! Errors found. Please check the settings and have a look at the documentation.* In my commands.cfg file, I have the following configuration as shown in the excerpt below; *# 'process-host-perfdata' command definition define command { command_name process-service-perfdata command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/ process_perfdata.pl } # 'process-service-perfdata' command definition define command { command_name process-host-perfdata command_line /usr/bin/perl /usr/local/pnp4nagios/libexec/ process_perfdata.pl -d HOSTPERFDATA }* Would anyone know why I'm getting the errors highlighted above? Kindly point me in the right direction. Thanks, Juki -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From ifepet2002 at yahoo.com Tue Aug 24 09:37:58 2010 From: ifepet2002 at yahoo.com (Ifeanyi Agu) Date: Tue, 24 Aug 2010 00:37:58 -0700 (PDT) Subject: Internal Server Error Occuring when trying to access Nagios on the browser Message-ID: <991339.64939.qm@web38701.mail.mud.yahoo.com> Hello all, I am new to Nagios. I just installed it and did all the necessary configuration but when I open it on my browser, I can only view the documentation. The other links I go keep showing me internal server error. I checked the apache error logs and it was telling me that permission was denied when trying to access the cgi files that come with Nagios. Please what could be the problem? Ifeanyi Agu 08063728802 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From lomiz.mail at gmail.com Tue Aug 24 10:59:10 2010 From: lomiz.mail at gmail.com (Enrico Zimol) Date: Tue, 24 Aug 2010 10:59:10 +0200 Subject: Nagios CGI, files deleted? Message-ID: Hello, I'm new user and I installed nagios months ago, and all function worked properly. Today I opened the web cgi on http://host/nagios and he can't find CGIs, but all alert function work well. This is the /var/log/httpd/error_log during main page connection http://pastebin.com/ZnsBb9iP Those files seem missing, how can I recover without rewriting nagios /usr/local/nagios/etc directory in wich I wrote all configurations? I installed nagios using the quickstart howto, and the selinux is disabled. Thank's for you help! Sorry for my bad english ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From pitchfork at ederdrom.de Tue Aug 24 11:01:53 2010 From: pitchfork at ederdrom.de (Joerg Linge) Date: Tue, 24 Aug 2010 11:01:53 +0200 Subject: pnp4nagios configuration errors In-Reply-To: References: Message-ID: <4C738A81.7020003@ederdrom.de> Am 24.08.10 09:32, schrieb Julius Kidubuka: > Hi list, Hi Julius, there are other support channels available for pnp4nagios then the nagios-users list. http://docs.pnp4nagios.org/pnp-0.6/about#support > I'm trying to setup and configure pnp4nagios [v0.6.6] on a currently working > Nagios Core [v3.2.0] system running on openSUSE 11.1 > > I installed pnp4nagios from source and also installed rrdtool using an rpm. > All was going well until I tried to verify the pnp configuration. Below are > the > specific errors; > > > *the-host:/usr/local/pnp4nagios/libexec # ./verify_pnp_config.pl -m sync > > Check Nagios/Icinga/PNP integration, v0.1.21 > > [I] OS: Welcome to openSUSE 11.1 - Kernel (). > [I] Perl: 5.010000 > [I] Package Manager: /bin/rpm > [I] Package: "php5-5.2.6-49.11" > [I] Package: "dejavu-2.26-1.41" > [I] install_opts: -o nagios -g nagios > [I] PNP-version: 0.6.6 > [I] using Nagios basedir "/usr/local/nagios" > [I] using Nagios config "/usr/local/nagios/etc/nagios.cfg" > [I] using Nagios binary "/usr/local/nagios/bin/nagios" > [I] PNP mode: "sync" > [I] Nagios info: Nagios Core 3.2.0 > [A] verifying Nagios config > [A] processing "/usr/local/nagios/etc/nagios.cfg" > [I] nagios_user=nagios > [I] nagios_group=nagios > [A] checking RRDtool (/usr/bin/rrdtool) > [I] RRDtool: RRDtool 1.2.26 > [I] RRDs perl module not installed > [A] processing "/usr/local/nagios/etc/resource.cfg" > [I] using "/usr/local/nagios/var/objects.cache" entries > [E] value "/usr/bin/printf "%b" > "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >>> /usr/local/nagios/var/service-perfdata.out" for > "service_perfdata_command" is invalid > [H] http://docs.pnp4nagios.org/pnp-0.6/config#sync_mode > [E] value "/usr/bin/printf "%b" > "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >>> /usr/local/nagios/var/host-perfdata.out" for "host_perfdata_command" is > invalid This config is wrong while using synchronous mode. http://docs.pnp4nagios.org/pnp-0.6/config Please check nagios.cfg for service_perfdata_command and host_perfdata_command Joerg ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From anthony-nagios at hogan.id.au Tue Aug 24 11:31:38 2010 From: anthony-nagios at hogan.id.au (Anthony) Date: Tue, 24 Aug 2010 19:31:38 +1000 Subject: Nagios CGI, files deleted? In-Reply-To: References: Message-ID: <20100824193138.8982c004.anthony-nagios@hogan.id.au> Hi Enrico, > I'm new user and I installed nagios months ago, and all function > worked properly. > Today I opened the web cgi on http://host/nagios and he can't find > CGIs, but all alert function work well. > > This is the /var/log/httpd/error_log during main page connection > http://pastebin.com/ZnsBb9iP > > Those files seem missing, how can I recover without rewriting nagios > /usr/local/nagios/etc directory in wich I wrote all configurations? > > I installed nagios using the quickstart howto, and the selinux is > disabled. Did you recently upgrade apache, php or something like suphp? Have you confirmed that the files are actually missing? Ie. Have you cd'd to the directory and done an ls to confirm they're gone? Regardless, if you're worried about your configuration, simply copy/backup all the files from /usr/local/nagios/etc folder and then, if you reload nagios exactly the same way as you did before, you can just load the same config files back in should they accidentally get wiped. If you are using a source installation and not a package installation (which I assume from the /usr/local/...) you can choose to not run the step which copies the "default" config files over. ************************************************************** Eg. Skip the step which tells you to run "make install-config" ************************************************************** Review the contents of the INSTALL and README files inside the Nagios source distribution for more information. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From jim at jimavery.me.uk Tue Aug 24 14:46:59 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 24 Aug 2010 13:46:59 +0100 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <991339.64939.qm@web38701.mail.mud.yahoo.com> References: <991339.64939.qm@web38701.mail.mud.yahoo.com> Message-ID: On 24 August 2010 08:37, Ifeanyi Agu wrote: > Hello all, > > I am new to Nagios. I just installed it and did all the necessary > configuration but when I open it on my browser, I can only view the > documentation. The other links I go keep showing me internal server error. > > I checked the apache error logs and it was telling me that permission was > denied when trying to access the cgi files that come with Nagios. Please > what could be the problem? > > Ifeanyi Agu > 08063728802 > Welcome! I hope you enjoy using Nagios as much as I do. A common reason for this problem is that the correct permissions are not applied. When you compiled nagios, did you run "make install-webconf"? After that you should have reloaded the Apache config. The command for this might vary depending on what Linux distribution you are using. As an example, on Ubuntu it is.. /etc/init.d/apache2 reload Another problem can be that the Nagios daemon is not running. If you enter: ps -ef | grep nagios does this show the daemon running? It is also a good idea to check your nagios config before starting the Nagios daemon. You do this by entering: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (you might need to alter those if you installed in a different location). If the verification fails, you will need to fix whatever the problems are in your config before continuing. Which version of Linux are you using, and which instructions did you follow when installing Nagios? Nagios can be installed in lots of different ways so it will help to know which one you were working to. Cheers, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From perlskuul at gmail.com Tue Aug 24 15:16:55 2010 From: perlskuul at gmail.com (Goke Ade) Date: Tue, 24 Aug 2010 14:16:55 +0100 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <991339.64939.qm@web38701.mail.mud.yahoo.com> References: <991339.64939.qm@web38701.mail.mud.yahoo.com> Message-ID: Hello ifeanyi, Confirm the user running Nagios have read permit to the file in question? > Hello all, > > I am new to Nagios. I just installed it and did all the necessary configuration but when I open it on my browser, I can only view the documentation. The other links I go keep showing me internal server error. > > I checked the apache error logs and it was telling me that permission was denied when trying to access the cgi files that come with Nagios. Please what could be the problem? > > Ifeanyi Agu > > 08063728802 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From tyarusso at nagios.com Tue Aug 24 16:28:59 2010 From: tyarusso at nagios.com (Tony Yarusso) Date: Tue, 24 Aug 2010 09:28:59 -0500 Subject: Help Needed | Web Authentication In-Reply-To: References: Message-ID: <4C73D72B.7080403@nagios.com> On 8/22/2010 3:44 PM, Himanshu Arora wrote: > Hi Tony, > > Thanks for replying, > > I have already tried using webinject couple of days ago... but i was > getting so many errors while using the webinject.pl > plugin after the installation. > > Even though the execution steps are also given on the link you've > provided me, but couldn't get through to it. > Would be really appreciated if you could assist me a bit on this or > let me know the other way around because its been more than a month > now, m trying to get this done... > > Just an FYI for you that m trying to monitor a website @ work on > production enviromment. FB is just an example i hv used. Possibly. I've only done a little myself as well. What sort of errors? Also, you'll find two examples and a couple of caveats on pages 4-6 of http://assets.nagios.com/downloads/nagiosxi/docs/Monitoring_Websites_With_XI.pdf if that helps. (Also, it's probably best to keep this on the list so others can learn from it and contribute as well.) > On 8/18/2010 2:56 PM, Himanshu Arora wrote: > > So i need to know what am i doing wrong here or may be i am not using > > the right plugin to do so because as i know its not the "basic > > authentication" that i am going through. > You want to use WebInject for this (it's an extra library plus Nagios > plugin) > http://www.webinject.org/plugin.html > > It lets you say "first, go to Facebook. Then fill out the form with > these credentials. Submit those, now check the page it returns back". > You could even do something like checking whether someone is still your > friend, or whether your news feed contains some string. > > -- > Tony Yarusso > Technical Team -- Tony Yarusso Technical Team ___ Nagios Enterprises, LLC Email: tyarusso at nagios.com Web: www.nagios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From mirde at oppy.com Tue Aug 24 18:57:56 2010 From: mirde at oppy.com (Mirza Dedic) Date: Tue, 24 Aug 2010 09:57:56 -0700 Subject: The output of $SERVICEOUTPUT$ macro is blank ? Message-ID: I recently upgraded my Ubuntu OS (8.04 >> 10.04) and Nagios from 3.0 to 3.1.2, and recently I ran into an issue where the data for "$SERVICEOUTPUT$" is never included in my email notification. It is defined properly in the notification.cfg file as per below: define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } But in my email, it only has "Additional Info:" with nothing else. How could I troubleshoot that $SERVICEOUTPUT$ is getting parsed properly and working? Maybe its something with my mail client? Any help is appreciated. Thanks. The Oppenheimer Group ---- CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From nagios at isprime.org Tue Aug 24 19:24:11 2010 From: nagios at isprime.org (Kyle O'Donnell) Date: Tue, 24 Aug 2010 13:24:11 -0400 Subject: =?utf-8?q?The_output_of_=24SERVICEOUTPUT=24_macro_?= =?utf-8?q?is_blank_=3F?= In-Reply-To: References: Message-ID: disregard my eyes are working again On Tue, 24 Aug 2010 09:57:56 -0700, Mirza Dedic wrote: > I recently upgraded my Ubuntu OS (8.04 >> 10.04) and Nagios from 3.0 to > 3.1.2, and recently I ran into an issue where the data for > "$SERVICEOUTPUT$" is never included in my email notification. > > It is defined properly in the notification.cfg file as per below: > > define command{ > > command_name notify-service-by-email > > command_line /usr/bin/printf "%b" "***** Nagios *****nnNotification > Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: > $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: > $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$" | /usr/bin/mail -s "** > $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$ **" $CONTACTEMAIL$ > > } > > But in my email, it only has "Additional Info:" with nothing else. > > How could I troubleshoot that $SERVICEOUTPUT$ is getting parsed properly > and working? Maybe its something with my mail client? > > Any help is appreciated. > > Thanks. > > The Oppenheimer Group ---- CONFIDENTIAL This message is for the > designated recipient only and may contain privileged, proprietary, or > otherwise private information. If you have received it in error, please > notify the sender immediately and delete the original. Any other use of > the email by you is prohibited. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From nagios at isprime.org Tue Aug 24 19:23:09 2010 From: nagios at isprime.org (Kyle O'Donnell) Date: Tue, 24 Aug 2010 13:23:09 -0400 Subject: =?utf-8?q?The_output_of_=24SERVICEOUTPUT=24_macro_?= =?utf-8?q?is_blank_=3F?= In-Reply-To: References: Message-ID: <7509c2b3b7979278d483f557f9ae68e8@localhost> might it be the double $$ ? Additional Info:nn$SERVICEOUTPUT$" On Tue, 24 Aug 2010 09:57:56 -0700, Mirza Dedic wrote: > I recently upgraded my Ubuntu OS (8.04 >> 10.04) and Nagios from 3.0 to > 3.1.2, and recently I ran into an issue where the data for > "$SERVICEOUTPUT$" is never included in my email notification. > > It is defined properly in the notification.cfg file as per below: > > define command{ > > command_name notify-service-by-email > > command_line /usr/bin/printf "%b" "***** Nagios *****nnNotification > Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: > $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: > $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$" | /usr/bin/mail -s "** > $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$ **" $CONTACTEMAIL$ > > } > > But in my email, it only has "Additional Info:" with nothing else. > > How could I troubleshoot that $SERVICEOUTPUT$ is getting parsed properly > and working? Maybe its something with my mail client? > > Any help is appreciated. > > Thanks. > > The Oppenheimer Group ---- CONFIDENTIAL This message is for the > designated recipient only and may contain privileged, proprietary, or > otherwise private information. If you have received it in error, please > notify the sender immediately and delete the original. Any other use of > the email by you is prohibited. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From justin at mahalo.com Tue Aug 24 19:24:32 2010 From: justin at mahalo.com (Dorfman, Justin) Date: Tue, 24 Aug 2010 10:24:32 -0700 Subject: The output of $SERVICEOUTPUT$ macro is blank ? In-Reply-To: References: Message-ID: Try Replacing: Info:\n\n$SERVICEOUTPUT$ To: *Info:\n\n $SERVICEOUTPUT$* Notice the space between \n Regards, Justin Dorfman Mahalo.com Inc. > Jr. Systems Engineer @jdorfman | @MahaloSysops| Blog: http://bit.ly/aNiWSk On Tue, Aug 24, 2010 at 9:57 AM, Mirza Dedic wrote: > I recently upgraded my Ubuntu OS (8.04 >> 10.04) and Nagios from 3.0 to > 3.1.2, and recently I ran into an issue where the data for ?$SERVICEOUTPUT$? > is never included in my email notification. > > > > It is defined properly in the notification.cfg file as per below: > > > > define command{ > > command_name notify-service-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > } > > > > But in my email, it only has ?Additional Info:? with nothing else. > > > > How could I troubleshoot that $SERVICEOUTPUT$ is getting parsed properly > and working? Maybe its something with my mail client? > > > > Any help is appreciated. > > > > Thanks. > > The Oppenheimer Group ---- CONFIDENTIAL > > This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. > > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From justin at mahalo.com Tue Aug 24 19:09:02 2010 From: justin at mahalo.com (Dorfman, Justin) Date: Tue, 24 Aug 2010 10:09:02 -0700 Subject: Trouble Starting NagiosGrapher in Freebsd Message-ID: Hello, I hope I won't be chewed up since this is a third-party add-on question but I am having some issues starting NagiosGrapher. I installed Nagios (which is up and running perfect) and Nagios Grapher from the ports collection. I followed these instructions (modified the proper paths): https://www.netways.org/projects/grapher/wiki Here is what I get when I try and start the service: root at nagios # /usr/local/etc/rc.d/nagiosgrapher start Starting nagiosgrapher. Use of uninitialized value in bitwise and (&) at > /usr/local/libexec/nagios/contrib/nagiosgrapher line 758. Use of uninitialized value in bitwise and (&) at > /usr/local/libexec/nagios/contrib/nagiosgrapher line 784. No such signal: SIGUse of uninitialized value in getpwnam at > /usr/local/lib/perl5/site_perl/5.8.9/NagiosGrapher.pm line 1332. Use of uninitialized value in bitwise and (&) at > /usr/local/libexec/nagios/contrib/nagiosgrapher line 758. Use of uninitialized value in bitwise and (&) at > /usr/local/libexec/nagios/contrib/nagiosgrapher line 784. No such signal: SIGUse of uninitialized value in getgrnam at > /usr/local/lib/perl5/site_perl/5.8.9/NagiosGrapher.pm line 1333. Use of uninitialized value in bitwise and (&) at > /usr/local/libexec/nagios/contrib/nagiosgrapher line 758. Use of uninitialized value in bitwise and (&) at > /usr/local/libexec/nagios/contrib/nagiosgrapher line 784. No such signal: SIGUse of uninitialized value in numeric gt (>) at > /usr/local/lib/perl5/site_perl/5.8.9/NagiosGrapher.pm line 1335. FYI here are some system variables: - FreeBSD 8.0-STABLE - - nagios-3.2.1 - nagios-plugins-1.4.14_1 - nagiosgrapher-1.7.1_3 Thanks in advance. Regards, Justin Dorfman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From mirde at oppy.com Tue Aug 24 22:40:03 2010 From: mirde at oppy.com (Mirza Dedic) Date: Tue, 24 Aug 2010 13:40:03 -0700 Subject: The output of $SERVICEOUTPUT$ macro is blank ? In-Reply-To: References: Message-ID: The strange thing is.. I replaced "/usr/bin/printf "%b" "***** Nagios *****\" With "/bin/echo -e **** Nagios *****" and now my alerts include the missing $SERVICEOUTPUT$ information that was not there previously. I wonder why printf was causing this? Thanks. From: Dorfman, Justin [mailto:justin at mahalo.com] Sent: August/24/2010 10:25 AM To: Nagios Users List Subject: Re: [Nagios-users] The output of $SERVICEOUTPUT$ macro is blank ? Try Replacing: Info:\n\n$SERVICEOUTPUT$ To: Info:\n\n $SERVICEOUTPUT$ Notice the space between \n Regards, Justin Dorfman Mahalo.com Inc. > Jr. Systems Engineer @jdorfman | @MahaloSysops | Blog: http://bit.ly/aNiWSk On Tue, Aug 24, 2010 at 9:57 AM, Mirza Dedic > wrote: I recently upgraded my Ubuntu OS (8.04 >> 10.04) and Nagios from 3.0 to 3.1.2, and recently I ran into an issue where the data for "$SERVICEOUTPUT$" is never included in my email notification. It is defined properly in the notification.cfg file as per below: define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } But in my email, it only has "Additional Info:" with nothing else. How could I troubleshoot that $SERVICEOUTPUT$ is getting parsed properly and working? Maybe its something with my mail client? Any help is appreciated. Thanks. The Oppenheimer Group ---- CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 The Oppenheimer Group ---- CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From lists at xodus.org Wed Aug 25 05:10:16 2010 From: lists at xodus.org (Marc Powell) Date: Tue, 24 Aug 2010 22:10:16 -0500 Subject: The output of $SERVICEOUTPUT$ macro is blank ? In-Reply-To: References: Message-ID: On Aug 24, 2010, at 3:40 PM, Mirza Dedic wrote: > The strange thing is.. > > I replaced ?/usr/bin/printf "%b" "***** Nagios *****\? > > With ?/bin/echo ?e **** Nagios *****? and now my alerts include the missing $SERVICEOUTPUT$ information that was not there previously. > > I wonder why printf was causing this? Did the actual output contain characters that printf might think are macros for itself? -- Marc ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From juki.emma at gmail.com Wed Aug 25 07:40:19 2010 From: juki.emma at gmail.com (Julius Kidubuka) Date: Wed, 25 Aug 2010 08:40:19 +0300 Subject: pnp4nagios configuration errors - SOLVED Message-ID: Thanks for your input Joerg. I figured out that I forgot to restart Nagios after making the various configurations - my bad! On 24 August 2010 12:01, Joerg Linge wrote: > Am 24.08.10 09:32, schrieb Julius Kidubuka: > > Hi list, > > Hi Julius, > there are other support channels available for pnp4nagios then the > nagios-users list. > > http://docs.pnp4nagios.org/pnp-0.6/about#support > > > > I'm trying to setup and configure pnp4nagios [v0.6.6] on a currently > working > > Nagios Core [v3.2.0] system running on openSUSE 11.1 > > > > I installed pnp4nagios from source and also installed rrdtool using an > rpm. > > All was going well until I tried to verify the pnp configuration. Below > are > > the > > specific errors; > > > > > > *the-host:/usr/local/pnp4nagios/libexec # ./verify_pnp_config.pl -m sync > > > > Check Nagios/Icinga/PNP integration, v0.1.21 > > > > [I] OS: Welcome to openSUSE 11.1 - Kernel (). > > [I] Perl: 5.010000 > > [I] Package Manager: /bin/rpm > > [I] Package: "php5-5.2.6-49.11" > > [I] Package: "dejavu-2.26-1.41" > > [I] install_opts: -o nagios -g nagios > > [I] PNP-version: 0.6.6 > > [I] using Nagios basedir "/usr/local/nagios" > > [I] using Nagios config "/usr/local/nagios/etc/nagios.cfg" > > [I] using Nagios binary "/usr/local/nagios/bin/nagios" > > [I] PNP mode: "sync" > > [I] Nagios info: Nagios Core 3.2.0 > > [A] verifying Nagios config > > [A] processing "/usr/local/nagios/etc/nagios.cfg" > > [I] nagios_user=nagios > > [I] nagios_group=nagios > > [A] checking RRDtool (/usr/bin/rrdtool) > > [I] RRDtool: RRDtool 1.2.26 > > [I] RRDs perl module not installed > > [A] processing "/usr/local/nagios/etc/resource.cfg" > > [I] using "/usr/local/nagios/var/objects.cache" entries > > [E] value "/usr/bin/printf "%b" > > > "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" > >>> /usr/local/nagios/var/service-perfdata.out" for > > "service_perfdata_command" is invalid > > [H] http://docs.pnp4nagios.org/pnp-0.6/config#sync_mode > > [E] value "/usr/bin/printf "%b" > > > "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" > >>> /usr/local/nagios/var/host-perfdata.out" for "host_perfdata_command" is > > invalid > > This config is wrong while using synchronous mode. > > http://docs.pnp4nagios.org/pnp-0.6/config > > Please check nagios.cfg for service_perfdata_command and > host_perfdata_command > > Joerg > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From ifepet2002 at yahoo.com Wed Aug 25 13:22:13 2010 From: ifepet2002 at yahoo.com (Ifeanyi Agu) Date: Wed, 25 Aug 2010 04:22:13 -0700 (PDT) Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: Message-ID: <548386.41108.qm@web38702.mail.mud.yahoo.com> Hello Jim, I used this link (http://www.kernelhardware.org/install-nagios-on-centos-5/) to install my Nagios. I did all that you said while installing. I ran this command ps -ef | grep nagios and I saw an output but I did not see anything that shows me whether Nagios Daemon is running or not. How do I know? Ifeanyi Agu 08063728802 --- On Tue, 24/8/10, Jim Avery wrote: From: Jim Avery Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Tuesday, 24 August, 2010, 1:46 PM On 24 August 2010 08:37, Ifeanyi Agu wrote: Hello all, I am new to Nagios. I just installed it and did all the necessary configuration but when I open it on my browser, I can only view the documentation. The other links I go keep showing me internal server error. I checked the apache error logs and it was telling me that permission was denied when trying to access the cgi files that come with Nagios. Please what could be the problem? Ifeanyi Agu 08063728802 Welcome! I hope you enjoy using Nagios as much as I do. A common reason for this problem is that the correct permissions are not applied. When you compiled nagios, did you run "make install-webconf"? After that you should have reloaded the Apache config. The command for this might vary depending on what Linux distribution you are using. As an example, on Ubuntu it is.. /etc/init.d/apache2 reload Another problem can be that the Nagios daemon is not running. If you enter: ps -ef | grep nagios does this show the daemon running? It is also a good idea to check your nagios config before starting the Nagios daemon. You do this by entering: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (you might need to alter those if you installed in a different location). If the verification fails, you will need to fix whatever the problems are in your config before continuing. Which version of Linux are you using, and which instructions did you follow when installing Nagios? Nagios can be installed in lots of different ways so it will help to know which one you were working to. Cheers, Jim -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -----Inline Attachment Follows----- _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From jim at jimavery.me.uk Wed Aug 25 13:47:48 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 25 Aug 2010 12:47:48 +0100 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <548386.41108.qm@web38702.mail.mud.yahoo.com> References: <548386.41108.qm@web38702.mail.mud.yahoo.com> Message-ID: On 25 August 2010 12:22, Ifeanyi Agu wrote: > > Hello Jim, > > I used this link (http://www.kernelhardware.org/install-nagios-on-centos-5/) to install my Nagios. I did all that you said while installing. I ran this command ps -ef | grep nagios and I saw an output What output did you see? > but I did not see anything that shows me whether Nagios Daemon is running or not. How do I know? You should see the nagios process(es) listed (possibly along with the grep process which is part of the command you just ran) something like this: nagios 401 1 23 Aug13 ? 2-18:48:18 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 17576 401 0 12:42 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 17650 401 0 12:42 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 17725 401 1 12:42 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios 17728 401 1 12:42 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg mylogin 17746 526 0 12:42 pts/0 00:00:00 grep nagios Looking at the comments on the web page where you got the instructions from, it also seems likely that SELINUX is enabled on your Centos linux OS. Personally I would disable it as it's a right pain to manage otherwise. I don't run RedHat or Centos myself so can't tell you how to do that. Please can I also ask you to send your emails to this list in plain text? The formatting can be a bit tricky to work with when quoting back a reply. Cheers, Jim ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From ifepet2002 at yahoo.com Wed Aug 25 15:55:12 2010 From: ifepet2002 at yahoo.com (Ifeanyi Agu) Date: Wed, 25 Aug 2010 06:55:12 -0700 (PDT) Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: Message-ID: <830802.65918.qm@web38706.mail.mud.yahoo.com> Hello Jim, Thanks for the help so far. I disabled SELinux and I tried starting Nagios again but I noticed that Nagios was not running. I am logged in as the root user in the Linux. Could that be the problem why my Nagios is not running? Ifeanyi Agu 08063728802 --- On Wed, 25/8/10, Jim Avery wrote: From: Jim Avery Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Wednesday, 25 August, 2010, 12:47 PM On 25 August 2010 12:22, Ifeanyi Agu wrote: > > Hello Jim, > > I used this link (http://www.kernelhardware.org/install-nagios-on-centos-5/) to install my Nagios. I did all that you said while installing. I ran this command ps -ef | grep nagios and I saw an output What output did you see? > but I did not see anything that shows me whether Nagios Daemon is running or not. How do I know? You should see the nagios process(es) listed (possibly along with the grep process which is part of the command you just ran)? something like this: nagios? ???401? ???1 23 Aug13 ?? ? ? ? 2-18:48:18 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios???17576???401? 0 12:42 ?? ? ? ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios???17650???401? 0 12:42 ?? ? ? ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios???17725???401? 1 12:42 ?? ? ? ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg nagios???17728???401? 1 12:42 ?? ? ? ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg mylogin???17746???526? 0 12:42 pts/0? ? 00:00:00 grep nagios Looking at the comments on the web page where you got the instructions from, it also seems likely that SELINUX is enabled on your Centos linux OS.? Personally I would disable it as it's a right pain to manage otherwise.? I don't run RedHat or Centos myself so can't tell you how to do that. Please can I also ask you to send your emails to this list in plain text?? The formatting can be a bit tricky to work with when quoting back a reply. Cheers, Jim ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From jim at jimavery.me.uk Wed Aug 25 18:29:31 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 25 Aug 2010 17:29:31 +0100 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <830802.65918.qm@web38706.mail.mud.yahoo.com> References: <830802.65918.qm@web38706.mail.mud.yahoo.com> Message-ID: On 25 August 2010 14:55, Ifeanyi Agu wrote: > > Hello Jim, > > Thanks for the help so far. I disabled SELinux and I tried starting Nagios again but I noticed that Nagios was not running. I am logged in as the root user in the Linux. Could that be the problem why my Nagios is not running? I wouldn't have thought that would be the problem, no. Take a look at the nagios log file which is probably /usr/local/nagios/var/nagios.log Don't forget my earlier recommendation to validate the Nagios config like so: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Did you try that, and if so what did it say? Cheers, Jim ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From ifepet2002 at yahoo.com Wed Aug 25 18:42:46 2010 From: ifepet2002 at yahoo.com (Ifeanyi Agu) Date: Wed, 25 Aug 2010 09:42:46 -0700 (PDT) Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: Message-ID: <868406.74131.qm@web38705.mail.mud.yahoo.com> Hello Jim, I used that command to test and there are 0 warnings and o errors. I also checked my Nagios log and this is what I got [1282635168] Nagios 3.2.1 starting... (PID=4250) [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 [1282635168] LOG VERSION: 2.0 [1282635168] Warning: Could not open object cache file '/usr/local/nagios/var/objects.cache' for writing! [1282635168] Failed to obtain lock on file /usr/local/nagios/var/nagios.lock: Permission denied [1282635168] Bailing out due to errors encountered while attempting to daemonize... (PID=4250) Please do you know why am not able to write to the file? Thanks a lot for the support so far Ifeanyi Agu 08063728802 --- On Wed, 25/8/10, Jim Avery wrote: From: Jim Avery Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Wednesday, 25 August, 2010, 5:29 PM On 25 August 2010 14:55, Ifeanyi Agu wrote: > > Hello Jim, > > Thanks for the help so far. I disabled SELinux and I tried starting Nagios again but I noticed that Nagios was not running. I am logged in as the root user in the Linux. Could that be the problem why my Nagios is not running? I wouldn't have thought that would be the problem, no. Take a look at the nagios log file which is probably /usr/local/nagios/var/nagios.log Don't forget my earlier recommendation to validate the Nagios config like so: ? /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Did you try that, and if so what did it say? Cheers, Jim ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From alexdehaini at gmail.com Wed Aug 25 18:47:53 2010 From: alexdehaini at gmail.com (Alex Dehaini) Date: Wed, 25 Aug 2010 11:47:53 -0500 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: <830802.65918.qm@web38706.mail.mud.yahoo.com> Message-ID: Verifying the config should tell you what is wrong /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg On Wed, Aug 25, 2010 at 11:29 AM, Jim Avery wrote: > On 25 August 2010 14:55, Ifeanyi Agu wrote: > > > > Hello Jim, > > > > Thanks for the help so far. I disabled SELinux and I tried starting > Nagios again but I noticed that Nagios was not running. I am logged in as > the root user in the Linux. Could that be the problem why my Nagios is not > running? > > I wouldn't have thought that would be the problem, no. > > Take a look at the nagios log file which is probably > /usr/local/nagios/var/nagios.log > > Don't forget my earlier recommendation to validate the Nagios config like > so: > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > Did you try that, and if so what did it say? > > Cheers, > > Jim > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From alexdehaini at gmail.com Wed Aug 25 18:48:58 2010 From: alexdehaini at gmail.com (Alex Dehaini) Date: Wed, 25 Aug 2010 11:48:58 -0500 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <868406.74131.qm@web38705.mail.mud.yahoo.com> References: <868406.74131.qm@web38705.mail.mud.yahoo.com> Message-ID: Permission issue - have nagios user and group own the file; heck the entire directory, :) On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu wrote: > Hello Jim, > > I used that command to test and there are 0 warnings and o errors. I also > checked my Nagios log and this is what I got > > [1282635168] Nagios 3.2.1 starting... (PID=4250) > [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 > [1282635168] LOG VERSION: 2.0 > [1282635168] Warning: Could not open object cache file > '/usr/local/nagios/var/objects.cache' for writing! > [1282635168] Failed to obtain lock on file > /usr/local/nagios/var/nagios.lock: Permission denied > [1282635168] Bailing out due to errors encountered while attempting to > daemonize... (PID=4250) > > Please do you know why am not able to write to the file? > > Thanks a lot for the support so far > > > Ifeanyi Agu > 08063728802 > > --- On *Wed, 25/8/10, Jim Avery * wrote: > > > From: Jim Avery > Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to > access Nagios on the browser > To: "Nagios Users List" > Date: Wednesday, 25 August, 2010, 5:29 PM > > > On 25 August 2010 14:55, Ifeanyi Agu > > wrote: > > > > Hello Jim, > > > > Thanks for the help so far. I disabled SELinux and I tried starting > Nagios again but I noticed that Nagios was not running. I am logged in as > the root user in the Linux. Could that be the problem why my Nagios is not > running? > > I wouldn't have thought that would be the problem, no. > > Take a look at the nagios log file which is probably > /usr/local/nagios/var/nagios.log > > Don't forget my earlier recommendation to validate the Nagios config like > so: > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > Did you try that, and if so what did it say? > > Cheers, > > Jim > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From ifepet2002 at yahoo.com Wed Aug 25 19:15:26 2010 From: ifepet2002 at yahoo.com (Ifeanyi Agu) Date: Wed, 25 Aug 2010 10:15:26 -0700 (PDT) Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: Message-ID: <320124.97732.qm@web38706.mail.mud.yahoo.com> Hello Alex, I have the changed the owner and group of the file to nagios but I still get the same error in nagios.log file when I try to start nagios. I tried this when logged in as the root user. I then logged in as nagios user and I could not even start apache or nagios. It was telling me that service is not a command it recognises. Please, please, please help me. Am running outta time Ifeanyi Agu 08063728802 --- On Wed, 25/8/10, Alex Dehaini wrote: From: Alex Dehaini Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Wednesday, 25 August, 2010, 5:48 PM Permission issue - have nagios user and group own the file; heck the entire directory, :) On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu wrote: Hello Jim, I used that command to test and there are 0 warnings and o errors. I also checked my Nagios log and this is what I got [1282635168] Nagios 3.2.1 starting... (PID=4250) [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 [1282635168] LOG VERSION: 2.0 [1282635168] Warning: Could not open object cache file '/usr/local/nagios/var/objects.cache' for writing! [1282635168] Failed to obtain lock on file /usr/local/nagios/var/nagios.lock: Permission denied [1282635168] Bailing out due to errors encountered while attempting to daemonize... (PID=4250) Please do you know why am not able to write to the file? Thanks a lot for the support so far Ifeanyi Agu 08063728802 --- On Wed, 25/8/10, Jim Avery wrote: From: Jim Avery Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Wednesday, 25 August, 2010, 5:29 PM On 25 August 2010 14:55, Ifeanyi Agu wrote: > > Hello Jim, > > Thanks for the help so far. I disabled SELinux and I tried starting Nagios again but I noticed that Nagios was not running. I am logged in as the root user in the Linux. Could that be the problem why my Nagios is not running? I wouldn't have thought that would be the problem, no. Take a look at the nagios log file which is probably /usr/local/nagios/var/nagios.log Don't forget my earlier recommendation to validate the Nagios config like so: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Did you try that, and if so what did it say? Cheers, Jim ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -----Inline Attachment Follows----- _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From justin at mahalo.com Wed Aug 25 19:17:21 2010 From: justin at mahalo.com (Dorfman, Justin) Date: Wed, 25 Aug 2010 10:17:21 -0700 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: <868406.74131.qm@web38705.mail.mud.yahoo.com> Message-ID: @alex You stole my answer! ;) But just in case, @Ifeanyi # chown -R nagios:nagios /usr/local/nagios/ Regards, Justin Dorfman Mahalo.com Inc. > Jr. Systems Engineer @jdorfman | @MahaloSysops| Blog: http://bit.ly/aNiWSk On Wed, Aug 25, 2010 at 9:48 AM, Alex Dehaini wrote: > Permission issue - have nagios user and group own the file; heck the entire > directory, :) > > > On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu wrote: > >> Hello Jim, >> >> I used that command to test and there are 0 warnings and o errors. I also >> checked my Nagios log and this is what I got >> >> [1282635168] Nagios 3.2.1 starting... (PID=4250) >> [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 >> [1282635168] LOG VERSION: 2.0 >> [1282635168] Warning: Could not open object cache file >> '/usr/local/nagios/var/objects.cache' for writing! >> [1282635168] Failed to obtain lock on file >> /usr/local/nagios/var/nagios.lock: Permission denied >> [1282635168] Bailing out due to errors encountered while attempting to >> daemonize... (PID=4250) >> >> Please do you know why am not able to write to the file? >> >> Thanks a lot for the support so far >> >> >> Ifeanyi Agu >> 08063728802 >> >> --- On *Wed, 25/8/10, Jim Avery * wrote: >> >> >> From: Jim Avery >> Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to >> access Nagios on the browser >> To: "Nagios Users List" >> Date: Wednesday, 25 August, 2010, 5:29 PM >> >> >> On 25 August 2010 14:55, Ifeanyi Agu > >> wrote: >> > >> > Hello Jim, >> > >> > Thanks for the help so far. I disabled SELinux and I tried starting >> Nagios again but I noticed that Nagios was not running. I am logged in as >> the root user in the Linux. Could that be the problem why my Nagios is not >> running? >> >> I wouldn't have thought that would be the problem, no. >> >> Take a look at the nagios log file which is probably >> /usr/local/nagios/var/nagios.log >> >> Don't forget my earlier recommendation to validate the Nagios config like >> so: >> >> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg >> >> Did you try that, and if so what did it say? >> >> Cheers, >> >> Jim >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> _______________________________________________ >> 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 >> >> >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> _______________________________________________ >> 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 >> > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From alexdehaini at gmail.com Wed Aug 25 19:46:22 2010 From: alexdehaini at gmail.com (Alex Dehaini) Date: Wed, 25 Aug 2010 12:46:22 -0500 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <320124.97732.qm@web38706.mail.mud.yahoo.com> References: <320124.97732.qm@web38706.mail.mud.yahoo.com> Message-ID: Hi Ifeanyi, The issue points to a permission issue - how did you install nagios? Did you compile it or you used a package manager to install. What environment are you using? Redhat - Centos? What version of nagios did you install/ Alex On Wed, Aug 25, 2010 at 12:15 PM, Ifeanyi Agu wrote: > Hello Alex, > > I have the changed the owner and group of the file to nagios but I still > get the same error in nagios.log file when I try to start nagios. I tried > this when logged in as the root user. I then logged in as nagios user and I > could not even start apache or nagios. It was telling me that service is not > a command it recognises. Please, please, please help me. Am running outta > time > > Ifeanyi Agu > 08063728802 > > --- On *Wed, 25/8/10, Alex Dehaini * wrote: > > > From: Alex Dehaini > > Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to > access Nagios on the browser > To: "Nagios Users List" > Date: Wednesday, 25 August, 2010, 5:48 PM > > > Permission issue - have nagios user and group own the file; heck the entire > directory, :) > > On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu > > wrote: > > Hello Jim, > > I used that command to test and there are 0 warnings and o errors. I also > checked my Nagios log and this is what I got > > [1282635168] Nagios 3.2.1 starting... (PID=4250) > [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 > [1282635168] LOG VERSION: 2.0 > [1282635168] Warning: Could not open object cache file > '/usr/local/nagios/var/objects.cache' for writing! > [1282635168] Failed to obtain lock on file > /usr/local/nagios/var/nagios.lock: Permission denied > [1282635168] Bailing out due to errors encountered while attempting to > daemonize... (PID=4250) > > Please do you know why am not able to write to the file? > > Thanks a lot for the support so far > > > Ifeanyi Agu > 08063728802 > > --- On *Wed, 25/8/10, Jim Avery > >* wrote: > > > From: Jim Avery > > > Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to > access Nagios on the browser > To: "Nagios Users List" > > > Date: Wednesday, 25 August, 2010, 5:29 PM > > > On 25 August 2010 14:55, Ifeanyi Agu > > wrote: > > > > Hello Jim, > > > > Thanks for the help so far. I disabled SELinux and I tried starting > Nagios again but I noticed that Nagios was not running. I am logged in as > the root user in the Linux. Could that be the problem why my Nagios is not > running? > > I wouldn't have thought that would be the problem, no. > > Take a look at the nagios log file which is probably > /usr/local/nagios/var/nagios.log > > Don't forget my earlier recommendation to validate the Nagios config like > so: > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > Did you try that, and if so what did it say? > > Cheers, > > Jim > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > > > > -----Inline Attachment Follows----- > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > > -----Inline Attachment Follows----- > > > _______________________________________________ > 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 > > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From alexdehaini at gmail.com Wed Aug 25 19:51:59 2010 From: alexdehaini at gmail.com (Alex Dehaini) Date: Wed, 25 Aug 2010 12:51:59 -0500 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: <868406.74131.qm@web38705.mail.mud.yahoo.com> Message-ID: @justin, Sorry, :) On Wed, Aug 25, 2010 at 12:17 PM, Dorfman, Justin wrote: > @alex You stole my answer! ;) > > But just in case, @Ifeanyi > > # chown -R nagios:nagios /usr/local/nagios/ > > > Regards, > > Justin Dorfman > Mahalo.com Inc. > Jr. Systems Engineer > @jdorfman | @MahaloSysops| Blog: > http://bit.ly/aNiWSk > > > > On Wed, Aug 25, 2010 at 9:48 AM, Alex Dehaini wrote: > >> Permission issue - have nagios user and group own the file; heck the >> entire directory, :) >> >> >> On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu wrote: >> >>> Hello Jim, >>> >>> I used that command to test and there are 0 warnings and o errors. I also >>> checked my Nagios log and this is what I got >>> >>> [1282635168] Nagios 3.2.1 starting... (PID=4250) >>> [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 >>> [1282635168] LOG VERSION: 2.0 >>> [1282635168] Warning: Could not open object cache file >>> '/usr/local/nagios/var/objects.cache' for writing! >>> [1282635168] Failed to obtain lock on file >>> /usr/local/nagios/var/nagios.lock: Permission denied >>> [1282635168] Bailing out due to errors encountered while attempting to >>> daemonize... (PID=4250) >>> >>> Please do you know why am not able to write to the file? >>> >>> Thanks a lot for the support so far >>> >>> >>> Ifeanyi Agu >>> 08063728802 >>> >>> --- On *Wed, 25/8/10, Jim Avery * wrote: >>> >>> >>> From: Jim Avery >>> Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to >>> access Nagios on the browser >>> To: "Nagios Users List" >>> Date: Wednesday, 25 August, 2010, 5:29 PM >>> >>> >>> On 25 August 2010 14:55, Ifeanyi Agu > >>> wrote: >>> > >>> > Hello Jim, >>> > >>> > Thanks for the help so far. I disabled SELinux and I tried starting >>> Nagios again but I noticed that Nagios was not running. I am logged in as >>> the root user in the Linux. Could that be the problem why my Nagios is not >>> running? >>> >>> I wouldn't have thought that would be the problem, no. >>> >>> Take a look at the nagios log file which is probably >>> /usr/local/nagios/var/nagios.log >>> >>> Don't forget my earlier recommendation to validate the Nagios config like >>> so: >>> >>> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg >>> >>> Did you try that, and if so what did it say? >>> >>> Cheers, >>> >>> Jim >>> >>> >>> ------------------------------------------------------------------------------ >>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >>> Be part of this innovative community and reach millions of netbook users >>> worldwide. Take advantage of special opportunities to increase revenue >>> and >>> speed time-to-market. Join now, and jumpstart your future. >>> http://p.sf.net/sfu/intel-atom-d2d >>> _______________________________________________ >>> 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 >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >>> Be part of this innovative community and reach millions of netbook users >>> worldwide. Take advantage of special opportunities to increase revenue >>> and >>> speed time-to-market. Join now, and jumpstart your future. >>> http://p.sf.net/sfu/intel-atom-d2d >>> _______________________________________________ >>> 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 >>> >> >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> _______________________________________________ >> 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 >> > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From justin at mahalo.com Wed Aug 25 19:28:01 2010 From: justin at mahalo.com (Dorfman, Justin) Date: Wed, 25 Aug 2010 10:28:01 -0700 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <320124.97732.qm@web38706.mail.mud.yahoo.com> References: <320124.97732.qm@web38706.mail.mud.yahoo.com> Message-ID: I would sugest that you check that you've created the nagios user and group as following the output of your command *ls -la /usr/local/nagios/var/ *nagios should run under nagios user and nagios group. if you did edit your nagios.cfg Code: vi /usr/local/nagios/etc/nagios.cfg and change the nagios_user and nagios_group to nagios Code: nagios_user=nagios nagios_group=nagios save it and try to restart nagios again. via - http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536 Regards, Justin Dorfman Mahalo.com Inc. > Jr. Systems Engineer 818.485.1458 @jdorfman | @MahaloSysops| Blog: http://bit.ly/aNiWSk On Wed, Aug 25, 2010 at 10:15 AM, Ifeanyi Agu wrote: > Hello Alex, > > I have the changed the owner and group of the file to nagios but I still > get the same error in nagios.log file when I try to start nagios. I tried > this when logged in as the root user. I then logged in as nagios user and I > could not even start apache or nagios. It was telling me that service is not > a command it recognises. Please, please, please help me. Am running outta > time > > Ifeanyi Agu > 08063728802 > > --- On *Wed, 25/8/10, Alex Dehaini * wrote: > > > From: Alex Dehaini > > Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to > access Nagios on the browser > To: "Nagios Users List" > Date: Wednesday, 25 August, 2010, 5:48 PM > > > Permission issue - have nagios user and group own the file; heck the entire > directory, :) > > On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu > > wrote: > > Hello Jim, > > I used that command to test and there are 0 warnings and o errors. I also > checked my Nagios log and this is what I got > > [1282635168] Nagios 3.2.1 starting... (PID=4250) > [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 > [1282635168] LOG VERSION: 2.0 > [1282635168] Warning: Could not open object cache file > '/usr/local/nagios/var/objects.cache' for writing! > [1282635168] Failed to obtain lock on file > /usr/local/nagios/var/nagios.lock: Permission denied > [1282635168] Bailing out due to errors encountered while attempting to > daemonize... (PID=4250) > > Please do you know why am not able to write to the file? > > Thanks a lot for the support so far > > > Ifeanyi Agu > 08063728802 > > --- On *Wed, 25/8/10, Jim Avery > >* wrote: > > > From: Jim Avery > > > Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to > access Nagios on the browser > To: "Nagios Users List" > > > Date: Wednesday, 25 August, 2010, 5:29 PM > > > On 25 August 2010 14:55, Ifeanyi Agu > > wrote: > > > > Hello Jim, > > > > Thanks for the help so far. I disabled SELinux and I tried starting > Nagios again but I noticed that Nagios was not running. I am logged in as > the root user in the Linux. Could that be the problem why my Nagios is not > running? > > I wouldn't have thought that would be the problem, no. > > Take a look at the nagios log file which is probably > /usr/local/nagios/var/nagios.log > > Don't forget my earlier recommendation to validate the Nagios config like > so: > > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > > Did you try that, and if so what did it say? > > Cheers, > > Jim > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > > > > -----Inline Attachment Follows----- > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > > -----Inline Attachment Follows----- > > > _______________________________________________ > 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 > > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From alexdehaini at gmail.com Wed Aug 25 20:11:47 2010 From: alexdehaini at gmail.com (Alex Dehaini) Date: Wed, 25 Aug 2010 13:11:47 -0500 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: <320124.97732.qm@web38706.mail.mud.yahoo.com> Message-ID: Yep; The importance of reading the docs, :) On Wed, Aug 25, 2010 at 12:28 PM, Dorfman, Justin wrote: > I would sugest that you check that you've created the nagios user and group > as following the output of your command *ls -la /usr/local/nagios/var/ > *nagios should run under nagios user and nagios group. > > > if you did edit your nagios.cfg > Code: > > vi /usr/local/nagios/etc/nagios.cfg > > and change the nagios_user and nagios_group to nagios > Code: > > nagios_user=nagios > nagios_group=nagios > > save it and try to restart nagios again. > > via - > http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536 > > > > Regards, > > Justin Dorfman > Mahalo.com Inc. > Jr. Systems Engineer > 818.485.1458 > > @jdorfman | @MahaloSysops| Blog: > http://bit.ly/aNiWSk > > > On Wed, Aug 25, 2010 at 10:15 AM, Ifeanyi Agu wrote: > >> Hello Alex, >> >> I have the changed the owner and group of the file to nagios but I still >> get the same error in nagios.log file when I try to start nagios. I tried >> this when logged in as the root user. I then logged in as nagios user and I >> could not even start apache or nagios. It was telling me that service is not >> a command it recognises. Please, please, please help me. Am running outta >> time >> >> Ifeanyi Agu >> 08063728802 >> >> --- On *Wed, 25/8/10, Alex Dehaini * wrote: >> >> >> From: Alex Dehaini >> >> Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to >> access Nagios on the browser >> To: "Nagios Users List" >> Date: Wednesday, 25 August, 2010, 5:48 PM >> >> >> Permission issue - have nagios user and group own the file; heck the >> entire directory, :) >> >> On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu >> > wrote: >> >> Hello Jim, >> >> I used that command to test and there are 0 warnings and o errors. I also >> checked my Nagios log and this is what I got >> >> [1282635168] Nagios 3.2.1 starting... (PID=4250) >> [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 >> [1282635168] LOG VERSION: 2.0 >> [1282635168] Warning: Could not open object cache file >> '/usr/local/nagios/var/objects.cache' for writing! >> [1282635168] Failed to obtain lock on file >> /usr/local/nagios/var/nagios.lock: Permission denied >> [1282635168] Bailing out due to errors encountered while attempting to >> daemonize... (PID=4250) >> >> Please do you know why am not able to write to the file? >> >> Thanks a lot for the support so far >> >> >> Ifeanyi Agu >> 08063728802 >> >> --- On *Wed, 25/8/10, Jim Avery >> >* wrote: >> >> >> From: Jim Avery >> > >> Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to >> access Nagios on the browser >> To: "Nagios Users List" >> > >> Date: Wednesday, 25 August, 2010, 5:29 PM >> >> >> On 25 August 2010 14:55, Ifeanyi Agu > >> wrote: >> > >> > Hello Jim, >> > >> > Thanks for the help so far. I disabled SELinux and I tried starting >> Nagios again but I noticed that Nagios was not running. I am logged in as >> the root user in the Linux. Could that be the problem why my Nagios is not >> running? >> >> I wouldn't have thought that would be the problem, no. >> >> Take a look at the nagios log file which is probably >> /usr/local/nagios/var/nagios.log >> >> Don't forget my earlier recommendation to validate the Nagios config like >> so: >> >> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg >> >> Did you try that, and if so what did it say? >> >> Cheers, >> >> Jim >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> _______________________________________________ >> 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 >> >> >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> _______________________________________________ >> 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 >> >> >> >> -----Inline Attachment Follows----- >> >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> >> -----Inline Attachment Follows----- >> >> >> _______________________________________________ >> 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 >> >> >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> _______________________________________________ >> 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 >> > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From AHKAPLAN at PARTNERS.ORG Wed Aug 25 21:22:16 2010 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 25 Aug 2010 15:22:16 -0400 Subject: Question about opmon agent Message-ID: Hi there -- Is opmon agent still being developed for use with Nagios? If so, what is the download site for it? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From dario.bestetti at opservices.com.br Wed Aug 25 21:48:43 2010 From: dario.bestetti at opservices.com.br (Dario B. Bestetti (OpServices)) Date: Wed, 25 Aug 2010 16:48:43 -0300 (BRT) Subject: Question about opmon agent In-Reply-To: References: Message-ID: <23810453.43025.1282765723497.JavaMail.root@mail.opservices.com.br> www.opmon.org _________________________________________________ Dario B. Bestetti OpServices R. F?lix da Cunha, 1009 - Sala 501 Porto Alegre, RS - CEP 90570-001 Fone 55(51)32753588 Mobile 55(51)81518218 Fax 55(51)32753588 Email dario.bestetti at opservices.com.br "Taking control has never been so easy" _________________________________________________ ----- "Andrew H. Kaplan" escreveu: Hi there -- Is opmon agent still being developed for use with Nagios? If so, what is the download site for it? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From ccoager at davisvision.com Wed Aug 25 22:34:47 2010 From: ccoager at davisvision.com (Cory Coager) Date: Wed, 25 Aug 2010 16:34:47 -0400 Subject: macros Message-ID: <31952_1282768487_4C757E67_31952_2035_1_4C757E67.9000101@handel.davisvision.com> I'm looking for macro names for check_period and contact_groups to be used in the action_url for a service. I'm using version 3.2.0, can anyone help me out? ------------------------------------------------------------------------ The information contained in this communication is intended only for the use of the recipient(s) named above. It may contain information that is privileged or confidential, and may be protected by State and/or Federal Regulations. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. ------------------------------------------------------------------------ ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From jim at jimavery.me.uk Wed Aug 25 23:03:39 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 25 Aug 2010 22:03:39 +0100 Subject: macros In-Reply-To: <31952_1282768487_4C757E67_31952_2035_1_4C757E67.9000101@handel.davisvision.com> References: <31952_1282768487_4C757E67_31952_2035_1_4C757E67.9000101@handel.davisvision.com> Message-ID: On 25 August 2010 21:34, Cory Coager wrote: > I'm looking for macro names for check_period and contact_groups to be > used in the action_url for a service. ?I'm using version 3.2.0, can > anyone help me out? I can't see anything quite matching either of those in the documentation. http://nagios.sourceforge.net/docs/3_0/macrolist.html ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From himanshuarora7 at gmail.com Thu Aug 26 00:23:20 2010 From: himanshuarora7 at gmail.com (Himanshu Arora) Date: Thu, 26 Aug 2010 03:53:20 +0530 Subject: Help Needed | Web Authentication In-Reply-To: <4C73D72B.7080403@nagios.com> References: <4C73D72B.7080403@nagios.com> Message-ID: Thanks for all your help tony, Tried implementing webinject again and it worked like a charm this time and it solved my pupose. :) Thanks, Himanshu On Tue, Aug 24, 2010 at 7:58 PM, Tony Yarusso wrote: > On 8/22/2010 3:44 PM, Himanshu Arora wrote: > > Hi Tony, > > Thanks for replying, > > I have already tried using webinject couple of days ago... but i was > getting so many errors while using the webinject.pl plugin after the > installation. > > Even though the execution steps are also given on the link you've > provided me, but couldn't get through to it. > Would be really appreciated if you could assist me a bit on this or let me > know the other way around because its been more than a month now, m trying > to get this done... > > Just an FYI for you that m trying to monitor a website @ work on > production enviromment. FB is just an example i hv used. > > > Possibly. I've only done a little myself as well. What sort of errors? > Also, you'll find two examples and a couple of caveats on pages 4-6 of > http://assets.nagios.com/downloads/nagiosxi/docs/Monitoring_Websites_With_XI.pdfif that helps. > > (Also, it's probably best to keep this on the list so others can learn from > it and contribute as well.) > > > On 8/18/2010 2:56 PM, Himanshu Arora wrote: > > So i need to know what am i doing wrong here or may be i am not using > > the right plugin to do so because as i know its not the "basic > > authentication" that i am going through. > You want to use WebInject for this (it's an extra library plus Nagios > plugin) > http://www.webinject.org/plugin.html > > It lets you say "first, go to Facebook. Then fill out the form with > these credentials. Submit those, now check the page it returns back". > You could even do something like checking whether someone is still your > friend, or whether your news feed contains some string. > > -- > Tony Yarusso > Technical Team > > > -- > Tony Yarusso > Technical Team > ___ > Nagios Enterprises, LLC > Email: tyarusso at nagios.com > Web: www.nagios.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From ifepet2002 at yahoo.com Thu Aug 26 09:54:39 2010 From: ifepet2002 at yahoo.com (Ifeanyi Agu) Date: Thu, 26 Aug 2010 00:54:39 -0700 (PDT) Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: Message-ID: <579085.58266.qm@web38701.mail.mud.yahoo.com> Thank all for the help so far. My Nagios is running now. Many of the sites I want to monitor are Java based sites. I want to know whether Nagios would report that the site is down if for instance Apache Tomcat or the db service is not running. Ifeanyi Agu 08063728802 --- On Wed, 25/8/10, Alex Dehaini wrote: From: Alex Dehaini Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Wednesday, 25 August, 2010, 7:11 PM Yep; The importance of reading the docs, :) On Wed, Aug 25, 2010 at 12:28 PM, Dorfman, Justin wrote: I would sugest that you check that you've created the nagios user and group as following the output of your command ls -la /usr/local/nagios/var/ nagios should run under nagios user and nagios group. if you did edit your nagios.cfg Code:vi /usr/local/nagios/etc/nagios.cfgand change the nagios_user and nagios_group to nagios Code:nagios_user=nagios nagios_group=nagiossave it and try to restart nagios again. via - http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536 Regards, Justin Dorfman Mahalo.com Inc. > Jr. Systems Engineer 818.485.1458 @jdorfman | @MahaloSysops | Blog: http://bit.ly/aNiWSk On Wed, Aug 25, 2010 at 10:15 AM, Ifeanyi Agu wrote: Hello Alex, I have the changed the owner and group of the file to nagios but I still get the same error in nagios.log file when I try to start nagios. I tried this when logged in as the root user. I then logged in as nagios user and I could not even start apache or nagios. It was telling me that service is not a command it recognises. Please, please, please help me. Am running outta time Ifeanyi Agu 08063728802 --- On Wed, 25/8/10, Alex Dehaini wrote: From: Alex Dehaini Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Wednesday, 25 August, 2010, 5:48 PM Permission issue - have nagios user and group own the file; heck the entire directory, :) On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu wrote: Hello Jim, I used that command to test and there are 0 warnings and o errors. I also checked my Nagios log and this is what I got [1282635168] Nagios 3.2.1 starting... (PID=4250) [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010 [1282635168] LOG VERSION: 2.0 [1282635168] Warning: Could not open object cache file '/usr/local/nagios/var/objects.cache' for writing! [1282635168] Failed to obtain lock on file /usr/local/nagios/var/nagios.lock: Permission denied [1282635168] Bailing out due to errors encountered while attempting to daemonize... (PID=4250) Please do you know why am not able to write to the file? Thanks a lot for the support so far Ifeanyi Agu 08063728802 --- On Wed, 25/8/10, Jim Avery wrote: From: Jim Avery Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Wednesday, 25 August, 2010, 5:29 PM On 25 August 2010 14:55, Ifeanyi Agu wrote: > > Hello Jim, > > Thanks for the help so far. I disabled SELinux and I tried starting Nagios again but I noticed that Nagios was not running. I am logged in as the root user in the Linux. Could that be the problem why my Nagios is not running? I wouldn't have thought that would be the problem, no. Take a look at the nagios log file which is probably /usr/local/nagios/var/nagios.log Don't forget my earlier recommendation to validate the Nagios config like so: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Did you try that, and if so what did it say? Cheers, Jim ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -----Inline Attachment Follows----- _______________________________________________ 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 ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -----Inline Attachment Follows----- _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From jim at jimavery.me.uk Thu Aug 26 10:10:35 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 26 Aug 2010 09:10:35 +0100 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <579085.58266.qm@web38701.mail.mud.yahoo.com> References: <579085.58266.qm@web38701.mail.mud.yahoo.com> Message-ID: On 26 August 2010 08:54, Ifeanyi Agu wrote: > > Thank all for the help so far. > > My Nagios is running now. Well done. > > Many of the sites I want to monitor are Java based sites. I want to know whether Nagios would report that the site is down if for instance Apache Tomcat or the db service is not running. If the services are on a Windows server, you can check whether they are up either using an SNMP query ( the check_snmp_win plugin which you'll find at http://nagios.manubulon.com/ ), or if you would prefer not to use SNMP, then look at the NSClient++ agent for Nagios at http://nsclient.org/nscp/ . For simple web sites you can use check_http to test that the web page is up and running too. If you want a head start in understanding how the various plugins, agents and add-ons for Nagios fit together, I recommend the book "Nagios" by Wolfgang Barth published by No Starch Press. It gives a really good explanation from first principles and goes in to plenty of detail too. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From ifepet2002 at yahoo.com Thu Aug 26 10:33:51 2010 From: ifepet2002 at yahoo.com (Ifeanyi Agu) Date: Thu, 26 Aug 2010 01:33:51 -0700 (PDT) Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: Message-ID: <38283.81790.qm@web38701.mail.mud.yahoo.com> Hello all, I have Nagios running on my system currently. I purposely shut down one of my sites and Nagios to monitor it. From the browser it's telling me that there is a problem which is ok for me but it does not send me a mail. I checked nagios log and this is what I saw 1282660775] SERVICE ALERT: seamfix;HTTP;CRITICAL;HARD;4;HTTP CRITICAL: HTTP/1.1 503 Service Temporarily Unavailable - 616 bytes in 1.649 second response time [1282660775] SERVICE NOTIFICATION: nagiosadmin;seamfix;HTTP;CRITICAL;notify-service-by-email;HTTP CRITICAL: HTTP/1.1 503 Service Temporarily Unavailable - 616 bytes in 1.649 second response time Is there any other thing I need to set on my OS (am using Cent OS) to get the mail to start working. Thanks Ifeanyi Agu 08063728802 --- On Thu, 26/8/10, Jim Avery wrote: From: Jim Avery Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Thursday, 26 August, 2010, 9:10 AM On 26 August 2010 08:54, Ifeanyi Agu wrote: > > Thank all for the help so far. > > My Nagios is running now. Well done. > > Many of the sites I want to monitor are Java based sites. I want to know whether Nagios would report that the site is down if for instance Apache Tomcat or the db service is not running. If the services are on a Windows server, you can check whether they are up either using an SNMP query ( the check_snmp_win plugin which you'll find at http://nagios.manubulon.com/ ), or if you would prefer not to use SNMP, then look at the NSClient++ agent for Nagios at http://nsclient.org/nscp/ .? For simple web sites you can use check_http to test that the web page is up and running too. If you want a head start in understanding how the various plugins, agents and add-ons for Nagios fit together, I recommend the book "Nagios" by Wolfgang Barth published by No Starch Press.? It gives a really good explanation from first principles and goes in to plenty of detail too. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From jm+nagios-users at roth.lu Thu Aug 26 11:34:54 2010 From: jm+nagios-users at roth.lu (J.M.) Date: Thu, 26 Aug 2010 09:34:54 +0000 (UTC) Subject: "service has a notification interval less than its check interval" but it has not.... Message-ID: Warning: Service 'TRAP' on host 'swfc6' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval. happens in these cases: normal_check_interval 30s notification_interval 15s normal_check_interval 30s notification_interval 1 normal_check_interval 30s notification_interval 15 normal_check_interval 30s notification_interval 29 but not in these cases: normal_check_interval 30s notification_interval 30s normal_check_interval 30s notification_interval 30 normal_check_interval 30s notification_interval 31 The complete service definition is use normal service_description TRAP is_volatile 0 check_period 24x7 max_check_attempts 1 normal_check_interval 30s retry_check_interval 1 notification_interval 15 notification_period 24x7 notification_options u,c,w Can anyone explain why these warnings happen? Except for the first case, I don't understand. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From nagios at flatto.net Thu Aug 26 12:40:01 2010 From: nagios at flatto.net (Assaf Flatto) Date: Thu, 26 Aug 2010 11:40:01 +0100 Subject: "service has a notification interval less than its check interval" but it has not.... In-Reply-To: References: Message-ID: <4C764481.1050102@flatto.net> On 26/08/10 10:34, J.M. wrote: > Warning: Service 'TRAP' on host 'swfc6' has a notification interval less than > its check interval! Notifications are only re-sent after checks are made, so > the effective notification interval will be that of the check interval. > > happens in these cases: > > normal_check_interval 30s > notification_interval 15s > > normal_check_interval 30s > notification_interval 1 > > normal_check_interval 30s > notification_interval 15 > > normal_check_interval 30s > notification_interval 29 > > but not in these cases: > > normal_check_interval 30s > notification_interval 30s > > normal_check_interval 30s > notification_interval 30 > > normal_check_interval 30s > notification_interval 31 > > > The complete service definition is > > use normal > service_description TRAP > > is_volatile 0 > check_period 24x7 > max_check_attempts 1 > normal_check_interval 30s > retry_check_interval 1 > notification_interval 15 > notification_period 24x7 > notification_options u,c,w > > > Can anyone explain why these warnings happen? Except for the first case, I don't > understand the reason this happens is that nagios can not send a notification based on an "old" data , the notification is relevant to the current status and that is related to the latest check . now if your check interval is smaller then the notification , that means that nagios can do more checks and then send the alert on the latest data . but if it is the other way around - it means that the alert sent might be based on out-of-date date and hence there is a strong possibility of a "false-positive" and nagios is reminding you of that possibility and also refrains from sending messages if it does not have a more current check . -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From danilo.godec at agenda.si Thu Aug 26 12:49:34 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Thu, 26 Aug 2010 12:49:34 +0200 Subject: "service has a notification interval less than its check interval" but it has not.... In-Reply-To: References: Message-ID: <4C7646BE.8090700@agenda.si> On 08/26/2010 11:34 AM, J.M. wrote: > Warning: Service 'TRAP' on host 'swfc6' has a notification interval less than > its check interval! Notifications are only re-sent after checks are made, so > the effective notification interval will be that of the check interval. > > happens in these cases: > > normal_check_interval 30s > notification_interval 15s > > normal_check_interval 30s > notification_interval 1 > > normal_check_interval 30s > notification_interval 15 > > normal_check_interval 30s > notification_interval 29 > > but not in these cases: > > normal_check_interval 30s > notification_interval 30s > > normal_check_interval 30s > notification_interval 30 > > normal_check_interval 30s > notification_interval 31 > > > The complete service definition is > > use normal > service_description TRAP > > is_volatile 0 > check_period 24x7 > max_check_attempts 1 > normal_check_interval 30s > retry_check_interval 1 > notification_interval 15 > notification_period 24x7 > notification_options u,c,w > > > Can anyone explain why these warnings happen? Except for the first case, I don't > understand. > AFAIK these intervals don't take time as their argument, but a multiplier of 'interval_length' (by default, this is set to 60 seconds). So Nagios probably ignores the 's' suffix and the resulting intervals are all in minutes... I guess you could set 'interval_length' to '1' (second) and set other intervals accordingly (30, 60, 900, ...). Danilo- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From jm+nagios-users at roth.lu Thu Aug 26 13:43:44 2010 From: jm+nagios-users at roth.lu (J.M.) Date: Thu, 26 Aug 2010 11:43:44 +0000 (UTC) Subject: =?utf-8?q?=26quot=3Bservice_has_a_notification_int?= =?utf-8?q?erval_less_than_its=09check_interval=26quot=3B_but_it_ha?= =?utf-8?b?cyBub3QuLi4u?= References: <4C7646BE.8090700@agenda.si> Message-ID: Danilo Godec agenda.si> writes: > > AFAIK these intervals don't take time as their argument, but a > multiplier of 'interval_length' (by default, this is set to 60 seconds). > > So Nagios probably ignores the 's' suffix and the resulting intervals > are all in minutes... > Damn. Shouldn't it tell me if it "throws sth. away". Now instead of 30s I had 30 minutes all along which is a disaster. I had the syntax for the seconds from http://nagios.sourceforge.net/docs/3_0/configmain.html#command_check_interval That seems to be the only command supporting this however. Duh. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From alexdehaini at gmail.com Thu Aug 26 20:24:57 2010 From: alexdehaini at gmail.com (Alex Dehaini) Date: Thu, 26 Aug 2010 13:24:57 -0500 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <38283.81790.qm@web38701.mail.mud.yahoo.com> References: <38283.81790.qm@web38701.mail.mud.yahoo.com> Message-ID: Yep, Nagios has tons and tons of plugins that can monitor virtually any service - what exactly do you want to monitor, a service, connection to a port, what? Let us know and we can help Regards, Alex PS: Review the docx, common questions are usually answered in the docx. :) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From work at paul.dubuc.org Thu Aug 26 21:16:13 2010 From: work at paul.dubuc.org (Paul M. Dubuc) Date: Thu, 26 Aug 2010 15:16:13 -0400 Subject: Do plugins terminate gracefully on Nagios restart or shutdown? Message-ID: <4C76BD7D.8000000@paul.dubuc.org> I'm wondering if there is any termination signal sent to a plugin that happens to be executing at the time Nagios is restarted or shut down? Do plugins need a signal handler for this case if they have cleanup that needs doing? Do plugins using the embedded Perl also get a signal? Is the signal different for restart vs. shutdown? Or perhaps Nagios waits for plugins that are executing to finish while not starting any before doing the restart or shutdown. I haven't found the answer to this in the development guidelines or other documentation. Can anyone tell me how this is handled? Thanks, Paul Dubuc ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From allanm78 at gmail.com Fri Aug 27 07:26:25 2010 From: allanm78 at gmail.com (newme me) Date: Thu, 26 Aug 2010 22:26:25 -0700 Subject: Nagios script output issue Message-ID: Hi Folks, Nagios is acting a little weird for me, I have this external script which I hooked into Nagios, it merely does a curl/wget on a URL and returns the status based on string in the content/output. Initially for 2-3 hrs the script returns the right status and Nagios reports correctly i.e. OK, WARN, ERROR based on the exit from the script. After 2-3 hrs output which was (and should be) OK or WARN starts returning CRITICAL and the output line says "Application is" and not even "Application is ERROR" or "Application is FATAL". There is nothing in the logs to suggest what could be the problem. Have you experienced this before and let me know the corrective action. I am running Nagios on Mac OSX. Here is the script for the curious - #!/bin/bash read URL < "$1" STATUS=`curl -s $URL |grep summary|awk -F\" '{print $2}'` echo "Application is $STATUS" echo "curl $URL" case $STATUS in OK) exit 0 ;; WARN) exit 1 ;; ERROR) exit 2 ;; FATAL) exit 2 ;; *) exit 2 ;; esac Thanks, Allan. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From jim at jimavery.me.uk Fri Aug 27 09:05:39 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 27 Aug 2010 08:05:39 +0100 Subject: Nagios script output issue In-Reply-To: References: Message-ID: On 27 August 2010 06:26, newme me wrote: > Hi Folks, > > Nagios is acting a little weird for me, I have this external script which I > hooked into Nagios, it merely does a curl/wget on a URL and returns the > status based on string in the content/output. Initially for 2-3 hrs the > script returns the right status and Nagios reports correctly i.e. OK, WARN, > ERROR based on the exit from the script. After 2-3 hrs output which was (and > should be) OK or WARN starts returning CRITICAL and the output line says > "Application is" and not even "Application is ERROR" or "Application is > FATAL". > > There is nothing in the logs to suggest what could be the problem. Have you > experienced this before and let me know the corrective action. I am running > Nagios on Mac OSX. > > Here is the script for the curious - > > #!/bin/bash > > read URL < "$1" > > STATUS=`curl -s $URL |grep summary|awk -F\" '{print $2}'` > echo "Application is $STATUS" > echo "curl $URL" > > case $STATUS in > OK) > ?? exit 0 > ?? ;; > WARN) > ? exit 1 > ? ;; > ERROR) > ? exit 2 > ? ;; > FATAL) > ? exit 2 > ? ;; > *) > ? exit 2 > ? ;; > esac I'm not sure. The syntax: read URL < "$1" seems a bit unusual. Maybe I've misunderstood what it's doing, but wouldn't this do the job more conventionally?: URL="$1" Depending on how your application constructs the web page, it might not be guaranteed that "summary" and the status will be on the same line. A small point, but I would normally use exit 3 rather than exit 2 for that final *) catch-all case. hth, but I'm not convinced it will! I'm told that for this sort of thing webinject is good, but I haven't tried it myself yet so am not sure how onerous it would be to install and set up. Jim ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From diego.roccia at gmail.com Fri Aug 27 09:07:20 2010 From: diego.roccia at gmail.com (diego.roccia at gmail.com) Date: Fri, 27 Aug 2010 07:07:20 +0000 Subject: Nagios script output issue In-Reply-To: References: Message-ID: <45454051-1282892839-cardhu_decombobulator_blackberry.rim.net-927390625-@bda204.bisx.produk.on.blackberry> Hi, You should add the whole output of the page as additional info, so that you can fully understand what's happening /D Sent from my BlackBerry? wireless device -----Original Message----- From: newme me Date: Thu, 26 Aug 2010 22:26:25 To: Reply-To: Nagios Users List Subject: [Nagios-users] Nagios script output issue ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From ravishankar.gundlapali at wipro.com Fri Aug 27 10:30:41 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Fri, 27 Aug 2010 14:00:41 +0530 Subject: Socket timeout after 90 seconds- Error In-Reply-To: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0A8E@PNE-HJN-MBX02.wipro.com> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0A8E@PNE-HJN-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F028E4190@HYD-MKD-MBX02.wipro.com> Hi, I am using Nagios Version 3.0.6 on a Linux server to monitor the Windows servers with NSClient++ installed on them. For one of the Windows server the services are showing as ' CRITICAL - Socket timeout after 90 seconds ' Please someone let me know what does this mean. What information can I get from this alert. How can I resolve this. Thanks & Regards, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 10213 bytes Desc: image001.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From ifepet2002 at yahoo.com Fri Aug 27 10:40:07 2010 From: ifepet2002 at yahoo.com (Ifeanyi Agu) Date: Fri, 27 Aug 2010 01:40:07 -0700 (PDT) Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: References: Message-ID: <571023.77936.qm@web38707.mail.mud.yahoo.com> Hello Alex, I want to monitor Apache Tomcat (i.e. to know when it is running or not). I also want to monitor Postgres service. My Nagios is working well now but I noticed that it does not send me mails. Am using Cent OS. Is there any other configuration I need to do outside or within Nagios that would enable mails to be sent? Ifeanyi Agu 08063728802 --- On Thu, 26/8/10, Alex Dehaini wrote: From: Alex Dehaini Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser To: "Nagios Users List" Date: Thursday, 26 August, 2010, 7:24 PM Yep, Nagios has tons and tons of plugins that can monitor virtually any service - what exactly do you want to monitor, a service, connection to a port, what? Let us know and we can help Regards, Alex PS: Review the docx, common questions are usually answered in the docx. :) #yiv1453477226 #yiv1453477226avg_ls_inline_popup {padding:0px 0px;margin-left:0px;margin-top:0px;width:240px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:13px;} -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -----Inline Attachment Follows----- _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From jim at jimavery.me.uk Fri Aug 27 11:12:51 2010 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 27 Aug 2010 10:12:51 +0100 Subject: Socket timeout after 90 seconds- Error In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F028E4190@HYD-MKD-MBX02.wipro.com> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0A8E@PNE-HJN-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F028E4190@HYD-MKD-MBX02.wipro.com> Message-ID: On 27 August 2010 09:30, wrote: > > Hi, > > > > I am using Nagios Version 3.0.6 on a Linux server to monitor the Windows servers with NSClient++ installed on them. > > > > For one of the Windows server the services are showing as ? CRITICAL - Socket timeout after 90 seconds?? > > > > > > Please someone let me know what does this mean. What information can I get from this alert. > > > > How can I resolve this. Most likely the Nagios agent on the server has stopped responding. It might have simply stopped or there could be a firewall issue or somesuch blocking access on whatever port nrpe is configured to use. hth, Jim ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From ravishankar.gundlapali at wipro.com Fri Aug 27 12:05:54 2010 From: ravishankar.gundlapali at wipro.com (ravishankar.gundlapali at wipro.com) Date: Fri, 27 Aug 2010 15:35:54 +0530 Subject: Service Check Timed Out- Error References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0A8E@PNE-HJN-MBX02.wipro.com> Message-ID: <618F928F9E2D824AAB26DCAA0F25221F028E41E7@HYD-MKD-MBX02.wipro.com> Hi, I am using Nagios Version 3.0.6 on a Linux server to monitor the Windows servers with NSClient++ installed on them. For one of the Windows server the SQL Database services are showing as ' Service Check Timed Out ' Please someone let me know how can I resolve this. What information can I get from this alert. Thanks & Regards, Ravi G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 10613 bytes Desc: image002.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From mirde at oppy.com Fri Aug 27 18:37:48 2010 From: mirde at oppy.com (Mirza Dedic) Date: Fri, 27 Aug 2010 09:37:48 -0700 Subject: Service Check Timed Out- Error In-Reply-To: <618F928F9E2D824AAB26DCAA0F25221F028E41E7@HYD-MKD-MBX02.wipro.com> References: <3FEFD82C77911D45A5465CEEBEAC23CDCC0B0A8E@PNE-HJN-MBX02.wipro.com> <618F928F9E2D824AAB26DCAA0F25221F028E41E7@HYD-MKD-MBX02.wipro.com> Message-ID: Make sure that you have properly configured NSClient++ and that you can connect to It from the Nagios box? Does your check work from the cmd prompt? From: ravishankar.gundlapali at wipro.com [mailto:ravishankar.gundlapali at wipro.com] Sent: August/27/2010 3:06 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Service Check Timed Out- Error Hi, I am using Nagios Version 3.0.6 on a Linux server to monitor the Windows servers with NSClient++ installed on them. For one of the Windows server the SQL Database services are showing as ' Service Check Timed Out ' [cid:image001.png at 01CB45CB.810531B0] Please someone let me know how can I resolve this. What information can I get from this alert. Thanks & Regards, Ravi G The Oppenheimer Group ---- CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 10613 bytes Desc: image001.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From allanm78 at gmail.com Mon Aug 30 03:12:10 2010 From: allanm78 at gmail.com (newme me) Date: Sun, 29 Aug 2010 18:12:10 -0700 Subject: Nagios script output issue In-Reply-To: References: Message-ID: Folks, I switched to "check_http" plugin (official nagios plugin) but that also has same problem. Initially when I start nagios then the status on the Nagios Web interface is same as the one returned from commandline. After some time the status becomes critical but is not as same as the commandline. Command line returns the correct status of OK instead of what the Nagios web interface shows as "CRITICAL" Result from commandline(& browser) - ./check_http -H xyz.com -p 2222 -u /abc -t 3 OK Result from Nagios Interface - nodename nor servname provided, or not known HTTP CRITICAL - Unable to open TCP socket I am thinking that this has something to do with Nagios as the box is behaving just fine based on the commandline result(and verified on the URL through the browser). Please help! Thanks, Allan. On Thu, Aug 26, 2010 at 10:26 PM, newme me wrote: > Hi Folks, > > Nagios is acting a little weird for me, I have this external script which I > hooked into Nagios, it merely does a curl/wget on a URL and returns the > status based on string in the content/output. Initially for 2-3 hrs the > script returns the right status and Nagios reports correctly i.e. OK, WARN, > ERROR based on the exit from the script. After 2-3 hrs output which was (and > should be) OK or WARN starts returning CRITICAL and the output line says > "Application is" and not even "Application is ERROR" or "Application is > FATAL". > > There is nothing in the logs to suggest what could be the problem. Have you > experienced this before and let me know the corrective action. I am running > Nagios on Mac OSX. > > Here is the script for the curious - > > #!/bin/bash > > read URL < "$1" > > STATUS=`curl -s $URL |grep summary|awk -F\" '{print $2}'` > echo "Application is $STATUS" > echo "curl $URL" > > case $STATUS in > OK) > exit 0 > ;; > WARN) > exit 1 > ;; > ERROR) > exit 2 > ;; > FATAL) > exit 2 > ;; > *) > exit 2 > ;; > esac > > Thanks, > > Allan. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From Stuart.Jones at health.wa.gov.au Mon Aug 30 03:29:00 2010 From: Stuart.Jones at health.wa.gov.au (Jones, Stuart) Date: Mon, 30 Aug 2010 09:29:00 +0800 Subject: Bonding/Teaming Monitoring In-Reply-To: References: Message-ID: We're using port status check of the Gigabit ports used for the EtherChannel, for a C3750 stack & Gi1/0/1: check_snmp!-C -o ifOperStatus.10201 -r 1 -m RFC1212-MIB ________________________________ From: Robert Jackson [mailto:rab at walkermartyn.co.uk] Sent: Tuesday, 17 August 2010 1:55 PM To: Nagios Users List Subject: [Nagios-users] Bonding/Teaming Monitoring My current situation is that I have 2 core switches (Cisco 2960G's) in a failover capability. Every one of our servers (Windows, RHEL & Solaris) has NIC bonding/teaming enabled and obviously one switch serves network access to NIC #0, the other switch serves network access to NIC #1. I'm looking for the best way to setup failover monitoring of the switch ports and server connections under my setup. ************************************************************************ The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administrator at walkermartyn.co.uk. Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. **************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From diego.roccia at gmail.com Mon Aug 30 08:57:13 2010 From: diego.roccia at gmail.com (diego.roccia at gmail.com) Date: Mon, 30 Aug 2010 06:57:13 +0000 Subject: Bonding/Teaming Monitoring In-Reply-To: References: Message-ID: <1766317682-1283151433-cardhu_decombobulator_blackberry.rim.net-1393453167-@bda204.bisx.produk.on.blackberry> On the server part, you should go with: - monitor physical interfaces (snmp) - monitor bonding sytatus (in /proc/net/bonding/bond0, or the sysfs equivalent) Moreover, you could monitor network interfaces on the switch side. You can for example, use custom variables to store switch ports on server side. Sent from my BlackBerry? wireless device -----Original Message----- From: "Jones, Stuart" Date: Mon, 30 Aug 2010 09:29:00 To: Nagios Users List Reply-To: Nagios Users List Subject: Re: [Nagios-users] Bonding/Teaming Monitoring ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From diego.roccia at gmail.com Mon Aug 30 08:58:33 2010 From: diego.roccia at gmail.com (diego.roccia at gmail.com) Date: Mon, 30 Aug 2010 06:58:33 +0000 Subject: Nagios script output issue In-Reply-To: References: Message-ID: <1384507900-1283151514-cardhu_decombobulator_blackberry.rim.net-1024781625-@bda204.bisx.produk.on.blackberry> You aren't passing that "" thing to the server, are you? Sent from my BlackBerry? wireless device -----Original Message----- From: newme me Date: Sun, 29 Aug 2010 18:12:10 To: Reply-To: Nagios Users List Subject: Re: [Nagios-users] Nagios script output issue ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From danilo.godec at agenda.si Mon Aug 30 11:02:45 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Mon, 30 Aug 2010 11:02:45 +0200 Subject: Are service contacts 'inherited' from respective host? Message-ID: <4C7B73B5.2010203@agenda.si> Hi, I'm monitoring a bunch of hosts and each of these hosts has at least two services used to monitor and graph ping RTA and packet-loss. Hosts configurations are organized in several .cfg files (by building), there is also a hostgroup definition grouping all hosts in a building. However, hosts in a building can have different contacts... I defined services using hostgroups - like this: define service { use template hostgroup_name MYHOSTGROUP } I was hoping a service that doesn't have a contact definition would 'inherit' the contact from the host - but it seems that's not the case. Is there a way to make that happen? Or will I need to define services one-by-one while and add contact definition to each? Danilo -- Danilo Godec, sistemska podpora / system administration Predlog! Obiscite prenovljeno spletno stran www.agenda.si ODPRTA KODA IN LINUX STORITVE : POSLOVNE RESITVE : UPRAVLJANJE IT : INFRASTRUKTURA IT : IZOBRAZEVANJE : PROGRAMSKA OPREMA Visit our updated web page at www.agenda.si OPEN SOURCE AND LINUX SERVICES : BUSINESS SOLUTIONS : IT MANAGEMENT : IT INFRASTRUCTURE : TRAINING : SOFTWARE ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From 4ux6as402 at sneakemail.com Mon Aug 30 11:47:05 2010 From: 4ux6as402 at sneakemail.com (=?ISO-8859-1?Q?=22Peter_Valdemar_M=F8rch_=28Lists=29=22?=) Date: Mon, 30 Aug 2010 11:47:05 +0200 Subject: Suggestion: Macro cleansing/clean_macro_chars() in macros.c should not allow trailing \ Message-ID: <4C7B7E19.7050100@sneakemail.com> Hi, clean_macro_chars() basically removes illegal_output_chars from char *macro if(options & STRIP_ILLEGAL_MACRO_CHARS). Now, by default '\' is not an illegal output char, so it is not stripped. However that can cause problems if e.g. we have a command_line plugin arg0 $STRIPPED_MACRO$ arg2 Consider: $STRIPPED_MACRO$ = normal plugin sees: arg0: arg0 arg1: normal arg2: arg2 All is well. However, if: $STRIPPED MACRO$ = foo\ arg0: arg0 arg1: foo arg2 arg2: NULL The trailing backslash from foo cases the space to be backslashed. It can be avoided by putting in two spaces after $STRIPPED_MACRO$ in the command_line but that isn't quite intuitive, is it? This value could arise from the before-stripping values of $STRIPPED_MACRO$: "foo\", "foo\$", "foo\>" etc. I suggest that if stripping is to be truly safe, somehow it should be possible to avoid trailing backslashes as that messes up the args given to plugins. Peter (Yes, in another thread in nagios-devel I'm talking about Custom Object Variables and cleansing, but I think this applies to cleansing in general so I post it as a separate subject. Hope that is ok.) -- Peter Valdemar M?rch http://www.morch.com ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From Gerald.Ortner at gespag.at Mon Aug 30 12:17:34 2010 From: Gerald.Ortner at gespag.at (Ortner, Gerald) Date: Mon, 30 Aug 2010 12:17:34 +0200 Subject: Are service contacts 'inherited' from respectivehost? In-Reply-To: <4C7B73B5.2010203@agenda.si> References: <4C7B73B5.2010203@agenda.si> Message-ID: <13579FFE8B208F4DBA327EE25F804AAB8FDFEF9D@swvbpheaglxmb02.health.local> -----Urspr?ngliche Nachricht----- Von: Danilo Godec [mailto:danilo.godec at agenda.si] Gesendet: Montag, 30. August 2010 11:03 An: Nagios Users List Betreff: [Nagios-users] Are service contacts 'inherited' from respectivehost? Hi, I'm monitoring a bunch of hosts and each of these hosts has at least two services used to monitor and graph ping RTA and packet-loss. Hosts configurations are organized in several .cfg files (by building), there is also a hostgroup definition grouping all hosts in a building. However, hosts in a building can have different contacts... I defined services using hostgroups - like this: define service { use template hostgroup_name MYHOSTGROUP } I was hoping a service that doesn't have a contact definition would 'inherit' the contact from the host - but it seems that's not the case. Is there a way to make that happen? Or will I need to define services one-by-one while and add contact definition to each? Danilo Hi, What Nagios version do you use? Since Nagios 3.0 contact_groups, notification_interval, notification_period are inherited from the related host definition if you don't explicitly specify them in the service object or an inherited template. http://nagios.sourceforge.net/docs/3_0/objectinheritance.html Gerald OOe. Gesundheits- und Spitals-AG Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 p ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From alex.peeters at citap.be Mon Aug 30 12:53:53 2010 From: alex.peeters at citap.be (Alex Peeters) Date: Mon, 30 Aug 2010 12:53:53 +0200 Subject: Help needed: How do you configure dynamic thresholds depending on timeframes. Message-ID: <20100830125353.6ngbf7y34s8cc4sc@localhost> Help needed: How do you configure dynamic thresholds depending on timeframes. Example. -w = 80 -c = 90 during business hours but -w = 90 -c = 95 outsite business hours. How can we configure into nagios dynamic thresholds depending on timeframes: Part II define service{ use local-service ; Name of service template to use host_name localhost service_description Current Users check_command check_local_users!20!50 check_period nonworkhours notification_period nonworkhours } define service{ use local-service ; Name of service template to use host_name localhost service_description Current Users check_command check_local_users!40!60 check_period workhours notification_period workhours } In my above example i dit configure the same test twice. The two timeframes 'nonworkhours' en 'workhours' together equals 24x7 Is this way of configuring allowed. Because this solves my problem. 1) how will the nagios scheduling react on this configuration? 2) how will the display react on this configuration? # 'workhours' timeperiod definition define timeperiod{ timeperiod_name workhours alias "Normal" Working Hours monday 09:00-17:00 tuesday 09:00-17:00 wednesday 09:00-17:00 thursday 09:00-17:00 friday 09:00-17:00 } # 'nonworkhours' timeperiod definition define timeperiod{ timeperiod_name nonworkhours alias Non-Work Hours sunday 00:00-24:00 monday 00:00-09:00,17:00-24:00 tuesday 00:00-09:00,17:00-24:00 wednesday 00:00-09:00,17:00-24:00 thursday 00:00-09:00,17:00-24:00 friday 00:00-09:00,17:00-24:00 saturday 00:00-24:00 } check_period: This directive is used to specify the short name of the time period during which active checks of this host can be made. check_period: This directive is used to specify the short name of the time period during which active checks of this service can be made. If you do not use the check_period directive to specify a timeperiod, Nagios will be able to schedule active checks of the host or service anytime it needs to. This is essentially a 24x7 monitoring scenario. Specifying a timeperiod in the check_period directive allows you to restrict the time that Nagios perform regularly scheduled, active checks of the host or service. When Nagios attempts to reschedule a host or service check, it will make sure that the next check falls within a valid time range within the defined timeperiod. If it doesn?t, Nagios will adjust the next check time to coincide with the next "valid" time in the specified timeperiod. This means that the host or service may not get checked again for another hour, day, or week, etc. Timeperiods: Exclusions and Host/Service Checks - There is a bug in the service/host check scheduling logic that rears its head when you use timeperiod definitions that use the excludedirective. The problem occurs when Nagios Core tries to re-schedule the next check. In this case, the scheduling logic may incorrectly schedule the next check further out in the future than it should. In essence, it skips over the (missing) logic where it could determine an earlier possible time using the exception times. Imperfect Solution: Don?t use timeperiod definitions that exclude other timeperods for your host/service check periods. A fix is being worked on, and will hopefully make it into a 3.4.x release. ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From alexdehaini at gmail.com Mon Aug 30 13:03:28 2010 From: alexdehaini at gmail.com (Alex Dehaini) Date: Mon, 30 Aug 2010 06:03:28 -0500 Subject: Internal Server Error Occuring when trying to access Nagios on the browser In-Reply-To: <571023.77936.qm@web38707.mail.mud.yahoo.com> References: <571023.77936.qm@web38707.mail.mud.yahoo.com> Message-ID: what ports do tomcat and postgres listen on? On Fri, Aug 27, 2010 at 3:40 AM, Ifeanyi Agu wrote: > Hello Alex, > > I want to monitor Apache Tomcat (i.e. to know when it is running or not). I > also want to monitor Postgres service. > > My Nagios is working well now but I noticed that it does not send me mails. > Am using Cent OS. Is there any other configuration I need to do outside or > within Nagios that would enable mails to be sent? > > Ifeanyi Agu > 08063728802 > > > --- On *Thu, 26/8/10, Alex Dehaini * wrote: > > > From: Alex Dehaini > Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to > access Nagios on the browser > To: "Nagios Users List" > Date: Thursday, 26 August, 2010, 7:24 PM > > > Yep, > > Nagios has tons and tons of plugins that can monitor virtually any service > - what exactly do you want to monitor, a service, connection to a port, > what? Let us know and we can help > > Regards, > Alex > > PS: Review the docx, common questions are usually answered in the docx. :) > > > -----Inline Attachment Follows----- > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > > -----Inline Attachment Follows----- > > > _______________________________________________ > 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 > > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d -------------- 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 From lists at xodus.org Mon Aug 30 13:47:54 2010 From: lists at xodus.org (Marc Powell) Date: Mon, 30 Aug 2010 06:47:54 -0500 Subject: Nagios script output issue In-Reply-To: References: Message-ID: On Aug 29, 2010, at 8:12 PM, newme me wrote: > ./check_http -H xyz.com -p 2222 -u /abc -t 3 > OK > > Result from Nagios Interface - > nodename nor servname provided, or not known > HTTP CRITICAL - Unable to open TCP socket > > I am thinking that this has something to do with Nagios as the box is behaving just fine based on the commandline result(and verified on the URL through the browser). It seems like you may have multiple nagios daemons running at the same time; one that's using a previously bad config, and one with a good new config. Stop nagios, verify that all nagios processes are dead and restart. -- Marc ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From danilo.godec at agenda.si Mon Aug 30 14:22:08 2010 From: danilo.godec at agenda.si (Danilo Godec) Date: Mon, 30 Aug 2010 14:22:08 +0200 Subject: Are service contacts 'inherited' from respectivehost? In-Reply-To: <13579FFE8B208F4DBA327EE25F804AAB8FDFEF9D@swvbpheaglxmb02.health.local> References: <4C7B73B5.2010203@agenda.si> <13579FFE8B208F4DBA327EE25F804AAB8FDFEF9D@swvbpheaglxmb02.health.local> Message-ID: <4C7BA270.5020909@agenda.si> On 08/30/2010 12:17 PM, Ortner, Gerald wrote: > > -----Urspr?ngliche Nachricht----- > Von: Danilo Godec [mailto:danilo.godec at agenda.si] > Gesendet: Montag, 30. August 2010 11:03 > An: Nagios Users List > Betreff: [Nagios-users] Are service contacts 'inherited' from respectivehost? > > Hi, > > I'm monitoring a bunch of hosts and each of these hosts has at least two services used to monitor and graph ping RTA and packet-loss. Hosts configurations are organized in several .cfg files (by building), there is also a hostgroup definition grouping all hosts in a building. > However, hosts in a building can have different contacts... > > I defined services using hostgroups - like this: > > define service { > use template > hostgroup_name MYHOSTGROUP > } > > I was hoping a service that doesn't have a contact definition would 'inherit' the contact from the host - but it seems that's not the case. > > Is there a way to make that happen? Or will I need to define services one-by-one while and add contact definition to each? > > Danilo > > Hi, > > What Nagios version do you use? > Since Nagios 3.0 contact_groups, notification_interval, notification_period are inherited from the related host definition if you don't explicitly specify them in the service object or an inherited template. > > http://nagios.sourceforge.net/docs/3_0/objectinheritance.html Hi, we're using 3.0.6, so this should work... Oh well, I guess I'll just dig a bit deeper then. Thanks for the info, Danilo ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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 From allanm78 at gmail.com Mon Aug 30 19:47:57 2010 From: allanm78 at gmail.com (newme me) Date: Mon, 30 Aug 2010 10:47:57 -0700 Subject: Nagios script output issue In-Reply-To: References: Message-ID: Hi Marc, Thanks for your reply, I checked on the multiple process of Nagios but there is only one running. Any other thing you can think of which might be causing this odd behaviour? Thanks, Allan. On Sun, Aug 29, 2010 at 6:12 PM, newme me wrote: > Folks, > > I switched to "check_http" plugin (official nagios plugin) but that also > has same problem. > > Initially when I start nagios then the status on the Nagios Web interface > is same as the one returned from commandline. > > After some time the status becomes critical but is not as same as the > commandline. Command line returns the correct status of OK instead of what > the Nagios web interface shows as "CRITICAL" > > Result from commandline(& browser) - > ./check_http -H xyz.com -p 2222 -u /abc -t 3 > OK > > Result from Nagios Interface - > nodename nor servname provided, or not known > HTTP CRITICAL - Unable to open TCP socket > > I am thinking that this has something to do with Nagios as the box is > behaving just fine based on the commandline result(and verified on the URL > through the browser). > > Please help! > > Thanks, > Allan. > > > On Thu, Aug 26, 2010 at 10:26 PM, newme me wrote: > >> Hi Folks, >> >> Nagios is acting a little weird for me, I have this external script which >> I hooked into Nagios, it merely does a curl/wget on a URL and returns the >> status based on string in the content/output. Initially for 2-3 hrs the >> script returns the right status and Nagios reports correctly i.e. OK, WARN, >> ERROR based on the exit from the script. After 2-3 hrs output which was (and >> should be) OK or WARN starts returning CRITICAL and the output line says >> "Application is" and not even "Application is ERROR" or "Application is >> FATAL". >> >> There is nothing in the logs to suggest what could be the problem. Have >> you experienced this before and let me know the corrective action. I am >> running Nagios on Mac OSX. >> >> Here is the script for the curious - >> >> #!/bin/bash >> >> read URL < "$1" >> >> STATUS=`curl -s $URL |grep summary|awk -F\" '{print $2}'` >> echo "Application is $STATUS" >> echo "curl $URL" >> >> case $STATUS in >> OK) >> exit 0 >> ;; >> WARN) >> exit 1 >> ;; >> ERROR) >> exit 2 >> ;; >> FATAL) >> exit 2 >> ;; >> *) >> exit 2 >> ;; >> esac >> >> Thanks, >> >> Allan. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd -------------- 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 From mirde at oppy.com Mon Aug 30 20:20:02 2010 From: mirde at oppy.com (Mirza Dedic) Date: Mon, 30 Aug 2010 11:20:02 -0700 Subject: Help hacking a script to montior my AppServers? Message-ID: I am trying to monitor our OpenEdge Database Application Servers on our AIX box with Nagios, and to send an alert based on a "tricky" situation, described below: The tool that I run locally on the AIX host to check our servers outputs the following: #asbman -name production -query PID State Port nRq nRcvd nSent Started Last Change 2175264 AVAILABLE 15614 006968 007643 008661 Aug 29, 2010 19:03 Aug 30, 2010 11:16 922080 AVAILABLE 15616 002675 002970 003465 Aug 30, 2010 09:22 Aug 30, 2010 11:16 483832 AVAILABLE 15607 001740 001939 002204 Aug 30, 2010 10:02 Aug 30, 2010 11:16 2936902 AVAILABLE 15620 001753 001955 002236 Aug 30, 2010 10:02 Aug 30, 2010 11:16 3658058 AVAILABLE 15623 001742 001921 002190 Aug 30, 2010 10:02 Aug 30, 2010 11:16 3027394 AVAILABLE 15608 001297 001377 001493 Aug 30, 2010 10:21 Aug 30, 2010 11:16 3965150 SENDING 15611 001290 001352 001465 Aug 30, 2010 10:21 Aug 30, 2010 06:12 4186168 AVAILABLE 15615 001300 001379 001549 Aug 30, 2010 10:21 Aug 30, 2010 11:16 2044322 AVAILABLE 15617 001298 001369 001558 Aug 30, 2010 10:21 Aug 30, 2010 11:16 I would want Nagios to raise an alert if State = SENDING for more than 6 hours (Last Change)? Would this be possible? Anyone have an idea of how I would do this? I guess one way would be to make a shell script to output "asbman -name production -query | grep "SENDING" >> status.txt" and have a check log type check read it and raise an error if stuff is found? But it does not exactly implement the "Last Change" date time idea, we will always have PIDs going from AVAILABLE to SENDING and back, but those that are stuck in SENDING for 6+ hours is of concern. Any help on this is appreciated. The Oppenheimer Group ---- CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd -------------- 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 From nagios at herb-j.com Mon Aug 30 20:35:56 2010 From: nagios at herb-j.com (Herb J.) Date: Mon, 30 Aug 2010 14:35:56 -0400 Subject: Help hacking a script to montior my AppServers? In-Reply-To: References: Message-ID: <4C7BFA0C.7030000@herb-j.com> You will have to write your script in a way that it is able to parse the date fields in that output and calculate the difference between that time and the current time.. Is it possible to have that program output UNIX timestamps instead? If not, it will require you to get creative with awk, Perl, shell, etc. scripting to parse the fields properly in order to do the required math to determine how long it has been in that state. Depending on how long that binary takes to run (e.g., if it takes less than a few seconds), you may not need to have it run separately and output data to a text file. You may be able to just have your custom plugin script run it and parse the output directly. On 08/30/2010 02:20 PM, Mirza Dedic wrote: > I am trying to monitor our OpenEdge Database Application Servers on > our AIX box with Nagios, and to send an alert based on a "tricky" > situation, described below: > The tool that I run locally on the AIX host to check our servers > outputs the following: > #asbman --name production --query > PID State Port nRq nRcvd nSent Started Last Change > 2175264 AVAILABLE 15614 006968 007643 008661 Aug 29, 2010 19:03 Aug > 30, 2010 11:16 > 922080 AVAILABLE 15616 002675 002970 003465 Aug 30, 2010 09:22 Aug 30, > 2010 11:16 > 483832 AVAILABLE 15607 001740 001939 002204 Aug 30, 2010 10:02 Aug 30, > 2010 11:16 > 2936902 AVAILABLE 15620 001753 001955 002236 Aug 30, 2010 10:02 Aug > 30, 2010 11:16 > 3658058 AVAILABLE 15623 001742 001921 002190 Aug 30, 2010 10:02 Aug > 30, 2010 11:16 > 3027394 AVAILABLE 15608 001297 001377 001493 Aug 30, 2010 10:21 Aug > 30, 2010 11:16 > *3965150 *_*SENDING*_* ** 15611 001290 001352 001465 Aug 30, *_*2010 > 10:21 Aug 30, 2010 *__*06*__*:*__*12*_* * > 4186168 AVAILABLE 15615 001300 001379 001549 Aug 30, 2010 10:21 Aug > 30, 2010 11:16 > 2044322 AVAILABLE 15617 001298 001369 001558 Aug 30, 2010 10:21 Aug > 30, 2010 11:16 > I would want Nagios to raise an alert if State = SENDING for more than > 6 hours (Last Change)? Would this be possible? > Anyone have an idea of how I would do this? > I guess one way would be to make a shell script to output "asbman > --name production --query | grep "SENDING" >> status.txt" and have a > check log type check read it and raise an error if stuff is found? But > it does not exactly implement the "Last Change" date time idea, we > will always have PIDs going from AVAILABLE to SENDING and back, but > those that are stuck in SENDING for 6+ hours is of concern. > Any help on this is appreciated. > The Oppenheimer Group ---- CONFIDENTIAL > > This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. > > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd -------------- 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 From allanm78 at gmail.com Mon Aug 30 22:16:10 2010 From: allanm78 at gmail.com (newme me) Date: Mon, 30 Aug 2010 13:16:10 -0700 Subject: Nagios script output issue In-Reply-To: References: Message-ID: One more thing I would like to add here , I have 5 URLs check , 2 thru check_http and 3 thru my own curl script and all of them fail at the same time, initially for 2-3 hrs all are returning the right status. The error that I am getting from Nagios(check_http) - "nodename nor servname provided, or not known HTTP CRITICAL - Unable to open TCP socket" is somewhat as if the dns server becomes inaccessible but when I run the commands from the command line, the status is fine. Is there something within Nagios that I need to set/configure? Please help! Thanks, Allan. On Mon, Aug 30, 2010 at 10:47 AM, newme me wrote: > Hi Marc, > > Thanks for your reply, I checked on the multiple process of Nagios but > there is only one running. > > Any other thing you can think of which might be causing this odd behaviour? > > Thanks, > Allan. > > > On Sun, Aug 29, 2010 at 6:12 PM, newme me wrote: > >> Folks, >> >> I switched to "check_http" plugin (official nagios plugin) but that also >> has same problem. >> >> Initially when I start nagios then the status on the Nagios Web interface >> is same as the one returned from commandline. >> >> After some time the status becomes critical but is not as same as the >> commandline. Command line returns the correct status of OK instead of what >> the Nagios web interface shows as "CRITICAL" >> >> Result from commandline(& browser) - >> ./check_http -H xyz.com -p 2222 -u /abc -t 3 >> OK >> >> Result from Nagios Interface - >> nodename nor servname provided, or not known >> HTTP CRITICAL - Unable to open TCP socket >> >> I am thinking that this has something to do with Nagios as the box is >> behaving just fine based on the commandline result(and verified on the URL >> through the browser). >> >> Please help! >> >> Thanks, >> Allan. >> >> >> On Thu, Aug 26, 2010 at 10:26 PM, newme me wrote: >> >>> Hi Folks, >>> >>> Nagios is acting a little weird for me, I have this external script which >>> I hooked into Nagios, it merely does a curl/wget on a URL and returns the >>> status based on string in the content/output. Initially for 2-3 hrs the >>> script returns the right status and Nagios reports correctly i.e. OK, WARN, >>> ERROR based on the exit from the script. After 2-3 hrs output which was (and >>> should be) OK or WARN starts returning CRITICAL and the output line says >>> "Application is" and not even "Application is ERROR" or "Application is >>> FATAL". >>> >>> There is nothing in the logs to suggest what could be the problem. Have >>> you experienced this before and let me know the corrective action. I am >>> running Nagios on Mac OSX. >>> >>> Here is the script for the curious - >>> >>> #!/bin/bash >>> >>> read URL < "$1" >>> >>> STATUS=`curl -s $URL |grep summary|awk -F\" '{print $2}'` >>> echo "Application is $STATUS" >>> echo "curl $URL" >>> >>> case $STATUS in >>> OK) >>> exit 0 >>> ;; >>> WARN) >>> exit 1 >>> ;; >>> ERROR) >>> exit 2 >>> ;; >>> FATAL) >>> exit 2 >>> ;; >>> *) >>> exit 2 >>> ;; >>> esac >>> >>> Thanks, >>> >>> Allan. >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd -------------- 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 From diego.roccia at gmail.com Tue Aug 31 12:22:13 2010 From: diego.roccia at gmail.com (Diego Roccia) Date: Tue, 31 Aug 2010 12:22:13 +0200 Subject: Nagios script output issue In-Reply-To: References: Message-ID: clearly there something wrong with the check configuration. Maybe some duplicated conf. you could debug the script output (see nagios.cfg file) On Mon, Aug 30, 2010 at 10:16 PM, newme me wrote: > One more thing I would like to add here , I have 5 URLs check , 2 thru > check_http and 3 thru my own curl script and all of them fail at the same > time, initially for 2-3 hrs all are returning the right status. > The error ?that I am getting from Nagios(check_http) - "nodename nor > servname provided, or not known?HTTP CRITICAL - Unable to open TCP socket" > is somewhat as if the dns server becomes inaccessible but when I run the > commands from the command line, the status is fine. Is there something > within Nagios that I need to set/configure? > Please help! > Thanks, > Allan. > On Mon, Aug 30, 2010 at 10:47 AM, newme me wrote: >> >> Hi Marc, >> >> Thanks for your reply, I checked on the multiple process of Nagios but >> there is only one running. >> >> Any other thing you can think of which might be causing this odd >> behaviour? >> >> Thanks, >> Allan. >> >> On Sun, Aug 29, 2010 at 6:12 PM, newme me wrote: >>> >>> Folks, >>> >>> I switched to "check_http" plugin (official nagios plugin) but that also >>> has same problem. >>> >>> Initially when I start nagios then the status on the Nagios Web interface >>> is same as the one returned from commandline. >>> >>> After some time the status becomes critical but is not as same as the >>> commandline. Command line returns the correct status of OK instead of what >>> the Nagios web interface shows as "CRITICAL" >>> >>> Result from commandline(& browser) - >>> ./check_http -H xyz.com -p 2222 -u /abc -t 3 >>> OK >>> >>> Result from Nagios Interface - >>> nodename nor servname provided, or not known >>> HTTP CRITICAL - Unable to open TCP socket >>> >>> I am thinking that this has something to do with Nagios as the box is >>> behaving just fine based on the commandline result(and verified on the URL >>> through the browser). >>> >>> Please help! >>> >>> Thanks, >>> Allan. >>> >>> On Thu, Aug 26, 2010 at 10:26 PM, newme me wrote: >>>> >>>> Hi Folks, >>>> >>>> Nagios is acting a little weird for me, I have this external script >>>> which I hooked into Nagios, it merely does a curl/wget on a URL and returns >>>> the status based on string in the content/output. Initially for 2-3 hrs the >>>> script returns the right status and Nagios reports correctly i.e. OK, WARN, >>>> ERROR based on the exit from the script. After 2-3 hrs output which was (and >>>> should be) OK or WARN starts returning CRITICAL and the output line says >>>> "Application is" and not even "Application is ERROR" or "Application is >>>> FATAL". >>>> >>>> There is nothing in the logs to suggest what could be the problem. Have >>>> you experienced this before and let me know the corrective action. I am >>>> running Nagios on Mac OSX. >>>> >>>> Here is the script for the curious - >>>> >>>> #!/bin/bash >>>> >>>> read URL < "$1" >>>> >>>> STATUS=`curl -s $URL |grep summary|awk -F\" '{print $2}'` >>>> echo "Application is $STATUS" >>>> echo "curl $URL" >>>> >>>> case $STATUS in >>>> OK) >>>> ?? exit 0 >>>> ?? ;; >>>> WARN) >>>> ? exit 1 >>>> ? ;; >>>> ERROR) >>>> ? exit 2 >>>> ? ;; >>>> FATAL) >>>> ? exit 2 >>>> ? ;; >>>> *) >>>> ? exit 2 >>>> ? ;; >>>> esac >>>> >>>> Thanks, >>>> >>>> Allan. >> > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > 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 > -- Diego Roccia diego.roccia (at) gmail (dot) com ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ 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 From yu.watanabe at jp.fujitsu.com Tue Aug 31 13:11:26 2010 From: yu.watanabe at jp.fujitsu.com (Yu Watanabe) Date: Tue, 31 Aug 2010 20:11:26 +0900 Subject: Tuning for Passive Check latency In-Reply-To: References: Message-ID: <201008311111.AA02344@S2007337.jp.fujitsu.com> Hello Jim. I apologize for late reply. Please see the attached file for the cpu status of the server. Thank you Yu Watanabe Jim Avery さんは書きました: >2010/8/20 Yu Watanabe : >> Hello Jim. >> >> Again thank you for your reply. >> >> Following are the stats for the command buffer slots: >> >> Program Running Time: ? ? ? ? ? ? ? ? ? 3d 15h 5m 58s >> Nagios PID: ? ? ? ? ? ? ? ? ? ? ? ? ? ? 17527 >> Used/High/Total Command Buffers: ? ? ? ?4 / 4096 / 4096 >> >> it seems that it have already reached the top.... > >Have you set "command_check_interval=-1" yet? > >If Nagios is not checking the external command file frequently enough >I presume it will throw more stuff in to the command buffer. > >You might find it helpful to enable mrtg graphing of your Nagios >stats. http://nagios.sourceforge.net/docs/3_0/mrtggraphs.html > >What is cpu looking like on your system generally? > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >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 > ********************************************************************** 株式会社富士通ソーシアルサイエンスラボラトリ 第二キャリアビジネス本部 システム基盤開発部 渡辺 裕 E-Mail : yu.watanabe at jp.fujitsu.com Tel : 044-739-1570 ********************************************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: server_cpu.log Type: application/octet-stream Size: 8302 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd -------------- 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 From rswerdlow at emergentdiscovery.com Tue Aug 31 18:13:33 2010 From: rswerdlow at emergentdiscovery.com (Robert Swerdlow) Date: Tue, 31 Aug 2010 12:13:33 -0400 Subject: Different notification_interval for warnings and critical notifications? Message-ID: <5275A165-97A3-40D2-A304-AFDD78A941D9@emergentdiscovery.com> With Nagios 3.0.5, we have monitoring of our servers and hosts. Currently, we get warning, unknown, critical, and recovery event notifications sent to our contacts with escalations as expected. We want to change the configuration to get warnings every 30 minutes and other event notifications every 5 minutes with escalations. Unfortunately, notification_interval which controls how often the notification is set can have only one value for each service. The only way I see to do get the warnings and other notifications on different schedules is to have duplicate service checks for every service. Is there any way to do this without duplicating all of the service checks? Thanks, Bob ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ 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 From nagios at flatto.net Tue Aug 31 18:53:26 2010 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 31 Aug 2010 17:53:26 +0100 Subject: Different notification_interval for warnings and critical notifications? In-Reply-To: <5275A165-97A3-40D2-A304-AFDD78A941D9@emergentdiscovery.com> References: <5275A165-97A3-40D2-A304-AFDD78A941D9@emergentdiscovery.com> Message-ID: <4C7D3386.9060908@flatto.net> On 31/08/10 17:13, Robert Swerdlow wrote: > With Nagios 3.0.5, we have monitoring of our servers and hosts. > > Currently, we get warning, unknown, critical, and recovery event > notifications sent to our contacts with escalations as expected. > > We want to change the configuration to get warnings every 30 minutes > and other event notifications every 5 minutes with escalations. > Unfortunately, > notification_interval > which controls how often the notification is set can have only one > value for each service. > > The only way I see to do get the warnings and other notifications on > different schedules is to have duplicate service checks for every > service. > > Is there any way to do this without duplicating all of the service > checks? > > Thanks, > Bob > > > From what you say the changes should be in the escalation notification , with the type of alert defined for each interval *escalation_options*: This directive is used to define the criteria that determine when this service escalation is used. The escalation is used only if the service is in one of the states specified in this directive. If this directive is not specified in a service escalation, the escalation is considered to be valid during all service states. Valid options are a combination of one or more of the following: *r* = escalate on an OK (recovery) state, *w* = escalate on a WARNING state, *u* = escalate on an UNKNOWN state, and *c* = escalate on a CRITICAL state. Example: If you specify *w* in this field, the escalation will only be used if the service is in a WARNING state. http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#serviceescalation -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogtrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd -------------- 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 From diego.roccia at gmail.com Tue Aug 31 19:08:10 2010 From: diego.roccia at gmail.com (diego.roccia at gmail.com) Date: Tue, 31 Aug 2010 17:08:10 +0000 Subject: Different notification_interval for warnings andcritical notifications? In-Reply-To: <5275A165-97A3-40D2-A304-AFDD78A941D9@emergentdiscovery.com> References: <5275A165-97A3-40D2-A304-AFDD78A941D9@emergentdiscovery.com> Message-ID: <1340187545-1283274490-cardhu_decombobulator_blackberry.rim.net-999100707-@bda204.bisx.produk.on.blackberry> you can use service escalations: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#serviceescalation Sent from my BlackBerry? wireless device -----Original Message----- From: Robert Swerdlow Date: Tue, 31 Aug 2010 12:13:33 To: Reply-To: Nagios Users List Subject: [Nagios-users] Different notification_interval for warnings and critical notifications? With Nagios 3.0.5, we have monitoring of our servers and hosts. Currently, we get warning, unknown, critical, and recovery event notifications sent to our contacts with escalations as expected. We want to change the configuration to get warnings every 30 minutes and other event notifications every 5 minutes with escalations. Unfortunately, notification_interval which controls how often the notification is set can have only one value for each service. The only way I see to do get the warnings and other notifications on different schedules is to have duplicate service checks for every service. Is there any way to do this without duplicating all of the service checks? Thanks, Bob ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ 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 ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ 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 From rswerdlow at emergentdiscovery.com Tue Aug 31 20:11:23 2010 From: rswerdlow at emergentdiscovery.com (Robert Swerdlow) Date: Tue, 31 Aug 2010 14:11:23 -0400 Subject: Different notification_interval for warnings and critical notifications? In-Reply-To: <4C7D3386.9060908@flatto.net> References: <5275A165-97A3-40D2-A304-AFDD78A941D9@emergentdiscovery.com> <4C7D3386.9060908@flatto.net> Message-ID: <5DA62D1E-B706-4490-921D-ECC1B430C394@emergentdiscovery.com> Thanks, this saved me a lot of work. On Aug 31, 2010, at 12:53 PM, Assaf Flatto wrote: > On 31/08/10 17:13, Robert Swerdlow wrote: >> >> With Nagios 3.0.5, we have monitoring of our servers and hosts. >> Currently, we get warning, unknown, critical, and recovery event >> notifications sent to our contacts with escalations as expected. >> We want to change the configuration to get warnings every 30 >> minutes and other event notifications every 5 minutes with >> escalations. Unfortunately, notification_interval which controls >> how often the notification is set can have only one value for each >> service. The only way I see to do get the warnings and other >> notifications on different schedules is to have duplicate service >> checks for every service. Is there any way to do this without >> duplicating all of the service checks? Thanks, Bob > From what you say the changes should be in the escalation > notification , with the type of alert defined for each interval > > escalation_options: This directive is used to define the criteria > that determine when this service escalation is used. The escalation > is used only if the service is in one of the states specified in > this directive. If this directive is not specified in a service > escalation, the escalation is considered to be valid during all > service states. Valid options are a combination of one or more of > the following: r = escalate on an OK (recovery) state, w = escalate > on a WARNING state, u = escalate on an UNKNOWN state, and c = > escalate on a CRITICAL state. Example: If you specify w in this > field, the escalation will only be used if the service is in a > WARNING state. > > http://nagios.sourceforge.net/docs/3_0/ > objectdefinitions.html#serviceescalation > -- Never,Ever Cut A Deal With a Dragon Next year I will be doing > the London to Paris bike ride to raise money for the DogTrust > (www.dogtrust.co.uk) . Please Sponsor me at http:// > www.justgiving.com/Assaf-Flatto > ---------------------------------------------------------------------- > -------- > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread- > sfd_______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ 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