[Nagios-users] service escalation on all services of all hosts
Hi, I'm having a problem with an example given in the Tips & Tricks documentation page. Currently I'm running: Nagios Core 3.2.0 Anyway, the tip I'm trying is from here http://nagios.sourceforge.net/docs/nagioscore/3/en/objecttricks.html#serviceescalation The particular tip reads: All Services On Same Host: If you want to create service escalations for all services assigned to a particular host, you can use a wildcard in the service_description directive. The definition below would create a service escalation for all services on host HOST1. All the instances of the service escalation would be identical (i.e. have the same contact groups, notification interval, etc.). If you feel like being particularly adventurous, you can specify a wildcard in both the host_name and service_description directives. Doing so would create a service escalation for all services that you've defined in your configuration files. ## So I tried the following: define serviceescalation { nameemail-all first_notification 1 last_notification 0 notification_interval 120 contact_groups ops-group register 0 } define serviceescalation { use email-all host_name * service_description * } And when I go to restart nagios I get the following: Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios3/conf.d/services.cfg', starting on line 34) Error processing object config files! Anyone know why this is a problem? Am I missing something in the documentation, or is it just incorrect? -- Michael Barrett lok...@gmail.com -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ 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] Fwd: Question about NDOUtils DB population
Ok great information, thank you. data_processing_options is -1 (process all) which looks correct. Also the data broker is correct for Nagios 2. My config_output_options are set to 2 however. From what I have read, this would explain why the rest of my database is not getting populated. I will assume I have too much load to run at 1 or 3 for long. What is the correct and lowest impact process for updating the table now? Set the option to 3, reload ndo2db, then set back to 2 and reload again? Will this work, or any other better ways of doing it? Thanks. On 6/6/2011 11:03 AM, Michael Friedrich wrote: > Gene Horodecki wrote: >> Sorry if this is a repost. I jumped the gun and posted before I was a >> >> member of the list and didn't see my emali go through. >> >> >> Hi there, >> >> I have a production environment that runs Nagios + NDOUtils and I got >> called in because the environment got neglected for a year. When I look >> at the NDOUtils database, it looks like someone tried to rebuild it >> because it is populating with statehistory but the hosts, hostgroups, >> and services tables are blank. > make sure config_output_options are set in ndomod.cfg > > furthermore, check data_process_options for config data to be dumped > (and respective nagios.cfg event broker options too) > >> I'd like to try to fill these tables in but I don't really understand >> when NDOUtils populates these tables. I found the original dbconfig >> script but it just creates the schema with no data. Somehow NDOUtils >> still knows what the ids are for the services because the keys are there >> and I might be able to work backwards and populate everything but >> obviously it would be easier to just understand how ndoutils builds the >> data and reproduce it. > the objects table keeps active objects alive, even if the config is not > yet dumped. > >> Thanks for the help! >> >> >> - >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 10.0.1382 / Virus Database: 1511/3684 - Release Date: 06/06/11 >> >> >> -- >> Simplify data backup and recovery for your virtual environment with vRanger. >> Installation's a snap, and flexible recovery options mean your data is safe, >> secure and there when you need it. Discover what all the cheering's about. >> Get your free trial download today. >> http://p.sf.net/sfu/quest-dev2dev2 >> ___ >> 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 >> > -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] Help with Plugins
Greetings, I have only been familiar with Nagios for a few weeks, so please bare with me. I have installed Nagios 3.2.3 with plugins 1.4.15 on Ubuntu Server 10.04. I am currently monitoring a few Windows servers and I would like to monitor switches and routers with check_snmp and check_mrtgtraf found in usr/local/nagios/libexec. I am failing to understand how to take a plugin and turn it into a command, and then a service. Any help with this would be extremely appreciated. Thanks, Mike The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system. -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] Fwd: Question about NDOUtils DB population
Gene Horodecki wrote: > Sorry if this is a repost. I jumped the gun and posted before I was a > > member of the list and didn't see my emali go through. > > > Hi there, > > I have a production environment that runs Nagios + NDOUtils and I got > called in because the environment got neglected for a year. When I look > at the NDOUtils database, it looks like someone tried to rebuild it > because it is populating with statehistory but the hosts, hostgroups, > and services tables are blank. make sure config_output_options are set in ndomod.cfg furthermore, check data_process_options for config data to be dumped (and respective nagios.cfg event broker options too) > I'd like to try to fill these tables in but I don't really understand > when NDOUtils populates these tables. I found the original dbconfig > script but it just creates the schema with no data. Somehow NDOUtils > still knows what the ids are for the services because the keys are there > and I might be able to work backwards and populate everything but > obviously it would be easier to just understand how ndoutils builds the > data and reproduce it. the objects table keeps active objects alive, even if the config is not yet dumped. > Thanks for the help! > > > - > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1382 / Virus Database: 1511/3684 - Release Date: 06/06/11 > > > -- > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > ___ > 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 > -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedr...@univie.ac.at phone: +43 1 4277 14359 mobile: +43 664 60277 14359 fax:+43 1 4277 14338 web:http://www.univie.ac.at/zid http://www.aco.net Icinga Core& IDOUtils Developer http://www.icinga.org -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] Invitation to connect on LinkedIn
LinkedIn anish kumar requested to add you as a connection on LinkedIn: -- Lei, I'd like to add you to my professional network on LinkedIn. - anish Accept invitation from anish kumar http://www.linkedin.com/e/y49s6u-gollr36u-5y/Vg1FBpStI6_M-eFLExlo-pjnfalPIPkLyx3rkqjZdRi1FOrPNoT/blk/I1400141343_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnPcQcP4Qcj0Md359bRlhcCdlj7d5bP4RcPAPcz4OcjcLrCBxbOYWrSlI/EML_comm_afe/ View invitation from anish kumar http://www.linkedin.com/e/y49s6u-gollr36u-5y/Vg1FBpStI6_M-eFLExlo-pjnfalPIPkLyx3rkqjZdRi1FOrPNoT/blk/I1400141343_3/3dvcPgPcjgNc30QckALqnpPbOYWrSlI/svi/ -- DID YOU KNOW you can use your LinkedIn profile as your website? Select a vanity URL and then promote this address on your business cards, email signatures, website, etc http://www.linkedin.com/e/y49s6u-gollr36u-5y/ewp/inv-21/ -- (c) 2011, LinkedIn Corporation-- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] Fwd: Question about NDOUtils DB population
Sorry if this is a repost. I jumped the gun and posted before I was a member of the list and didn't see my emali go through. Hi there, I have a production environment that runs Nagios + NDOUtils and I got called in because the environment got neglected for a year. When I look at the NDOUtils database, it looks like someone tried to rebuild it because it is populating with statehistory but the hosts, hostgroups, and services tables are blank. I'd like to try to fill these tables in but I don't really understand when NDOUtils populates these tables. I found the original dbconfig script but it just creates the schema with no data. Somehow NDOUtils still knows what the ids are for the services because the keys are there and I might be able to work backwards and populate everything but obviously it would be easier to just understand how ndoutils builds the data and reproduce it. Thanks for the help! - No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1382 / Virus Database: 1511/3684 - Release Date: 06/06/11 -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] Reporting emails
Hey guys, I'm fairly new to Nagios and I'm monitoring about 100 hosts, each doing several checks and things are going great. I'd like to take things up a notch by somehow getting emailed report daily and weekly to tell me what host/services where down, when and for how long? In essence I'm trying to create a systems issues report that I can give to my directory to justify my existence.. :) Many thanks. Tristan Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] timeperiods priority
Hello i have set up a customized timeperiod to send the alerts during weekdays only outside work hours (6pm-9am) but If there's one week day that is a public holiday then the alerts should be send 24/24.. I wonder how to make it work 100 i have so far made the following monday to friday18:01:00 - 24:00:00, 00:00:00 - 08:59:00 saturday and sunday 00:00:00 - 24:00:00 may 1 00:00:00 - 24:00:00 january 1 00:00:00 - 24:00:00 would this timeperiod definition do the following; send notification only from 6pm to 9am from monday to friday, except if it's a public holiday in that case it should send at all times. thank you. -- Mario Garcia Ortiz ABSI SA 224 Bd de l'Humanité 1190 Brussels Belgium www.absi.be Tel 00 322 333 40 00 -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] Monitoring Windows Mount Points
> What do you want to monitor exactly? > Here is a reference to what Windows mount points actually are: http://www.techrepublic.com/blog/datacenter/use-mount-points-if-you-run-out-of-windows-drive-letters/383 However, Windows' SNMP implementation does not publish this information so I was wondering if someone is already monitoring it. Hope this helps. Thanks -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] Monitoring Windows Mount Points
From: Kumar, Ashish [mailto:xml.de...@gmail.com] Sent: 06 June 2011 08:53 To: nagios-users ML Subject: [Nagios-users] Monitoring Windows Mount Points Dear fellow Nagios users, I was just wondering if anyone is monitoring Windows mount points? If yes, are there any plugins available for it? I tried searching the archive and Google but couldn't find anything relevant. Any advise/pointers are appreciated. Thanks Hi, What do you want to monitor exactly? Do you want to check if a share is available remotely or are you running the check from the Windows machine? We use Perl scripts running smbclient: $cmd = '/usr/bin/smbclient //' . $host . '/' . $share . ' -U "' . $username . '" "' . $password . '" -c "dir" 2>/dev/null'; In this case this output is the parsed to check for the age of a particular file, but once you have the output you can do what you want with it. So far these are the error codes I am aware of and what they mean: if ($lastLine =~ m/Error NT_STATUS_BAD_NETWORK_NAME/) { print "UNKNOWN: Can't connect to $host\n"; exit 3; } elsif ($lastLine =~ m/NT_STATUS_BAD_NETWORK_NAME/) { print "UNKNOWN: Can't find share $share\n"; exit 3; } elsif ($lastLine =~ m/NT_STATUS_ACCESS_DENIED/) { print "UNKNOWN: Could not connect to $host, is SMB enabled and $share shared?\n"; exit 3; } elsif ($lastLine =~ m/NT_STATUS_LOGON_FAILURE/) { print "WARNING: Username/Password incorrect\n"; exit 1; } elsif ($lastLine =~ m/NT_STATUS_ACCOUNT_LOCKED_OUT/) { print "CRITICAL: Account Locked\n"; exit 2; } elsif ($lastLine =~ m/NT_STATUS_CONNECTION_REFUSED/) { print "UNKNOWN: Connection refused.\n"; exit 3; } Hope this helps. Kris Kristan Webb BSc Broadcast Engineer, Projects http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] Monitoring Windows Mount Points
Dear fellow Nagios users, I was just wondering if anyone is monitoring Windows mount points? If yes, are there any plugins available for it? I tried searching the archive and Google but couldn't find anything relevant. Any advise/pointers are appreciated. Thanks -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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