[Nagios-users] Hostgroup tricks?
Hello I have a hostgroup defined as: define hostgroup { hostgroup_name ping-servers alias Pingable hosts members * } I have recently added a host outside our firewall that has ping disabled. I have changed the host's check_command to be 'check_tcp!80' so that the host won't be offline permanently, but I am wondering if there is a way to exclude this host from the 'ping-servers' hostgroup in the host definition? Ideally, something like: define host { host_name outsidefirewallhost alias Host outside firewall address some.ip.address use generic-host hostgroup!ping-servers } This generates an error when I test the configuration. The only way I have been able to achieve this is to change the ping-servers hostgroup definition to exclude this individual host (*,!outsidefirewallhost), but I'd rather keep the exclusion define in the host, not in the "blanket rule". Maybe it's just me being OCD... but is this possible? Thanks, Tim -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ 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] Hostgroup tricks?
Hi Mark Sorry for the lack of clarity. Learned a valuable lesson in "don't email before coffee"... :) I was successful in altering the Host Check Command for the individual host - that was clear from the documentation. I am trying to remove this host from the "ping-servers" without altering the definition for the service or the hostgroup. So right now, the service and hostgroup's are defined as: define service { hostgroup_name ping-servers service_description PING check_command check_ping!50.0,20%!100.0,60% use generic-service,graphed-service } define hostgroup { hostgroup_name ping-servers alias Pingable hosts members * } And the new host, outsidefirewallhost, I would like to exclude from the 'ping-servers' service - but without modifying the definitions for the service or the hostrgroup. I have tried Brandon Phelps' suggestion, but as he found out, Nagios doesn't like the negation in the host configuration. I have been successful with this: define hostgroup { hostgroup_name ping-servers alias Pingable hosts members *,!outsidefirewallhost } Should I just get over my personal hang-ups and implement it this way? Thanks again, Tim From: Frost, Mark {PBC} [mailto:mark.fro...@pepsico.com] Sent: Tuesday, November 08, 2011 8:37 AM To: Nagios Users List Subject: Re: [Nagios-users] Hostgroup tricks? From: Tim AtLee [mailto:t.at...@cfertech.com] Sent: Tuesday, November 08, 2011 9:46 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Hostgroup tricks? Hello I have a hostgroup defined as: define hostgroup { hostgroup_name ping-servers alias Pingable hosts members * } I have recently added a host outside our firewall that has ping disabled. I have changed the host's check_command to be 'check_tcp!80' so that the host won't be offline permanently, but I am wondering if there is a way to exclude this host from the 'ping-servers' hostgroup in the host definition? Ideally, something like: define host { host_name outsidefirewallhost alias Host outside firewall address some.ip.address use generic-host hostgroup!ping-servers } This generates an error when I test the configuration. The only way I have been able to achieve this is to change the ping-servers hostgroup definition to exclude this individual host (*,!outsidefirewallhost), but I'd rather keep the exclusion define in the host, not in the "blanket rule". Maybe it's just me being OCD... but is this possible? Thanks, Tim Tim, I'm a little unclear about your question. Are you trying to alter the "Host Check Command" for a single host definition? That is, the method used by Nagios to determine if a host is up or not? If that's the case, you can just override the definition for that one host: define host { host_name outsidefirewallhost alias Host outside firewall address some.ip.address check_command check-tcp-port-80 use generic-host } Check the docs for information on precedence, but your "generic-host" inclusion will specify a check_command (usually ping or better yet fping), but defining a different value in the definition itself can override that for the specific definition. If that's not what you mean, and you want to change a specific service to check everything in that hostgroup except that one host, that would look something like define service { hostgroup_name ping-servers host_name !outsidefirewallhost service_description My Service check_command run-a-ping use generic-service } Hopefully I've understood your question... Mark -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ 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 dhcp
I use check_mk, which included a plugin for monitoring Windows DHCP server: netsh dhcp server show mibinfo | find /V ": dhcp." | find /V "DHCP-Serverversion wurde" | find /V "nicht richtig funktionieren." | find /V ": dhcp server show mibinfo." So, either you could either write a plugin for NSClient++ or get handy with winexe in Linux. Though – a quick glance at the MIB shows the same data.. In the end, that may save you some scripting grief. From: Giles Coochey [mailto:gi...@coochey.net] Sent: Tuesday, January 24, 2012 7:31 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] monitoring dhcp On 2012-01-24 14:00, Perfors, Henny wrote: We’ve a Windows 2008 server with DHCP role. There is an option to display the statics of the scope. Total Addresses .. In Use .. % Available ..% Is it possible to gt these information available in Nagios. Please advise. Thanks! Henry It might be possible via SNMP, ensure you have the windows DHCP MIB loaded, and try walking 1.3.6.1.4.1.311.1.3 and see what is available to you. -- Message sent via my webmail account. -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d___ 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] automating the output
Hi There may be an easier way, but I do this using Check_mk (http://mathias-kettner.de/check_mk.html), and an external script that issues a query to cmk and emails the results. Might be a bit overkill for what you're looking to do. Tim From: Jeevan Mamuduri [mailto:mamuduri.jee...@gmail.com] Sent: Monday, March 12, 2012 3:31 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] automating the output Hi How can we capture first 10 most CPU consuming processes and put that output in the body in the email alerts. Regards Jeevan.Mamuduri -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ 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] Dell OpenManage Server Admin
Good morning Looks like you can get OpenManage 7.0. I have experience with the Nagios plugin working with version 6.5 - any word if it works with 7? I expect that I'll have a considerable delay getting this deployed to all the physical servers, so I'll be operating in a blended mode for a bit.. but I'd like to find out if it works first without breaking things. Anyone have any experience using OMSA 7 and Nagios? Thanks, -- Tim AtLee Network Administrator [cid:image001.jpg@01CD42F6.CB0801A0] 200 Karl Clark Road Edmonton, AB, T6N 1H2 Work: 780 450 8989 #209 Cell: 780 819 3197 <>-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ 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] Include extra information on service alert
Hello Mdadm on one specific host has been reporting failed disks, and falling over to the spare. I get an event notification when this happens (Nagios no longer sees 2 devices in the U state), but I would like to include the output of cat /proc/mdstat with the email notification. I am thinking that the best approach is to write a custom notification command to include this data, but I'm not sure if there are already hooks for this already. I am using Nagios within OMD and CheckMK. Thanks in advance, Tim -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ 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