[Nagios-users] Long output for NRPE 2.14
Has anyone had success porting the multi-line patch to NRPE 2.14? Specifically: https://dev.icinga.org/attachments/113/nrpe_multiline.patch I had success in 2.12, and 2.13, but 2.14 seems to break with the same patch content. 2.14 seems to include some rather critical patches, so I'd like to migrate to it, but don't want to lose the long output support provided by the above patch! Thanks! Adam. ___ This email may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this email or the information it contains by other than an intended recipient is unauthorized. If you received this email in error, please advise the sender (by return email or otherwise) immediately. You have consented to receive the attached electronically at the above-noted email address; please retain a copy of this confirmation for future reference. Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce courriel ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez en aviser l'expéditeur immédiatement, par retour de courriel ou par un autre moyen. Vous avez accepté de recevoir le(s) document(s) ci-joint(s) par voie électronique à l'adresse courriel indiquée ci-dessus; veuillez conserver une copie de cette confirmation pour les fins de reference future. -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] parsing tac.cgi output
Thanks for the suggestions! --Andy On Jan 3, 2013, at 3:09 AM, Páll Guðjón Sigurðsson wrote: > Hi andy, > > as for the tac.cgi i think your best bet is to parse the html. > > Alternatively if you have pynag installed on the nagios server you can use > this script: > > import pynag.Parsers > s = pynag.Parsers.status() > s.parse() > > all_services = s.data['servicestatus'] > unhandled_problems = [service for service in all_services if > service['current_state'] != '0' and service['problem_has_been_acknowledged'] > == '0' ] > > print len(unhandled_problems) > > > > If your script is not running on the nagios server itself, consider using > mklivestatus to get the total number of problems (either shell script or > pynag) > > Kind regards, > Pall Sigurdsson > > > - Original Message - > From: "Andy Moran" > To: "Nagios Users List" > Sent: Wednesday, January 2, 2013 7:00:41 PM > Subject: [Nagios-users] parsing tac.cgi output > > > Does tac.cgi have a way to output JSON or XML or another machine-parsable > output? > > Specifically I'm looking to have an external script query the number of > un-acknowledged critical problems in the nagios cluster. > > > Apologies if this has been asked before. > > Cheers! > > --Andy > > -- > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] SSL SNI option not returning expected results
I recently updated my nagios plugins to version 1.4.16 so that I could verify certificates for one of our Apache servers using SNI. After successfully compiling the plugins and restarting nagios the check_http plugin is still not verifying the SSL certificate based on the service url. I am trying these commands from the terminal just to verify they are working before deploying nagios checks. Here is the command I am using to test the connection (obviously the hostename and URL were changed just because I'm paranoid) ./check_http --sni --ssl -H MY.APACHE.HOSTENAME -C 8 -u URL1.FOR.SERVICE This returns the certificate information that is installed for the host instead of the service. Is there something I'm doing wrong with this check? Does the nagios host need to be SNI aware some how? Thanks for the help -- Justin Garrison Systems Administrator -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Inconsistency of Nagios
On 1/3/2013 9:06 PM, C. Bensend wrote: >> If I understand correctly, I should create some plugin to kill all >> dependency process on a periodic interval. In my observation I did not see >> multiple parent process. > My recommendation was to write a plugin to *detect* multiple parents, > not kill them. > >> Currently what I observe is whenever I see such sluggishness then I stop >> nagios service cleanup checkresult directory and start nagios again. Can you explain a little bit more on having to clean up the checkresult directory? You shouldn't ever have to do this manually, Nagios reaps the results from this directory every X number of seconds as defined in nagios.cfg. How large is your installation? What are the permissions on the leftover files in this directory? If the checkresults directory perpetually grows in the number of files, then that would probably explain the sluggishness, because directory scan alone would make Nagios have to work much harder... > However, with your further note above, I don't think you're getting > multiple daemons running. > > Forgive me, I don't recall the full details of your installation - > are you running any sort of NDO module? NDOUtils? Are you processing > perfdata? If so, via what mechanism? > > -- Mike Guthrie Technical Team ___ Nagios Enterprises, LLC Email: mguth...@nagios.com Web:www.nagios.com -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Tweaking Socket timeout
Hi Paul, Paul Dubuc, Mittwoch, 2. Januar 2013: > Service and host check plugins are responsible for implementing their > own timeouts, not Nagios. This socket timeout must be specific to the > plugin you are using for the service. The timeouts in nagios.cfg are > backstops that prevent "stuck" plugins from tying up Nagios resources. > You should look at the command or service definition in your other > config files and/or the plugin itself to see where and how this timeout > is defined. thanks, this was the clue. I now changed the command definition to a timeout of 10 secs, and see - the service isn't flapping anymore. Thanks again! -- Andre Tann -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null