Re: [Nagios-users] Email Configuration
On 25 Aug 2013, at 15:59, bharat Varandani varandani_bharat...@yahoo.com wrote: I want to Configure Email service in nagios. So I want tips to configure email in nagios..Hey Guyz help me to configure email services in nagios. Here's a good tip - read the documentation. If you've got specific issues, this list is a good resource, but it's only good manners to have tried the basics yourself first. Kindest regards, Niall O Broin signature.asc Description: Message signed with OpenPGP using GPGMail -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk___ 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] check_http SSL cert. date format
Making the date format for check_http --ssl configurable has been requested for quite a while now, but it hasn't seemed to bother any committers enough to ever fix it. I fixed it a while ago on my local copy of check_http (didn't make it configurable - just hard coded what I wanted in place of the hard coded us format) but today I decided I'd make it configurable. It'd be nice if it'd just read a date_format= line from nagios.cfg but it seems that nagios plugins exist in quite a separate universe from nagios and that isn't easy - I'd be delighted if somebody would tell me I'm wrong. So, I've made each of check_http, check_smtp and check_tcp now take a --date-format flag, with allowed values the same as those in the nagios config file i.e. us (MM-DD- HH:MM) euro(DD-MM- HH:MM) iso8601 (-MM-DD HH:MM) strict-iso8601 (-MM-DDTHH:MM) Note that I've dropped the seconds value as it's apparently not available. They also take a short option of -o which was decided on from the few available in each of check_http, check_smtp and check_tcp . Is there any interest in taking these changes back into the plugins source? If so, who would I send them to? I made the changes in a copy of nagios-plugins-1.4.16-89-gbfe6 and I just cloned the git repository and see there are quite some changes in that compared to nagios-plugins-1.4.16-89-gbfe6, but I doubt it'd be too much effort for me to redo my changes in the current git tree. Kindest regards, Niall O Broin signature.asc Description: Message signed with OpenPGP using GPGMail -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___ 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] Checking for a string with spaces with check_http in 3.5 / 4.0
I am currently running 3.2.1 (version packaged with Debian squeeze) quite happily but I want to migrate to a new server so I decided I'd move to 4.0 as well. I compiled 4.0.0-beta1 and after a bit of a slog finally have it mostly working. I'm currently trying to get check_http to check for strings with embedded spaces e.g. check that a page includes the string My Wonderful Web Site but for the life of me I can NOT get it to work. On 3.2.1 I have this command definition define command{ command_namecheck_http_string command_line/usr/lib/nagios/plugins/check_http -H $ARG1$ -w $ARG2$ -c $ARG3$ -s $ARG4$ } and service definitions which include check_command lines like this: check_command check_http_string!my.wonderfulwebsite.com!60!90!\My Wonderful Web Site\ and that works as expected, but the exact same thing does not work in 4.0.0 I have tried single quotes, and double quotes, in both the command definitions and the service definitions. Seeing the error messages in the services seemed to indicate that the quotes were getting included in the string, hence not matching, I changed to escaping the spaces in the service definitions and this worked, somewhat. I'm testing 4 services with check_http_string of which 3 are identical frontends to the same website and yet of those 4 services, all but one fails, and the one is one of the three identical servers. As this struck me as more than a little bizarre, I decided to give the latest stable Nagios, 3.5.0, a try. With that I was able to use the same config files as with 4.0.0 and now, all 4 services pass. Apart from what do you expect from beta software can anybody make any suggestions? Kindest regards, Niall O Broin -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ 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] Nagios showing OK for service which is in CRITICAL state
Had a bit of a panic this morning to get into the office and see that an SSL cert. had expired. By pure good luck I was in work very early so I got moving on a new cert. and having done that, I headed off to my Nagios status page because I was pretty sure that I had a check for this cert. in place. Sure enough, I did, but Nagios wasn't displaying an alert for its expiry, nor had it warned me that it was about to expire. I opened up the Services page and there I saw the following line, just as green as any of the others: SSL cert. YOUR-DOMAIN OK 2012-11-23 08:28:58 207d 17h 2m 26s 1/4 CRITICAL - Cannot make SSL connection Now HOW on earth can Nagios be displaying CRITICAL - Cannot make SSL connection in the Status Information column while simultaneously showing OK in the Status column ? Kindest regards, Niall O Broin -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ 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] Nagios showing OK for service which is in CRITICAL state
On 23 Nov 2012, at 11:06, Assaf Flatto nag...@flatto.net wrote: On 23/11/12 07:38, Niall O Broin wrote: Had a bit of a panic this morning to get into the office and see that an SSL cert. had expired. By pure good luck I was in work very early so I got moving on a new cert. and having done that, I headed off to my Nagios status page because I was pretty sure that I had a check for this cert. in place. Sure enough, I did, but Nagios wasn't displaying an alert for its expiry, nor had it warned me that it was about to expire. I opened up the Services page and there I saw the following line, just as green as any of the others: SSL cert. YOUR-DOMAIN OK2012-11-23 08:28:58 207d 17h 2m 26s 1/4 CRITICAL - Cannot make SSL connection Now HOW on earth can Nagios be displaying CRITICAL - Cannot make SSL connection in the Status Information column while simultaneously showing OK in the Status column ? What plugin are you using ? it could be that the text returned from the check includes the Critical string but the execution exit code is 0 and hence translated as OK by nagios My bad - I should have mentioned that I had already checked that - I am using the standard check_http plugin. But your asking that has anyway solved the problem, because it jogged my mind somehow. The check_http plugin outputs dates in U.S. format, and this is not configurable. I had a command definition which passed the output of the plugin through, so what Nagios was getting back was the result code from sed and not from the plugin. I've now written a little wrapper script which saves the result code and all is now sweetness and light. It would be nice if check_http's date output format were configurable :-( Kindest regards, Niall O Broin -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ 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] Is there a plugin available that will log into a website and navigate through it?
On 25 Nov 2011, at 17:01, Andrew Thompson wrote: Joerg – thankyou that looks just the job! What was the plugin you were thanking Joerg for? I saw your question, but didn't see his reply. Maybe he replied off-list. Kindest regards, Niall O Broin -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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] Keeping the Nagios Configuration Sane
On 10 Mar 2010, at 18:58, David Wallis wrote: I manage the Nagios installation for 3 different domains at work, each domain with several hundred servers and clients. I quickly reached the There's got to be a better way! point when trying to maintain configuration files that were getting pretty big. I was using all the tricks listed in the Nagios docs, but it was still pretty crazy. The approach I took was to write a configuration generator program that uses a meta-config file to generate the hosts.cfg, hostgroups.cfg and services.cfg config files. The meta-config file allows one to set up cascading configuration variables, and then has one line per monitored host, that includes things like host groups, parents, etc, and then a list of services to monitor. I also created the idea of meta-services that allow the program to generate configuration data for any number of related services with a single service name in the meta-config file. For instance, including the service weball will cause the configuration generator to create service entries for every plumbed interface on the web server, checks for every virtual server (http and https), and checks for every SSL cert that it finds. In one domain, a 400 line meta-config file generates a 20,000 line services.cfg file. Rather than updating individual config files, I just update the meta-config file and then regenerate all of the *.cfg files. I've been using this for several years with very good results. That sounds very interesting David. Is it something you can share with the community? __ Kindest regards, Niall O Broin -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ 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] Playing alert sounds in Safari
Is this possible at all? When I have an active alert, which should play a sound, I get this popup when I visit the tactical overview page: Safari can't find the Internet plugin. The page Nagios has content of MIME type application/wav. Because you don't have a plug-in installed for this MIME type, this content can't be displayed. However, I DO have such a plugin installed - Quicktime, and it plays wav files just nicely, and if I use Safari to get /media/hostdown.wav from my nagios server, it plays just nicely. I got that file with wget and I noticed that the MIME type it was sent with was audio/x-wav so I edited the binary of tac.cgi to send audio/x- wav rather than application/wav (yes, I know, but it was quicker than getting the source, and building it, just to try this out) but although that got rid of the warning pop up, it still got me no sound. Any ideas to make Safari (ver. 4 beta) talk to me? Kindest regards, Niall O Broin -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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] Can you not check a certain hostgroup?
On 16 Apr 2009, at 15:10, Marc Powell wrote: 2009/4/16 Andrew Bruce abr...@hope-st.ath.cx: hostgroup_name Win_All, !WinNT_old You can indeed do that. I do something similar myself to check all Wintel servers, but not those in a group called 'BRONZE'. And the doc link for reference -- http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service Marc answered me in similar vein recently, and I am now using it, but I made a rather odd discovery. This host_name !host17, host* works whereas this host_name host*, !host17 produces this error at start: Reading configuration data... Error: Could not find any host matching '!host17' (config file '/etc/ nagios3/conf.d/MM-snmp-checks.cfg', starting on line 49) Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios3/conf.d/MM-snmp-checks.cfg', starting on line 49) *** One or more problems was encountered while processing the config files... It seems that you can't place a negative match after a wildcard. __ Kindest regards, Niall O Broin MakaluMedia Group | http://makalumedia.com | +49 6151 8724600 MakaluMedia Internet Engineering Services GmbH | Robert-Bosch Strasse 7 | 64293 Darmstadt | Germany Geschäftsführer: Matt Henderson | Sitz der Gesellschaft: Darmstadt | Handelsregister: Amtsgericht Darmstadt HRB 6911 -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ 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] Hostnames and regex
On 9 Apr 2009, at 13:14, Marc Powell wrote: On Apr 8, 2009, at 6:05 PM, Niall O Broin wrote: Is there a way of doing what I want, apart from the obvious one of renaming the hosts which I don't want to match the regex? Yes, I expect the following will work. http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service Sounds perfect Marc - but yet with this in the config define service{ use generic-service host_name host*,!host17 service_description Total Processes check_command snmp_procs!120!150 } I get this error Reading configuration data... Error: Could not find any host matching '!host17' (config file '/etc/ nagios3/conf.d/MM-snmp-checks.cfg', starting on line 43) Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios3/conf.d/MM-snmp-checks.cfg', starting on line 43) Any more ideas? Kindest regards, Niall O Broin -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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] Hostnames and regex
I recently changed a Nagios configuration to use a regex with hostnames but it hasn't been entirely satisfactory. I have e.g. define service{ use generic-service host_name host* service_description Total Processes check_command snmp_procs!120!150 but for some hosts, I need to use different thresholds. I tried to use define service{ use generic-service host_name hostNN service_description Total Processes check_command snmp_procs!200!250 but hostNN still alerts based on the host* thresholds. I tried placing the definition for host NN before AND after the host* definition - it made no difference. From what I read of Nagios regex, they're not full regex so it wouldn't be possible to write one which matched host* but didn't match hostNN. Is there a way of doing what I want, apart from the obvious one of renaming the hosts which I don't want to match the regex? __ Kindest regards, Niall O Broin MakaluMedia Group | http://makalumedia.com -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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] Best practice for monitoring virtual machine (OpenVZ)
On 22 Jul 2008, at 14:32, howard chen wrote: We have servers hosting virtual machines (around 10-20 per real server), we are using OpenVZ (a kind of container based VM), we are very satisfied with the VM performance currently. Now, we are planning to add monitoring to each VM as well as the host itself, this come to a problem, because if I install each VM with their own nagios, seems there will be quite a lot of overheads in total.. So I want to ask if anyone here is using nagios with VM and can share about some tricks in deployment? We use Nagios to monitor a number of servers running Xen, and to monitor the Xen VMs. There's no question of installing Nagios in each VM, just as you don't need to install Nagios on each real server you monitor. Instead, you have to install something which can respond to Nagios queries on each VM. We choose to run snmpd on each VM but you can use other methods too. If you instead don't want to run anything on the VMs then you'd be restricted to running some scripts on the hos which tell you the status of the VMs - perhaps somebody already has a plugin to do that. Kindest regards, Niall O Broin - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Sidebar disappearing in Firefox
On 3 Jul 2008, at 14:33, Tony Rice (trice) wrote: I've noticed the same thing over the last day or two as well. It's odd because the Nagios frames aren't anything special and I've not noticed it happening on any other websites that use frames. Have you tried disabling any add-ons in FireFox to see if that makes any difference. No, I haven't because it happens rather rarely, and the fix is to restart FF (which I don't like to do as I usually have a metric shitload of open sites). Disabling an extension would require the same restart cycle, and then the problem would be gone - but I'd have no idea if the extension caused it or not. Niall - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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] Sidebar disappearing in Firefox
On 2 Jul 2008, at 18:53, Andy Shellam wrote: Are you talking about Nagios' sidebar (e.g. the navigation links) or Firefox's sidebar (e.g. Bookmarks/History?) I have seen this issue in other multi-frame websites in Firefox, so it's not just specific to Nagios. My website CMS uses frames, and it happens occasionally with it as well. I've only been running Firefox 3 since it was released a couple of weeks ago, but I haven't seen it happen in FF3 yet. I'm talking about the Nagios navigation sidebar, and I've seen it happen with FF2 and FF3 Niall - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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] Sidebar disappearing in Firefox
I'm running 3.0 on Debian Etch via backports. I occasionally see a presentation problem with Firefox (was 2, now 3) on OS-X such that the front page loads correctly but when I select any monitoring page from the sidebar, that page also loads correctly but without the navigation sidebar. The only way I have found to restore normal behaviour is to restart Firefox, which is of course a bit tedious. Do any of you have any suggestions? Kindest regards, Niall O Broin - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] Sidebar disappearing in Firefox
On 1 Jul 2008, at 10:33, Hugo van der Kooij wrote: | I'm running 3.0 on Debian Etch via backports. I occasionally see a | presentation problem with Firefox (was 2, now 3) on OS-X such that the | front page loads correctly but when I select any monitoring page from | the sidebar, that page also loads correctly but without the navigation | sidebar. | | The only way I have found to restore normal behaviour is to restart | Firefox, which is of course a bit tedious. Do any of you have any | suggestions? It sounds like a bug in the browser. Do you have any odd settings in there? Not that I know of, no. If a browser setting were causing it, surely I should see it all the time, and I don't - it's only an occasional visitor, and I've only seen it in Firefox, not Safari (though I do look at Nagios more with FF than Safari). I'm quite prepared to believe it's a browser issue, but I'm wondering if anybody else has seen it. Kindest regards, Niall O Broin - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] Sidebar disappearing in Firefox
On 1 Jul 2008, at 10:49, Daniel López wrote: Not that I know of, no. If a browser setting were causing it, surely I should see it all the time, and I don't - it's only an occasional visitor, and I've only seen it in Firefox, not Safari (though I do look at Nagios more with FF than Safari). I'm quite prepared to believe it's a browser issue, but I'm wondering if anybody else has seen it. it seems to me that the side bar is rolled up... did you press Av Pag o Re Pag keybord keys?? Not that I know of. I've just tried pressing PageUp and PageDown (I hope that's what Av Pag o Re Pag are) and they had no effect whatsoever. Kindest regards, Niall O Broin - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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