[Nagios-users] Missing notifications?
I've just finished a fresh install of nagios, and for some reason, I get emails about acknowledgments of problems, (i'm rebooting servers to test how long it takes for the notification to come through), instantly, but I'm not actually getting emails about the problems?! I've checked the configuration via the nagios web interface, and the correct email address is listed. Is there more than one place to configure notifications to an admin? I'm finding this a touch disturbing, and I'm hoping that it's because I've got a misconfiguration in the system, rather than some sort of default behavior. I would pretty much want to be notified instantly every time there is a problem, at least until such time that I can find problems with my systems fix them, and then tweak notifications as required. I guess the bottom line is, why are acknowledgment emails being sent, but not warnings, and criticals? -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Missing notifications?
Mister IT Guru wrote: I guess the bottom line is, why are acknowledgment emails being sent, but not warnings, and criticals? What are host_notification_options and service_notification_options set to in your contact definition? -- -Chris -- Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Missing notifications?
On Mon, 03 Jan 2011 14:57:44 +, Mister IT Guru misteritg...@gmx.com wrote: I've just finished a fresh install of nagios, and for some reason, I get emails about acknowledgments of problems, (i'm rebooting servers to test how long it takes for the notification to come through), instantly, but I'm not actually getting emails about the problems?! Check the log file(s). It should show all the details you need. Hugo. -- hvdko...@vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Missing notifications?
On 03/01/2011 15:10, Chris Beattie wrote: Mister IT Guru wrote: I guess the bottom line is, why are acknowledgment emails being sent, but not warnings, and criticals? What are host_notification_options and service_notification_options set to in your contact definition? This is my contact definition define contact{ contact_namenagiosadmin; Short name of user usegeneric-contact; Inherit default values from generic-contact template (defined above) alias Nagios Admin; Full name of user email me-thead...@domain.com; * CHANGE THIS TO YOUR EMAIL ADDRESS ** host_notifications_enabled1 service_notifications_enabled1 service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r host_notification_options d,u,r } -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Missing notifications?
On 03/01/2011 14:57, Mister IT Guru wrote: I've just finished a fresh install of nagios, and for some reason, I get emails about acknowledgments of problems, (i'm rebooting servers to test how long it takes for the notification to come through), instantly, but I'm not actually getting emails about the problems?! I've checked the configuration via the nagios web interface, and the correct email address is listed. Is there more than one place to configure notifications to an admin? I'm finding this a touch disturbing, and I'm hoping that it's because I've got a misconfiguration in the system, rather than some sort of default behavior. I would pretty much want to be notified instantly every time there is a problem, at least until such time that I can find problems with my systems fix them, and then tweak notifications as required. I guess the bottom line is, why are acknowledgment emails being sent, but not warnings, and criticals? I was directed in the irc forum to look at http://nagios.sourceforge.net/docs/3_0/statetypes.html and I learned that services or hosts need to have a hard state failure, in order for notifications to go out. I've been trying to reboot my servers in order to get my notifications to go out. I'd like to check that I'll actually get notifications as soon as there is a problem, for example, a host goes offline, I'd like to know after about 2 minutes if possible! -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Missing notifications? [SOLVED]
On 03/01/2011 19:14, Mister IT Guru wrote: On 03/01/2011 14:57, Mister IT Guru wrote: I've just finished a fresh install of nagios, and for some reason, I get emails about acknowledgments of problems, (i'm rebooting servers to test how long it takes for the notification to come through), instantly, but I'm not actually getting emails about the problems?! I've checked the configuration via the nagios web interface, and the correct email address is listed. Is there more than one place to configure notifications to an admin? I'm finding this a touch disturbing, and I'm hoping that it's because I've got a misconfiguration in the system, rather than some sort of default behavior. I would pretty much want to be notified instantly every time there is a problem, at least until such time that I can find problems with my systems fix them, and then tweak notifications as required. I guess the bottom line is, why are acknowledgment emails being sent, but not warnings, and criticals? I was directed in the irc forum to look at http://nagios.sourceforge.net/docs/3_0/statetypes.html and I learned that services or hosts need to have a hard state failure, in order for notifications to go out. I've been trying to reboot my servers in order to get my notifications to go out. I'd like to check that I'll actually get notifications as soon as there is a problem, for example, a host goes offline, I'd like to know after about 2 minutes if possible! I've discovered the problem, my systems didn't seem to be down long enough for a notification to be fired off, the services, and the host came back online before max_check_attempts had been hit. I've made modifications to my templates, and voila - I'm getting notifications. Thanks to the IRC guys, and mailing list advice which helped me solve this. -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ 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] Missing notifications?
I was directed in the irc forum to look at http://nagios.sourceforge.net/docs/3_0/statetypes.html and I learned that services or hosts need to have a hard state failure, in order for notifications to go out. I've been trying to reboot my servers in order to get my notifications to go out. I'd like to check that I'll actually get notifications as soon as there is a problem, for example, a host goes offline, I'd like to know after about 2 minutes if possible! Then just turn a server off and wait a bit... ;-) You could also create a fake host, one with an unpingable IP address. As for how much time it takes to notify once the host/service becomes unresponsive, these three definitions (outside of any separate escalation policies) will dictate how fast the first alert will go out: max_check_attempts normal_check_interval retry_check_interval In your case, you'd probably want to set max_check to '2' and normal and retry to '1'. In this case, assuming interval_length=60, the host (or service) would be checked every minute. When the host becomes unreachable/down, the host would then be rechecked once, one minute after it first becomes unreachable/down. If it was still down, the state would then become 'hard' and an alert sent. Total time before alert was sent could be anywhere from 61 seconds to two minutes, depending on when the host is first checked after it goes down. You really need to read the object definitions in the Nagios documentation. -- James Moseley -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl___ 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] Missing notifications?
On 1/3/11 11:53 AM, James Moseley wrote: I was directed in the irc forum to look at http://nagios.sourceforge.net/docs/3_0/statetypes.html and I learned that services or hosts need to have a hard state failure, in order for notifications to go out. I've been trying to reboot my servers in order to get my notifications to go out. I'd like to check that I'll actually get notifications as soon as there is a problem, for example, a host goes offline, I'd like to know after about 2 minutes if possible! Then just turn a server off and wait a bit... ;-) You could also create a fake host, one with an unpingable IP address. My favorite trick, that doesn't require adding fake config or rebooting a server, is updating /etc/hosts on the monitoring host to point a real host at a known bad ip address. Requires root, and that you use dns for your hostaddress entries, however. -- Mike Lindsey -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl___ 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