Re: [Nagios-users] Nagios Reboot Notification
NagEventLog works with the Nagios NSCA server. I use NagEventLog on all our windows servers for EventLog monitoring. Works like a champ. -- Mat W. - http://www.techadre.com Date: Thu, 18 Jun 2009 13:11:59 -0700 From: teckad...@gmail.com To: cschneem...@suse.de CC: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios Reboot Notification So from the looks of it, this will only work with linux/unix boxes. Is this accurate? I did a bit of research on NSCA and I see a client-side configuration needed but I see it only for Linux. I know there area few posts on this stating to use NSCA_Win32client. Has anybody ran the NSCA_Win32client? Successful? I'm still looking for some documentation and setup instructions. On Thu, Jun 18, 2009 at 4:32 AM, Christian Schneemann wrote: Hi, On Thursday June 11 2009 09:14:06 pm Kevin Mitnikc wrote: > Hello everybody, > [...] > > How is everybody monitoring server reboots. I've used Whats Up Gold in the > past, and it would notify me right away. There has to be a way to monitor > reboots and get a notification of that reboot. Many people have suggested > I use scripts, but I don't know how to write scripts. > > Any help or direction would be much appreciated! you could monitor it by passive checks with NSCA. Simply tell the nagios server that the server is up in a regular time. And if someone triggers a reboot tell the nagios server that this happened. I assume you are asking for linux/unix servers? Then you could simply add send_nsca call to the reboot/halt script (before network will be shut down ;) and send a message to nagios, that the server reboots/shuts down. Greetings, Christian > > > Cheers, > > Kevin M. -- Christian Schneemann - SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 Nürnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneem...@suse.de - SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG Nürnberg) -- 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 _ Microsoft brings you a new way to search the web. Try Bing™ now http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1-- 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] Nagios Reboot Notification
So from the looks of it, this will only work with linux/unix boxes. Is this accurate? I did a bit of research on NSCA and I see a client-side configuration needed but I see it only for Linux. I know there area few posts on this stating to use NSCA_Win32client. Has anybody ran the NSCA_Win32client? Successful? I'm still looking for some documentation and setup instructions. On Thu, Jun 18, 2009 at 4:32 AM, Christian Schneemann wrote: > Hi, > On Thursday June 11 2009 09:14:06 pm Kevin Mitnikc wrote: > > Hello everybody, > > > [...] > > > > How is everybody monitoring server reboots. I've used Whats Up Gold in > the > > past, and it would notify me right away. There has to be a way to > monitor > > reboots and get a notification of that reboot. Many people have > suggested > > I use scripts, but I don't know how to write scripts. > > > > Any help or direction would be much appreciated! > you could monitor it by passive checks with NSCA. Simply tell the nagios > server that the server is up in a regular time. And if someone triggers a > reboot tell the nagios server that this happened. > I assume you are asking for linux/unix servers? Then you could simply add > send_nsca call to the reboot/halt script (before network will be shut down > ;) > and send a message to nagios, that the server reboots/shuts down. > > Greetings, >Christian > > > > > > Cheers, > > > > Kevin M. > > > > -- > Christian Schneemann > > - > SUSE LINUX Products GmbH, > Maxfeldstr. 5, D - 90409 Nürnberg > > Phone: +49 (0)911 - 740 53 0 > e-mail: cschneem...@suse.de > - > SUSE LINUX Products GmbH, GF: Markus Rex > HRB 16746 (AG Nürnberg) > > > -- > 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 > -- 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] Nagios Reboot Notification
Hi, On Thursday June 11 2009 09:14:06 pm Kevin Mitnikc wrote: > Hello everybody, > [...] > > How is everybody monitoring server reboots. I've used Whats Up Gold in the > past, and it would notify me right away. There has to be a way to monitor > reboots and get a notification of that reboot. Many people have suggested > I use scripts, but I don't know how to write scripts. > > Any help or direction would be much appreciated! you could monitor it by passive checks with NSCA. Simply tell the nagios server that the server is up in a regular time. And if someone triggers a reboot tell the nagios server that this happened. I assume you are asking for linux/unix servers? Then you could simply add send_nsca call to the reboot/halt script (before network will be shut down ;) and send a message to nagios, that the server reboots/shuts down. Greetings, Christian > > > Cheers, > > Kevin M. -- Christian Schneemann - SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 Nürnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneem...@suse.de - SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG Nürnberg) -- 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] Nagios Reboot Notification
One way to check on a system reboot I've used before is with NagEventLog. We use NagEventLog to look for certain errors posted to the system/app eventlogs. Note these are "passive" checks so how soon you get notified will depend on the configuration of said passive checks as well as Nagios config. NagEventLog is reasonably configurable to filter our or only look for specific events such as an "unexpected shutdown". -- Mat W. http://www.techadre.com Date: Thu, 11 Jun 2009 16:29:40 -0700 From: teckad...@gmail.com To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios Reboot Notification Marc, I don't think this will work for me ...reason being Nagios will do its check, lets say every minute. If the server reboots unexpectedly and comes up in between that check period, Nagios will never see the reboot. I could be wrong, but is that not accurate? Other application will notify you as soon as the server shuts down or reboots. Is this because its being monitored differently or different checks are being executed. As a Nagios newb, it seems that Nagios has cycles of running checks that the user defines. But I would like to try you suggestion. Will I simply add the define command in the commands.cfg config file and then reference that with the check_command in the hosts.cfg file? Thanks, Kevin M. _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009-- 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] Nagios Reboot Notification
> Sure it will. uptime is a counter that increases from 0 to infinity > (essentially) and resets on reboot. The snmp check I use says > that if that counter is less than 50,000ms (~8.3 minutes), > show a WARNING. If you check every minute, you'd see a > WARNING status for 7 or 8 minutes, then a reset to OK. You're pretty lucky if your box reboots inside a minute -- it takes about 2 minutes for most of our boxes to get through POST! > them) or that it's checking _very_ frequently. There's no > magic 'some box just rebooted' > protocol... Hmm, a trap coming from the PSU (sudden current change), or switch (link going down then up) Most monitoring systems I've seen use uptime, keep a track of the last value, and the time it happened, then alert if that value resets to close to zero (or even if it returns outside of a predicted range). The reason you keep a track of the value is to avoid broken alerts when the snmp counter rolls over. 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. -- 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] Nagios Reboot Notification
On Jun 11, 2009, at 6:29 PM, Kevin Mitnikc wrote: > Marc, > > I don't think this will work for me ...reason being Nagios will do > its check, lets say every minute. If the server reboots > unexpectedly and comes up in between that check period, Nagios will > never see the reboot. I could be wrong, but is that not accurate? Sure it will. uptime is a counter that increases from 0 to infinity (essentially) and resets on reboot. The snmp check I use says that if that counter is less than 50,000ms (~8.3 minutes), show a WARNING. If you check every minute, you'd see a WARNING status for 7 or 8 minutes, then a reset to OK. > Other application will notify you as soon as the server shuts down > or reboots. Is this because its being monitored differently or > different checks are being executed. I have no idea. I presume that these applications are receiving traps from the device (and it is configured to send them) or that it's checking _very_ frequently. There's no magic 'some box just rebooted' protocol... > As a Nagios newb, it seems that Nagios has cycles of running > checks that the user defines. Yes, it does. > But I would like to try you suggestion. Will I simply add the > define command in the commands.cfg config file and then reference > that with the check_command in the hosts.cfg file? Yes. This presumes that you've configured SNMP on the target device and set the read communities to match on both sides. -- Marc -- 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] Nagios Reboot Notification
Same here... we have a few machines that can reboot in less than 2 minutes and with Nagios only checking them every 5 minutes or so, some reboots can slip through the cracks. We have an "uptime" test that is critical at less than 30 minutes and warn at less than 60 seconds, plus resolution notifications enabled. So if a machine panic reboots and Nagios misses it, withing 5 minutes the uptime test will show uptime of less than 30 minutes and send an alert. A. Davis Email: ncc...@gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan Allan Clark wrote: Hi! On Jun 11, 2009, at 3:14 PM, Kevin Mitnikc wrote: Hello everybody, I'm new to the boards, so this topic might already be covered. But I'm not exactly sure how to fully search the boards. Issue at hand: I have successfully setup Nagios 3 on Ubuntu 8.10. I have a few test servers being monitored, but what I can't get working properly are when the servers reboot. I'm looking for a way to monitor when a server reboots or has an unexpected shutdown. I've tried the host-is-alive and also the ping, but the server comes up to fast. I've also tried just monitoring a service, such as the NSClient++ but Nagios doesn't notify me right away once the server reboots. How is everybody monitoring server reboots. I've used Whats Up Gold in the past, and it would notify me right away. There has to be a way to monitor reboots and get a notification of that reboot. Many people have suggested I use scripts, but I don't know how to write scripts. In past, we monitored "uptime < 5 min", there might be a contributed script or plugin. I would look, but have spotty Internet right now. Allan -- http://LinkedIn.com/in/goldfish -- 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 -- 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] Nagios Reboot Notification
On Jun 11, 2009, at 2:14 PM, Kevin Mitnikc wrote: > How is everybody monitoring server reboots. I've used Whats Up Gold > in the past, and it would notify me right away. There has to be a > way to monitor reboots and get a notification of that reboot. Many > people have suggested I use scripts, but I don't know how to write > scripts. > > Any help or direction would be much appreciated! I monitor uptime via snmp and throw a quick WARNING in the GUI if I see it. You'll likely want to adjust the warning and add critical thresholds if you want alerts -- define command { command_name check_uptime command_line $USER1$/check_snmp -H $HOSTADDRESS $ -C -o 1.3.6.1.2.1.1.3.0 -l "Uptime" -u "Timeticks" -w 5:0 } -- Marc -- 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] Nagios Reboot Notification
Hi! On Jun 11, 2009, at 3:14 PM, Kevin Mitnikc wrote: > Hello everybody, > > I'm new to the boards, so this topic might already be covered. But > I'm not exactly sure how to fully search the boards. > > Issue at hand: > > I have successfully setup Nagios 3 on Ubuntu 8.10. I have a few > test servers being monitored, but what I can't get working properly > are when the servers reboot. I'm looking for a way to monitor when > a server reboots or has an unexpected shutdown. > > I've tried the host-is-alive and also the ping, but the server comes > up to fast. I've also tried just monitoring a service, such as the > NSClient++ but Nagios doesn't notify me right away once the server > reboots. > > How is everybody monitoring server reboots. I've used Whats Up Gold > in the past, and it would notify me right away. There has to be a > way to monitor reboots and get a notification of that reboot. Many > people have suggested I use scripts, but I don't know how to write > scripts. In past, we monitored "uptime < 5 min", there might be a contributed script or plugin. I would look, but have spotty Internet right now. Allan -- http://LinkedIn.com/in/goldfish -- 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] Nagios Reboot Notification
SNMP traps are most suitable for this purpose. From: Kevin Mitnikc [mailto:teckad...@gmail.com] Sent: Thursday, June 11, 2009 12:14 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios Reboot Notification Hello everybody, I'm new to the boards, so this topic might already be covered. But I'm not exactly sure how to fully search the boards. Issue at hand: I have successfully setup Nagios 3 on Ubuntu 8.10. I have a few test servers being monitored, but what I can't get working properly are when the servers reboot. I'm looking for a way to monitor when a server reboots or has an unexpected shutdown. I've tried the host-is-alive and also the ping, but the server comes up to fast. I've also tried just monitoring a service, such as the NSClient++ but Nagios doesn't notify me right away once the server reboots. How is everybody monitoring server reboots. I've used Whats Up Gold in the past, and it would notify me right away. There has to be a way to monitor reboots and get a notification of that reboot. Many people have suggested I use scripts, but I don't know how to write scripts. Any help or direction would be much appreciated! Cheers, Kevin M. -- 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] Nagios Reboot Notification
I use an uptime script on Windows with NSClient++. I don't know the second it goes down but I'll know when it comes back up. Curtis LaMasters http://www.curtis-lamasters.com http://www.builtnetworks.com On Thu, Jun 11, 2009 at 2:14 PM, Kevin Mitnikc wrote: > Hello everybody, > > I'm new to the boards, so this topic might already be covered. But I'm not > exactly sure how to fully search the boards. > > Issue at hand: > > I have successfully setup Nagios 3 on Ubuntu 8.10. I have a few test > servers being monitored, but what I can't get working properly are when the > servers reboot. I'm looking for a way to monitor when a server reboots or > has an unexpected shutdown. > > I've tried the host-is-alive and also the ping, but the server comes up to > fast. I've also tried just monitoring a service, such as the NSClient++ but > Nagios doesn't notify me right away once the server reboots. > > How is everybody monitoring server reboots. I've used Whats Up Gold in the > past, and it would notify me right away. There has to be a way to monitor > reboots and get a notification of that reboot. Many people have suggested I > use scripts, but I don't know how to write scripts. > > Any help or direction would be much appreciated! > > > Cheers, > > Kevin M. > -- > 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 > -- 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