[Nagios-users] Some alerts not getting to sendmail
Good morning, or whatever as the case may be... I have a Nagios 3.2.1install which is showing a problem I'm unsure how to troubleshoot further. It's either something simple I'm missing, or a deeper, more difficult problem. Or a transient to be perhaps put on a shelf until it happens again. First, the questions: - Is the notifications log absolute? - Meaning, if a notification is shown in this log, it has passed all filters (notification options etc) and Nagios believes it was submitted to the MTA. - Is there anywhere besides the MTA's log,status.dat and nagios.log to look for clues to mail problems? == Details - Running on FreeBSD 7.0, using stock sendmail on localhost. - In general, everything is working fine. 125 hosts, 1600 ish services. This system has been up and stable for a few months. Host and service notifications of all kinds go out properly all the time. Last night, I had a host go down. Notification got to my cell phone and the other contacts it's configured to just fine. This morning, I dealt with the problem host and Nagios showed it back up. But no Host up notification to any of the configured contacts. The Notifications log shows the host up notifications as having been sent. There's nothing in /var/log/maillog for the time Nagios says the notifications were sent. In status.dat, the record for my cell contact has a last_host_notification line with the epoch time version of the exact second the notification was in theory sent. Host and template records included at the bottom of this email. I've included one contact def, but there were 4 contacts, using 2 different scripts that should have received the notification. As far as I can see, there is nothing in the host configuration or related templates that would keep a host up notification from being sent. We use custom host-notify scripts which log actions, and again, no entries for the specific problem, but lots of other notifications before and after. These scripts could be the problem, but I want to rule out other issues first. Thank you for your time, Tim Palmer === Host config: define host{ host_name host.foo.bar.tld use dslam alias Anytown DSLAM address xxx.xxx.xxx.xxx parents another.foo.bar.tld } define host{ namedslam use generic-host check_period24x7 check_interval 5 retry_interval 1 max_check_attempts 10 check_command check_dslam_uptime_snmp notification_period 24x7 notification_interval 0 notification_optionsd,u,r contact_groups contact1, contact2 register0 } define host{ namegeneric-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 0 retain_status_information 1 retain_nonstatus_information1 notification_period 24x7 register0 } Contact: define contact{ contact_nameme_text use text-contact alias me_text email npanxx_lf...@txt.smx.gateway } define contact{ nametext-contact use generic-contact service_notification_optionsc,r,w service_notification_commands notify-by-textmessage-service host_notification_commands notify-by-textmessage-host register0 } define contact{ namegeneric-contact service_notification_period 24x7 host_notification_period24x7 service_notification_optionsc,r host_notification_options d,r service_notification_commands notify-by-email-service host_notification_commands notify-by-email-host register0 } -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ Nagios-users mailing list Nagios
Re: [Nagios-users] Some alerts not getting to sendmail
Andreas Ericsson wrote: On 11/18/2010 03:48 PM, Tim Palmer wrote: Good morning, or whatever as the case may be... I have a Nagios 3.2.1install which is showing a problem I'm unsure how to troubleshoot further. It's either something simple I'm missing, or a deeper, more difficult problem. Or a transient to be perhaps put on a shelf until it happens again. First, the questions: - Is the notifications log absolute? - Meaning, if a notification is shown in this log, it has passed all filters (notification options etc) and Nagios believes it was submitted to the MTA. Yes. Excellent, thank you. That's the critical bit for me regarding Nagios. - Is there anywhere besides the MTA's log,status.dat and nagios.log to look for clues to mail problems? The receiving end comes to mind, or any server(s) in between. == Details - Running on FreeBSD 7.0, using stock sendmail on localhost. - In general, everything is working fine. 125 hosts, 1600 ish services. This system has been up and stable for a few months. Host and service notifications of all kinds go out properly all the time. Last night, I had a host go down. Notification got to my cell phone and the other contacts it's configured to just fine. This morning, I dealt with the problem host and Nagios showed it back up. But no Host up notification to any of the configured contacts. The Notifications log shows the host up notifications as having been sent. There's nothing in /var/log/maillog for the time Nagios says the notifications were sent. In status.dat, the record for my cell contact has a last_host_notification line with the epoch time version of the exact second the notification was in theory sent. Host and template records included at the bottom of this email. I've included one contact def, but there were 4 contacts, using 2 different scripts that should have received the notification. As far as I can see, there is nothing in the host configuration or related templates that would keep a host up notification from being sent. We use custom host-notify scripts which log actions, and again, no entries for the specific problem, but lots of other notifications before and after. These scripts could be the problem, but I want to rule out other issues first. Notifications are a pretty integral part to what makes Nagios worth anything at all. Since you're using homebrewed scripts and noone else has reported any problems with them, I suggest you first debug your own scripts, or enable debug-logging for notifications. The dosc will tell you how to do that. It won't help for this occurrance of the failed notifications, but it will definitely help you in the future if it ever happens again. Agreed on all counts. Now that you've confirmed the final-ness of the notifications log, I am comfortable looking outside Nagios to the scripts, system and sendmail. I'm sure there's a reasonable, logical explanation for a small subset of mail not getting from Nagios to the local MTA... Thank you Tim -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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] Some alerts not getting to sendmail
Tim Palmer wrote: Andreas Ericsson wrote: On 11/18/2010 03:48 PM, Tim Palmer wrote: Good morning, or whatever as the case may be... I have a Nagios 3.2.1install which is showing a problem I'm unsure how to troubleshoot further. It's either something simple I'm missing, or a deeper, more difficult problem. Or a transient to be perhaps put on a shelf until it happens again. First, the questions: - Is the notifications log absolute? - Meaning, if a notification is shown in this log, it has passed all filters (notification options etc) and Nagios believes it was submitted to the MTA. Yes. Excellent, thank you. That's the critical bit for me regarding Nagios. - Is there anywhere besides the MTA's log,status.dat and nagios.log to look for clues to mail problems? The receiving end comes to mind, or any server(s) in between. == Details - Running on FreeBSD 7.0, using stock sendmail on localhost. - In general, everything is working fine. 125 hosts, 1600 ish services. This system has been up and stable for a few months. Host and service notifications of all kinds go out properly all the time. Last night, I had a host go down. Notification got to my cell phone and the other contacts it's configured to just fine. This morning, I dealt with the problem host and Nagios showed it back up. But no Host up notification to any of the configured contacts. The Notifications log shows the host up notifications as having been sent. There's nothing in /var/log/maillog for the time Nagios says the notifications were sent. In status.dat, the record for my cell contact has a last_host_notification line with the epoch time version of the exact second the notification was in theory sent. Host and template records included at the bottom of this email. I've included one contact def, but there were 4 contacts, using 2 different scripts that should have received the notification. As far as I can see, there is nothing in the host configuration or related templates that would keep a host up notification from being sent. We use custom host-notify scripts which log actions, and again, no entries for the specific problem, but lots of other notifications before and after. These scripts could be the problem, but I want to rule out other issues first. Notifications are a pretty integral part to what makes Nagios worth anything at all. Since you're using homebrewed scripts and noone else has reported any problems with them, I suggest you first debug your own scripts, or enable debug-logging for notifications. The dosc will tell you how to do that. It won't help for this occurrance of the failed notifications, but it will definitely help you in the future if it ever happens again. Agreed on all counts. Now that you've confirmed the final-ness of the notifications log, I am comfortable looking outside Nagios to the scripts, system and sendmail. I'm sure there's a reasonable, logical explanation for a small subset of mail not getting from Nagios to the local MTA... Thank you Tim Note to self, and whoever else might be listening - properly quoting plugin output before releasing into the shell is a Good Thing. Blaming ex-employees for the oversight is tempting, but cowardly. And Tim's Trouble Shooting Rule #1 holds again - It's your fault, find what you did wrong or, Never forget you're an idiot. Tim -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev ___ 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] FW: General Query
Nagios monitoring is based on plugins for what you want to monitor. There are plugins for many things, including several options for monitoring Windows machines/services. Search the list archives and/or Google in general will tell you this and much more. Nagios itself can not be installed on a Windows machine. tim Murali Dharan wrote: No answer still for this? -*Murali.* From: [EMAIL PROTECTED] To: nagios-users@lists.sourceforge.net Subject: General Query Date: Wed, 13 Feb 2008 10:58:21 +0530 Can i install Nagios to my windows system or this is to monitor only the Linux or Unix Server? -*Murali.* Detailed profiles 4 marriage! Only at Shaadi.com Try it! http://ss1.richmedia.in/recurl.asp?pid=107 Fly HYD-BLR for Rs.499 Log on to MakeMyTrip! Check it out! http://ss1.richmedia.in/recurl.asp?pid=266 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 OSX 10.4 Server
Lucas Fritz wrote: Nagios-Users, Are there any definitive guides for monitoring a remote OSX 10.4 Server? Ideally I’d like to do a minimum of configuration on the remote server and looking at the guide located here: http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf I’m not convinced this will work for installation on OSX. Has anyone done this before? Are there any caveats or alterations to these instructions necessary for this to work on OSX? Thank you very much for any help you can provide, Lucas - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 Depending on what you want to monitor, snmp is likely your best bet. AFAIK, there's no gui for snmp on OSX, so you'll need to dive in to get it setup and running, but much is exposed, and there are various snmp based plugins available for Nagios. tim - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 and parenting...
Eric F Crist wrote: Tom, Thanks for the reply, but my original question is not answered by the FAQ you linked. That sorta leads me toward the correct answer to a question I've posted since, but that question was asked in response to someone's reply to my original question. So, apparently I need to re-pose the question I originally asked, since some seem to be confused. In regards to parenting and unreachable notifications, is there any way to tell the nagios process where within the hierarchy it resides, or is this figured out automatically? At least in my mind, I'd need to know where I was on a map to know what was between me and my destination to figure out if the problem was somewhere in between, or with my destination. Thanks. Eric Crist On Jan 15, 2008, at 9:59 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Eric, This is a faq question. http://www.nagios.org/faqs/viewfaq.php?faq_id=81expand=falseshowdesc=f alse Regards Tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric F Crist Sent: 15 January 2008 14:31 To: Patrick Morris Cc: Nagios List Subject: Re: [Nagios-users] nagios and parenting... On Jan 14, 2008, at 2:40 PM, Patrick Morris wrote: On Mon, 14 Jan 2008, Eric F Crist wrote: Is there any way or any benefit to telling nagios it resides on a particular host? It would appear to me that bit of information would be necessary to properly handle notifications and parenting. Assuming you set up your parents correctly (from the perspective of Nagios), it'll drop itself into the right place. And, no, there's no way to tell Nagios whic host it lives on, but again, if you set up parents correctly, it won't matter. Say Nagios lives on Box A, and that box plugs into Switch B. You're alos monitoring Box C, also attached to Switch B. Switch B would have a parent of Box A, and Box C would have a parent of Switch B. When you look at the status map after setting that up, you'll see Nagios happily hanging itself off Box A, since it's the topmost parent of everything else. I think I do have all of the parenting set up correctly, but the Nagios process appears in the status map in the center, not attached to anything. Should Nagios be at the top of my parenting chain? Rather, the nagios host? - Eric F Crist Secure Computing Networks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 - Eric F Crist Secure Computing Networks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 Hi Eric, The automatic part is that Nagios will show as connected to any host without a parent defined. If a host has a parent, it will display connected to that. I always make the Nagios host the only one without a parent. Then Nagios will only show connected to that host. I've never seen the Nagios process not connected to anything, but I've never had all machines with parents. The tree has to start somewhere :) Not to state the obvious, but you do know the whole parenting/unreachable configuration is based on the Nagios server's view of the world, which may vary from physical reality some, yes? Any chance playing with different Status Map layouts would help? tim - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] ping
[list protocol note? - I suppose, since people *will* top post, a thread that is top posted should remain top posted] A quick Google search shows you are by no means the first to run into this. What is the ping check for? Do you want to check if linux1 is up from the Nagios server, or check something else from linux1? If the former, there's no need for it to be an nrpe check, if the later, google nrpe check_ping will bring up lots of clues, hints and discussions. tim Mad Unix wrote: i can ping the server with a name [EMAIL PROTECTED] etc]# ping linux1 PING linux1.sdc.lan (10.5.1.31 http://10.5.1.31) 56(84) bytes of data. 64 bytes from 10.5.1.31 http://10.5.1.31: icmp_seq=1 ttl=64 time= 0.147 ms 64 bytes from 10.5.1.31 http://10.5.1.31: icmp_seq=2 ttl=64 time=0.132 ms the error is starnge check_ping: %s: Warning threshold must be integer or percentage On Jan 2, 2008 3:03 PM, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Probably because the hostname you defined in the service host_name linux1 is unknown, try changing it to localhost or the correct local domain Mad Unix wrote: it gave now check_ping: Invalid hostname/address - $ other commands work, only the ping it gave eror i changed the ping the client to command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ command[check_local_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$ command[check_local_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$ command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 On Jan 2, 2008 2:29 PM, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: not sure but I think your check_ping command has an error, try changing it to //edit(based on your cfg): command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 Mad Unix wrote: my nagios shows the following check_ping: %s: Warning threshold must be integer or percentage! on the server define service{ use generic-service ; Name of service template to use host_name linux1 service_description PING is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval1 contact_groups admins notification_optionsw,u,c,r notification_interval 960 notification_period 24x7 check_command check_nrpe!check_ping!100.0,20%!500.0,60% } on the client runnig nrpe command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 -- madunix -- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto:Nagios-users@lists.sourceforge.net mailto:Nagios-users@lists.sourceforge.net mailto: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 -- madunix -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) iD8DBQFHe4uudS4H/t4eKFARAs2AAJ96P7cFl6FbjfyyziCteVC1f6jjzQCeOUsD lPm5a/zsumegOtL//METaRI= =5Tau -END PGP SIGNATURE- -- madunix - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
[Nagios-users] Problem getting servicedependencies with servicegroups working
[resending as a real new message, rather than a lazily hijacked thread] Hi all, I'm trying to get service dependencies with service groups working and not having any luck. The format given in the docs isn't working for me. Am I just being stupid, or is there something else going on? I'll admit to not having dived into the source, as reading source code isn't one of my strong suits... The intent is to have a bunch of services (same service on several hosts) not be checked if the same service type on one host fails. Service group membership is defined by servicegroups lines on the specific service defs. The following servicedependany def is only one of many I've tried. Every way I've tried fails nagios -v with: Nagios 2.9 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-2007 License: GPL Reading configuration data... Error: Could not expand dependent hostgroups and/or hosts specified in service d ependency (config file '/usr/local/etc/nagios/services.cfg', starting on line 19 ) *** One or more problems was encountered while processing the config files... Service group and dependency definitions: define servicegroup{ servicegroup_name all-wan-ping alias Pings for all WAN } define servicedependency{ host_name host1 service_description PING dependent_servicegroup_name all-wan-ping dependent_service_description PING execution_failure_criteria w,u,c notification_failure_criteria w,u,c } Freebsd 6.1, Nagios 2.9 Any thoughts? thank you for your time, tim - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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] Problem getting servicedependencies with servicegroups working
Hi all, I'm trying to get service dependencies with service groups working and not having any luck. The format given in the docs isn't working for me. Am I just being stupid, or is there something else going on? I'll admit to not having dived into the source, as reading source code isn't one of my strong suits... The intent is to have a bunch of services (same service on several hosts) not be checked if the same service type on one host fails. Service group membership is defined by servicegroups lines on the specific service defs. The following servicedependany def is only one of many I've tried. Every way I've tried fails nagios -v with: Nagios 2.9 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-2007 License: GPL Reading configuration data... Error: Could not expand dependent hostgroups and/or hosts specified in service d ependency (config file '/usr/local/etc/nagios/services.cfg', starting on line 19 ) *** One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed # # Service groups # define servicegroup{ servicegroup_name all-wan-ping alias Pings for all WAN } # # Service Dependancies # define servicedependency{ host_name host1 service_description PING dependent_servicegroup_name all-wan-ping dependent_service_description PING execution_failure_criteria w,u,c notification_failure_criteria w,u,c } Any thoughts? thank you for your time, tim - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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] Adding a CFG file for virtual machines
Michael Egan wrote: I would like to add a separate group within Nagios for my virtual machines. I created a file called virtual.cfg and changed the HOST GROUP DEFINITION to the following: Define hostgroup { hostgroup_name virtual-servers ; the name of the hostgroup alias Virtual Servers ; long name of the group } For each host definition, the ‘use’ statement is as follows: Use virtual-servers ; Inherit default values from a template In the nagios.cfg file, I have added the following statement: Cfg_file=/usr/local/nagios/etc/objects/virtual.cfg When I verify the configuration files, I get the following error: Error: Template ‘virtual-servers’ specified in host definition could not be not found (config file ‘/usr/local/nagios/etc/objects/virtual.cfg’. starting on line 39 I think I am missing a step or two to include this new cfg file. Any help would be appreciated. Thanks, Mike Mike Egan Enterprise Network Engineer Capital Safety 3833 Sala Way Red Wing, MN 55066 651-385-6254 Office 651-247-5719 Cell [EMAIL PROTECTED] blocked::mailto:[EMAIL PROTECTED] Home of DBI-Sala and Protecta Brands. Visit us on the web at www.capitalsafety.com blocked::http://www.capitalsafety.com/ - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 Hi Mike, Well, the obvious question of course is - have you defined a virtual-servers template anywhere in your virtual config file? When you define the use statement in a host definition, there must be a template of the same name (since thats what the use statement means). Check the Nagios docs on Object Inheritance (under Advanced Topics in 2.x docs, or via links in the Object File configuration section). tim - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 ___ 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] Were can I find the check_snmp plugin
Hugo van der Kooij wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: I have tons of snmp plugins in this folder, but my routers, which allow snmp will not run these two snmp service check: They are as follows, and it keeps telling me that it is missing the plug in. http://www.nagiosexchange.org/SNMP.51.0.html?tx_netnagext_pi1[p_view]=555 Here is were I pulled the plug-in and then extracted it's contents into the libexec folder. Next I stopped and restarted Nagios. Then logged into Nagios and the errors were still there. So next I restarted my entire server and followed the process and again it was still the errors are still there. Could it be that I am using UBUNTU Linux and maybe I should go with redhat or debian? Please do not apply windows procedures in a unix environment. Work the problem. Solve it step by step. Pay attention to the exact responses and the exact commands. 1. Can you run access the router with SNMP at all? Test with snmpwalk. (Known obstacles: firewalls, community strings ,) 2. Can you run the plugin by hand? Test all the options you want to use in nagios manualy first. Make sure you test this sucesfully as the user that the nagios process runs as. 3. Now try to build the most simple service definition and try within Nagios. If you have further question please document your attempts and show which steps you have taken. Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHOhG+BvzDRVjxmYERAlKbAJ99IcW/8M7GVB9X7scZcoiJN1QjXQCfXXg4 S/eP300ysm/IBOlOeTHBBzM= =jvd/ -END PGP SIGNATURE- Chris - Before you do anything, make sure you have the net-snmp package installed (look for snmpwalk in /usr/local/bin or suchlike). No snmp plugin will work without it (that I'm aware of anyway). I might also suggest you investigate Groundwork - it takes some of the manual work out of configuring/using Nagios. It still requires understanding Nagios, and I'm sure its a bit of work to get started, but in the long run, you'll see web pages for configuration instead of text files, and it tries to make things a little simpler. Disclaimer: I have only set up the configuration GUI for others, and haven't used the whole package, so I'm not speaking from experience. Not sure what its free-ness status is either... tim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.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] Still can't, and needing guidance SNMP issue
[EMAIL PROTECTED] wrote: What is the libexec folder? Can you give me a direct path? I am new to Linux. Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer Giles Coochey [EMAIL PROTECTED] e.gi To [EMAIL PROTECTED], 11/09/2007 10:07 nagios-users@lists.sourceforge.net AM cc Subject RE: [Nagios-users] Still can't, and needing guidance SNMP issue I have the snmp plugin, at least it is downloaded into my downloads file on I believe you will need to put the executable in your libexec folder. my linux server. However I can't monitor the following on my routers(which have snmp community strings on them. I can' monitor the snmp status or bandwidth/ traffic rate. Can anyone help me figure out why I can't see these on Nagios and the Nagios applications continues to say UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: 07 53m 22s Unable to open MRTG 23:47:18 log file I'm assuming you're not asking about this particular error in this thread. Port 1 Bandwidt h Usage CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 07 51m 55s is out of bounds - 23:48:45 plugin may be missing) It seems that Nagios cannot find the plugin, is it in your libexec folder? CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 07 50m 28s is out of bounds - 23:53:21 plugin may be missing) This looks to be the same problem. What snmp plugin are you talking about? There are plenty out there What version of Nagios are you talking about? Perhaps if you provide some of your configuration, we might be able to help some more? As it is, we need some psychic assistance here. /usr/libexec, and /usr/local/libexec is the quick answer to your question, but how useful that information will be depends on more information. If you could provide the following details, it would be very helpful: - output of command uname -a - Nagios version - exact name of the plugin you're having problems with From the errors you posted already, there may be some confusion - check_mrtggraf doesn't use snmp directly, it uses the information collected by a separate program called MRTG (which must be installed, configured and running properly in order to generate the log file check_mrtggraf currently can't find). And, there are many snmp plugins. - Nagios command definition for the plugin - Nagios service definition for the service calling this command. As Giles says, you really do need to have some understanding of the OS you're running Nagios on. Different OS's can install different bits of Nagios in different places, for one thing. tim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.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] Still can't, and needing guidance SNMP issue
Please don't top post. My response is below [EMAIL PROTECTED] wrote: Linux ATLNHONETOPS 2.6.10-16-server #2 SMP Sun Sep 23 19:57:25 UTC 2007 i686 GNU/Lunux Nagios-3.0b6 MRTG SNMP Nagios command definitions for the plugin(I don't know). I will attach a file, which you will need word proccessing application to open(usually found in linux)(See attached file: Nagios errors.abw) Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer Tim Palmer [EMAIL PROTECTED] To 11/09/2007 10:46 nagios-users@lists.sourceforge.net, AM[EMAIL PROTECTED] cc Subject Re: [Nagios-users] Still can't, and needing guidance SNMP issue [EMAIL PROTECTED] wrote: What is the libexec folder? Can you give me a direct path? I am new to Linux. Very Respectfully, Christy M. New 1(404)327-6490 American Cancer Society Corporate IT-NHO NOC Network Infrastructure Engineer Giles Coochey [EMAIL PROTECTED] e.gi To [EMAIL PROTECTED], 11/09/2007 10:07 nagios-users@lists.sourceforge.net AM cc Subject RE: [Nagios-users] Still can't, and needing guidance SNMP issue I have the snmp plugin, at least it is downloaded into my downloads file on I believe you will need to put the executable in your libexec folder. my linux server. However I can't monitor the following on my routers(which have snmp community strings on them. I can' monitor the snmp status or bandwidth/ traffic rate. Can anyone help me figure out why I can't see these on Nagios and the Nagios applications continues to say UNKNOWN 11-09-20 0d 22h 3/3 check_mrtgtraf: 07 53m 22s Unable to open MRTG 23:47:18 log file I'm assuming you're not asking about this particular error in this thread. Port 1 Bandwidt h Usage CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 07 51m 55s is out of bounds - 23:48:45 plugin may be missing) It seems that Nagios cannot find the plugin, is it in your libexec folder? CRITICAL 11-09-20 0d 22h 3/3 (Return code of 127 07 50m 28s is out of bounds - 23:53:21 plugin may be missing) This looks to be the same problem. What snmp plugin are you talking about? There are plenty out there What version of Nagios are you talking about? Perhaps if you provide some of your configuration, we might be able to help some more? As it is, we need some psychic assistance here. /usr/libexec, and /usr/local/libexec is the quick answer to your question, but how useful that information will be depends on more information. If you could provide the following details, it would be very helpful: - output of command uname -a - Nagios version - exact name of the plugin you're having problems with From the errors you posted already, there may be some confusion - check_mrtggraf doesn't use snmp directly, it uses the information collected by a separate program called MRTG (which must be installed, configured and running properly in order to generate the log file check_mrtggraf currently can't find). And, there are many snmp plugins. - Nagios command definition for the plugin - Nagios service definition
Re: [Nagios-users] configuration directory and file directives ... perplexity (long and boring). [SEC=UNCLASSIFIED]
Mr Hopcroft, My first reaction was an unqualified yuk!, what nitwit would even consider this, then I noticed it was you, and having seen your ever useful posts since the Netsaint 0.0.7 days, I relented. Although hearing vi called anachronistic ruffles a couple of feathers. Notepad isn't? No accounting for taste... I can't actually speak to your specific question, but it just seems like a scary thought. Better to run samba on the Nagios machine and let them mount it, and/or SVN. And then there's the GUI method, of course. good luck! tim [EMAIL PROTECTED] wrote: Dear Folks, Has anyone used the nagios configuration directive cfg_dir to point to an SMB (Windows) share ? The interest in doing this is that my colleagues hate vi and 'nix; they are qualified Cisco/Window admins who respect Nagios but have no sympathy with anachronistic editors. They would be much happier using notepad/ wordpad to edit the object configuration files. When I tried it for myself (Nagios 2.9, removing all the cfg_file directives from nagios.cfg and adding cfg_dir to point to the Windows share), Nagios complained about the main configuration file directive in cgi.cfg. When I changed cfg_dir to point back to the (untouched) Unix path, nagios -v nagios.cfg still complained. I had to 1 remove the cfg_dir directive 2 replace the cfg_file directives before it would stop whining. Thanks for any helpful comments. Yours sincerely. Stanley Hopcroft Data Communications 02 6211 6110 0412 766 832 Classification: UNCLASSIFIED - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.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 - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.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