Re: [Nagios-users] Nagios
Check icon_image of the host configuration. From: raja nagios [mailto:nagios.r...@gmail.com] Sent: Tuesday, February 02, 2010 9:54 AM To: Nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios Hi all, Look at the attached snapshot of nagios. why i am getting ? mark... can anyone help me. please have a look at picture. Thanks -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-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] event handlers and Schedule Downtime
I have a scheduled host downtime setup for Sunday. When I start to take services down, will event handlers still trigger and still try to restart what I want down? What is the easiest way to temporarily suspend event handlers? Thanks, Chris (Nagios 3.1.2 in Solaris) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-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] event handlers and Schedule Downtime
Perfect, thanks. I think I may for, for this weekend 'Disable Active Checks' on the service group. Then get to updating my event handlers. From: Martin Melin [mailto:mart...@op5.org] Sent: Friday, January 29, 2010 9:34 AM To: Menard, Chris Cc: Nagios Mailinglist Subject: Re: [Nagios-users] event handlers and Schedule Downtime On Fri, Jan 29, 2010 at 3:01 PM, Menard, Chris chris.men...@aspect.commailto:chris.men...@aspect.com wrote: I have a scheduled host downtime setup for Sunday. When I start to take services down, will event handlers still trigger and still try to restart what I want down? Yes, if your event handlers are not written to consider scheduled downtime. What is the easiest way to temporarily suspend event handlers? Globally, enable_event_handlers nagios.cfg. Per service/host: event_handler_enabled in the definition. However I would recommend you to use the $HOSTDOWNTIME$ and $SERVICEDOWNTIME$ macros in your event handler definitions. If these macros are non-zero, the service/host is in scheduled downtime. This will allow you to have your event handlers decide how to proceed - maybe you'd like a different action to be taken when there's scheduled downtime. Thanks, Chris (Nagios 3.1.2 in Solaris) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.netmailto: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 -- Martin Melin op5 AB http://www.op5.com http://www.op5.org/ http://www.op5.com/op5/products/network-monitor/nagios/ -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-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] Nagios disfunctional , perhaps due to time change ?
When we run into this in the US, what is the easiest way to correct the issue if we don't need to retain and downtime, acts or any status data. Is there a file or two that just needs to be deleted? Thanks, Chris -Original Message- From: Matthias Flacke [mailto:matthias.fla...@gmx.de] Sent: Monday, October 26, 2009 8:55 AM To: Ton Voon Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ? Ton Voon wrote: Hi! On 26 Oct 2009, at 10:18, Mattias Ryrlén wrote: This can be solved with issue the following error. service nagios stop; now=$(date +%s); sed -i s/^next_check=.*/next_check=$now/ /usr/local/nagios/var/status.sav; service nagios start this will only work if: 1. you can issue command 'service' :) 2. you have it installed to /usr/local/nagios We've also seen this bug. We've provided another way of fixing this. You can find more details here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html Hi, this change is causing the wrong reschedule: http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236r2=1.237view=patch It has been applied on 15th of January 2009 and introduced some statements t-tm_isdst=-1; into base/utils.c. Affected are all Nagios versions = 3.1.0. I could reproduce it here: if the patch above is backed out, the scheduling behaves correctly. -Matthias -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ 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 -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ 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] problem monitoring ldap service
The '-3' in the service is specified as ARG2 as since there is a '!' preceeding it...you have no $ARG2$ the command definition. -Original Message- From: Hanspeter Kunz [mailto:hk...@ifi.uzh.ch] Sent: Friday, October 23, 2009 4:30 PM To: Morris, Patrick Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] problem monitoring ldap service On Fri, 2009-10-23 at 13:14 -0700, Morris, Patrick wrote: Hanspeter Kunz wrote: Hi, I'm trying to monitor an ldap service: define service { check_command check_ldap!dc=ifi,dc=uzh,dc=ch!-3 host_name host.ifi.uzh.ch notification_period24x7 usegeneric-service service_descriptionhost_check_ldap } nagios tells me: Could not bind to the LDAP server However, if I execute the following command (on the nagios server) check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3 (which should do correspond exactly to the above config as far as I understand it) It does not correspond exactly, necessarily (and, in fact, most likely does not). It depends how your check_ldap command is defined in your Nagios configuration. check_ldap is defined as: check_ldap /usr/lib/nagios/plugins/check_ldap -H '$HOSTADDRESS$' -b '$ARG1$' and I can't find any difference to the shell command above. Many thanks, Hanspeter -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ 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 -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ 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] Notifications during network outage
Can you create a check on the 'link between the main site and remote site' and use that as a parent for all of the remote hosts? -Original Message- From: John Andrunas [mailto:j...@andrunas.net] Sent: Monday, September 28, 2009 1:00 PM To: Nagios Users Mail-list Subject: [Nagios-users] Notifications during network outage I have a couple of remote sites, and when the link between the main site and remote site goes down a LOT of notifications are generated for hosts in the remote site. I have all the parents set correctly and it is easy to decipher what is going on when you look at the overview, but the mass of email generated is not useful. What config change should I make? It doesn't seem like removing the notification option for unreachable is the correct answer but I can't think of what other things would possibly fix email spam if you will. -- John -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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] Does a Host Scheduled Down Time stop service notifications?
Does a 'Host Scheduled Down Time' stop service notifications? Or do I need matching service scheduled downtimes? I'm pretty sure I don't need service checks too, am I correct? Thanks, Chris -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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] Does a Host Scheduled Down Time stop service notifications?
Perfect, Thanks! From: Martin Melin [mailto:mme...@gmail.com] Sent: Monday, September 21, 2009 3:41 PM To: Nagios Users Subject: Re: [Nagios-users] Does a Host Scheduled Down Time stop service notifications? Correct, notifications for services are suppressed when host is in scheduled downtime. Note that the services will still show up as critical/warning in the web GUI, but will have a small icon explaining that host is in downtime. Regards Martin Melin On Mon, Sep 21, 2009 at 9:14 PM, Menard, Chris chris.men...@aspect.commailto:chris.men...@aspect.com wrote: Does a 'Host Scheduled Down Time' stop service notifications? Or do I need matching service scheduled downtimes? I'm pretty sure I don't need service checks too, am I correct? Thanks, Chris -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Nagios-users mailing list Nagios-users@lists.sourceforge.netmailto: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 -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ 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] meaningful map?
parents From: Stage [st...@microcomputing.be] Sent: Tuesday, September 15, 2009 5:24 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] meaningful map? Hi, I’m trying to have a meaningful map like I have found on http://nagios.sourceforge.net/images/screens/big/statusmap.jpg I thought it had something to do with dependency but that doesn’t seem to work. My question is how do I do this? Thanks, Dominic -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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] Remote restart by ssh
Looks like the restarter script is coded to restart the service on the 3rd SOFT non-OK status. The log shows Soft1, Soft2 then Hard3. Looks like you have to restart service in the script on the 2nd Soft status to avoid the HARD state or change the retry count to allow for 3 SOFT status before the HARD. That being said, the service should have been restarted following the HARD, CRITICAL call. -Original Message- From: Alex Huth [mailto:a.h...@tmr.net] Sent: Tuesday, September 08, 2009 9:25 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Remote restart by ssh Hi! I have a service on a remote machine which dies frequently. I want to restart him by ssh. I followed the steps in the guide, but when i stop him nothing happens. That's what i have done so far: commands.cfg define command{ command_namerestart_saprouter command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 175 -l admin -i /adm/etc/nagios/id_nagios -C 'usr/local/libexec/eventhandlers/restart_saprouter.sh $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$' } services.cfg define service{ name.base.saprouter-running use .base-service hostgroup_name .base.saprouters service_description SAP router process present check_command ssh_check_procs!1:1!1:1!saprouter event_handler restart_saprouter } define servicedependency{ hostgroup_name .base.saprouters dependent_hostgroup_name.base.saprouters service_description SSH dependent_service_description SAP router process present execution_failure_criteria n notification_failure_criteria w,u,c } the eventhandler script on the remote machine: #!/bin/sh case $1 in OK) ;; WARNING) ;; UNKNOWN) ;; CRITICAL) case $2 in SOFT) case $3 in 3) echo -n Restarting SAP-Router service (3rd soft critical state)... /etc/init.d/saprouter.sh restart ;; esac ;; HARD) echo -n Restarting SAP-Router service... /etc/init.d/saprouter.sh restart ;; esac ;; esac exit 0 log of nagios: [1252415755] SERVICE ALERT: ;SAP router process present;CRITICAL;SOFT;1;PROCS CRITICAL: 0 processes with command name 'saprouter' [1252415755] SERVICE EVENT HANDLER: x;SAP router process present;(null);(null);(null);restart_saprouter [1252415815] SERVICE ALERT: ;SAP router process present;CRITICAL;SOFT;2;PROCS CRITICAL: 0 processes with command name 'saprouter' [1252415815] SERVICE EVENT HANDLER: xxx;SAP router process present;(null);(null);(null);restart_saprouter [1252415875] SERVICE ALERT: xx;SAP router process present;CRITICAL;HARD;3;PROCS CRITICAL: 0 processes with command name 'saprouter' [1252415875] SERVICE EVENT HANDLER: x;SAP router process present;(null);(null);(null);restart_saprouter Can someone give me light where my fault is? Thx Alex -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] How does an NRPE daemon work with multiple Nagios servers?
Each nagios server makes a request to the NRPE deamon. The daemon (or inetd) is 'listening' for requests, collects the status info and responds to the initial request which goes right back! From: Stuart Browne [stuart.bro...@ausregistry.com.au] Sent: Sunday, September 06, 2009 9:50 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] How does an NRPE daemon work with multiple Nagios servers? NRPE has requests made to it by the nagios server. -Original Message- From: YungWei Chen [mailto:ywche...@yahoo.com] Sent: Monday, 7 September 2009 11:21 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] How does an NRPE daemon work with multiple Nagios servers? Hi, Suppose I set up 2 Nagios servers on two machines respectively to actively monitor the same set of hosts and services on a LAN. How does each NRPE daemon know to which Nagios server to send check results back. Thanks. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] How do I change the address the mail is sent from for email notifications?
if using mailx, the -R parm sets the 'return' address. echo message | mailx -s subject -R nagios_from_addr...@nagios_server to_addr...@domain.com From: Esteban Torres Rodriguez [etor...@dap.es] Sent: Monday, September 07, 2009 2:56 AM To: nagios-user Mailinglist Subject: [Nagios-users] How do I change the address the mail is sent from for email notifications? I'm trying to do this but I do not work. http://support.nagios.com/knowledgebase/faqs/index.php?option=com_contentview=articleid=52catid=35faq_id=338expand=falseshowdesc=true Does anyone help me? I've tried to do with mailx but does not work either. -- ## # Esteban Torres Rodríguez # # Área de Soporte Técnico# # Subdirección de Sistemas Informáticos # # Empresa Pública Desarrollo Agrario y Pesquero # # email: etor...@dap.es # ## -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 nagios take some pro-active actions?
We use event_handlers EXACTLY as you describe. Let nagios restart service immediately and THEN figure out why it stopped. We all agree that root cause analysis is importantbut often secondary to restoring service. -Original Message- From: Leonardo Carneiro [mailto:lscarne...@veltrac.com.br] Sent: Thursday, September 03, 2009 10:04 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] can nagios take some pro-active actions? Tks to everyone. Let me explain the situation. The service in question is a software developed by my own company. This service consumes files in a defined directory, generated by other program. This is the metric i use to monitor. Like any software in constant development, it will eventualy crash or freeze. Doing so, the files on the directory end up accumulating. If the number of files cross the threshold, the warn or crit flag is set up. We DO check why the service stoped, but the service must be up and running as fast as possible, so this is why we restart the service. Later we can check what is going wrong. I also made, some months ago, a simple bash script that monitors the # of files, restart the service if necessary and logs this kind of event. What i do not know if this is the best aproach. Nagios gives me the visual tools to se in real time in a big panel if everything is OK with my servers. So i though if it can take proactives actions and if this aproach would be better than my simple scripts. dave stern - e-mail.pluribus.unum escreveu: Ok, everyone agrees event handler can take action to fix a problem but bear in mind that this comes with caveats. Affectively, nagios event handler is treating a symptom; the disease goes merely on its way. If a service stops, WHY did it stop in the first place? Most good sysadmins would tackle the problem from the system end to insure that the service would never fail again. Furthermore, let's say a service failed for a reason, eg out of disk space. What good what it do to restart the service again? And if you build smarts into the event handler to look for and fix such a condition, is that the ONLY condition that could occur to stop this service? Having said all this, event handlers do have their place. We in fact use them to shut down hosts if the temperature gets too hot. You can imagine the testing we went through before rolling out something like this. On Thu, Sep 3, 2009 at 7:44 AM, Leonardo Carneirolscarne...@veltrac.com.br wrote: hello everyone. Started to play with Nagios a few days ago and i'm very excited with it. I have a very small setup (2 linux server being monitored via npre by a third linux server) and i'd wrote some bash scripts to monitor some of the services that we run on those services (proprietary services, non-standard ones like ssh, apache and that stuff). I know Nagios can send sms, email and other things to warn administrators about problems, but can Nagios take any action to fix the problem, like restart the service if reach critical state, or restart the service if the service stays critical for more than 5 minutes? If yes, can someone just point me to the direction i should go? :) Tks in advance, and sorry about my poor english. I'm from Brazil. -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Logística.* lscarne...@veltrac.com.br mailto:lscarne...@veltrac.com.br http://www.veltrac.com.br http://www.veltrac.com.br/ /Fone Com.: (43)2105-5601/ /Av. Higienópolis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Logística.* lscarne...@veltrac.com.br mailto:lscarne...@veltrac.com.br http://www.veltrac.com.br http://www.veltrac.com.br/ /Fone Com.: (43)2105-5601/ /Av. Higienópolis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
Re: [Nagios-users] can nagios take some pro-active actions?
Using nagios event_handlers provided a couple benefits. First, you can configure when to restart or correct the service. You can wait for the 2nd or 3rd SOFT non-OK status to perform the corrective action. This takes into account false-positives (as described in another thread today) and will avoid corrective actions when not needed. Second, by using nagios event_handlers, you have a record of all actions in one place, and visibility to the issue. From: Leandro Quibem Magnabosco [mailto:leandro.magnabo...@fcdl-sc.org.br] Sent: Thursday, September 03, 2009 8:19 AM To: Leonardo Carneiro Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] can nagios take some pro-active actions? Olá Leonardo, Please note that Nagios uses mostly scripts to check services/disk/etc. and that those scripts that 'tell' nagios the status of the service/daemon/disk/etc. That said, I think you should not focus on Nagios to be proactive hence that it's scripts could be used for that. Let's say you have check_http configured to check www.example.comhttp://www.example.com. It would connect to www.example.comhttp://www.example.com on port 80 and report if it suceeds on sending a cmd or not . If something goes wrong, it would send a critical message back. This does not mean that the script is necessarily alerting nagios about the problem, it is alerting whatever called it in the first place. What I mean is, you don't *need* nagios to be in the middle of it and (IMO) you should not try to integrate it into this kind of solution because it would just make things more complicated. One simple way to implement that would be improving the scripts that comes with nagios-plugins. A simple if statement and some coding after it would do the trick. If the script already has the capability to check the status of something and be aware of the present status and take active measures . Interfere with the function that prints the message CRITICAL to make it, for eg., ssh -T host /etc/init.d/apache2 restart. This email might be a little confusing cause I'm not thinking proper english this morning, but I would be happy to help you in our both mother language (portuguese) if you prefer. Good luck for now, [cid:image001.gif@01CA2C8B.2B064D30] Leandro Quibem Magnabosco Consultor de TI (48) 3251-5323 leandro.magnabo...@fcdl-sc.org.brmailto:leandro.magnabo...@fcdl-sc.org.br www.fcdl-sc.org.brhttp://www.fcdl-sc.org.br Rua: Rafael Bandeira, 41 CEP. 88015-450 Florianópolis - SC Este é um e-mail oriundo da Federação das Câmaras de Dirigentes Lojistas de Santa Catarina, e seu conteúdo é confidencial e destinado exclusivamente a seu(s) destinatário(s), não podendo ser copiado ou repassado,no todo ou em parte, a terceiros. Se esta mensagem foi-lhe enviada por engano, pedimos o obséquio de entrar em contato conosco. This is an e-mail from the Federação das Câmaras de Dirigentes Lojistas de Santa Catarina and its contents are privileged and confidential to the ordinary user(s) of the e-mail address(es) to which it was addressed, and no one else may copy or forward all or any of it in any form. If this e-mail was sent to you in error, please contact us. Leonardo Carneiro escreveu: hello everyone. Started to play with Nagios a few days ago and i'm very excited with it. I have a very small setup (2 linux server being monitored via npre by a third linux server) and i'd wrote some bash scripts to monitor some of the services that we run on those services (proprietary services, non-standard ones like ssh, apache and that stuff). I know Nagios can send sms, email and other things to warn administrators about problems, but can Nagios take any action to fix the problem, like restart the service if reach critical state, or restart the service if the service stays critical for more than 5 minutes? If yes, can someone just point me to the direction i should go? :) Tks in advance, and sorry about my poor english. I'm from Brazil. inline: image001.gif-- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] Internal server error while opening trends/histogram/map cgi's
Or create symlinks from /usr/lib/libgd.so.2 to /usr/local/lib/libgd.so.2 % pwd /usr/lib % ls -l libgd.so.2 lrwxrwxrwx 1 root root 25 Jul 16 14:49 libgd.so.2 - /usr/local/lib/libgd.so.2 -Original Message- From: Marc Powell [mailto:m...@ena.com] Sent: Monday, August 31, 2009 8:37 AM To: Nagios Users mailinglist Subject: Re: [Nagios-users] Internal server error while opening trends/histogram/map cgi's On Aug 31, 2009, at 1:11 AM, Sowmya Dass wrote: I tried doing ldd for following cgi's : [r...@lon-engbuild66 sbin]# ldd histogram.cgi libgd.so.2 = not found libpng12.so.0 = /usr/lib/libpng12.so.0 (0x06f79000) libjpeg.so.7 = not found libz.so.1 = /usr/lib/libz.so.1 (0x00d79000) libm.so.6 = /lib/tls/libm.so.6 (0x00c2a000) libc.so.6 = /lib/tls/libc.so.6 (0x00af3000) /lib/ld-linux.so.2 (0x00ad9000) I get similar message's for statusmap.cgi and trends.cgi. But I checked and I have the shared objects present under /usr/local/lib. I dont understand why this error is coming up still. Is /usr/local/lib listed in /etc/ld.so.conf or in /etc/ld.so.conf.d/*? If not, the system doesn't know it needs to search there. You need to add it and run 'ldconfig -v' and make sure you see it listed. -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] status map display as question mark
Try adding an image to your host (or applicable templates) I have, this for my sun box template: statusmap_image sun_server.gd2 and this for M$ boxes: statusmap_image windows_server.gd2 these images are in: /usr/local/nagios/share/images/logos From: K Ramanujan [mailto:kramanu...@johndeere.com] Sent: Thursday, August 27, 2009 3:11 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] status map display as question mark Hi All, Could some one let me know how to configure status map. I have configure all the host and service definition also But when I am click on service status the hosts are display as? mark on all side of the map [cid:image001.jpg@01CA26F4.2C625D00] My windows service definition is define hostextinfo{ hostgroup_name windows-servers notes This is the Windows server icon_image Logo_Windows.gif icon_image_alt WindowsServer SP2 vrml_image Logo_Windows.png statusmap_image Logo_Windows.gd2 2d_coords 100,250 3d_coords 100.0, 50.0,75.0 } Need your help here. Thanks Regards, Ramanujan inline: image001.jpg-- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] status map display as question mark
I have this: # CRM - Prod sun Host define host{ name prod-sun-server ; The name of this host template use generic-host; generic-host template check_period 24x7; check_command check-sun-host-alive ; command to check hosts check_interval5 ; check the host every 5 minutes retry_interval1 ; retries at 1 minute intervals max_check_attempts10 ; Check each Linux host 10 times (max) notification_period 24x7; notification_interval 120 ; Resend notifications every 2 hours notification_options d,u,r ; notifications for specific states contact_groupsCRMTeam ; Notifications statusmap_image sun_server.gd2 ; image on map icon_imagesun_server.jpg ; image on status listings register 0 } And define host{ use prod-sun-server ; Name of host template to use host_name bos1badbp1 alias bos1badbp1 address 10.129.33.94 parents bos1clfyapp1,bos1clfyapp2 2d_coords 297,470 ; location of image on map } The 2d_coords value is a fixed location of host when viewing 'User-Supplied cords' on map From: K Ramanujan [mailto:kramanu...@johndeere.com] Sent: Thursday, August 27, 2009 9:00 AM To: Menard, Chris; nagios-users@lists.sourceforge.net Subject: RE: status map display as question mark Yes I have the image in the following location but still I can't see the image can y ou send me the details step where I leave the gap.. /usr/local/nagios/share/images/logos From: Menard, Chris [mailto:chris.men...@aspect.com] Sent: Thursday, August 27, 2009 6:26 PM To: K Ramanujan; nagios-users@lists.sourceforge.net Subject: RE: status map display as question mark Try adding an image to your host (or applicable templates) I have, this for my sun box template: statusmap_image sun_server.gd2 and this for M$ boxes: statusmap_image windows_server.gd2 these images are in: /usr/local/nagios/share/images/logos From: K Ramanujan [mailto:kramanu...@johndeere.com] Sent: Thursday, August 27, 2009 3:11 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] status map display as question mark Hi All, Could some one let me know how to configure status map. I have configure all the host and service definition also But when I am click on service status the hosts are display as? mark on all side of the map [cid:image001.jpg@01CA26F5.99C72A50] My windows service definition is define hostextinfo{ hostgroup_name windows-servers notes This is the Windows server icon_image Logo_Windows.gif icon_image_alt WindowsServer SP2 vrml_image Logo_Windows.png statusmap_image Logo_Windows.gd2 2d_coords 100,250 3d_coords 100.0, 50.0,75.0 } Need your help here. Thanks Regards, Ramanujan inline: image001.jpg-- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] wrta not set
Your command line syntax differs from your configured command_line . The command_line in your command definition has a '-H' while your test line does not From: Bruce Thayre [mailto:br...@mipscomputation.com] Sent: Monday, August 24, 2009 2:53 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] wrta not set Hello, I have a question that i'm assuming has a quick answer. I've defined a command as: define command{ command_namecheck-site command_line$USER1$/check_ping -H $ARG1 -w 3000.0,80% -c 5000.0,100% -p 5 -t 10 } which i use to just ping different sites via my services.cfg. So in my services.cfg i have entries that look like: define service{ usegeneric-service display_namecheck_helpdesk host_namerails_playground service_descriptioncheck helpdesk check_command check-site!helpdesk_url.comhttp://helpdesk_url.com contactsnagiosadmin } Now everything checks out, however when i open up my service page within nagios, i see all my check-sites have unknown statuses stating: wrta was not set Looking at the check_ping plugin it states that wrta is set with the -w option, and looking at my check-site command above, you can see that i hard code wrta, so i don't understand why it is not working. Trying that command above on the command line as such: ./check_ping helpdesk_url.comhttp://helpdesk_url.com -w 3000.0,80% -c 5000.0,100% -p 5 -t 10 PING OK - Packet loss = 0%, RTA = 54.82 ms|rta=54.82ms;3000.00;5000.00;0.00 pl=0%;80;100;0 So the syntax should work, i just can't figure out what part i have wrong that's causing nagios to freak out. Any help would be great? -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] searching howto use snmp
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf nrpe is a small agent that is installed on remote server. The main nagios process makes requests to nrpe to collect remote stats. -Original Message- From: irado furioso com tudo [mailto:ir...@vfemail.net] Sent: Friday, August 14, 2009 3:27 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] searching howto use snmp hi, all I found (google) lots of crypt information on how to query remote hosts about disk usage but none I can understand :( also, there are no search engine for previouos posts on the subject in older lists, so: can anyone point me WHERE can I found a non-cryptographic information on how to get info on disk usage on remote hosts? Nagios 2.12 on FreeBSD 7.2 TIA -- saudações, irado furioso com tudo Linux User 179402/FreeBSD BSD50853/FUG-BR 154 Não uso drogas - 100% Miko$hit-free quando as pessoas frustram suas expectativas, não são as pessoas que estão erradas, são suas expectativas -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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