From sholikar at yahoo.com Fri Feb 1 03:55:17 2008 From: sholikar at yahoo.com (sachin holikar) Date: Thu, 31 Jan 2008 18:55:17 -0800 (PST) Subject: Nagios Setup -Macros ?? Message-ID: <877741.58390.qm@web53209.mail.re2.yahoo.com> Hi All, I have installed Nagios 2.9 on RedHat Linux 4.0 recently. This took a bit of time to configure. Anyways now I have my webaccess set up. Now the main part if to add hosts/services to get their alerts. I have also tested it to receive an Email Alert when a service e.g. HTTP is not running. My couple of questions are 1. I have seen on a official website that other forms of alerts are also present like Pager/User Defined action apart from Email Alerts Notifications. We are interested in these User Defined actions. Is it that we can run a particular command or Script itself when any such Alert is generated ?? If yes How do we do it? I have heard that Nagios uses Macros for all these notifications. If yes can we modify them ? How ? 2. Regading Email Alerts, can we alter the Format of these Email Alerts Notifications?? How? It would be great if some one can atleast guide us in a right direction. Thanx in advance!! --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From throck at duke.edu Fri Feb 1 04:18:16 2008 From: throck at duke.edu (Tom Throckmorton) Date: Thu, 31 Jan 2008 22:18:16 -0500 Subject: ndo2db database query In-Reply-To: <47A2189B.3070205@dcs.qmul.ac.uk> References: <28419.24.215.0.20.1201629840.squirrel@webmail.lockie.ca> <28cea030801291321j2ba65c0dk81e19bf3c1b5042a@mail.gmail.com> <28cea030801310824p5e20bb38s2b68e8d4c9accbda@mail.gmail.com> <3c4611bc0801310837g2cf4913egaea423fc4635ee75@mail.gmail.com> <28cea030801310920x668b1e7eh8db6952ee38fbc5@mail.gmail.com> <47A2189B.3070205@dcs.qmul.ac.uk> Message-ID: <20080201031816.GA12195@duke.edu> On Jan 31 18:51, Tim Kay wrote: > Hello list, > I am trying to query the nagios database entries generated by ndo2db > (Nagios 3.0rc1/ndoutils 1.47b) to pull out only those entries in the > servicestatus table that are in current_state != 0 and whose > contactgroup is testing. > > I have a contact group testing and that contact group is set up in the > service template for (at the moment) all services. I can see the contact > group in the SQL contactgroups table and I can see the members of the > contactgroup in the SQL contactgroup_members table but there are no entries > in the service_contacts table. Is this a config error on my part? I don't think so - that table as well as host_contacts is empty for me also, on 2.10/ndoutils 1.4b6 - I'm wondering if those tables just aren't getting updated as they should... > I have: > > define contactgroup{.... > > } > > > the testcontact is notified when the load on server1 exceeds the warn / > critical limits but I have no way of associating the contact with the > service just through querying the database.... Just to be clear - you're just trying to validate a contact for a given service in a given state, right? I'm using something similar to show effective contact groups for hosts; you'll have to do a few JOINS to get what you want. Have a look at the sample queries that came w/ ndoutils for some good examples. -tt -- Tom Throckmorton OIT - CSI Duke University ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sudhakar2583 at gmail.com Fri Feb 1 05:45:34 2008 From: sudhakar2583 at gmail.com (sudhakar pallam) Date: Fri, 1 Feb 2008 10:15:34 +0530 Subject: Nagios installation problem Message-ID: <76bf88700801312045k7827815ah247d582d8da751ea@mail.gmail.com> Hi, I installed Nagios and plugins also by going through the documentation. I installed Nagios 2.10 and Nagios Plugins 1.4.11 But, the problem is when i tried to run nagios in debug mode using the command /usr/local/nagios/bin/nagios ?v /usr/local/nagios/etc/init.d/nagios.cfg It resulted in an error. I installed Nagios in redhat linux enterprise edition. And one more thing that i observed after installing Plugins is, The configuration files i got in the etc directory are not named sample. Is there anything to with this. Can any one help me out in this regard.... Nagios 2.10 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 10-21-2007 License: GPL Error: Cannot open main configuration file '/usr/local/nagios/etc/?v' for reading! Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for writing Nagios 2.10 starting... (PID=4566) Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for writing Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for writing Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=4566) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 1 05:49:10 2008 From: marc at ena.com (Marc Powell) Date: Thu, 31 Jan 2008 22:49:10 -0600 Subject: Nagios Setup -Macros ?? In-Reply-To: <877741.58390.qm@web53209.mail.re2.yahoo.com> References: <877741.58390.qm@web53209.mail.re2.yahoo.com> Message-ID: <5F22A819-6D9F-4D25-A513-37DA5EBA770C@ena.com> On Jan 31, 2008, at 8:55 PM, sachin holikar wrote: > Hi All, > > I have installed Nagios 2.9 on RedHat Linux 4.0 recently. This took > a bit of time to configure. Anyways now I have my webaccess set up. > Now the main part if to add hosts/services to get their alerts. > I have also tested it to receive an Email Alert when a service e.g. > HTTP is not running. > My couple of questions are > > 1. I have seen on a official website that other forms of alerts are > also present like Pager/User Defined action apart from Email Alerts > Notifications. We are interested in these User Defined actions. Is > it that we can run a particular command or Script itself when any > such Alert is generated ?? If yes How do we do it? Yes. The notification process is outlined in the docs at http://nagios.sourceforge.net/docs/2_0/notifications.html . Each contact (http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact ) specifies notification commands that will be executed when the notification criteria are met. Take a look at the command{} definition for a contact's service_notification_command that is working for you now. If you've figured out how to send e-mail notifications, you should have a pretty good idea of the process. The sample config files have example notify-by-email and notify-by-epager command you can look at but if you can craft some notification that works from the command line, nagios can use it to let you know there's a problem. The FAQ also has references to alternate notification types - http://www.nagios.org/faqs/index.php?section_id=7&expand=false&showdesc=false > I have heard that Nagios uses Macros for all these notifications. If > yes can we modify them ? How ? The sample notification commands are a good start to see how they're used. The list of macros, and when you can use them are at http://nagios.sourceforge.net/docs/2_0/macros.html . User defined macros are not available with nagios-2. > 2. Regading Email Alerts, can we alter the Format of these Email > Alerts Notifications?? How? Yes, just edit your contact{}'s specified notification command{} definition. The command_line is the script that nagios will run to notify you. Most of the time it's just a straightforward echo or printf to /bin/mail. > > It would be great if some one can atleast guide us in a right > direction. > The documentation is always an excellent resource. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Feb 1 11:37:25 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 1 Feb 2008 11:37:25 +0100 (CET) Subject: NRPE on Windows guest error In-Reply-To: References: Message-ID: <20080201103729.97A98580051@desire.netways.de> Hi Thanks for your help. Of course, I have tried to restart the NRPE service on the Windows remote host many times. I will try to use SNMP (much easier to maintain for 70 servers) instead of NRPE. - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=8886 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From taieb.riahi at topnet.tn Fri Feb 1 11:27:05 2008 From: taieb.riahi at topnet.tn (Riahi Taieb) Date: Fri, 01 Feb 2008 11:27:05 +0100 Subject: Migration From nagios 1.x to Nagios 2.10 Message-ID: <47A2F3F9.30909@topnet.tn> Hi folks, I want to migrate comments from Nagios 1.x to Nagios 2.x. I'v googled for a time but haven't found any solution. can you help me? Best regards, Riahi Taieb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tom.welsh at bt.com Fri Feb 1 12:27:25 2008 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Fri, 1 Feb 2008 11:27:25 -0000 Subject: Migration From nagios 1.x to Nagios 2.10 In-Reply-To: <47A2F3F9.30909@topnet.tn> References: <47A2F3F9.30909@topnet.tn> Message-ID: <6546343904687E41B19D8E5A26AB9F530233B3DC@E03MVB2-UKBR.domain1.systemhost.net> Hi Riahi, You mean that Google never threw up the following when you used the search string "comments from Nagios 1.x to Nagios 2.x" http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg05515. html Andreas may be able to comment on the suitability of the script but im sure its still going to fit your needs Regards Tom ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Riahi Taieb Sent: 01 February 2008 10:27 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Migration From nagios 1.x to Nagios 2.10 Hi folks, I want to migrate comments from Nagios 1.x to Nagios 2.x. I'v googled for a time but haven't found any solution. can you help me? Best regards, Riahi Taieb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From brock at kuhsefamily.org Fri Feb 1 15:01:16 2008 From: brock at kuhsefamily.org (Brock Kuhse) Date: Fri, 1 Feb 2008 07:01:16 -0700 Subject: NRPE on Windows guest error In-Reply-To: <20080201103729.97A98580051@desire.netways.de> References: <20080201103729.97A98580051@desire.netways.de> Message-ID: <002f01c864da$e9d99ca0$bd8cd5e0$@org> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of PO Michel > Sent: Friday, February 01, 2008 3:37 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NRPE on Windows guest error > > Hi > > Thanks for your help. Of course, I have tried to restart the NRPE > service on the Windows remote host many times. > > I will try to use SNMP (much easier to maintain for 70 servers) > instead of NRPE. > > - PO Michel (misterpo) We've moved away from NRPE for a variety of reasons, including that we don't want to have to maintain a separate configuration file on each server. To that end, I've been using HP's WMI Mapper package (http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?la ng=en&cc=US&swItem=MTX-aeb689f58db74128b59af142ce) on a Windows server, with wbemcli (from the sblim-wbemcli package) and custom perl scripts, to monitor our Windows servers. One server can be used as a proxy for multiple servers, and we generally use one Windows server per site we monitor. Just create a suitable user account on the domain and install the package. Done. No additional configuration required on the server - just define your check commands on your nagios server. You can get *far* more information from WMI than you can from SNMP. We're running this way with 68 hosts and about 429 service checks as of right now, running most checks in 4-minute intervals, with no problems whatsoever. I suppose if check latency starts to become an issue, we'll look at using ePN. But that is a project for another day. At some point, I'll post some documentation on our Windows server monitoring method (to the wiki, I assume), and the perl scripts themselves (to nagios-exchange), but the scripts, while suitable for in-house use, aren't ready to be shared with the world yet. We've been monitoring our clients' servers this way for about 4 months - and have been very happy with the results so far. Let me know if you're interested and I can PM the perl scripts to you. - Brock ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 1 16:13:11 2008 From: marc at ena.com (Marc Powell) Date: Fri, 1 Feb 2008 09:13:11 -0600 Subject: Nagios installation problem In-Reply-To: <76bf88700801312045k7827815ah247d582d8da751ea@mail.gmail.com> References: <76bf88700801312045k7827815ah247d582d8da751ea@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of sudhakar pallam > Sent: Thursday, January 31, 2008 10:46 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios installation problem > > Hi, > I installed Nagios and plugins also by going through the documentation. I > installed Nagios 2.10 and Nagios Plugins 1.4.11 I am assuming you installed from source then. > But, the problem is when i tried to run nagios in debug mode using the > command /usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/init.d/nagios.cfg This isn't debug mode but it will try to verify your configuration then exit. nagios.cfg is in a very strange directory. Why did you move it there? > It resulted in an error. > I installed Nagios in redhat linux enterprise edition. > And one more thing that i observed after installing Plugins is, > The configuration files i got in the etc directory are not named sample. The plugins don't install configuration files, but nagios can if you run make install-config. They will not be explicitly named 'sample' but that's what they are. > Nagios 2.10 > Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) > Last Modified: 10-21-2007 > License: GPL > > Error: Cannot open main configuration file '/usr/local/nagios/etc/-v' for > reading! This error couldn't have resulted from the command line you stated you ran above. It just looks like you didn't type the command line correctly. > Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for > writing > Nagios 2.10 starting... (PID=4566) > Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for > writing > Warning: Cannot open log file '/usr/local/nagios/var/nagios.log' for > writing On the surface, these look like permissions issues. If you installed nagios from source, it should have set appropriate directory permissions. Are the ownership and permissions on the file/directories such that the nagios user can read/write to that file? Did you create the nagios user/group? Did you edit the main configuration file and nagios user and nagios group? http://nagios.sourceforge.net/docs/2_0/configmain.html#nagios_user Also review the installation doc to make sure you've set everything correctly -- http://nagios.sourceforge.net/docs/2_0/installing.html Finally, you don't state what version of RHEL you're using. If SELinux is enabled and enforcing, make sure that SELinux isn't denying access. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From wim.de-geeter at uni-graz.at Fri Feb 1 19:58:14 2008 From: wim.de-geeter at uni-graz.at (Wim De Geeter) Date: Fri, 01 Feb 2008 19:58:14 +0100 Subject: Plugin to check OK state when 0 processes are running (in Windows) Message-ID: <47A36BC6.2030402@uni-graz.at> Hi, I am looking for a plugin to check a Windows services that when more than n processes (ex. WINWORD.EXE) are running I got a critical, less than n or 0 processes are running I get a OK state. I only found plugins that gives a Critical when 0 processes are running Anyone can help Many thanks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From alexdehaini at gmail.com Fri Feb 1 20:20:31 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Fri, 1 Feb 2008 19:20:31 +0000 Subject: using check_ospf plugin Message-ID: <4b008f7d0802011120m4ffea393ne722178173c1a45a@mail.gmail.com> Hi Everyone, Anyone have any exprience using the "check_ospf" plugin. I will like to monitor ospf status on 5 routers and was wondering how I can do that? -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Sat Feb 2 00:48:37 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 1 Feb 2008 15:48:37 -0800 Subject: Nagios Setup -Macros ?? In-Reply-To: <877741.58390.qm@web53209.mail.re2.yahoo.com> References: <877741.58390.qm@web53209.mail.re2.yahoo.com> Message-ID: <20080201234837.GM7974@bakgwai.americas.hpqcorp.net> On Fri, 01 Feb 2008, sachin holikar wrote: > Hi All, > > I have installed Nagios 2.9 on RedHat Linux 4.0 recently. This took a bit of time to configure. Anyways now I have my webaccess set up. Now the main part if to add hosts/services to get their alerts. > I have also tested it to receive an Email Alert when a service e.g. HTTP is not running. > My couple of questions are > > 1. I have seen on a official website that other forms of alerts are also present like Pager/User Defined action apart from Email Alerts Notifications. We are interested in these User Defined actions. Is it that we can run a particular command or Script itself when any such Alert is generated ?? If yes How do we do it? > I have heard that Nagios uses Macros for all these notifications. If yes can we modify them ? How ? > > 2. Regading Email Alerts, can we alter the Format of these Email Alerts Notifications?? How? > > It would be great if some one can atleast guide us in a right direction. All of these questions are answered in the docs and example configuration files. With Nagios, all notifications are user-defined; Nagios calls whatever you tell it to call for notifications, using the parameters you provide it. There are no built-in notification methods. You cannot modify the available macros, and I'm not sure you'd want to. If you want something not provided by the available macros, there's probably a way to do it. Also, again, all notifications are user-defined, so yes, you can change the format to whatever you'd like. It looks like you've got a lot of questions, but haven't looked at the documentation yet. I'd recommend doing that, then coming back to the list if you still have questions. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From asim.mcp at gmail.com Sun Feb 3 02:20:19 2008 From: asim.mcp at gmail.com (asim hafeez) Date: Sun, 3 Feb 2008 06:20:19 +0500 Subject: ndomod: Could not open data sink! Message-ID: <79717bf30802021720g9d7c163n2ac591add39725da@mail.gmail.com> Hi, I'm having problem with ndo, getting this error. Feb 3 06:16:40 nexnag nagios: Caught SIGTERM, shutting down... Feb 3 06:16:40 nexnag nagios: Successfully shutdown... (PID=3912) Feb 3 06:16:40 nexnag nagios: ndomod: Shutdown complete. Feb 3 06:16:40 nexnag nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. Feb 3 06:16:40 nexnag nagios: Nagios 2.10 starting... (PID=5269) Feb 3 06:16:40 nexnag nagios: LOG VERSION: 2.0 Feb 3 06:16:40 nexnag nagios: ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org) Feb 3 06:16:40 nexnag nagios: ndomod: Could not open data sink! I'll keep trying, but some output may get lost... Feb 3 06:16:40 nexnag nagios: Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. Feb 3 06:16:40 nexnag nagios: Finished daemonizing... (New PID=5270) ndo ver=1.4b7 nagios ver=2.10 srwxr-xr-x 1 nagios nagios 0 Feb 3 06:19 ndo.sock I've read on some forums about ndo.sock permission, please advice what should be permission on ndo.sock I've test db and i can connect it through shell. -- Best Regards Asim ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sigmund.Brandstaetter at ing-diba.at Sun Feb 3 02:28:08 2008 From: Sigmund.Brandstaetter at ing-diba.at (=?iso-8859-1?Q?Brandst=E4tter_Sigmund?=) Date: Sun, 3 Feb 2008 02:28:08 +0100 Subject: Paging and Email In-Reply-To: References: Message-ID: If you suspect mails in the mailq, check the /var/spool/clientmqueue/ directory of your server while mailq is the correct command, you will not get the right output if you do not run it as the user that nagios runs as. so, to be sure, check /var/spool/clientmqueue/ and if there are mails in that directory, simply write a small script to delete the mails that where sent by nagios (unless the only application that sends mail on that server is nagiios and you are sure that you can delete all mails in teh queue) but usually, there shouldnt be mails in the queue as Mark said already, only if you have stopped sendmail. the moment you start it, they will go out. cheers Sigi > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Shah, Maunir > Sent: Friday, January 25, 2008 1:09 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Paging and Email > > How do I blow away old queue paging/email messages for Nagios? The reason > I ask is that our host losses connectivity and Nagios keeps on performing > the checks and when I reboot the host, Nagios starts paging and emailing > out the queued messages. We are running Nagios as a Solaris Zone. Nagios doesn't queue notifications; they're all sent in real time. Possible queuing of notifications is handled by whatever notification system you are using (i.e. sendmail, postfix, smstools, etc). Running the 'mailq' command will show you current sendmail and postfix queues. Inspection of their log files will show you when the notifications were received by the mailer from nagios and when they were forwarded on to you by the mailer. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From christian.masopust at siemens.com Sun Feb 3 12:11:06 2008 From: christian.masopust at siemens.com (Masopust, Christian) Date: Sun, 3 Feb 2008 12:11:06 +0100 Subject: ndomod: Could not open data sink! In-Reply-To: <79717bf30802021720g9d7c163n2ac591add39725da@mail.gmail.com> References: <79717bf30802021720g9d7c163n2ac591add39725da@mail.gmail.com> Message-ID: <60721B67EAF0994EAFFB561767B700140256558C@nets13ha.ww300.siemens.net> Hello Asim, please post your nagios.cfg, ndomod.cfg and ndo2db.cfg christian -- "I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." - Unknown Unix Jedi > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of asim hafeez > Sent: Sunday, February 03, 2008 2:20 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] ndomod: Could not open data sink! > > Hi, > > I'm having problem with ndo, getting this error. > > Feb 3 06:16:40 nexnag nagios: Caught SIGTERM, shutting down... > Feb 3 06:16:40 nexnag nagios: Successfully shutdown... (PID=3912) > Feb 3 06:16:40 nexnag nagios: ndomod: Shutdown complete. > Feb 3 06:16:40 nexnag nagios: Event broker module > '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. > Feb 3 06:16:40 nexnag nagios: Nagios 2.10 starting... (PID=5269) > Feb 3 06:16:40 nexnag nagios: LOG VERSION: 2.0 > Feb 3 06:16:40 nexnag nagios: ndomod: NDOMOD 1.4b7 (10-31-2007) > Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org) > Feb 3 06:16:40 nexnag nagios: ndomod: Could not open data sink! I'll > keep trying, but some output may get lost... > Feb 3 06:16:40 nexnag nagios: Event broker module > '/usr/local/nagios/bin/ndomod.o' initialized successfully. > Feb 3 06:16:40 nexnag nagios: Finished daemonizing... (New PID=5270) > > > ndo ver=1.4b7 > nagios ver=2.10 > > srwxr-xr-x 1 nagios nagios 0 Feb 3 06:19 ndo.sock > > I've read on some forums about ndo.sock permission, please advice what > should be permission on ndo.sock > I've test db and i can connect it through shell. > > -- > Best Regards > Asim > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From asim.mcp at gmail.com Sun Feb 3 21:07:29 2008 From: asim.mcp at gmail.com (asimhafeez hafeez) Date: Sun, 3 Feb 2008 21:07:29 +0100 (CET) Subject: ndomod: Could not open data sink! In-Reply-To: <60721B67EAF0994EAFFB561767B700140256558C@nets13ha.ww300.siemens.net> References: <60721B67EAF0994EAFFB561767B700140256558C@nets13ha.ww300.siemens.net> Message-ID: <20080203200729.D4CB8580053@desire.netways.de> Hi Masopust, nagios.cfg ############################################################################## # # NAGIOS.CFG - Sample Main Config File for Nagios 2.10 # # Read the documentation for more information on this configuration # file. I've provided some comments here, but things may not be so # clear without further explanation. # # Last Modified: 12-21-2006 # ############################################################################## # LOG FILE # This is the main log file where service and host events are logged # for historical purposes. This should be the first option specified # in the config file!!! log_file=/usr/local/nagios/var/nagios.log # OBJECT CONFIGURATION FILE(S) # This is the configuration file in which you define hosts, host # groups, contacts, contact groups, services, etc. I guess it would # be better called an object definition file, but for historical # reasons it isn't. You can split object definitions into several # different config files by using multiple cfg_file statements here. # Nagios will read and process all the config files you define. # This can be very useful if you want to keep command definitions # separate from host and contact definitions... # Command definitions cfg_file=/usr/local/nagios/etc/commands.cfg # Host and service definitions for monitoring this machine #cfg_file=/usr/local/nagios/etc/localhost.cfg #cfg_file=/usr/local/nagios/etc/test/test.cfg # You can split other types of object definitions across several # config files if you wish (as done here), or keep them all in a # single config file. ############################################ cfg_file=/usr/local/nagios/etc/test/contactgroups.cfg cfg_file=/usr/local/nagios/etc/test/contacts.cfg cfg_file=/usr/local/nagios/etc/test/hostgroups.cfg cfg_file=/usr/local/nagios/etc/test/hosts.cfg cfg_file=/usr/local/nagios/etc/test/services.cfg cfg_file=/usr/local/nagios/etc/test/timeperiods.cfg cfg_file=/usr/local/nagios/etc/test/service-ext.cfg cfg_file=/usr/local/nagios/etc/test/host-ext.cfg ########################################## #cfg_file=/usr/local/nagios/etc/contactgroups.cfg #cfg_file=/usr/local/nagios/etc/contacts.cfg #cfg_file=/usr/local/nagios/etc/dependencies.cfg #cfg_file=/usr/local/nagios/etc/escalations.cfg #cfg_file=/usr/local/nagios/etc/hostgroups.cfg #cfg_file=/usr/local/nagios/etc/hosts.cfg #cfg_file=/usr/local/nagios/etc/services.cfg #cfg_file=/usr/local/nagios/etc/timeperiods.cfg # Extended host/service info definitions are now stored along with # other object definitions: #cfg_file=/usr/local/nagios/etc/hostextinfo.cfg #cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg # You can also tell Nagios to process all config files (with a .cfg # extension) in a particular directory by using the cfg_dir # directive as shown below: #cfg_dir=/usr/local/nagios/etc/servers #cfg_dir=/usr/local/nagios/etc/printers #cfg_dir=/usr/local/nagios/etc/switches #cfg_dir=/usr/local/nagios/etc/routers # OBJECT CACHE FILE # This option determines where object definitions are cached when # Nagios starts/restarts. The CGIs read object definitions from # this cache file (rather than looking at the object config files # directly) in order to prevent inconsistencies that can occur # when the config files are modified after Nagios starts. object_cache_file=/usr/local/nagios/var/objects.cache # RESOURCE FILE # This is an optional resource file that contains $USERx$ macro # definitions. Multiple resource files can be specified by using # multiple resource_file definitions. The CGIs will not attempt to # read the contents of resource files, so information that is # considered to be sensitive (usernames, passwords, etc) can be # defined as macros in this file and restrictive permissions (600) # can be placed on this file. resource_file=/usr/local/nagios/etc/resource.cfg # STATUS FILE # This is where the current status of all monitored services and # hosts is stored. Its contents are read and processed by the CGIs. # The contents of the status file are deleted every time Nagios # restarts. status_file=/usr/local/nagios/var/status.dat # NAGIOS USER # This determines the effective user that Nagios should run as. # You can either supply a username or a UID. nagios_user=nagios # NAGIOS GROUP # This determines the effective group that Nagios should run as. # You can either supply a group name or a GID. nagios_group=nagios # EXTERNAL COMMAND OPTION # This option allows you to specify whether or not Nagios should check # for external commands (in the command file defined below). By default # Nagios will *not* check for external commands, just to be on the # cautious side. If you want to be able to use the CGI command interface # you will have to enable this. Setting this value to 0 disables command # checking (the default), other values enable it. check_external_commands=1 # EXTERNAL COMMAND CHECK INTERVAL # This is the interval at which Nagios should check for external commands. # This value works of the interval_length you specify later. If you leave # that at its default value of 60 (seconds), a value of 1 here will cause # Nagios to check for external commands every minute. If you specify a # number followed by an "s" (i.e. 15s), this will be interpreted to mean # actual seconds rather than a multiple of the interval_length variable. # Note: In addition to reading the external command file at regularly # scheduled intervals, Nagios will also check for external commands after # event handlers are executed. # NOTE: Setting this value to -1 causes Nagios to check the external # command file as often as possible. #command_check_interval=15s command_check_interval=10s # EXTERNAL COMMAND FILE # This is the file that Nagios checks for external command requests. # It is also where the command CGI will write commands that are submitted # by users, so it must be writeable by the user that the web server # is running as (usually 'nobody'). Permissions should be set at the # directory level instead of on the file, as the file is deleted every # time its contents are processed. command_file=/usr/local/nagios/var/rw/nagios.cmd # EXTERNAL COMMAND BUFFER SLOTS # This settings is used to tweak the number of items or "slots" that # the Nagios daemon should allocate to the buffer that holds incoming # external commands before they are processed. As external commands # are processed by the daemon, they are removed from the buffer. external_command_buffer_slots=4096 # COMMENT FILE # This is the file that Nagios will use for storing host and service # comments. comment_file=/usr/local/nagios/var/comments.dat # DOWNTIME FILE # This is the file that Nagios will use for storing host and service # downtime data. downtime_file=/usr/local/nagios/var/downtime.dat # LOCK FILE # This is the lockfile that Nagios will use to store its PID number # in when it is running in daemon mode. lock_file=/usr/local/nagios/var/nagios.lock # TEMP FILE # This is a temporary file that is used as scratch space when Nagios # updates the status log, cleans the comment file, etc. This file # is created, used, and deleted throughout the time that Nagios is # running. temp_file=/usr/local/nagios/var/nagios.tmp # EVENT BROKER OPTIONS # Controls what (if any) data gets sent to the event broker. # Values: 0 = Broker nothing # -1 = Broker everything # = See documentation event_broker_options=-1 # EVENT BROKER MODULE(S) # This directive is used to specify an event broker module that should # by loaded by Nagios at startup. Use multiple directives if you want # to load more than one module. Arguments that should be passed to # the module at startup are seperated from the module path by a space. # # Example: # # broker_module= [moduleargs] broker_module=/usr/local/nagios/bin/ndomod.o #broker_module=/usr/local/nagios/bin/log2ndo #broker_module=/usr/local/nagios/bin/file2sock #broker_module=/somewhere/module1.o #broker_module=/somewhere/module2.o arg1 arg2=3 debug=0 # LOG ROTATION METHOD # This is the log rotation method that Nagios should use to rotate # the main log file. Values are as follows.. # n = None - don't rotate the log # h = Hourly rotation (top of the hour) # d = Daily rotation (midnight every day) # w = Weekly rotation (midnight on Saturday evening) # m = Monthly rotation (midnight last day of month) log_rotation_method=d # LOG ARCHIVE PATH # This is the directory where archived (rotated) log files should be # placed (assuming you've chosen to do log rotation). log_archive_path=/usr/local/nagios/var/archives # LOGGING OPTIONS # If you want messages logged to the syslog facility, as well as the # NetAlarm log file set this option to 1. If not, set it to 0. use_syslog=1 # NOTIFICATION LOGGING OPTION # If you don't want notifications to be logged, set this value to 0. # If notifications should be logged, set the value to 1. log_notifications=1 # SERVICE RETRY LOGGING OPTION # If you don't want service check retries to be logged, set this value # to 0. If retries should be logged, set the value to 1. log_service_retries=1 # HOST RETRY LOGGING OPTION # If you don't want host check retries to be logged, set this value to # 0. If retries should be logged, set the value to 1. log_host_retries=1 # EVENT HANDLER LOGGING OPTION # If you don't want host and service event handlers to be logged, set # this value to 0. If event handlers should be logged, set the value # to 1. log_event_handlers=1 # INITIAL STATES LOGGING OPTION # If you want Nagios to log all initial host and service states to # the main log file (the first time the service or host is checked) # you can enable this option by setting this value to 1. If you # are not using an external application that does long term state # statistics reporting, you do not need to enable this option. In # this case, set the value to 0. log_initial_states=0 # EXTERNAL COMMANDS LOGGING OPTION # If you don't want Nagios to log external commands, set this value # to 0. If external commands should be logged, set this value to 1. # Note: This option does not include logging of passive service # checks - see the option below for controlling whether or not # passive checks are logged. log_external_commands=1 # PASSIVE CHECKS LOGGING OPTION # If you don't want Nagios to log passive host and service checks, set # this value to 0. If passive checks should be logged, set # this value to 1. log_passive_checks=1 # GLOBAL HOST AND SERVICE EVENT HANDLERS # These options allow you to specify a host and service event handler # command that is to be run for every host or service state change. # The global event handler is executed immediately prior to the event # handler that you have optionally specified in each host or # service definition. The command argument is the short name of a # command definition that you define in your host configuration file. # Read the HTML docs for more information. #global_host_event_handler=somecommand #global_service_event_handler=somecommand # SERVICE INTER-CHECK DELAY METHOD # This is the method that Nagios should use when initially # "spreading out" service checks when it starts monitoring. The # default is to use smart delay calculation, which will try to # space all service checks out evenly to minimize CPU load. # Using the dumb setting will cause all checks to be scheduled # at the same time (with no delay between them)! This is not a # good thing for production, but is useful when testing the # parallelization functionality. # n = None - don't use any delay between checks # d = Use a "dumb" delay of 1 second between checks # s = Use "smart" inter-check delay calculation # x.xx = Use an inter-check delay of x.xx seconds service_inter_check_delay_method=15 #s # MAXIMUM SERVICE CHECK SPREAD # This variable determines the timeframe (in minutes) from the # program start time that an initial check of all services should # be completed. Default is 30 minutes. max_service_check_spread=30 # SERVICE CHECK INTERLEAVE FACTOR # This variable determines how service checks are interleaved. # Interleaving the service checks allows for a more even # distribution of service checks and reduced load on remote # hosts. Setting this value to 1 is equivalent to how versions # of Nagios previous to 0.0.5 did service checks. Set this # value to s (smart) for automatic calculation of the interleave # factor unless you have a specific reason to change it. # s = Use "smart" interleave factor calculation # x = Use an interleave factor of x, where x is a # number greater than or equal to 1. service_interleave_factor=s #s # HOST INTER-CHECK DELAY METHOD # This is the method that Nagios should use when initially # "spreading out" host checks when it starts monitoring. The # default is to use smart delay calculation, which will try to # space all host checks out evenly to minimize CPU load. # Using the dumb setting will cause all checks to be scheduled # at the same time (with no delay between them)! # n = None - don't use any delay between checks # d = Use a "dumb" delay of 1 second between checks # s = Use "smart" inter-check delay calculation # x.xx = Use an inter-check delay of x.xx seconds host_inter_check_delay_method=15 #s # MAXIMUM HOST CHECK SPREAD # This variable determines the timeframe (in minutes) from the # program start time that an initial check of all hosts should # be completed. Default is 30 minutes. max_host_check_spread=30 # MAXIMUM CONCURRENT SERVICE CHECKS # This option allows you to specify the maximum number of # service checks that can be run in parallel at any given time. # Specifying a value of 1 for this variable essentially prevents # any service checks from being parallelized. A value of 0 # will not restrict the number of concurrent checks that are # being executed. max_concurrent_checks=0 # SERVICE CHECK REAPER FREQUENCY # This is the frequency (in seconds!) that Nagios will process # the results of services that have been checked. service_reaper_frequency=10 # CHECK RESULT BUFFER SLOTS # This settings is used to tweak the number of items or "slots" that # the Nagios daemon should allocate to the buffer that holds # service check results before they are processed. As check results # are processed by the daemon, they are removed from the buffer. check_result_buffer_slots=4096 # AUTO-RESCHEDULING OPTION # This option determines whether or not Nagios will attempt to # automatically reschedule active host and service checks to # "smooth" them out over time. This can help balance the load on # the monitoring server. # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY auto_reschedule_checks=0 # AUTO-RESCHEDULING INTERVAL # This option determines how often (in seconds) Nagios will # attempt to automatically reschedule checks. This option only # has an effect if the auto_reschedule_checks option is enabled. # Default is 30 seconds. # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY auto_rescheduling_interval=30 # AUTO-RESCHEDULING WINDOW # This option determines the "window" of time (in seconds) that # Nagios will look at when automatically rescheduling checks. # Only host and service checks that occur in the next X seconds # (determined by this variable) will be rescheduled. This option # only has an effect if the auto_reschedule_checks option is # enabled. Default is 180 seconds (3 minutes). # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY auto_rescheduling_window=180 # SLEEP TIME # This is the number of seconds to sleep between checking for system # events and service checks that need to be run. sleep_time=0.10 #0.25 # TIMEOUT VALUES # These options control how much time Nagios will allow various # types of commands to execute before killing them off. Options # are available for controlling maximum time allotted for # service checks, host checks, event handlers, notifications, the # ocsp command, and performance data commands. All values are in # seconds. service_check_timeout=60 host_check_timeout=60 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 # RETAIN STATE INFORMATION # This setting determines whether or not Nagios will save state # information for services and hosts before it shuts down. Upon # startup Nagios will reload all saved service and host state # information before starting to monitor. This is useful for # maintaining long-term data on state statistics, etc, but will # slow Nagios down a bit when it (re)starts. Since its only # a one-time penalty, I think its well worth the additional # startup delay. retain_state_information=1 # STATE RETENTION FILE # This is the file that Nagios should use to store host and # service state information before it shuts down. The state # information in this file is also read immediately prior to # starting to monitor the network when Nagios is restarted. # This file is used only if the preserve_state_information # variable is set to 1. state_retention_file=/usr/local/nagios/var/retention.dat # RETENTION DATA UPDATE INTERVAL # This setting determines how often (in minutes) that Nagios # will automatically save retention data during normal operation. # If you set this value to 0, Nagios will not save retention # data at regular interval, but it will still save retention # data before shutting down or restarting. If you have disabled # state retention, this option has no effect. retention_update_interval=60 # USE RETAINED PROGRAM STATE # This setting determines whether or not Nagios will set # program status variables based on the values saved in the # retention file. If you want to use retained program status # information, set this value to 1. If not, set this value # to 0. use_retained_program_state=1 # USE RETAINED SCHEDULING INFO # This setting determines whether or not Nagios will retain # the scheduling info (next check time) for hosts and services # based on the values saved in the retention file. If you # If you want to use retained scheduling info, set this # value to 1. If not, set this value to 0. use_retained_scheduling_info=0 # INTERVAL LENGTH # This is the seconds per unit interval as used in the # host/contact/service configuration files. Setting this to 60 means # that each interval is one minute long (60 seconds). Other settings # have not been tested much, so your mileage is likely to vary... interval_length=5 #60 # AGGRESSIVE HOST CHECKING OPTION # If you don't want to turn on aggressive host checking features, set # this value to 0 (the default). Otherwise set this value to 1 to # enable the aggressive check option. Read the docs for more info # on what aggressive host check is or check out the source code in # base/checks.c use_aggressive_host_checking=0 # SERVICE CHECK EXECUTION OPTION # This determines whether or not Nagios will actively execute # service checks when it initially starts. If this option is # disabled, checks are not actively made, but Nagios can still # receive and process passive check results that come in. Unless # you're implementing redundant hosts or have a special need for # disabling the execution of service checks, leave this enabled! # Values: 1 = enable checks, 0 = disable checks execute_service_checks=1 # PASSIVE SERVICE CHECK ACCEPTANCE OPTION # This determines whether or not Nagios will accept passive # service checks results when it initially (re)starts. # Values: 1 = accept passive checks, 0 = reject passive checks accept_passive_service_checks=1 # HOST CHECK EXECUTION OPTION # This determines whether or not Nagios will actively execute # host checks when it initially starts. If this option is # disabled, checks are not actively made, but Nagios can still # receive and process passive check results that come in. Unless # you're implementing redundant hosts or have a special need for # disabling the execution of host checks, leave this enabled! # Values: 1 = enable checks, 0 = disable checks execute_host_checks=1 # PASSIVE HOST CHECK ACCEPTANCE OPTION # This determines whether or not Nagios will accept passive # host checks results when it initially (re)starts. # Values: 1 = accept passive checks, 0 = reject passive checks accept_passive_host_checks=1 # NOTIFICATIONS OPTION # This determines whether or not Nagios will sent out any host or # service notifications when it is initially (re)started. # Values: 1 = enable notifications, 0 = disable notifications enable_notifications=1 # EVENT HANDLER USE OPTION # This determines whether or not Nagios will run any host or # service event handlers when it is initially (re)started. Unless # you're implementing redundant hosts, leave this option enabled. # Values: 1 = enable event handlers, 0 = disable event handlers enable_event_handlers=1 # PROCESS PERFORMANCE DATA OPTION # This determines whether or not Nagios will process performance # data returned from service and host checks. If this option is # enabled, host performance data will be processed using the # host_perfdata_command (defined below) and service performance # data will be processed using the service_perfdata_command (also # defined below). Read the HTML docs for more information on # performance data. # Values: 1 = process performance data, 0 = do not process performance data process_performance_data=0 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS # These commands are run after every host and service check is # performed. These commands are executed only if the # enable_performance_data option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on performance data. #host_perfdata_command=process-host-perfdata #service_perfdata_command=process-service-perfdata # HOST AND SERVICE PERFORMANCE DATA FILES # These files are used to store host and service performance data. # Performance data is only written to these files if the # enable_performance_data option (above) is set to 1. #host_perfdata_file=/tmp/host-perfdata #service_perfdata_file=/tmp/service-perfdata # HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES # These options determine what data is written (and how) to the # performance data files. The templates may contain macros, special # characters (\t for tab, \r for carriage return, \n for newline) # and plain text. A newline is automatically added after each write # to the performance data file. Some examples of what you can do are # shown below. #host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$ #service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTP UT$\t$SERVICEPERFDATA$ # HOST AND SERVICE PERFORMANCE DATA FILE MODES # This option determines whether or not the host and service # performance data files are opened in write ("w") or append ("a") # mode. Unless you are the files are named pipes, you will probably # want to use the default mode of append ("a"). #host_perfdata_file_mode=a #service_perfdata_file_mode=a # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL # These options determine how often (in seconds) the host and service # performance data files are processed using the commands defined # below. A value of 0 indicates the files should not be periodically # processed. #host_perfdata_file_processing_interval=0 #service_perfdata_file_processing_interval=0 # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS # These commands are used to periodically process the host and # service performance data files. The interval at which the # processing occurs is determined by the options above. #host_perfdata_file_processing_command=process-host-perfdata-file #service_perfdata_file_processing_command=process-service-perfdata-file # OBSESS OVER SERVICE CHECKS OPTION # This determines whether or not Nagios will obsess over service # checks and run the ocsp_command defined below. Unless you're # planning on implementing distributed monitoring, do not enable # this option. Read the HTML docs for more information on # implementing distributed monitoring. # Values: 1 = obsess over services, 0 = do not obsess (default) obsess_over_services=0 # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND # This is the command that is run for every service check that is # processed by Nagios. This command is executed only if the # obsess_over_service option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on implementing distributed monitoring. #ocsp_command=somecommand # ORPHANED SERVICE CHECK OPTION # This determines whether or not Nagios will periodically # check for orphaned services. Since service checks are not # rescheduled until the results of their previous execution # instance are processed, there exists a possibility that some # checks may never get rescheduled. This seems to be a rare # problem and should not happen under normal circumstances. # If you have problems with service checks never getting # rescheduled, you might want to try enabling this option. # Values: 1 = enable checks, 0 = disable checks check_for_orphaned_services=1 # SERVICE FRESHNESS CHECK OPTION # This option determines whether or not Nagios will periodically # check the "freshness" of service results. Enabling this option # is useful for ensuring passive checks are received in a timely # manner. # Values: 1 = enabled freshness checking, 0 = disable freshness checking check_service_freshness=1 # SERVICE FRESHNESS CHECK INTERVAL # This setting determines how often (in seconds) Nagios will # check the "freshness" of service check results. If you have # disabled service freshness checking, this option has no effect. service_freshness_check_interval=60 # HOST FRESHNESS CHECK OPTION # This option determines whether or not Nagios will periodically # check the "freshness" of host results. Enabling this option # is useful for ensuring passive checks are received in a timely # manner. # Values: 1 = enabled freshness checking, 0 = disable freshness checking check_host_freshness=1 # HOST FRESHNESS CHECK INTERVAL # This setting determines how often (in seconds) Nagios will # check the "freshness" of host check results. If you have # disabled host freshness checking, this option has no effect. host_freshness_check_interval=60 # AGGREGATED STATUS UPDATES # This option determines whether or not Nagios will # aggregate updates of host, service, and program status # data. Normally, status data is updated immediately when # a change occurs. This can result in high CPU loads if # you are monitoring a lot of services. If you want Nagios # to only refresh status data every few seconds, disable # this option. # Values: 1 = enable aggregate updates, 0 = disable aggregate updates aggregate_status_updates=1 # AGGREGATED STATUS UPDATE INTERVAL # Combined with the aggregate_status_updates option, # this option determines the frequency (in seconds!) that # Nagios will periodically dump program, host, and # service status data. If you are not using aggregated # status data updates, this option has no effect. status_update_interval=15 # FLAP DETECTION OPTION # This option determines whether or not Nagios will try # and detect hosts and services that are "flapping". # Flapping occurs when a host or service changes between # states too frequently. When Nagios detects that a # host or service is flapping, it will temporarily suppress # notifications for that host/service until it stops # flapping. Flap detection is very experimental, so read # the HTML documentation before enabling this feature! # Values: 1 = enable flap detection # 0 = disable flap detection (default) enable_flap_detection=0 # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES # Read the HTML documentation on flap detection for # an explanation of what this option does. This option # has no effect if flap detection is disabled. low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # DATE FORMAT OPTION # This option determines how short dates are displayed. Valid options # include: # us (MM-DD-YYYY HH:MM:SS) # euro (DD-MM-YYYY HH:MM:SS) # iso8601 (YYYY-MM-DD HH:MM:SS) # strict-iso8601 (YYYY-MM-DDTHH:MM:SS) # date_format=us # P1.PL FILE LOCATION # This value determines where the p1.pl perl script (used by the # embedded Perl interpreter) is located. If you didn't compile # Nagios with embedded Perl support, this option has no effect. p1_file=/usr/local/nagios/bin/p1.pl # ILLEGAL OBJECT NAME CHARACTERS # This option allows you to specify illegal characters that cannot # be used in host names, service descriptions, or names of other # object types. illegal_object_name_chars=`~!$%^&*|'"<>?,()= # ILLEGAL MACRO OUTPUT CHARACTERS # This option allows you to specify illegal characters that are # stripped from macros before being used in notifications, event # handlers, etc. This DOES NOT affect macros used in service or # host check commands. # The following macros are stripped of the characters you specify: # $HOSTOUTPUT$ # $HOSTPERFDATA$ # $HOSTACKAUTHOR$ # $HOSTACKCOMMENT$ # $SERVICEOUTPUT$ # $SERVICEPERFDATA$ # $SERVICEACKAUTHOR$ # $SERVICEACKCOMMENT$ illegal_macro_output_chars=`~$&|'"<> # REGULAR EXPRESSION MATCHING # This option controls whether or not regular expression matching # takes place in the object config files. Regular expression # matching is used to match host, hostgroup, service, and service # group names/descriptions in some fields of various object types. # Values: 1 = enable regexp matching, 0 = disable regexp matching use_regexp_matching=0 # "TRUE" REGULAR EXPRESSION MATCHING # This option controls whether or not "true" regular expression # matching takes place in the object config files. This option # only has an effect if regular expression matching is enabled # (see above). If this option is DISABLED, regular expression # matching only occurs if a string contains wildcard characters # (* and ?). If the option is ENABLED, regexp matching occurs # all the time (which can be annoying). # Values: 1 = enable true matching, 0 = disable true matching use_true_regexp_matching=0 # ADMINISTRATOR EMAIL ADDRESS # The email address of the administrator of *this* machine (the one # doing the monitoring). Nagios never uses this value itself, but # you can access this value by using the $ADMINEMAIL$ macro in your # notification commands. admin_email=nagios # ADMINISTRATOR PAGER NUMBER/ADDRESS # The pager number/address for the administrator of *this* machine. # Nagios never uses this value itself, but you can access this # value by using the $ADMINPAGER$ macro in your notification # commands. admin_pager=pagenagios # DAEMON CORE DUMP OPTION # This option determines whether or not Nagios is allowed to create # a core dump when it runs as a daemon. Note that it is generally # considered bad form to allow this, but it may be useful for # debugging purposes. # Values: 1 - Allow core dumps # 0 - Do not allow core dumps (default) daemon_dumps_core=0 ================ ndo2db.cfg #################################################################### # NDO2DB DAEMON CONFIG FILE # # Last Modified: 10-29-2007 ##################################################################### # USER/GROUP PRIVILIGES # These options determine the user/group that the daemon should run as. # You can specify a number (uid/gid) or a name for either option. ndo2db_user=nagios ndo2db_group=nagios # SOCKET TYPE # This option determines what type of socket the daemon will create # an accept connections from. # Value: # unix = Unix domain socket (default) # tcp = TCP socket socket_type=unix #socket_type=tcp # SOCKET NAME # This option determines the name and path of the UNIX domain # socket that the daemon will create and accept connections from. # This option is only valid if the socket type specified above # is "unix". socket_name=/usr/local/nagios/var/ndo.sock # TCP PORT # This option determines what port the daemon will listen for # connections on. This option is only vlaid if the socket type # specified above is "tcp". tcp_port=5668 # DATABASE SERVER TYPE # This option determines what type of DB server the daemon should # connect to. # Values: # mysql = MySQL # pgsql = PostgreSQL db_servertype=mysql # DATABASE HOST # This option specifies what host the DB server is running on. db_host=localhost # DATABASE PORT # This option specifies the port that the DB server is running on. # Values: # 3306 = Default MySQL port # 5432 = Default PostgreSQL port db_port=3306 # DATABASE NAME # This option specifies the name of the database that should be used. db_name=nagios # DATABASE TABLE PREFIX # Determines the prefix (if any) that should be prepended to table names. # If you modify the table prefix, you'll need to modify the SQL script for # creating the database! db_prefix=nagios_ # DATABASE USERNAME/PASSWORD # This is the username/password that will be used to authenticate to the DB. # The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on # the database. db_user=nagios db_pass=abc ## TABLE TRIMMING OPTIONS # Several database tables containing Nagios event data can become quite large # over time. Most admins will want to trim these tables and keep only a # certain amount of data in them. The options below are used to specify the # age (in MINUTES) that data should be allowd to remain in various tables # before it is deleted. Using a value of zero (0) for any value means that # that particular table should NOT be automatically trimmed. # Keep timed events for 24 hours max_timedevents_age=1440 # Keep system commands for 1 week max_systemcommands_age=10080 # Keep service checks for 1 week max_servicechecks_age=10080 # Keep host checks for 1 week max_hostchecks_age=10080 # Keep event handlers for 31 days max_eventhandlers_age=44640 # DEBUG LEVEL # This option determines how much (if any) debugging information will # be written to the debug file. OR values together to log multiple # types of information. # Values: -1 = Everything # 0 = Nothing # 1 = Process info # 2 = SQL queries debug_level=0 # DEBUG VERBOSITY # This option determines how verbose the debug log out will be. # Values: 0 = Brief output # 1 = More detailed # 2 = Very detailed debug_verbosity=1 # DEBUG FILE # This option determines where the daemon should write debugging information. debug_file=@localstatedir@/ndo2db.debug # MAX DEBUG FILE SIZE # This option determines the maximum size (in bytes) of the debug file. If # the file grows larger than this size, it will be renamed with a .old # extension. If a file already exists with a .old extension it will # automatically be deleted. This helps ensure your disk space usage doesn't # get out of control when debugging. max_debug_file_size=1000000 ================== ndomod.cfg ##################################################################### # NDOMOD CONFIG FILE # # Last Modified: 09-05-2007 ##################################################################### # INSTANCE NAME # This option identifies the "name" associated with this particular # instance of Nagios and is used to seperate data coming from multiple # instances. Defaults to 'default' (without quotes). instance_name=default # OUTPUT TYPE # This option determines what type of output sink the NDO NEB module # should use for data output. Valid options include: # file = standard text file # tcpsocket = TCP socket # unixsocket = UNIX domain socket (default) #output_type=file #output_type=tcpsocket output_type=unixsocket # OUTPUT # This option determines the name and path of the file or UNIX domain # socket to which output will be sent if the output type option specified # above is "file" or "unixsocket", respectively. If the output type # option is "tcpsocket", this option is used to specify the IP address # of fully qualified domain name of the host that the module should # connect to for sending output. #output=/usr/local/nagios/var/ndo.dat #output=127.0.0.1 output=/usr/local/nagios/var/ndo.sock # TCP PORT # This option determines what port the module will connect to in # order to send output. This option is only vlaid if the output type # option specified above is "tcpsocket". tcp_port=5668 # OUTPUT BUFFER # This option determines the size of the output buffer, which will help # prevent data from getting lost if there is a temporary disconnect from # the data sink. The number of items specified here is the number of # lines (each of variable size) of output that will be buffered. output_buffer_items=5000 # BUFFER FILE # This option is used to specify a file which will be used to store the # contents of buffered data which could not be sent to the NDO2DB daemon # before Nagios shuts down. Prior to shutting down, the NDO NEB module # will write all buffered data to this file for later processing. When # Nagios (re)starts, the NDO NEB module will read the contents of this # file and send it to the NDO2DB daemon for processing. buffer_file=/usr/local/nagios/var/ndomod.tmp # FILE ROTATION INTERVAL # This option determines how often (in seconds) the output file is # rotated by Nagios. File rotation is handled by Nagios by executing # the command defined by the file_rotation_command option. This # option has no effect if the output_type option is a socket. file_rotation_interval=14400 # FILE ROTATION COMMAND # This option specified the command (as defined in Nagios) that is # used to rotate the output file at the interval specified by the # file_rotation_interval option. This option has no effect if the # output_type option is a socket. # # See the file 'misccommands.cfg' for an example command definition # that you can use to rotate the log file. #file_rotation_command=rotate_ndo_log # FILE ROTATION TIMEOUT # This option specified the maximum number of seconds that the file # rotation command should be allowed to run before being prematurely # terminated. file_rotation_timeout=60 # RECONNECT INTERVAL # This option determines how often (in seconds) that the NDO NEB # module will attempt to re-connect to the output file or socket if # a connection to it is lost. reconnect_interval=15 # RECONNECT WARNING INTERVAL # This option determines how often (in seconds) a warning message will # be logged to the Nagios log file if a connection to the output file # or socket cannot be re-established. reconnect_warning_interval=15 #reconnect_warning_interval=900 # DATA PROCESSING OPTION # This option determines what data the NDO NEB module will process. # Do not mess with this option unless you know what you're doing!!!! # Read the source code (include/ndbxtmod.h) to determine what values # to use here. Values from source code should be OR'ed to get the # value to use here. A value of -1 will cause all data to be processed. # Read the source code (include/ndomod.h) and look for "NDOMOD_PROCESS_" # to determine what values to use here. Values from source code should # be OR'ed to get the value to use here. A value of -1 will cause all # data to be processed. data_processing_options=-1 # CONFIG OUTPUT OPTION # This option determines what types of configuration data the NDO # NEB module will dump from Nagios. Values can be OR'ed together. # Values: # 0 = Don't dump any configuration information # 1 = Dump only original config (from config files) # 2 = Dump config only after retained information has been restored # 3 = Dump both original and retained configuration config_output_options=2 ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=8983 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From asim.mcp at gmail.com Mon Feb 4 03:34:48 2008 From: asim.mcp at gmail.com (asimhafeez hafeez) Date: Mon, 4 Feb 2008 03:34:48 +0100 (CET) Subject: ndomod: Could not open data sink! In-Reply-To: <60721B67EAF0994EAFFB561767B700140256558C@nets13ha.ww300.siemens.net> References: <60721B67EAF0994EAFFB561767B700140256558C@nets13ha.ww300.siemens.net> Message-ID: <20080204023448.A5B91580053@desire.netways.de> Hi Masopust, Thanks for your help I've resolve the issue actually i did not mention the complete path in nagios.cfg if you look in nagios.cfg you'll too know about it what i had wrote into it. broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg Thanks Regards Asim - asimhafeez hafeez (asimhafeez) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=8983 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sdwyer at federalit.net Mon Feb 4 04:14:53 2008 From: sdwyer at federalit.net (Dwyer, Simon) Date: Mon, 4 Feb 2008 14:14:53 +1100 Subject: getting packet loss with check_icmp Message-ID: <9E924368227AEF4DB4D300EE6243D95E0721F5F9@thrawn.mulawa.internal> Hey everyone, I have been running a nagios server for a while. We made some large changes ot our layout which broke the parenting of config which I just got around to fixing. The problem I am having is that I am getting check_icmp fails for a few switches every few minutes. They are pingable throughout the whole time with ping command. Anyone seen this before? Cheers, Simon Dwyer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Mon Feb 4 05:15:12 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 03 Feb 2008 23:15:12 -0500 Subject: getting packet loss with check_icmp In-Reply-To: <9E924368227AEF4DB4D300EE6243D95E0721F5F9@thrawn.mulawa.internal> References: <9E924368227AEF4DB4D300EE6243D95E0721F5F9@thrawn.mulawa.internal> Message-ID: <47A69150.2000705@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/02/08 10:14 PM, Dwyer, Simon wrote: > Hey everyone, > > > > I have been running a nagios server for a while. We made some large > changes ot our layout which broke the parenting of config which I just > got around to fixing. The problem I am having is that I am getting > check_icmp fails for a few switches every few minutes. They are > pingable throughout the whole time with ping command. > > > > Anyone seen this before? If you set check_icmp to send multiple packets it can sends them pretty fast; are you sure your switches won't start rejecting some icmp packets under load? Also is the timeout large enough to get the replies? The only way to confirm it's check_icmp is to run a packet capture while you reproduce the problem manually (running check_icmp from the command line) and show that there were as many replies than sent packets. Be sure that: 1. check_icmp is the only thing pinging the target (to make the capture easier to read). If running from your Nagios box disabling active host checks for that switch should be enough. 2. You note the times at which you run each check_icmp (to match them against the capture). you can for example run: $ date && 3. Wait a few seconds between each time you run check_icmp to make each run clearly identifiable in the dump. Either use wireshatk with the following filter: "icmp and host " Or the following command (then you can transfer wherever you want and open it in Wireshark): # tcpdump -s 1500 -w icmp and host (if you need to specify an interface for tcpdump use -i. Ex: "-i eth0" _before_ the filtering expression). Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHppFQ6dZ+Kt5BchYRAiyAAJsG8JrPrL2F79TRnCqh+SMucGEh/QCggp1V 1RvLDaFx/mWJMxPmc/u+KR8= =8A5C -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From christian.masopust at siemens.com Mon Feb 4 08:28:44 2008 From: christian.masopust at siemens.com (Masopust, Christian) Date: Mon, 4 Feb 2008 08:28:44 +0100 Subject: ndomod: Could not open data sink! In-Reply-To: <20080204023448.A5B91580053@desire.netways.de> References: <60721B67EAF0994EAFFB561767B700140256558C@nets13ha.ww300.siemens.net> <20080204023448.A5B91580053@desire.netways.de> Message-ID: <60721B67EAF0994EAFFB561767B700140256558D@nets13ha.ww300.siemens.net> Hello Asim, yes, you're right, I had a similar problem with nagios.cfg as I wrote "...ndomod.o -c ...ndomod.cfg" and searched for days to find this :-)) Sorry that i couldn't answer yesterday but I was out of office and my VPN to my company didn't work.. christian -- "I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." - Unknown Unix Jedi > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf > Of asimhafeez hafeez > Sent: Monday, February 04, 2008 3:35 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] ndomod: Could not open data sink! > > Hi Masopust, > > Thanks for your help > I've resolve the issue > actually i did not mention the complete path in nagios.cfg > if you look in nagios.cfg you'll too know about it what i had > wrote into it. > > broker_module=/usr/local/nagios/bin/ndomod.o > config_file=/usr/local/nagios/etc/ndomod.cfg > > Thanks > Regards > Asim > > - asimhafeez hafeez (asimhafeez) > > ----------------------- > This thread is located in the archive at this URL: > http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maill > isttofaq_pi1[showUid]=8983 > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gcoochey at sapphire.gi Mon Feb 4 09:59:07 2008 From: gcoochey at sapphire.gi (Giles Coochey) Date: Mon, 4 Feb 2008 09:59:07 +0100 Subject: using check_ospf plugin In-Reply-To: <4b008f7d0802011120m4ffea393ne722178173c1a45a@mail.gmail.com> References: <4b008f7d0802011120m4ffea393ne722178173c1a45a@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744BD8E8F@hermes.sapphire-int.gi> This works fine for me: define command{ command_name check_ospf command_line $USER1$/check_ospf -H $HOSTADDRESS$ -C } Generally, running the plugin as the Nagios user, or using the -h parameter to show the help page will explain the usage of each plugin. ________________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Alex Dehaini Sent: 01 February 2008 20:21 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] using check_ospf plugin Hi Everyone, Anyone have any exprience using the "check_ospf" plugin. I will like to monitor ospf status on 5 routers and was wondering how I can do that? -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Mon Feb 4 10:55:25 2008 From: pom at tpg.ch (PO Michel) Date: Mon, 4 Feb 2008 10:55:25 +0100 (CET) Subject: NRPE on Windows guest error In-Reply-To: <002f01c864da$e9d99ca0$bd8cd5e0$@org> References: <002f01c864da$e9d99ca0$bd8cd5e0$@org> Message-ID: <20080204095526.A3792580053@desire.netways.de> Hi Brock Thanks a lot for your information about WMI. I have finally managed to work with SNMP for both Dell and HP servers running under Linux or Windows. The result is great and SNMP is so easy to maintain ! I have just uploaded the Compaq MIBS on my Nagios server. No need of that kind for Dell servers. - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=8968 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From palleje at gmail.com Mon Feb 4 16:08:50 2008 From: palleje at gmail.com (Palle L Jensen) Date: Mon, 4 Feb 2008 10:08:50 -0500 Subject: Threshold for processes Message-ID: <000a01c8673f$dad93e10$98ad38a6@na.dsmain.com> Hi All, I have a question that i find interesting and that I really never thought of before. We monitor around 60 hosts and 260 services, have Nagios 2.9 installed on a HP Compaq dc5700 Small Form Factor Intel Pentium D 915 / 2.8 GHz Dual-Core 64-bit med 1GB DDRII Ram. Monitoring the processes on the Nagios machine it sometimes a sends out a warning or critical per passing the threshold of w:200 and c:250, it used to give warnings and critical when I was working on the machine, testing different things, but would go back to normal when I was done. 2 weeks ago I added additional 30 hosts and about 150 services and now every second day Nagios send out 1 or 2 alerts for exciding the threshold. When I check the CPU/Ram/Network utilization it shows very low on both CPU's (2-5%) and below half of the Ram utilization, and only 1/10th of the swap file. Network traffic is low as well. Here is my question: If the CPU and Ram is not overloaded, what is the critical part with processes? And what is really the maximum processes that can be run, when the CPU show no overload (not even close)? Also is the default threshold set in Nagios just a general threshold i.e Warning over 200 and Critical over 250 procs. What would make the decision of the Warning/Critical threshold? Thanks, Palle -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Mon Feb 4 16:50:54 2008 From: marc at ena.com (Marc Powell) Date: Mon, 4 Feb 2008 09:50:54 -0600 Subject: Threshold for processes In-Reply-To: <000a01c8673f$dad93e10$98ad38a6@na.dsmain.com> References: <000a01c8673f$dad93e10$98ad38a6@na.dsmain.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Palle L Jensen > Sent: Monday, February 04, 2008 9:09 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Threshold for processes > > > When I check the CPU/Ram/Network utilization it shows very low on both > CPU's (2-5%) and below half of the Ram utilization, and only 1/10th of the > swap file. Network traffic is low as well. > > > > Here is my question: > > > > If the CPU and Ram is not overloaded, what is the critical part with > processes? And what is really the maximum processes that can be run, when > the CPU show no overload (not even close)? Also is the default threshold It is entirely possible to have hundreds, thousands or 10's of thousands of processes 'running' but in a sleep or otherwise idle state with no system impact if you have enough memory to support them. The critical part would be the number of processes ready to run but waiting on processor time. This is generally indicated by the system's load numbers but even that is not a hard-and-fast measure. For example, I have a quad processor system with an average load of around 20. That means that there are 5 processes per processor running, or waiting to run at any given time (or waiting to access IO systems). Because this is not a real-time system, it's a mail scanning machine, the few seconds delay introduced by the number of processes waiting is acceptable. This probably wouldn't be acceptable on desktop or other type of more real-time service but even then, priorities can help a lot to maintain a high load but an interactively normal system. > set in Nagios just a general threshold i.e Warning over 200 and Critical > over 250 procs. What would make the decision of the Warning/Critical > threshold? The defaults seem pretty arbitrary to me. You should set them to be what you consider normal for the machine and the duties it's performing. For example, on the mail system above, it is normal and acceptable to have ~360 processes 'running' at any given time. I'd be interested if that exceeded 450-500ish. On another system, it's normal to have about 80 processes running. I'd be concerned if that exceeded 100. HTH, -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From r.yeo at utah.edu Mon Feb 4 18:11:37 2008 From: r.yeo at utah.edu (Robert Yeo) Date: Mon, 04 Feb 2008 10:11:37 -0700 Subject: 100% cpu in 3.0rc2 under OSX Message-ID: Hi, 3.0rc2 pegs the CPU at startup in both OSX 10.4.11 and OSX 10.5.1, no checks are occurring and all states are pending. This is a basic build in all cases with no plug-ins installed yet. 2.10 however works great and just going with 2.10 is definitely an option if this is a fundamental problem with Nagios 3.0 and OSX. The log files do not report anything out of the ordinary. Looking over the list it seems the problem may be very similar to the FreeBSD 6.3+ problem, but the fix is not the same. Any input would be greatly appreciated. Thanks, Robert Yeo ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From palleje at gmail.com Mon Feb 4 17:00:08 2008 From: palleje at gmail.com (Palle L Jensen) Date: Mon, 4 Feb 2008 11:00:08 -0500 Subject: Threshold for processes In-Reply-To: References: <000a01c8673f$dad93e10$98ad38a6@na.dsmain.com> Message-ID: <000f01c86747$064715c0$98ad38a6@na.dsmain.com> Very good explanation, that cleared all questions. Thanks, Palle > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Monday, February 04, 2008 10:51 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Threshold for processes > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Palle L Jensen > > Sent: Monday, February 04, 2008 9:09 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Threshold for processes > > > > > > > > When I check the CPU/Ram/Network utilization it shows very low on both > > CPU's (2-5%) and below half of the Ram utilization, and only 1/10th of > the > > swap file. Network traffic is low as well. > > > > > > > > Here is my question: > > > > > > > > If the CPU and Ram is not overloaded, what is the critical part with > > processes? And what is really the maximum processes that can be run, > when > > the CPU show no overload (not even close)? Also is the default > threshold > > It is entirely possible to have hundreds, thousands or 10's of thousands > of processes 'running' but in a sleep or otherwise idle state with no > system impact if you have enough memory to support them. The critical > part would be the number of processes ready to run but waiting on > processor time. This is generally indicated by the system's load numbers > but even that is not a hard-and-fast measure. For example, I have a quad > processor system with an average load of around 20. That means that > there are 5 processes per processor running, or waiting to run at any > given time (or waiting to access IO systems). Because this is not a > real-time system, it's a mail scanning machine, the few seconds delay > introduced by the number of processes waiting is acceptable. This > probably wouldn't be acceptable on desktop or other type of more > real-time service but even then, priorities can help a lot to maintain a > high load but an interactively normal system. > > > set in Nagios just a general threshold i.e Warning over 200 and > Critical > > over 250 procs. What would make the decision of the Warning/Critical > > threshold? > > The defaults seem pretty arbitrary to me. You should set them to be what > you consider normal for the machine and the duties it's performing. For > example, on the mail system above, it is normal and acceptable to have > ~360 processes 'running' at any given time. I'd be interested if that > exceeded 450-500ish. On another system, it's normal to have about 80 > processes running. I'd be concerned if that exceeded 100. > > HTH, > > -- > Marc > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 19:31:35 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 19:31:35 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204183135.E19F3580053@desire.netways.de> Hi list Does anyone know of a cisco call manager check for nagios? Or reccommend the best way to go about monitoring such a thing. - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 19:33:45 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 19:33:45 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204183345.D088B580053@desire.netways.de> Hi list Does anyone know of a cisco call manager check for nagios? Or reccommend the best way to go about monitoring such a thing. - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 19:35:47 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 19:35:47 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204183547.B4698580053@desire.netways.de> Hi list Does anyone know of a cisco call manager check for nagios? Or reccommend the best way to go about monitoring such a thing. - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 19:36:05 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 19:36:05 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204183606.CC2EC580053@desire.netways.de> Hi list Does anyone know of a cisco call manager check for nagios? Or reccommend the best way to go about monitoring such a thing. - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 20:00:25 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 20:00:25 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204190025.75B98580053@desire.netways.de> Hi list does anyone know of a way to monitor cisco call manager? its on an HP server - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 20:02:11 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 20:02:11 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204190212.08C5A580053@desire.netways.de> Hi list does anyone know of a way to monitor cisco call manager? its on an HP server - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Mon Feb 4 20:08:11 2008 From: marc at ena.com (Marc Powell) Date: Mon, 4 Feb 2008 13:08:11 -0600 Subject: Cisco Call Manager Monitoring In-Reply-To: <20080204183606.CC2EC580053@desire.netways.de> References: <20080204183606.CC2EC580053@desire.netways.de> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of zack kenton > Sent: Monday, February 04, 2008 12:36 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Cisco Call Manager Monitoring > You are still experiencing multiple duplicate postings to the list (4 this time). You are the only person experiencing this problem and it seems to happen every time you start a new thread. Why don't you use an e-mail client instead of the apparently broken message board system you're using to post? The headers indicate that sourceforge is receiving the message multiple times from desire.netways.de ([213.95.18.138]). I suspect that this is http://nagiosexchange.org. If you're not submitting the topic multiple times you might want to notify the managers of the message board that you're using of the issue and find a better way to communicate with the list in the meantime. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 20:08:32 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 20:08:32 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204190832.8EFFA580053@desire.netways.de> Hi list does anyone know of a way to monitor cisco call manager? its on an HP server - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 20:17:47 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 20:17:47 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204191747.2A3C9580053@desire.netways.de> Hi list does anyone know of a way to monitor cisco call manager? its on an HP server - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From zkenton at outcome.com Mon Feb 4 21:50:09 2008 From: zkenton at outcome.com (zack kenton) Date: Mon, 4 Feb 2008 21:50:09 +0100 (CET) Subject: Cisco Call Manager Monitoring Message-ID: <20080204205010.69D53580053@desire.netways.de> Hi list does anyone know of a way to monitor cisco call manager? its on an HP server - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jpratt at norwich.edu Mon Feb 4 21:59:41 2008 From: jpratt at norwich.edu (James E. Pratt) Date: Mon, 4 Feb 2008 15:59:41 -0500 Subject: FW: Cisco Call Manager Monitoring Message-ID: <3CB18FFE1CDC71449BCCEC0FFD983110587DDA@NUMAIL.norwich.edu> Can the list-manager please yank this guy off the list? 10 messages saying the same thing in a bit over one hour? ... I don't know about you, but I have better/bigger things to delete all day... Thanks, jamie -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of zack kenton Sent: Monday, February 04, 2008 2:18 PM To: nagios-users at lists.sourceforge.net; zkenton at outcome.com Subject: [Nagios-users] Cisco Call Manager Monitoring Hi list does anyone know of a way to monitor cisco call manager? its on an HP server - zack kenton (zkenton) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jonathan at nerds.net Mon Feb 4 22:15:57 2008 From: jonathan at nerds.net (Jonathan Dill) Date: Mon, 04 Feb 2008 16:15:57 -0500 Subject: FW: Cisco Call Manager Monitoring In-Reply-To: <3CB18FFE1CDC71449BCCEC0FFD983110587DDA@NUMAIL.norwich.edu> References: <3CB18FFE1CDC71449BCCEC0FFD983110587DDA@NUMAIL.norwich.edu> Message-ID: <47A7808D.6000500@nerds.net> James E. Pratt wrote: > Can the list-manager please yank this guy off the list? 10 messages > saying the same thing in a bit over one hour? ... I don't know about > you, but I have better/bigger things to delete all day... > Better yet, block submissions from nagiosexchange / desire.netways.de [213.95.18.138] until they get their scripts straightened out. I sent a message to support at nagiosexchange about the problem. Jonathan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gevery at gmail.com Mon Feb 4 22:29:27 2008 From: gevery at gmail.com (Gary Every) Date: Mon, 4 Feb 2008 14:29:27 -0700 Subject: FW: Cisco Call Manager Monitoring In-Reply-To: <47A7808D.6000500@nerds.net> References: <3CB18FFE1CDC71449BCCEC0FFD983110587DDA@NUMAIL.norwich.edu> <47A7808D.6000500@nerds.net> Message-ID: I say block him, specifically - he was requested to not post in that fashion, and continues to do so. Zack? Got an email client? On Mon, Feb 4, 2008 at 2:15 PM, Jonathan Dill wrote: > James E. Pratt wrote: > > Can the list-manager please yank this guy off the list? 10 messages > > saying the same thing in a bit over one hour? ... I don't know about > > you, but I have better/bigger things to delete all day... > > > Better yet, block submissions from nagiosexchange / desire.netways.de > [213.95.18.138] until they get their scripts straightened out. I sent a > message to support at nagiosexchange about the problem. > > Jonathan > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -- Gary Every "Pay it Forward!" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Tue Feb 5 00:32:04 2008 From: Roger at NagiosWiki.com (Roger) Date: Mon, 4 Feb 2008 15:32:04 -0800 Subject: ~5000 second for 'Active Service Latency" (could this delay my checks?) Message-ID: <2b7af7c40802041532m4a52e3c8ld00878eb29eec166@mail.gmail.com> I am having a helluva time getting lots of SNMP checks to properly show up in my Nagios GUI after I create them and restart the /etc/init.d/nagios service. I have about 900 hosts, all of which are not checked (via ping) very much (like every 5 minutes). My services are checked about every 10 minutes, unless there is a problem, then I check them at 2 minute intervals. top/htop and 'uptime' show the box has very little load, but the following nagiostats dump shows almost a 5000 active service latency. Could this be the problem of why it takes forever and a day for checks to show? And if so, might this be a network latency issue? Status File: /var/log/nagios/status.dat Status File Age: 0d 0h 0m 3s Status File Version: 2.10 Program Running Time: 3d 4h 30m 30s Nagios PID: 29689 Used/High/Total Command Buffers: 0 / 1 / 4096 Used/High/Total Check Result Buffers: 0 / 82 / 4096 Total Services: 637 Services Checked: 637 Services Scheduled: 637 Active Service Checks: 637 Passive Service Checks: 0 Total Service State Change: 0.000 / 17.570 / 0.421 % Active Service Latency: 4577.550 / 4713.980 / 4634.530 sec Active Service Execution Time: 0.042 / 11.084 / 0.550 sec Active Service State Change: 0.000 / 17.570 / 0.421 % Active Services Last 1/5/15/60 min: 10 / 56 / 208 / 571 Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit: 458 / 45 / 25 / 109 Services Flapping: 0 Services In Downtime: 0 Total Hosts: 908 Hosts Checked: 907 Hosts Scheduled: 906 Active Host Checks: 908 Passive Host Checks: 0 Total Host State Change: 0.000 / 96.120 / 5.756 % Active Host Latency: 0.000 / 4731.771 / 4440.847 sec Active Host Execution Time: 0.000 / 10.072 / 4.558 sec Active Host State Change: 0.000 / 96.120 / 5.756 % Active Hosts Last 1/5/15/60 min: 11 / 61 / 172 / 647 Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 835 / 73 / 0 Hosts Flapping: 0 Hosts In Downtime: 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From aaron.segura at cabelas.com Tue Feb 5 00:45:59 2008 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Mon, 04 Feb 2008 16:45:59 -0700 Subject: ~5000 second for 'Active Service Latency" (could this delay my checks?) In-Reply-To: <2b7af7c40802041532m4a52e3c8ld00878eb29eec166@mail.gmail.com> References: <2b7af7c40802041532m4a52e3c8ld00878eb29eec166@mail.gmail.com> Message-ID: <1202168759.8744.32.camel@sidhqmis4grdv91> On Mon, 2008-02-04 at 15:32 -0800, Roger wrote: > I am having a helluva time getting lots of SNMP checks to properly > show up in my Nagios GUI after I create them and restart > the /etc/init.d/nagios service. I have about 900 hosts, all of which > are not checked (via ping) very much (like every 5 minutes). My > services are checked about every 10 minutes, unless there is a > problem, then I check them at 2 minute intervals. > > > top/htop and 'uptime' show the box has very little load, but the > following nagiostats dump shows almost a 5000 active service latency. > Could this be the problem of why it takes forever and a day for > checks to show? And if so, might this be a network latency issue? > > > > > Status File: /var/log/nagios/status.dat > Status File Age: 0d 0h 0m 3s > Status File Version: 2.10 > > Program Running Time: 3d 4h 30m 30s > Nagios PID: 29689 > Used/High/Total Command Buffers: 0 / 1 / 4096 > Used/High/Total Check Result Buffers: 0 / 82 / 4096 > > Total Services: 637 > Services Checked: 637 > Services Scheduled: 637 > Active Service Checks: 637 > Passive Service Checks: 0 > Total Service State Change: 0.000 / 17.570 / 0.421 % > Active Service Latency: 4577.550 / 4713.980 / 4634.530 > sec > Active Service Execution Time: 0.042 / 11.084 / 0.550 sec > Active Service State Change: 0.000 / 17.570 / 0.421 % > Active Services Last 1/5/15/60 min: 10 / 56 / 208 / 571 > Passive Service State Change: 0.000 / 0.000 / 0.000 % > Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 > Services Ok/Warn/Unk/Crit: 458 / 45 / 25 / 109 > Services Flapping: 0 > Services In Downtime: 0 > > Total Hosts: 908 > Hosts Checked: 907 > Hosts Scheduled: 906 > Active Host Checks: 908 > Passive Host Checks: 0 > Total Host State Change: 0.000 / 96.120 / 5.756 % > Active Host Latency: 0.000 / 4731.771 / 4440.847 sec > Active Host Execution Time: 0.000 / 10.072 / 4.558 sec > Active Host State Change: 0.000 / 96.120 / 5.756 % > Active Hosts Last 1/5/15/60 min: 11 / 61 / 172 / 647 > Passive Host State Change: 0.000 / 0.000 / 0.000 % > Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 > Hosts Up/Down/Unreach: 835 / 73 / 0 > Hosts Flapping: 0 > Hosts In Downtime: 0 > ------------------------------------------------------------------------- Good lord, man! Turn off those active host checks! Nagios doesn't handle host checks very efficiently. Typically, you should only execute a host check if a service on that host fails. Create a service on each host that emulates your current host check and turn off active host checking. That should fix your problem. Sorry if I'm misreading something, but that's what it looks like to me. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 5 01:03:30 2008 From: marc at ena.com (Marc Powell) Date: Mon, 4 Feb 2008 18:03:30 -0600 Subject: ~5000 second for 'Active Service Latency" (couldthis delay my checks?) In-Reply-To: <2b7af7c40802041532m4a52e3c8ld00878eb29eec166@mail.gmail.com> References: <2b7af7c40802041532m4a52e3c8ld00878eb29eec166@mail.gmail.com> Message-ID: Hi Roger -- > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Roger > Sent: Monday, February 04, 2008 5:32 PM > To: Nagios Users Mailinglist > Subject: [Nagios-users] ~5000 second for 'Active Service Latency" > (couldthis delay my checks?) > > I am having a helluva time getting lots of SNMP checks to properly show up > in my Nagios GUI after I create them and restart the /etc/init.d/nagios > service. I have about 900 hosts, all of which are not checked (via ping) > very much (like every 5 minutes). My services are checked about every 10 > minutes, unless there is a problem, then I check them at 2 minute > intervals. While you don't say, I believe that you are likely using nagios-2.10. If that is the case then the latencies are expected and explained by the warnings you saw in the documentation in the host{} section about check_intervals. To summarize, nagios stops doing _*everything*_ while a host is checked. If your host checks all ran and finished in 1 second, you've just introduced 900 seconds (15 minutes) of latency as a base. 10 pings is at least 9,000 seconds where nagios stops everything except focusing on hosts. You don't need scheduled host checks. No, really you don't. Side effects can include headache, vomiting and extreme latencies. With Nagios-3, you still don't need scheduled host checks but there are some benefits to them as described in that documentation. > Total Hosts: 908 > Hosts Checked: 907 > Hosts Scheduled: 906 -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jonmills at email.unc.edu Tue Feb 5 01:09:22 2008 From: jonmills at email.unc.edu (Jonathan Mills) Date: Mon, 4 Feb 2008 19:09:22 -0500 Subject: controlling services by hostgroup? Message-ID: <893B1D75-CD83-45F5-A091-2AFF5C191E9E@email.unc.edu> I'm looking for some sanity checking of my logic here. What I've been doing is controlling services by mapping them to hostgroups. So, basically, I have a hostgroup for each type of service check, except for some basic checks that I lump together. Why? Because it makes it extremely easy to manage hosts. I create a host definition in a new file, i list all the hostgroups to which the host belongs, and the host then inherits all the service checks it needs. Adding and deleting hosts means only touching one file, the file containing the host definition. In practice it works great, but it has some real annoyances too. For example, my hostgroups look like servicegroups! It confuses people. I also have way more hostgroups than is desirable to be displayed in the web interface. And trying to map the logical groups or environments in my company is right out the window, since the hostgroups don't represent a logical or conceptual view of the environments within the company. What are other people doing? One thing I thought of that would help is if you could choose what hostgroups were actually displayed in the web interface. That way I could have logical groups based on departments or something shown as hostgroups, while service-specific hostgroups weren't displayed. Any comments would be greatly appraciated. Cheers! Jonathan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mantridp at gmail.com Tue Feb 5 01:40:35 2008 From: mantridp at gmail.com (deepak) Date: Tue, 5 Feb 2008 00:40:35 +0000 (UTC) Subject: =?utf-8?q?check=5Fsnmp_memory_calculation?= Message-ID: Hi guys, i am trying to get stats thru check_snmp plugin & plot it thru NagiosGrapger. I have been successful in this.However i am not able to determine as to how does nagios understand the total memory of a switch or a router when i have merely taken value for a single oid(1.3.6.1.4.1.9.9.48.1.1.1.5.1-ciscoMemoryPoolUsed). what i want to know is the critical value which i give say 70%, of what total value is this 70%.How does nagios calculate the percentage to understand the critical level.Does it get the total memory from switch or router.....How does this work..... Nagios Version -2.10 OS-RHEL 5.0 nagios-plugins version--- nagios-plugins-1.4.9-1.el5.rf.i386.rpm NagiosGrapher--1.6.1-rc5 Thanks in advance. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nagios-users at martycombs.com Tue Feb 5 03:05:58 2008 From: nagios-users at martycombs.com (Marty) Date: Mon, 4 Feb 2008 18:05:58 -0800 (PST) Subject: controlling services by hostgroup? In-Reply-To: <893B1D75-CD83-45F5-A091-2AFF5C191E9E@email.unc.edu> References: <893B1D75-CD83-45F5-A091-2AFF5C191E9E@email.unc.edu> Message-ID: I configure nagios the same way. I break up my configurations under various sub-directories under ../etc/cfgdir: ~nagios/etc/cfgdir/contacts/ ~nagios/etc/cfgdir/commands/ ~nagios/etc/cfgdir/services/ ~nagios/etc/cfgdir/hosts/ Nagios is configured to include everything in ~nagios/etc/cfgdir/ and each configuration file ending in .cfg is read into nagios. Ideally I would want a comma-separated list of services run on a host defined within the host stanza. In large server farms I find that we have overall services (smtp, web, java, etc) running across many servers. It's easier to define a host within a single config file (HOSTNAME.cfg) and within the host stanza, configure it to be part of the "unix,smtp,ssh" hostgroups. The smtp hostgroup automatically checks port 25. In the unix hostsgroup, nagios automatically checks users, load, disks, procs, etc via check_nrpe. * If you have a custom service running on web12 only, define it within web12.mydomain.com.cfg. * If web12.mydomain.com has hardware failure and dies, change web12.mydomain.com.cfg to web12.mydomain.com.DISABLED within ~nagios/etc/cfgdir/hosts/ and restart nagios. It's gone immediately including the one-off service running on that host yet you still retain a record that the host was there. Once the box is repaired, restoring it is just as fast. * If you need to add web12 to some java service your monitoring, after you logon to web12 and get it configured, edit the web12.mydomain.com.cfg. * If you add web13 and it runs the exact same services as web12, copy web12.mydomain.com.cfg to web13.mydomain.com.cfg and change only hostname and IP. Restart nagios. You're done. Our group has found the advantages outweigh the annoyances. We also use service groups to define service escalations for groups of services. Regards, Marty Combs On Mon, 4 Feb 2008, Jonathan Mills wrote: > I'm looking for some sanity checking of my logic here. > > What I've been doing is controlling services by mapping them to > hostgroups. So, basically, I have a hostgroup for each type of > service check, except for some basic checks that I lump together. > > Why? Because it makes it extremely easy to manage hosts. I create a > host definition in a new file, i list all the hostgroups to which the > host belongs, and the host then inherits all the service checks it > needs. Adding and deleting hosts means only touching one file, the > file containing the host definition. > > In practice it works great, but it has some real annoyances too. For > example, my hostgroups look like servicegroups! It confuses people. > I also have way more hostgroups than is desirable to be displayed in > the web interface. And trying to map the logical groups or > environments in my company is right out the window, since the > hostgroups don't represent a logical or conceptual view of the > environments within the company. > > What are other people doing? One thing I thought of that would help > is if you could choose what hostgroups were actually displayed in the > web interface. That way I could have logical groups based on > departments or something shown as hostgroups, while service-specific > hostgroups weren't displayed. > > Any comments would be greatly appraciated. > > Cheers! > Jonathan > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marcus.fleige at de.rhenus.com Tue Feb 5 10:25:24 2008 From: marcus.fleige at de.rhenus.com (Marcus Fleige) Date: Tue, 5 Feb 2008 10:25:24 +0100 Subject: controlling services by hostgroup? In-Reply-To: References: <893B1D75-CD83-45F5-A091-2AFF5C191E9E@email.unc.edu> Message-ID: <47A82B84.2080204@de.rhenus.com> Hi there, Nice to see some other people had the same idea to simplify their config. :-) Additionally i can say, that i order hosts in multiple hostgroups to stick them together logically. For example: HostA and Host B are both members of server-hp, os-linux, net-drbd, net-bond0, task-oracle. Both belong to the same Project along with some other hosts (routers, switches, sensors...), so all of those machines belong to a hostgroup "ProjectA", combining them to a logical unit. As far as i can see, it doesn't bring up any performance issues in Nagios 3.0(b7) to add a host to multiple hostgroups. Back in the old days, service groups rendered my nagios installation (2.3) to a nearly unusable state by growing service latencies to incredible numbers. Now, i'm working with ~600 hosts and ~5400 services with a latency of 1.6 secs, having large numbers of hosts in multiple hostgroups. Regards, Marcus ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 5 14:49:22 2008 From: marc at ena.com (Marc Powell) Date: Tue, 5 Feb 2008 07:49:22 -0600 Subject: check_snmp memory calculation In-Reply-To: References: Message-ID: On Feb 4, 2008, at 6:40 PM, deepak wrote: > Hi guys, > > i am trying to get stats thru check_snmp plugin & plot it thru > NagiosGrapger. > I have been successful in this.However i am not able to determine as > to how does > nagios understand the total memory of a switch or a router when i > have merely > taken value for a single oid(1.3.6.1.4.1.9.9.48.1.1.1.5.1- > ciscoMemoryPoolUsed). > what i want to know is the critical value which i give say 70%, of > what total > value is this 70%.How does nagios calculate the percentage to > understand the > critical level.Does it get the total memory from switch or > router.....How does > this work..... check_snmp doesn't perform any calculations at all, nor does nagios. It also doesn't query any more than the specific OID you tell it to. SNMP data can be _anything_ and check_snmp has no idea what it might be. You must supply the warning and critical values or ranges to check_snmp on the command line that the plugin will compare to the queried SNMP value. If you're querying 'used memory in bytes', your warning and critical values must be in bytes as well. If you're querying 'number of people seen passing in front of the camera', your warning and critical values must be an integer (one would hope). -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nagios-users at subs.krikkit.nl Tue Feb 5 18:38:03 2008 From: nagios-users at subs.krikkit.nl (Rejo Zenger) Date: Tue, 5 Feb 2008 18:38:03 +0100 Subject: conditional variable usage (host specific settings) Message-ID: <20080205173803.GA28329@zaphod.krikkit.nl> Hi there, Can I add $ARGn$ like variables to service definitions that are loading other templates? I have this: | define service { | use svc-ssh | host_name box.example.net | service_description ssh | } This uses the following more generic definitions: | define service { | name svc-ssh | use svc | register 0 | check_command check_ssh | } | | define command { | command_name check_ssh | command_line $USER1$/check_ssh -H $HOSTADDRESS$ | } I want to check ssh on $HOSTADDRESS$ for the majority of servers. There are however a number of exeptions. These servers must be checked on their secondary IP address. Now, can I add something to the first "service definition" so I can specify it *only* if the second IP address must be used? So, in the third definition, it should be something like "use specific value if specified, otherwise use $HOSTADDRESS$". I am aware I can provide variables using $ARG1$ from the second to the third definition. But can I do the same from the first to the second definition? -- Rejo Zenger https://rejo.zenger.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From john.duraiswamy at gmail.com Tue Feb 5 18:56:25 2008 From: john.duraiswamy at gmail.com (John Duraisw) Date: Tue, 5 Feb 2008 12:56:25 -0500 Subject: Check Hsrp Message-ID: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> Hello All, I am trying to check hsrp on 6509 with the following, and I am running into problems. Please let me know what I am doing wrong here. [root at nmsweb ~]# ./check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha --hsrpgrp 10 Usage: check_ifoperstatus.pl -H [-C ] -k check_ifoperstatus.pl [-h | --help] check_ifoperstatus.pl [-V | --version] Thanks for your help, -john -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From chrisboyd00 at comcast.net Tue Feb 5 19:11:11 2008 From: chrisboyd00 at comcast.net (chrisboyd00 at comcast.net) Date: Tue, 05 Feb 2008 18:11:11 +0000 Subject: check_snmp_xxx-- Return code of 127 - plug-in may be missing Message-ID: <020520081811.24075.47A8A6BF0002770E00005E0B2216551406CFCF0B97010D9C079D080C@comcast.net> I am new to Nagios. I am hoping the answer to my question is a simple one. I have worked hard to try and resolve this but I must ask the community for help. Specifically I am trying to use the GWFL SNMP HP-Proliant plug-in to actively monitor the status of the HP Proliant HW such as temperature and network errors. If I run these commands from the command line on the Nagios server they work fine. Also note that I am running the NSClient++ on this managed host and all of the check_nt commands seem to be working. >From what I can tell Nagios is attempting to run these check commands on the managed host as an external command. I cannot find how to tell Nagios to run this command on the Nagios server. I receive the same error using other check_snmp_xxx commands as well. OK.. Below are the meat and potatoes but note that these .cfg files have gone through various iterations and may not be in the exact syntax defined by the documentation. Any and all advice is welcome. --Thanks, Chris Nagios 3.0rc1 Red Hat Linux 2.6.18-53.1.4.el5 gwfl-nagios-plugins-2.1 windows.cfg define service{ use generic-service host_name host-001 service_description check_snmp_nics check_command check_snmp_nics!-C MyCommStrg } commands.cfg # 'check_snmp_nics' command defination define command { command_name check_snmp_nics command_line /$USER1&/check_snmp_nics -H $HOSTADDRESS$ $ARG1$ } [root at ONagiosSvr libexec]# ls -la check_snmp_nics -rwxr-xr-x 1 nagios nagios 394147 Jan 31 12:09 check_snmp_nics nagios.log [1202149562] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;host-001;check_snmp_nics;1202149561 [1202149565] Warning: Return code of 127 for check of service 'check_snmp_nics' on host 'host-001' was out of bounds. Make sure the plugin you're trying to run actually exists. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 5 19:18:46 2008 From: marc at ena.com (Marc Powell) Date: Tue, 5 Feb 2008 12:18:46 -0600 Subject: conditional variable usage (host specific settings) In-Reply-To: <20080205173803.GA28329@zaphod.krikkit.nl> References: <20080205173803.GA28329@zaphod.krikkit.nl> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Rejo Zenger > Sent: Tuesday, February 05, 2008 11:38 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] conditional variable usage (host specific > settings) > > Hi there, > > Can I add $ARGn$ like variables to service definitions that are loading > other templates? I have this: > > I want to check ssh on $HOSTADDRESS$ for the majority of servers. There > are however a number of exeptions. These servers must be checked on > their secondary IP address. > > Now, can I add something to the first "service definition" so I can > specify it *only* if the second IP address must be used? So, in the > third definition, it should be something like "use specific value if > specified, otherwise use $HOSTADDRESS$". No, you cannot. I think the closest you can get would be to specify a different check_command in your first definition that would override the template check_command. This other check_command could take the argument of the address you want to check. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jcall at verio.net Tue Feb 5 20:08:08 2008 From: jcall at verio.net (Jonathan Call) Date: Tue, 5 Feb 2008 14:08:08 -0500 Subject: Is Embedded Perl + Nagios::Plugin worth it? Message-ID: <04F3233F47E2714CB7431AE913E57E770283BD6A@IAD-WPRD-XCHB02.corp.verio.net> I've got one server that is getting tanked right now. (Load average in the 50's) Is it worth it to rewrite the many perl scripts I have to use Embedded Perl and the Nagios::Plugin CPAN module? I'm speaking in terms of performance and also in terms of future Nagios releases/compatibility. Jonathan This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Tue Feb 5 20:39:49 2008 From: llow at telesphere.com (Larry Low) Date: Tue, 5 Feb 2008 12:39:49 -0700 Subject: Check Hsrp In-Reply-To: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> References: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> Message-ID: <02d501c8682e$dec27790$9c4766b0$@com> You need to specify an interface by the ifIndex. HSRP groups are per interface. I haven't tested the HSRP portion of the code very extensively so let me know if you run into any more problems. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of John Duraisw Sent: Tuesday, February 05, 2008 10:56 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Check Hsrp Hello All, I am trying to check hsrp on 6509 with the following, and I am running into problems. Please let me know what I am doing wrong here. [root at nmsweb ~]# ./check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha --hsrpgrp 10 Usage: check_ifoperstatus.pl -H [-C ] -k check_ifoperstatus.pl [-h | --help] check_ifoperstatus.pl [-V | --version] Thanks for your help, -john -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Tue Feb 5 20:41:30 2008 From: llow at telesphere.com (Larry Low) Date: Tue, 5 Feb 2008 12:41:30 -0700 Subject: Check Hsrp References: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> Message-ID: <02e301c8682f$1b045700$510d0500$@com> You need to use -t hsrp as well. Note it will return ok on standby and active and only critical on other states. I did this on purpose as it was to be used in conjunction with trap processing. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: Larry Low [mailto:llow at telesphere.com] Sent: Tuesday, February 05, 2008 12:40 PM To: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Check Hsrp You need to specify an interface by the ifIndex. HSRP groups are per interface. I haven't tested the HSRP portion of the code very extensively so let me know if you run into any more problems. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of John Duraisw Sent: Tuesday, February 05, 2008 10:56 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Check Hsrp Hello All, I am trying to check hsrp on 6509 with the following, and I am running into problems. Please let me know what I am doing wrong here. [root at nmsweb ~]# ./check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha --hsrpgrp 10 Usage: check_ifoperstatus.pl -H [-C ] -k check_ifoperstatus.pl [-h | --help] check_ifoperstatus.pl [-V | --version] Thanks for your help, -john -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From perldork at webwizarddesign.com Tue Feb 5 21:02:02 2008 From: perldork at webwizarddesign.com (Max) Date: Tue, 5 Feb 2008 15:02:02 -0500 Subject: Is Embedded Perl + Nagios::Plugin worth it? In-Reply-To: <04F3233F47E2714CB7431AE913E57E770283BD6A@IAD-WPRD-XCHB02.corp.verio.net> References: <04F3233F47E2714CB7431AE913E57E770283BD6A@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: Hi Jonathan, Yes and yes. You will notice a huge decrease in load if you move to ePN, just make sure you code to the Plugin standards for ePN and make sure you scope variables properly so you don't have memory leaks in your code (same situation as if you were writing code for mod_perl). I think there is a pretty solid group of people using ePN, if anything my hope is that future releases will add the option of enabling other embedded interpreters at compile time (Lua, ruby, python, PHP) the way the Net-SNMP project, RRDtool, and others do :). - Max On Feb 5, 2008 2:08 PM, Jonathan Call wrote: > I've got one server that is getting tanked right now. (Load average in > the 50's) Is it worth it to rewrite the many perl scripts I have to use > Embedded Perl and the Nagios::Plugin CPAN module? > > I'm speaking in terms of performance and also in terms of future Nagios > releases/compatibility. > > Jonathan > > > This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 5 21:05:39 2008 From: marc at ena.com (Marc Powell) Date: Tue, 5 Feb 2008 14:05:39 -0600 Subject: check_snmp_xxx-- Return code of 127 - plug-in may bemissing In-Reply-To: <020520081811.24075.47A8A6BF0002770E00005E0B2216551406CFCF0B97010D9C079D080C@comcast.net> References: <020520081811.24075.47A8A6BF0002770E00005E0B2216551406CFCF0B97010D9C079D080C@comcast.net> Message-ID: Hi Chris -- > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of chrisboyd00 at comcast.net > Sent: Tuesday, February 05, 2008 12:11 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_snmp_xxx-- Return code of 127 - plug-in may > bemissing This error indicates that the path to the plugin in the command{} definition is incorrect or the plugin filename is wrong. > commands.cfg > > # 'check_snmp_nics' command defination > define command { > command_name check_snmp_nics > command_line /$USER1&/check_snmp_nics -H $HOSTADDRESS$ $ARG1$ > } You almost certainly mean -- command_line $USER1$/check_snmp_nics -H $HOSTADDRESS$ $ARG1$ ...assuming that $USER1$ is defined as /usr/local/nagios/libexec (or whatever the path is) in resource.cfg. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Tue Feb 5 21:12:50 2008 From: llow at telesphere.com (Larry Low) Date: Tue, 5 Feb 2008 13:12:50 -0700 Subject: Is Embedded Perl + Nagios::Plugin worth it? In-Reply-To: References: <04F3233F47E2714CB7431AE913E57E770283BD6A@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: <02f501c86833$7bb80f20$73282d60$@com> I currently use ePN for all my active checks (though most are only every 60 minutes since I rely on passive means). The only thing I run outside of ePN is my notification script as I haven't had the urge or need to rewrite it to load under the ePN. I don't use the Nagios::Plugin CPAN module though, just the utils.pm. I have seen many reports of memory leaks but I've yet to see any on this or any earlier deployment. Time Frame Services Checked <= 1 minute: 613 (10.0%) <= 5 minutes: 1702 (27.8%) <= 15 minutes: 1878 (30.7%) <= 1 hour: 4281 (70.0%) Since program start: 4281 (70.0%) ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Max > Sent: Tuesday, February 05, 2008 1:02 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Is Embedded Perl + Nagios::Plugin worth it? > > Hi Jonathan, > > Yes and yes. You will notice a huge decrease in load if you move to > ePN, just make sure you code to the Plugin standards for ePN and make > sure you scope variables properly so you don't have memory leaks in > your code (same situation as if you were writing code for mod_perl). > > I think there is a pretty solid group of people using ePN, if > anything my hope is that future releases will add the option of > enabling other embedded interpreters at compile time (Lua, ruby, > python, PHP) the way the Net-SNMP project, RRDtool, and others do :). > > - Max > > On Feb 5, 2008 2:08 PM, Jonathan Call wrote: > > I've got one server that is getting tanked right now. (Load average > in > > the 50's) Is it worth it to rewrite the many perl scripts I have to > use > > Embedded Perl and the Nagios::Plugin CPAN module? > > > > I'm speaking in terms of performance and also in terms of future > Nagios > > releases/compatibility. > > > > Jonathan > > > > > > This email message is intended for the use of the person to whom it > has been sent, and may contain information that is confidential or > legally protected. If you are not the intended recipient or have > received this message in error, you are not authorized to copy, > distribute, or otherwise use this message or its attachments. Please > notify the sender immediately by return e-mail and permanently delete > this message and any attachments. Verio, Inc. makes no warranty that > this email is error or virus free. Thank you. > > > > --------------------------------------------------------------------- > ---- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Tue Feb 5 21:15:04 2008 From: llow at telesphere.com (Larry Low) Date: Tue, 5 Feb 2008 13:15:04 -0700 Subject: Disable/Enable Service Checks based on Host State In-Reply-To: <00aa01c85709$7d392b80$77ab8280$@com> References: <00aa01c85709$7d392b80$77ab8280$@com> Message-ID: <02f601c86833$cb9c5460$62d4fd20$@com> Anyone have any ideas how to tackle this problem? Most of my active checks are run very rarely (60 minutes) so if one is checked while the host is down it takes longer than I would like to see a recovery. I want to reduce unnecessary e-mail alerts too (recoveries of said services). ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Larry Low > Sent: Monday, January 14, 2008 4:59 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Disable/Enable Service Checks based on Host > State > > I want Nagios to refrain from performing active service checks while a > host > is down and re-enable them on its recovery. The only way I can think > of > doing this is with event handlers except I will run into the problem of > re-enabling a service someone may have manually disabled in the web > interface. > > I am running Nagios 3.0rc1. > > Any ideas? > > ---- > Larry Low > 4150 N Drinkwater Blvd., 5th Floor > Scottsdale, AZ 85251 > Office: 480.385.7045 > E-mail: llow at telesphere.com' > > Telesphere Networks, Inc > > > > > ----------------------------------------------------------------------- > -- > 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/market > place > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 5 21:44:12 2008 From: marc at ena.com (Marc Powell) Date: Tue, 5 Feb 2008 14:44:12 -0600 Subject: Disable/Enable Service Checks based on Host State In-Reply-To: <02f601c86833$cb9c5460$62d4fd20$@com> References: <02f601c86833$cb9c5460$62d4fd20$@com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Larry Low > Sent: Tuesday, February 05, 2008 2:15 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Disable/Enable Service Checks based on Host > State > > Anyone have any ideas how to tackle this problem? Most of my active > checks > are run very rarely (60 minutes) so if one is checked while the host is > down > it takes longer than I would like to see a recovery. I want to reduce > unnecessary e-mail alerts too (recoveries of said services). > It's a strange request. Maybe you need to explain better why you think you need to do this or what you're trying to accomplish. If nagios is allowed to continue its service checks, it'll recognize the host recovery with the first service check after it does recover. This is part of the core design of nagios. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Tue Feb 5 22:01:46 2008 From: llow at telesphere.com (Larry Low) Date: Tue, 5 Feb 2008 14:01:46 -0700 Subject: Disable/Enable Service Checks based on Host State In-Reply-To: References: <02f601c86833$cb9c5460$62d4fd20$@com> Message-ID: <031301c8683a$51b1fc70$f515f550$@com> > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > users- > > bounces at lists.sourceforge.net] On Behalf Of Larry Low > > Sent: Tuesday, February 05, 2008 2:15 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Disable/Enable Service Checks based on > Host > > State > > > > Anyone have any ideas how to tackle this problem? Most of my active > > checks > > are run very rarely (60 minutes) so if one is checked while the host > is > > down > > it takes longer than I would like to see a recovery. I want to > reduce > > unnecessary e-mail alerts too (recoveries of said services). > > > > It's a strange request. Maybe you need to explain better why you think > you need to do this or what you're trying to accomplish. If nagios is > allowed to continue its service checks, it'll recognize the host > recovery with the first service check after it does recover. This is > part of the core design of nagios. Host A is detected down. I perform simple ICMP checks for this. Checking services for this host is pointless as they are going to fail. I would simply like active service checks to be halted until the host recovers. The host recovery is handled by the host checks which will run every retry interval. There is no need to check services to detect recovery. To prevent any possible problems with the host not being detected on its recovery I will simply reschedule checks for all services in 5 minutes from the recovery. > > -- > Marc > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jdevroy at toscaltd.com Tue Feb 5 22:19:51 2008 From: jdevroy at toscaltd.com (James Devroy) Date: Tue, 5 Feb 2008 15:19:51 -0600 Subject: NDO and Nagvis Integration Message-ID: Hello, I am having an issue integrating NDO and Nagvis into my Nagios installation. I get the following error when I try to view a nagvis map: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/local/nagios/share/nagvis/nagvis/includes/classes/GlobalBackend-ndo my.php on line 58 nagiosNotRunning: NDOMy: Nagios not running (Backend ndomy_1) NDO reports that Nagios is not running After reading this board and the nagvis website apparently this is not an unusual error; however, I have taken all the steps that have been suggested previously and still nothing. Here is a list of all the pertinent information I can think of. System: CentOS 4.6 MySQL 4.1.20 Nagios 2.9 Nagvis 1.2.2 NDOutils 1.4b7 Troubleshooting sofar: Ensured nagios.cfg file has Event_broker_options=-1 Check_external_commands=1 Command_check_interval=10s Checked ndo2db.cfg and ndomod.cfg for appropriate database settings Monitoring of /var/log/messages revealed no information in reference to 'ndo' (ie. Cat '/var/log/messages | grep ndo'). I am also getting an error on the same page that says: Warning: Unknown: open(/tmp/sess_7ebd84ff779d34acebacc2ad3ad9416a, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 I am not sure what exactly this is saying because it does not reference a file that I can see, but I have double checked the directory and file permissions in /usr/local/nagios/share/nagvis and everything seems to be set appropriately. I would appreciate any available assistance with this matter, and I look forward to getting nagvis up and running. -James -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1591 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.gif Type: image/gif Size: 1396 bytes Desc: image003.gif URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 5 22:22:13 2008 From: marc at ena.com (Marc Powell) Date: Tue, 5 Feb 2008 15:22:13 -0600 Subject: Check Hsrp {Disarmed} {Fraud?} In-Reply-To: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> References: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of John Duraisw > Sent: Tuesday, February 05, 2008 11:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check Hsrp {Disarmed} {Fraud?} > > Hello All, > I am trying to check hsrp on 6509 with the following, and I am running > into problems. Please let me know what I am doing wrong here. > > [root at nmsweb ~]# ./check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha -- > hsrpgrp 10 Usage: > check_ifoperstatus.pl -H [-C ] -k > check_ifoperstatus.pl [-h | --help] > check_ifoperstatus.pl [-V | --version] I've tried googling for the plugin (check_ifoperstatus.0.7.pl) to guess where you got it but there's only one result returned -- Gmane -- Mail To News And Back Again check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha --hsrpgrp 10 Usage: check_ifoperstatus.pl -H [-C ] -k ... article.gmane.org/gmane.network.nagios.user/52314 - 2 hours ago - Similar pages - Note this You should always say where you obtained non-standard plugins to be sure that you're getting help with the plugin you're using. If it's this plugin (http://www.nagiosexchange.org/Networking.53.0.html?&tx_netnagext_pi1[p_ view]=1099), it looks like you might need to add a '-t hsrpgrp' based on the --help. -- Marc p.s. You shouldn't test your plugins as root but rather as the nagios user. Most plugin problems are related to user permissions. You wouldn't see that testing as root. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jdevroy at toscaltd.com Tue Feb 5 22:55:09 2008 From: jdevroy at toscaltd.com (James Devroy) Date: Tue, 5 Feb 2008 15:55:09 -0600 Subject: NDO and Nagvis Integration In-Reply-To: References: Message-ID: Thank you very much for the assistance, but I just realized that I accidently missed a, apparently, crucial step in the installation. I forgot to add the second part of the broker_module command: broker_module=/usr/local/nagios/bin/ndomod-2x.o config_file=/usr/local/nagios/etc/ndomod.cfg Adding it cleared up my database issues and chmod 777 /tmp cleared up my second issue. Anyway I appreciate your quick response to my question. -James -----Original Message----- From: Valdinger, Stephen (DOV, MSX) [mailto:svalding at doverchem.com] Sent: Tuesday, February 05, 2008 3:23 PM To: James Devroy; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NDO and Nagvis Integration If you will give me a day I would be happy to write up a howto for you. Stephen Valdinger MIS Helpdesk Coordinator P: 330.365.3622 C: 740.491.0958 -----Original Message----- From: James Devroy To: nagios-users at lists.sourceforge.net Sent: Tue Feb 05 16:19:51 2008 Subject: [Nagios-users] NDO and Nagvis Integration Hello, I am having an issue integrating NDO and Nagvis into my Nagios installation. I get the following error when I try to view a nagvis map: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/local/nagios/share/nagvis/nagvis/includes/classes/GlobalBackend-ndo my.php on line 58 nagiosNotRunning: NDOMy: Nagios not running (Backend ndomy_1) NDO reports that Nagios is not running After reading this board and the nagvis website apparently this is not an unusual error; however, I have taken all the steps that have been suggested previously and still nothing. Here is a list of all the pertinent information I can think of. System: CentOS 4.6 MySQL 4.1.20 Nagios 2.9 Nagvis 1.2.2 NDOutils 1.4b7 Troubleshooting sofar: Ensured nagios.cfg file has Event_broker_options=-1 Check_external_commands=1 Command_check_interval=10s Checked ndo2db.cfg and ndomod.cfg for appropriate database settings Monitoring of /var/log/messages revealed no information in reference to 'ndo' (ie. Cat '/var/log/messages | grep ndo'). I am also getting an error on the same page that says: Warning: Unknown: open(/tmp/sess_7ebd84ff779d34acebacc2ad3ad9416a, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 I am not sure what exactly this is saying because it does not reference a file that I can see, but I have double checked the directory and file permissions in /usr/local/nagios/share/nagvis and everything seems to be set appropriately. I would appreciate any available assistance with this matter, and I look forward to getting nagvis up and running. -James This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gwong at wong-consulting.com Tue Feb 5 23:22:03 2008 From: gwong at wong-consulting.com (Gregory Wong) Date: Tue, 05 Feb 2008 17:22:03 -0500 Subject: No Email Notifications Message-ID: Hi Everyone, I am having some problems getting email notifications on a new Nagios server I just built. I have only setup PING and SMTP checks to see if everything is working properly. The Event Log on the web interface shows the following message: [02-05-2008 17:14:02] Warning: Attempting to execute the command "/usr/bin/mail/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: PROBLEM\nHost: SMTP\nState: DOWN\nAddress: \nInfo: PING CRITICAL - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" | -s "Host DOWN alert for SMTP!" " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... I ran apt-get mailx as per someone?s instructions in order to get email notifications and also changed /bin/mail to /usr/bin/mail in commands.cfg specifically in the email notifications section. Any ideas on how to get email notifications fixed? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Tue Feb 5 23:24:10 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 5 Feb 2008 14:24:10 -0800 Subject: No Email Notifications In-Reply-To: References: Message-ID: <20080205222410.GV7974@bakgwai.americas.hpqcorp.net> On Tue, 05 Feb 2008, Gregory Wong wrote: > Hi Everyone, > > I am having some problems getting email notifications on a new Nagios server I just built. I have only setup PING and SMTP checks to see if everything is working properly. The Event Log on the web interface shows the following message: > > [02-05-2008 17:14:02] Warning: Attempting to execute the command "/usr/bin/mail/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: PROBLEM\nHost: SMTP\nState: DOWN\nAddress: \nInfo: PING CRITICAL - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" | -s "Host DOWN alert for SMTP!" " resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... Have you done what the error message suggests, and looked to see if /usr/bin/mail/printf actually exists? Betchya it doesn't. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gwong at wong-consulting.com Tue Feb 5 23:33:37 2008 From: gwong at wong-consulting.com (Gregory Wong) Date: Tue, 05 Feb 2008 17:33:37 -0500 Subject: No Email Notifications In-Reply-To: <20080205222410.GV7974@bakgwai.americas.hpqcorp.net> References: <20080205222410.GV7974@bakgwai.americas.hpqcorp.net> Message-ID: In /usr/bin there is mail and printf. Should I be using /usr/bin/mail or /usr/bin/printf before the notification string? On 2/5/08 5:24 PM, "Patrick Morris" wrote: > On Tue, 05 Feb 2008, Gregory Wong wrote: > >> Hi Everyone, >> >> I am having some problems getting email notifications on a new Nagios server >> I just built. I have only setup PING and SMTP checks to see if everything is >> working properly. The Event Log on the web interface shows the following >> message: >> >> [02-05-2008 17:14:02] Warning: Attempting to execute the command >> "/usr/bin/mail/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: >> PROBLEM\nHost: SMTP\nState: DOWN\nAddress: \nInfo: PING CRITICAL >> - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" | -s "Host >> DOWN alert for SMTP!" " resulted in a return code of 127. Make >> sure the script or binary you are trying to execute actually exists... > > Have you done what the error message suggests, and looked to see if > /usr/bin/mail/printf actually exists? > > Betchya it doesn't. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Tue Feb 5 23:45:18 2008 From: llow at telesphere.com (Larry Low) Date: Tue, 5 Feb 2008 15:45:18 -0700 Subject: No Email Notifications In-Reply-To: References: <20080205222410.GV7974@bakgwai.americas.hpqcorp.net> Message-ID: <033d01c86848$c84b4810$58e1d830$@com> /usr/bin/printf, /usr/bin/mail should be after the pipe ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Gregory Wong > Sent: Tuesday, February 05, 2008 3:34 PM > To: Patrick Morris > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] No Email Notifications > > In /usr/bin there is mail and printf. Should I be using /usr/bin/mail > or > /usr/bin/printf before the notification string? > > > On 2/5/08 5:24 PM, "Patrick Morris" wrote: > > > On Tue, 05 Feb 2008, Gregory Wong wrote: > > > >> Hi Everyone, > >> > >> I am having some problems getting email notifications on a new > Nagios server > >> I just built. I have only setup PING and SMTP checks to see if > everything is > >> working properly. The Event Log on the web interface shows the > following > >> message: > >> > >> [02-05-2008 17:14:02] Warning: Attempting to execute the command > >> "/usr/bin/mail/printf "%b" "***** Nagios 2.6 *****\n\nNotification > Type: > >> PROBLEM\nHost: SMTP\nState: DOWN\nAddress: \nInfo: PING > CRITICAL > >> - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" | > -s "Host > >> DOWN alert for SMTP!" " resulted in a return code of > 127. Make > >> sure the script or binary you are trying to execute actually > exists... > > > > Have you done what the error message suggests, and looked to see if > > /usr/bin/mail/printf actually exists? > > > > Betchya it doesn't. > > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Dave.Hamlin at xerox.com Wed Feb 6 00:14:49 2008 From: Dave.Hamlin at xerox.com (Hamlin, Dave) Date: Tue, 5 Feb 2008 18:14:49 -0500 Subject: No Email Notifications In-Reply-To: References: <20080205222410.GV7974@bakgwai.americas.hpqcorp.net> Message-ID: You're command line should look like this: /usr/bin/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: PROBLEM\nHost: SMTP\nState: DOWN\nAddress: \nInfo: PING CRITICAL - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" | /usr/bin/mail -s "Host DOWN alert for SMTP!" -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Gregory Wong Sent: Tuesday, February 05, 2008 5:34 PM To: Patrick Morris Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] No Email Notifications In /usr/bin there is mail and printf. Should I be using /usr/bin/mail or /usr/bin/printf before the notification string? On 2/5/08 5:24 PM, "Patrick Morris" wrote: > On Tue, 05 Feb 2008, Gregory Wong wrote: > >> Hi Everyone, >> >> I am having some problems getting email notifications on a new Nagios server >> I just built. I have only setup PING and SMTP checks to see if everything is >> working properly. The Event Log on the web interface shows the following >> message: >> >> [02-05-2008 17:14:02] Warning: Attempting to execute the command >> "/usr/bin/mail/printf "%b" "***** Nagios 2.6 *****\n\nNotification Type: >> PROBLEM\nHost: SMTP\nState: DOWN\nAddress: \nInfo: PING CRITICAL >> - Packet loss = 100%\n\nDate/Time: Tue Feb 5 17:14:02 EST 2008\n" | -s "Host >> DOWN alert for SMTP!" " resulted in a return code of 127. Make >> sure the script or binary you are trying to execute actually exists... > > Have you done what the error message suggests, and looked to see if > /usr/bin/mail/printf actually exists? > > Betchya it doesn't. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Wed Feb 6 00:45:00 2008 From: Roger at NagiosWiki.com (Roger) Date: Tue, 5 Feb 2008 15:45:00 -0800 Subject: snmpwalk works, but check_snmp does not Message-ID: <2b7af7c40802051545o17aa0649uf45354d03166b493@mail.gmail.com> I have an interesting issue when using the Nagios plugin to make an SNMP query to a Netscreen 208. I have two Nagios servers -- Gentoo and CentOS -- and one of the check_snmp commands are not working on CentOS server (Nagios03) when I run it *exactly* from the command line like I do in Gentoo (Nagios01) e.g. >From CentOS (does not work) [root at nagios03 plugins]# pwd /usr/lib/nagios/plugins [root at nagios03 plugins]# ./check_snmp -C myPublicString -o nsVpnMonP2State.0-l DC_VPN_Status -c 1: -H 10.0.11.9 DC_VPN_Status problem - No data received from host CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c myPublicString 10.0.11.9:161 nsVpnMonP2State.0 >From Gentoo (works) nagios01 libexec # pwd /usr/nagios/libexec nagios01 libexec # ./check_snmp -C myPublicString -o nsVpnMonP2State.0 -l DC_VPN_Status -c 1: -H 10.0.11.9 DC_VPN_Status OK - 1 | NETSCREEN-VPN-MON-MIB::nsVpnMonP2State.0=1;;;; Normally, I'd think that it is an issue with the polled device not being configured properly, but since I can 'snmpwalk' it from the CentOS box in question, I'm not sure what to do. Any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Wed Feb 6 02:40:07 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 5 Feb 2008 17:40:07 -0800 Subject: snmpwalk works, but check_snmp does not In-Reply-To: <2b7af7c40802051545o17aa0649uf45354d03166b493@mail.gmail.com> References: <2b7af7c40802051545o17aa0649uf45354d03166b493@mail.gmail.com> Message-ID: <20080206014007.GW7974@bakgwai.americas.hpqcorp.net> Hi Roger! On Tue, 05 Feb 2008, Roger wrote: > From CentOS (does not work) > > [root at nagios03 plugins]# pwd > /usr/lib/nagios/plugins > [root at nagios03 plugins]# ./check_snmp -C myPublicString -o nsVpnMonP2State.0 -l DC_VPN_Status -c 1: -H 10.0.11.9 > DC_VPN_Status problem - No data received from host > CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c myPublicString 10.0.11.9:161 nsVpnMonP2State.0 > > From Gentoo (works) > > nagios01 libexec # pwd > /usr/nagios/libexec > nagios01 libexec # ./check_snmp -C myPublicString -o nsVpnMonP2State.0 -l DC_VPN_Status -c 1: -H 10.0.11.9 > DC_VPN_Status OK - 1 | NETSCREEN-VPN-MON-MIB::nsVpnMonP2State.0=1;;;; > > Normally, I'd think that it is an issue with the polled device not being configured properly, but since I can 'snmpwalk' it from the CentOS box in question, I'm not sure what to do. Two things: First, never manually check a plugin as root, as you often won't get the same results you would as the user Nagios runs as. That probably won't help in this case, but it will almost certainly bite you in the ass in the future. Second, you've got the snmpget command being sent to the box... what happens when you run that (again, use the user Nagios runs as)? When you do an snmpwalk, are you able to see the nsVpnMonP2State OID? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From svalding at kent.edu Tue Feb 5 15:36:16 2008 From: svalding at kent.edu (svalding at kent.edu) Date: Tue, 05 Feb 2008 09:36:16 -0500 Subject: Slightly off topic, but hopefully you can help Message-ID: List, I am doing a school project and I wanted to do something with nagios/monitoring. I am in a business class and my team wants to create a consulting firm that specializes in network technology/topology/monitoring. We are going to use Nagios as the base for our monitoring solution, as we all have experience with it in our real life jobs, and therefore can build a good business plan as to why the software is the best option. What I am wondering is if anyone on this list that actually does Nagios support/consulting can give me a few pointer/highlights to hit on, some pricing information and what kind of support packages your company offers as a base. Thanks! -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gcoochey at sapphire.gi Wed Feb 6 09:42:53 2008 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 6 Feb 2008 09:42:53 +0100 Subject: Check Hsrp In-Reply-To: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> References: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744BD8F52@hermes.sapphire-int.gi> I do the following for HSRP: define command{ command_name check-hsrp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -P 2c -C $ARG1$ -o SNMPv2-SMI::enterprises.9.9.106.1.2.1.1.13.$ARG2$ -s 'IpAddress: $ARG3$' } $ARG1$ is community $ARG2$ is the appropriate OID suffix for the interface $ARG3$ is normally active IP I have not used check_ifoperstatus before, though it looks interesting. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of John Duraisw Sent: 05 February 2008 18:56 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Check Hsrp Hello All, I am trying to check hsrp on 6509 with the following, and I am running into problems. Please let me know what I am doing wrong here. [root at nmsweb ~]# ./check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha --hsrpgrp 10 Usage: check_ifoperstatus.pl -H [-C ] -k check_ifoperstatus.pl [-h | --help] check_ifoperstatus.pl [-V | --version] Thanks for your help, -john -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ojan at gfi.fr Wed Feb 6 11:23:02 2008 From: ojan at gfi.fr (Olivier JAN) Date: Wed, 06 Feb 2008 11:23:02 +0100 Subject: web interface access and authorization Message-ID: <20080206112302.snucxc8k68g88884@intra.expertise-online.net> Hi list, I have a question regarding web interface authorization with nagios 3. What i understood is that - you can have peoples not in contact for a host or service that can view all hosts and services but cannot issue commands for them (wiht right permissions). - You can have peoples define as contact for a host or service than can view and command all hosts and services for which they are contact. The questions are : Can you have people as contact for host and service that can view those hosts and services but CANNOT issue command on them. How can i achieve this ? Can you have people not define as contact for a host and service to see only certains hostgroups or servicegroups and don't issue commands on them ? Hope it's clear enough for you guys ;-) Thanks for any suggestions Olivier Jan http://nagios-fr.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nagios-users at subs.krikkit.nl Wed Feb 6 13:20:46 2008 From: nagios-users at subs.krikkit.nl (Rejo Zenger) Date: Wed, 6 Feb 2008 13:20:46 +0100 Subject: conditional variable usage (host specific settings) In-Reply-To: References: <20080205173803.GA28329@zaphod.krikkit.nl> Message-ID: <20080206122046.GA23207@zaphod.krikkit.nl> ++ 05/02/08 12:18 -0600 - Marc Powell: >No, you cannot. I think the closest you can get would be to specify a >different check_command in your first definition that would override the >template check_command. This other check_command could take the argument >of the address you want to check. Of course I have thought about that option, but it would be sub-optimal only. If I would need to change some other option to the check_command, I would need to change it at several locations (which I want to avoid, and which is why I am using templating). But of course, nit-picking, as no one needs to change check_command options frequently - not me anyway. Thanks a lot for the answer. -- Rejo Zenger https://rejo.zenger.nl -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From john.duraiswamy at gmail.com Wed Feb 6 14:14:32 2008 From: john.duraiswamy at gmail.com (John Duraisw) Date: Wed, 6 Feb 2008 08:14:32 -0500 Subject: Check Hsrp In-Reply-To: <02d501c8682e$dec27790$9c4766b0$@com> References: <69451f940802050956w154269c8w8501625b81f13b0f@mail.gmail.com> <02d501c8682e$dec27790$9c4766b0$@com> Message-ID: <69451f940802060514r2b05ee72v162bc5e7fbed76c6@mail.gmail.com> Larry, Thanks you very much. That's what was missing, and now I should be able to proceed. [nagios at nmsweb ~]$ ./check_ifoperstatus.0.7.pl -H 10.31.1.106 -C public -k 175 -t hsrpgrp --hsrpgrp 85 OK - Interface 'Vl85' HSRP Group 85 status is 'standby' (index 175) Thanks, -john On Feb 5, 2008 2:39 PM, Larry Low wrote: > You need to specify an interface by the ifIndex. HSRP groups are per > interface. I haven't tested the HSRP portion of the code very extensively > so let me know if you run into any more problems. > > > > ---- > > Larry Low > > 4150 N Drinkwater Blvd., 5th Floor > > Scottsdale, AZ 85251 > > Office: 480.385.7045 > > E-mail: llow at telesphere.com' > > > > Telesphere Networks, Inc > > > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *John Duraisw > *Sent:* Tuesday, February 05, 2008 10:56 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] Check Hsrp > > > > Hello All, > I am trying to check hsrp on 6509 with the following, and I am running > into problems. Please let me know what I am doing wrong here. > > [root at nmsweb ~]# ./check_ifoperstatus.0.7.pl -H 10.31.1.8 -C ubetcha > --hsrpgrp 10 Usage: > check_ifoperstatus.pl -H [-C ] -k > check_ifoperstatus.pl [-h | --help] > check_ifoperstatus.pl [-V | --version] > > Thanks for your help, > > -john > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tomw at bnl.gov Wed Feb 6 16:16:39 2008 From: tomw at bnl.gov (Tom Wlodek) Date: Wed, 06 Feb 2008 10:16:39 -0500 Subject: How to submit passive test results from a script? Message-ID: <1202310999.4586.23.camel@localhost.localdomain> Ladies and gentlemen, I have a service running on nagios server and I would like to submit passive test results from a client script. I see that nagios has an interface to submit those results: https://my.nagios.com/nagios/cgi-bin/cmd.cgi? cmd_typ=30&host=my.host.com&service=nagios+test+service& I go there and I see a form. All it takes is to fill this form and then clic submit. So I figured out that if I embed the form fields in URL and then load the URL then I will effectively submit the form. So I do: https://my.nagios.com/nagios/cgi-bin/cmd.cgi? cmd_typ=30&host=my.host.com&service=nagios+test +service&plugin_state=3&plugin_output=pluginOuttput&performance_data=test&btnSubmit=Commit I load this page - and nothing happens. How do you submit passive test results to nagios from scripts? Tom ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From svalding at kent.edu Wed Feb 6 14:56:12 2008 From: svalding at kent.edu (svalding at kent.edu) Date: Wed, 06 Feb 2008 08:56:12 -0500 Subject: Nagios HTTPS access Message-ID: List, Hi Command as I like to call it has asked to put Nagios on an https site. That is all well and fine, but I can't get it to work for some reason. I followed the faq and have everything set up exactly as it states, but still no worky. Apache2 is compiled and ssl support is all set up. I checked the firewall and it is passing 443 traffic just fine. I am missing something somewhere though. Anyone have a how-to on getting this going on Ubuntu? -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sascha.Runschke at gfkl.com Wed Feb 6 16:22:49 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Wed, 6 Feb 2008 16:22:49 +0100 Subject: Antwort: How to submit passive test results from a script? In-Reply-To: <1202310999.4586.23.camel@localhost.localdomain> References: <1202310999.4586.23.camel@localhost.localdomain> Message-ID: nagios-users-bounces at lists.sourceforge.net schrieb am 06.02.2008 16:16:39: > How do you submit passive test results to nagios from scripts? Take a look at NSCA, you'll find the framework on the nagios homepage. regards Sascha -- Sascha Runschke Netzwerk- und Systemmanagement Abt. Organisation und Betrieb - IT-Infrastruktur GFKL Financial Services AG Limbecker Platz 1, 45127 Essen Telefon : +49 (201) 102-1879 Mobile : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Wed Feb 6 16:23:16 2008 From: knobdy at gmail.com (Brian Loe) Date: Wed, 6 Feb 2008 09:23:16 -0600 Subject: Slightly off topic, but hopefully you can help In-Reply-To: References: Message-ID: <3c4611bc0802060723j1666e90dt27bbe592b4294917@mail.gmail.com> On Feb 5, 2008 8:36 AM, wrote: > List, > I am doing a school project and I wanted to do something with > nagios/monitoring. I am in a business class and my team wants to create > a consulting firm that specializes in network > technology/topology/monitoring. We are going to use Nagios as the base > for our monitoring solution, as we all have experience with it in our > real life jobs, and therefore can build a good business plan as to why > the software is the best option. What I am wondering is if anyone on > this list that actually does Nagios support/consulting can give me a few > pointer/highlights to hit on, some pricing information and what kind of > support packages your company offers as a base. Thanks! > Sounds like difficult questions to ask, even privately, but I wouldn't mind hearing it either. There aren't enough companies out there doing it themselves, or even enough offering it on a consulting basis in my opinion. Then you have those companies that offer it but don't know what they're doing... ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From aaron.segura at cabelas.com Wed Feb 6 16:23:31 2008 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Wed, 06 Feb 2008 08:23:31 -0700 Subject: How to submit passive test results from a script? In-Reply-To: <1202310999.4586.23.camel@localhost.localdomain> References: <1202310999.4586.23.camel@localhost.localdomain> Message-ID: <1202311411.8744.64.camel@sidhqmis4grdv91> On Wed, 2008-02-06 at 10:16 -0500, Tom Wlodek wrote: > Ladies and gentlemen, > > I have a service running on nagios server and I would like to submit > passive test results from a client script. > > I see that nagios has an interface to submit those results: > > https://my.nagios.com/nagios/cgi-bin/cmd.cgi? > cmd_typ=30&host=my.host.com&service=nagios+test+service& > > I go there and I see a form. All it takes is to fill this form and then > clic submit. > > So I figured out that if I embed the form fields in URL and then load > the URL then I will effectively submit the form. So I do: > > https://my.nagios.com/nagios/cgi-bin/cmd.cgi? > cmd_typ=30&host=my.host.com&service=nagios+test > +service&plugin_state=3&plugin_output=pluginOuttput&performance_data=test&btnSubmit=Commit > > I load this page - and nothing happens. > > How do you submit passive test results to nagios from scripts? > > Tom Either via NSCA or External Commands. Since you're local to the nagios server with this script, external commands would probably be the way to go. http://www.nagios.org/developerinfo/externalcommands/commandlist.php Specifically: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=114 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sascha.Runschke at gfkl.com Wed Feb 6 16:25:01 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Wed, 6 Feb 2008 16:25:01 +0100 Subject: Antwort: Nagios HTTPS access In-Reply-To: References: Message-ID: nagios-users-bounces at lists.sourceforge.net schrieb am 06.02.2008 14:56:12: > List, > Hi Command as I like to call it has asked to put Nagios on an https > site. That is all well and fine, but I can't get it to work for some > reason. I followed the faq and have everything set up exactly as it > states, but still no worky. Apache2 is compiled and ssl support is all > set up. I checked the firewall and it is passing 443 traffic just fine. > I am missing something somewhere though. Anyone have a how-to on getting > this going on Ubuntu? Uhm, there is nothing special you need to do to make nagios run with https. https is only a webserver configuration, nagios does not make use of absolute URIs - so it doesn't care for http or https. S -- Sascha Runschke Netzwerk- und Systemmanagement Abt. Organisation und Betrieb - IT-Infrastruktur GFKL Financial Services AG Limbecker Platz 1, 45127 Essen Telefon : +49 (201) 102-1879 Mobile : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 6 16:42:05 2008 From: marc at ena.com (Marc Powell) Date: Wed, 6 Feb 2008 09:42:05 -0600 Subject: Nagios HTTPS access In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of svalding at kent.edu > Sent: Wednesday, February 06, 2008 7:56 AM > To: Nagios List > Subject: [Nagios-users] Nagios HTTPS access > > List, > Hi Command as I like to call it has asked to put Nagios on an https > site. That is all well and fine, but I can't get it to work for some > reason. I followed the faq and have everything set up exactly as it > states, but still no worky. Apache2 is compiled and ssl support is all > set up. I checked the firewall and it is passing 443 traffic just fine. > I am missing something somewhere though. Anyone have a how-to on getting > this going on Ubuntu? As previously indicated, nagios doesn't know or care if it's HTTP or HTTPS. That's all in the web server configuration assuming that you have nagios working via HTTP. While it's most likely an Apache configuration issue, if you want more help, you should tell us what the problem is, specifically, and not just highlights of what you've checked. "can't get it to work" just isn't enough information. Specific error information, log snippets, nagios version and how installed, what specific configuration changes you made to support HTTPS, etc are all needed. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From aaron.segura at cabelas.com Wed Feb 6 17:12:35 2008 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Wed, 06 Feb 2008 09:12:35 -0700 Subject: How to submit passive test results from a script? In-Reply-To: <1202312543.4586.27.camel@localhost.localdomain> References: <1202310999.4586.23.camel@localhost.localdomain> <1202311411.8744.64.camel@sidhqmis4grdv91> <1202312543.4586.27.camel@localhost.localdomain> Message-ID: <1202314355.8744.81.camel@sidhqmis4grdv91> On Wed, 2008-02-06 at 10:42 -0500, Tom Wlodek wrote: > > > > Either via NSCA or External Commands. > > Sorry for the stupid question - but what is NCSA? > I'll let my friend google answer that one, because he is more worldly and knowledgeable than I: http://www.google.com/search?q=nagios+nsca Short Answer: NSCA is a daemon that accepts check results from the network on behalf of nagios. > > > > Since you're local to the nagios server with this script, external > > commands would probably be the way to go. > > > > http://www.nagios.org/developerinfo/externalcommands/commandlist.php > > > > Specifically: > > http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=114 > > > > Thise services assume that you are on the local machine and can write to > the commands file. But what about a situation when a remote user wants > to submit a test result? Is there a cgi page in nagios to fill where he > can submit the result? I thought your question pre-supposed the script was local to the server box? If you are on a remote host you can submit results via NSCA (see link above). You could, of course, always just script a web transaction using the CGI's, but that's soooooo 1997. :) Also, please always reply on-list so other people can learn from your experience. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gardealuis at gmail.com Wed Feb 6 17:54:10 2008 From: gardealuis at gmail.com (Luis Gardea) Date: Wed, 6 Feb 2008 09:54:10 -0700 Subject: tickets nagios Message-ID: <44f056cc0802060854l12b48ccaue8d556b0f3a6febd@mail.gmail.com> Hello I need that nagios create a ticket when a host or services are down. Any ideas for resolve that. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Wed Feb 6 17:55:43 2008 From: knobdy at gmail.com (Brian Loe) Date: Wed, 6 Feb 2008 10:55:43 -0600 Subject: tickets nagios In-Reply-To: <44f056cc0802060854l12b48ccaue8d556b0f3a6febd@mail.gmail.com> References: <44f056cc0802060854l12b48ccaue8d556b0f3a6febd@mail.gmail.com> Message-ID: <3c4611bc0802060855g3a6fe8c0hbd1251da089318de@mail.gmail.com> On Feb 6, 2008 10:54 AM, Luis Gardea wrote: > Hello > > I need that nagios create a ticket when a host or services are down. > > > Any ideas for resolve that. Might help to at least know how you're sending alerts now and what helpdesk application you're using. Just guessing, but if you helpdesk app accepts e-mails that would seem to be the easiest... ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From anthony at onetruemedia.com Wed Feb 6 18:47:54 2008 From: anthony at onetruemedia.com (Anthony Mendoza) Date: Wed, 6 Feb 2008 09:47:54 -0800 Subject: tickets nagios In-Reply-To: <44f056cc0802060854l12b48ccaue8d556b0f3a6febd@mail.gmail.com> References: <44f056cc0802060854l12b48ccaue8d556b0f3a6febd@mail.gmail.com> Message-ID: <0DF07F9E09E49040A9AAF1BB36EA72311616FBE5@ehost011-5.exch011.intermedia.net> Depends on the helpdesk system you use. I added my helpdesk email address as a contact for nagios so that any host or service down results in a ticket being created via email with my helpdesk system. > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Luis Gardea > Sent: Wednesday, February 06, 2008 8:54 AM > To: Nagios Users Mailinglist > Subject: [Nagios-users] tickets nagios > > Hello > > I need that nagios create a ticket when a host or services are down. > > > Any ideas for resolve that. > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gardealuis at gmail.com Wed Feb 6 20:55:48 2008 From: gardealuis at gmail.com (Luis Gardea) Date: Wed, 6 Feb 2008 12:55:48 -0700 Subject: tickets nagios In-Reply-To: <0DF07F9E09E49040A9AAF1BB36EA72311616FBE5@ehost011-5.exch011.intermedia.net> References: <44f056cc0802060854l12b48ccaue8d556b0f3a6febd@mail.gmail.com> <0DF07F9E09E49040A9AAF1BB36EA72311616FBE5@ehost011-5.exch011.intermedia.net> Message-ID: <44f056cc0802061155n50d5195fl383dbfb6638b92e@mail.gmail.com> i'm using wonderdesk 3.0 as helpdesk. On Feb 6, 2008 10:47 AM, Anthony Mendoza wrote: > Depends on the helpdesk system you use. I added my helpdesk email > address as a contact for nagios so that any host or service down results > in a ticket being created via email with my helpdesk system. > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Luis Gardea > > Sent: Wednesday, February 06, 2008 8:54 AM > > To: Nagios Users Mailinglist > > Subject: [Nagios-users] tickets nagios > > > > > Hello > > > > I need that nagios create a ticket when a host or services are down. > > > > > > Any ideas for resolve that. > > > > > ----------------------------------------------------------------------- > > -- > > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 6 21:13:08 2008 From: marc at ena.com (Marc Powell) Date: Wed, 6 Feb 2008 14:13:08 -0600 Subject: web interface access and authorization In-Reply-To: <20080206112302.snucxc8k68g88884@intra.expertise-online.net> References: <20080206112302.snucxc8k68g88884@intra.expertise-online.net> Message-ID: Hey Olivier, I haven't tested 3.x extensively yet but I don't see anything in the documentation about contact permissions that's different than 2.x so I'll take a stab -- > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Olivier JAN > Sent: Wednesday, February 06, 2008 4:23 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] web interface access and authorization > > > Hi list, > > I have a question regarding web interface authorization with nagios 3. > > What i understood is that > > - you can have peoples not in contact for a host or service that can > view all hosts and services but cannot issue commands for them (wiht > right permissions). > - You can have peoples define as contact for a host or service than > can view and command all hosts and services for which they are contact. > Correct for both. > The questions are : > > Can you have people as contact for host and service that can view > those hosts and services but CANNOT issue command on them. How can i > achieve this ? Set the 'can_submit_commands' parameter to the contact{} definition as you like. http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact > Can you have people not define as contact for a host and service to > see only certains hostgroups or servicegroups and don't issue commands > on them ? No. There's no facility for limiting what's seen by authorized users outside of being a contact for the host/service. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Thu Feb 7 01:05:41 2008 From: Roger at NagiosWiki.com (Roger) Date: Wed, 6 Feb 2008 16:05:41 -0800 Subject: snmpwalk works, but check_snmp does not In-Reply-To: <20080206014007.GW7974@bakgwai.americas.hpqcorp.net> References: <2b7af7c40802051545o17aa0649uf45354d03166b493@mail.gmail.com> <20080206014007.GW7974@bakgwai.americas.hpqcorp.net> Message-ID: <2b7af7c40802061605t3c64e2fawadb06d829807676d@mail.gmail.com> On Feb 5, 2008 5:40 PM, Patrick Morris wrote: > Hi Roger! > > On Tue, 05 Feb 2008, Roger wrote: > > > From CentOS (does not work) > > > > [root at nagios03 plugins]# pwd > > /usr/lib/nagios/plugins > > [root at nagios03 plugins]# ./check_snmp -C myPublicString -o > nsVpnMonP2State.0 -l DC_VPN_Status -c 1: -H 10.0.11.9 > > DC_VPN_Status problem - No data received from host > > CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c myPublicString > 10.0.11.9:161 nsVpnMonP2State.0 > > > > From Gentoo (works) > > > > nagios01 libexec # pwd > > /usr/nagios/libexec > > nagios01 libexec # ./check_snmp -C myPublicString -o nsVpnMonP2State.0-l DC_VPN_Status -c 1: -H > 10.0.11.9 > > DC_VPN_Status OK - 1 | NETSCREEN-VPN-MON-MIB::nsVpnMonP2State.0=1;;;; > > > > Normally, I'd think that it is an issue with the polled device not being > configured properly, but since I can 'snmpwalk' it from the CentOS box in > question, I'm not sure what to do. > > Two things: > > First, never manually check a plugin as root, as you often won't get the > same results you would as the user Nagios runs as. That probably won't > help in this case, but it will almost certainly bite you in the ass in > the future. > > Second, you've got the snmpget command being sent to the box... what > happens when you run that (again, use the user Nagios runs as)? > > When you do an snmpwalk, are you able to see the nsVpnMonP2State OID? > The problem actually turned out to be the fact that that OID-MIB association wasn't on that box. So I scp'd the contents of the /etc/snmp folder to the new box, and everything works perfectly now. (Thank you for your time in responding to my email, Patrick.) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From narendran.neelamegam at wipro.com Thu Feb 7 04:44:35 2008 From: narendran.neelamegam at wipro.com (narendran.neelamegam at wipro.com) Date: Thu, 7 Feb 2008 09:14:35 +0530 Subject: tickets nagios In-Reply-To: <44f056cc0802061155n50d5195fl383dbfb6638b92e@mail.gmail.com> References: <44f056cc0802060854l12b48ccaue8d556b0f3a6febd@mail.gmail.com><0DF07F9E09E49040A9AAF1BB36EA72311616FBE5@ehost011-5.exch011.intermedia.net> <44f056cc0802061155n50d5195fl383dbfb6638b92e@mail.gmail.com> Message-ID: This is what I found on Wonderdesk website. Incoming email ability! Emails sent to support at yourcompany.com are automatically imported into the WonderDesk as help desk calls. Customers and technicians can use their choice of the web interface or email to communicate. <-- WonderDesk SQL only Incoming email automatically creates help desk account. <-- WonderDesk SQL only Incoming email automatically selects the category and/or subcategory depending on the "To" address that the customer emailed to. <-- WonderDesk SQL only Incoming email automatically assigns the call to the correct technician depending on the "To" address that the customer emailed to. <-- WonderDesk SQL only Regards, Naren -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Luis Gardea Sent: Thursday, February 07, 2008 1:26 AM To: Anthony Mendoza Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] tickets nagios i'm using wonderdesk 3.0 as helpdesk. On Feb 6, 2008 10:47 AM, Anthony Mendoza wrote: > Depends on the helpdesk system you use. I added my helpdesk email > address as a contact for nagios so that any host or service down > results in a ticket being created via email with my helpdesk system. > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users- bounces at lists.sourceforge.net] On Behalf Of > > Luis Gardea > > Sent: Wednesday, February 06, 2008 8:54 AM > > To: Nagios Users Mailinglist > > Subject: [Nagios-users] tickets nagios > > > > > Hello > > > > I need that nagios create a ticket when a host or services are down. > > > > > > Any ideas for resolve that. > > > > > ---------------------------------------------------------------------- > - > > -- > > > This SF.net email is sponsored by: Microsoft Defy all challenges. > > Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Thu Feb 7 06:37:55 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 07 Feb 2008 00:37:55 -0500 Subject: How to submit passive test results from a script? In-Reply-To: <1202310999.4586.23.camel@localhost.localdomain> References: <1202310999.4586.23.camel@localhost.localdomain> Message-ID: <47AA9933.4000507@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/02/08 10:16 AM, Tom Wlodek wrote: > Ladies and gentlemen, > > I have a service running on nagios server and I would like to submit > passive test results from a client script. > > I see that nagios has an interface to submit those results: > > https://my.nagios.com/nagios/cgi-bin/cmd.cgi? > cmd_typ=30&host=my.host.com&service=nagios+test+service& > > I go there and I see a form. All it takes is to fill this form and then > clic submit. > > So I figured out that if I embed the form fields in URL and then load > the URL then I will effectively submit the form. So I do: > > https://my.nagios.com/nagios/cgi-bin/cmd.cgi? > cmd_typ=30&host=my.host.com&service=nagios+test > +service&plugin_state=3&plugin_output=pluginOuttput&performance_data=test&btnSubmit=Commit > > I load this page - and nothing happens. The reason it doesn't work if because it is a POST request. You actually have to send the fields in the content of the request (and the url may be different, usually without any URL fields as they can go in the request body). You should read more about the HTTP protocol if you want to understand how it works. Although, as other have already said, NSCA is likely what you want... Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHqpkz6dZ+Kt5BchYRArKEAKCjGkmyp9DvLm52C0W+E1qo/8lGxQCfc6pN HZITp+4yO8j2S6Ts/DDny2w= =F3/q -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From taieb.riahi at topnet.tn Thu Feb 7 10:40:48 2008 From: taieb.riahi at topnet.tn (Riahi Taieb) Date: Thu, 07 Feb 2008 10:40:48 +0100 Subject: More than one Nagios Demon Message-ID: <47AAD220.9090302@topnet.tn> Hi list, I've Nagios 2.9 installed from ubuntu packages. I've noticed an abnormal nagios comportment ( double notification, hosts just added not found in the web...). Watching to running nagios process I've found more than one, doing a normal Nagios stop haven't stopped all running process. To have a normal working I'v to kill them by hand. Can you help me solving the problem? Best regards Riahi Taieb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From klausman at schwarzvogel.de Thu Feb 7 12:43:09 2008 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Thu, 7 Feb 2008 12:43:09 +0100 Subject: Docs at leats partially wrong Message-ID: <20080207114309.GA3313@eric.schwarzvogel.de> Hi! We've been using the $ADDRESSN$ macro in our notification commands while we were using 2.x. Since we upgraded, some notifications fail - since said macro does not seem to be expanded anymore. The docs are inconsistent in this regard. On one hand, http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact says: addressx: Address directives are used to define additional "addresses" for the contact. These addresses can be anything - cell phone numbers, instant messaging addresses, etc. Depending on how you configure your notification commands, they can be used to send out an alert o the contact. Up to six addresses can be defined using these directives (address1 through address6). The $CONTACTADDRESSx$ macro will contain this value. But then, http://nagios.sourceforge.net/docs/3_0/macrolist.html does not list said macro. If anything, one of the pages is wrong. I see no obvious reason to not exapnd those macros/attributes anymore, so I suspect a bug. Any ideas? Regards, Tobias PS: Nagios 3.0b7. -- panic("mother..."); linux-2.2.16/drivers/block/cpqarray.c ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Thu Feb 7 14:13:47 2008 From: marc at ena.com (Marc Powell) Date: Thu, 7 Feb 2008 07:13:47 -0600 Subject: More than one Nagios Demon In-Reply-To: <47AAD220.9090302@topnet.tn> References: <47AAD220.9090302@topnet.tn> Message-ID: On Feb 7, 2008, at 3:40 AM, Riahi Taieb wrote: > Hi list, > > I've Nagios 2.9 installed from ubuntu packages. I've noticed an > abnormal nagios comportment ( double notification, hosts just added > not found in the web...). > Watching to running nagios process I've found more than one, doing a > normal Nagios stop haven't stopped all running process. To have a > normal working I'v to kill them by hand. > Can you help me solving the problem? I think you've got it. Stop nagios, kill the remaining processes, start nagios. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Thu Feb 7 14:22:02 2008 From: marc at ena.com (Marc Powell) Date: Thu, 7 Feb 2008 07:22:02 -0600 Subject: Docs at leats partially wrong In-Reply-To: <20080207114309.GA3313@eric.schwarzvogel.de> References: <20080207114309.GA3313@eric.schwarzvogel.de> Message-ID: On Feb 7, 2008, at 5:43 AM, Tobias Klausmann wrote: > Hi! > > We've been using the $ADDRESSN$ macro in our notification > commands while we were using 2.x. Since we upgraded, some > notifications fail - since said macro does not seem to be > expanded anymore. I'm unable to test this. > > But then, > > http://nagios.sourceforge.net/docs/3_0/macrolist.html > > does not list said macro. If anything, one of the pages is wrong. http://nagios.sourceforge.net/docs/3_0/macrolist.html#contactaddress -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From bingotailspin at gmail.com Thu Feb 7 15:29:09 2008 From: bingotailspin at gmail.com (James McCartney) Date: Thu, 07 Feb 2008 08:29:09 -0600 Subject: Nagios HTTPS access In-Reply-To: References: Message-ID: <47AB15B5.3060701@gmail.com> I had some issues with the nagios.conf file and SSL too. I just dumped it and setup my own config in ssl.conf... # mv /etc/httpd/conf.d/nagios.conf /etc/httpd/conf.d/nagios.conf.orig # edit /etc/httpd/conf.d/ssl.conf and add: #Added for Nagios ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" Options ExecCGI SSLOptions +StdEnvVars Alias /nagios "/usr/local/nagios/share" SSLOptions +StdEnvVars #end Nagios I have mod_rewrite forcing https connections as well. I use mod_auth_ldap for authentication, so I removed the user authorization stuff too. svalding at kent.edu wrote: > List, > Hi Command as I like to call it has asked to put Nagios on an https > site. That is all well and fine, but I can't get it to work for some > reason. I followed the faq and have everything set up exactly as it > states, but still no worky. Apache2 is compiled and ssl support is all > set up. I checked the firewall and it is passing 443 traffic just fine. > I am missing something somewhere though. Anyone have a how-to on getting > this going on Ubuntu? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From wojciech at kocjan.org Thu Feb 7 15:41:30 2008 From: wojciech at kocjan.org (Wojciech Kocjan) Date: Thu, 07 Feb 2008 15:41:30 +0100 Subject: Docs at leats partially wrong In-Reply-To: <20080207114309.GA3313@eric.schwarzvogel.de> References: <20080207114309.GA3313@eric.schwarzvogel.de> Message-ID: Dnia 07-02-2008 o 12:43:09 Tobias Klausmann napisa?(a): > Hi! > > We've been using the $ADDRESSN$ macro in our notification > commands while we were using 2.x. Since we upgraded, some > notifications fail - since said macro does not seem to be > expanded anymore. Hello, I had a similar problem with 3.0rc2. I set address1 and used $CONTACTADDRESS1$ and it did not work for me. However, when I set address2 and used $CONTACTADDRESS1$ it seemed to work fine - so perhaps there's a bug in there somewhere. Try setting all 6 of them and send all six to your command and see what happens... -- WK ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From wojciech at kocjan.org Thu Feb 7 17:03:24 2008 From: wojciech at kocjan.org (Wojciech Kocjan) Date: Thu, 07 Feb 2008 17:03:24 +0100 Subject: Docs at leats partially wrong In-Reply-To: References: <20080207114309.GA3313@eric.schwarzvogel.de> Message-ID: On Thu, 07 Feb 2008 14:22:02 +0100, Marc Powell wrote: > On Feb 7, 2008, at 5:43 AM, Tobias Klausmann wrote: > >> Hi! >> >> We've been using the $ADDRESSN$ macro in our notification >> commands while we were using 2.x. Since we upgraded, some >> notifications fail - since said macro does not seem to be >> expanded anymore. > I'm unable to test this. Hi. I had the same problem - it seemed that defining address2 and using $CONTACTADDRESS1$ (or the other way around) worked. Not sure why, I'll do some more testing tomorrow. -- WK ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From MPetersen at gs1us.org Thu Feb 7 20:43:07 2008 From: MPetersen at gs1us.org (Petersen, Mark) Date: Thu, 7 Feb 2008 14:43:07 -0500 Subject: web interface access and authorization In-Reply-To: References: <20080206112302.snucxc8k68g88884@intra.expertise-online.net> Message-ID: <54B7F7DBCA12D94CA3FE17B68F1461A7047845E9@LVNJEVS205.UCCORG.org> > I haven't tested 3.x extensively yet but I don't see anything in the > documentation about contact permissions that's different than 2.x so > I'll take a stab -- > Set the 'can_submit_commands' parameter to the contact{} definition as > you like. > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact These statements seem to be in conflict because can_submit_commands does not appear to be available in 2.0. Argh, I really wanted that too... ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gardealuis at gmail.com Thu Feb 7 20:53:23 2008 From: gardealuis at gmail.com (Luis Gardea) Date: Thu, 7 Feb 2008 12:53:23 -0700 Subject: tickets nagios In-Reply-To: References: <44f056cc0802060854l12b48ccaue8d556b0f3a6febd@mail.gmail.com> <0DF07F9E09E49040A9AAF1BB36EA72311616FBE5@ehost011-5.exch011.intermedia.net> <44f056cc0802061155n50d5195fl383dbfb6638b92e@mail.gmail.com> Message-ID: <44f056cc0802071153j50ec9d22w2aef57b1327ca535@mail.gmail.com> ok, let me check that thanks antony On Feb 6, 2008 8:44 PM, wrote: > This is what I found on Wonderdesk website. > > Incoming email ability! Emails sent to support at yourcompany.com are > automatically imported into the WonderDesk as help desk calls. Customers > and technicians can use their choice of the web interface or email to > communicate. <-- WonderDesk SQL only > Incoming email automatically creates help desk account. <-- WonderDesk > SQL only > Incoming email automatically selects the category and/or subcategory > depending on the "To" address that the customer emailed to. <-- > WonderDesk SQL only > Incoming email automatically assigns the call to the correct technician > depending on the "To" address that the customer emailed to. <-- > WonderDesk SQL only > > > Regards, > Naren > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Luis > Gardea > > Sent: Thursday, February 07, 2008 1:26 AM > To: Anthony Mendoza > Cc: Nagios Users Mailinglist > Subject: Re: [Nagios-users] tickets nagios > > i'm using wonderdesk 3.0 as helpdesk. > > On Feb 6, 2008 10:47 AM, Anthony Mendoza > wrote: > > Depends on the helpdesk system you use. I added my helpdesk email > > address as a contact for nagios so that any host or service down > > results in a ticket being created via email with my helpdesk system. > > > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net > > > [mailto:nagios-users- bounces at lists.sourceforge.net] On Behalf Of > > > Luis Gardea > > > Sent: Wednesday, February 06, 2008 8:54 AM > > > To: Nagios Users Mailinglist > > > Subject: [Nagios-users] tickets nagios > > > > > > > > Hello > > > > > > I need that nagios create a ticket when a host or services are down. > > > > > > > > > Any ideas for resolve that. > > > > > > > > ---------------------------------------------------------------------- > > - > > > -- > > > > > This SF.net email is sponsored by: Microsoft Defy all challenges. > > > Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at 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/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > > Please do not print this email unless it is absolutely necessary. Spread environmental awareness. > > The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. > > www.wipro.com > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Thu Feb 7 20:58:45 2008 From: marc at ena.com (Marc Powell) Date: Thu, 7 Feb 2008 13:58:45 -0600 Subject: web interface access and authorization In-Reply-To: <54B7F7DBCA12D94CA3FE17B68F1461A7047845E9@LVNJEVS205.UCCORG.org> References: <54B7F7DBCA12D94CA3FE17B68F1461A7047845E9@LVNJEVS205.UCCORG.org> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Petersen, Mark > Sent: Thursday, February 07, 2008 1:43 PM > To: Marc Powell; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] web interface access and authorization > > > I haven't tested 3.x extensively yet but I don't see anything in the > > documentation about contact permissions that's different than 2.x so > > I'll take a stab -- > > > Set the 'can_submit_commands' parameter to the contact{} definition as > > you like. > > http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact > > These statements seem to be in conflict because can_submit_commands does > not appear to be available in 2.0. Argh, I really wanted that too... It is a conflict that I didn't realize I had made until after I'd sent the message. My original response was that they were identical based on reading the CGIAuth doccos, but in doing research before sending I saw a patch submitted and applied to 3.x that provided the can_submit_commands functionality to contacts specifically. My response change appropriately further down but I didn't re-read the top to catch my mistake. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From MPetersen at gs1us.org Thu Feb 7 21:12:35 2008 From: MPetersen at gs1us.org (Petersen, Mark) Date: Thu, 7 Feb 2008 15:12:35 -0500 Subject: web interface access and authorization In-Reply-To: References: <54B7F7DBCA12D94CA3FE17B68F1461A7047845E9@LVNJEVS205.UCCORG.org> Message-ID: <54B7F7DBCA12D94CA3FE17B68F1461A704784606@LVNJEVS205.UCCORG.org> Anyone know if that patch can be applied against 2.10 by chance? I'll try and investigate on my own as well. > reading the CGIAuth doccos, but in doing research before sending I saw a > patch submitted and applied to 3.x that provided the can_submit_commands > functionality to contacts specifically. My response change appropriately ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From d.digrego at gmail.com Fri Feb 8 09:51:20 2008 From: d.digrego at gmail.com (Domenico Dig) Date: Fri, 8 Feb 2008 09:51:20 +0100 Subject: graphic Message-ID: Hi all, I have some servers inside different dmz managed by a firewall. I would saparate graphically this dmz, it's possible? All this servers are parent of the same firewall. Nagios 2.5 on debian etch 4.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From beick at zib.de Fri Feb 8 11:19:44 2008 From: beick at zib.de (beick at zib.de) Date: Fri, 8 Feb 2008 11:19:44 +0100 (MET) Subject: no email notification In-Reply-To: <16707.130.73.72.85.1201600121.squirrel@imap.zib.de> References: <16707.130.73.72.85.1201600121.squirrel@imap.zib.de> Message-ID: <27472.130.73.72.85.1202465984.squirrel@imap.zib.de> The Problem is still there. The log isn't telling me of any problem. But I still don't receive emails?? > I don't receive email notifications on problems. Emailing as user nagios > from the command line works (postfix). Email address in contacts.cfg is > correct and I have the necessary lines in the service description to (I > think): > > define service{ > host_name localhost > service_description test_notification > check_command test_notification > max_check_attempts 4 > normal_check_interval 2 > retry_check_interval 1 > check_period 24x7 > notification_interval 15 > notification_period 24x7 > notification_options w,c,r > contact_groups beick > } > > Any idea what I have missed? > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sascha.Runschke at gfkl.com Fri Feb 8 11:33:59 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Fri, 8 Feb 2008 11:33:59 +0100 Subject: Antwort: Re: no email notification In-Reply-To: <27472.130.73.72.85.1202465984.squirrel@imap.zib.de> References: <27472.130.73.72.85.1202465984.squirrel@imap.zib.de> Message-ID: -- Sascha Runschke Netzwerk- und Systemmanagement Abt. Organisation und Betrieb - IT-Infrastruktur GFKL Financial Services AG Limbecker Platz 1, 45127 Essen Telefon : +49 (201) 102-1879 Mobile : +49 (173) 5419665 Fax : +49 (201) 102-1102105 nagios-users-bounces at lists.sourceforge.net schrieb am 08.02.2008 11:19:44: > The Problem is still there. The log isn't telling me of any problem. But I > still don't receive emails?? > > > I don't receive email notifications on problems. Emailing as user nagios > > from the command line works (postfix). Email address in contacts.cfg is > > correct and I have the necessary lines in the service description to (I > > think): > > > > define service{ > > host_name localhost > > service_description test_notification > > check_command test_notification > > max_check_attempts 4 > > normal_check_interval 2 > > retry_check_interval 1 > > check_period 24x7 > > notification_interval 15 > > notification_period 24x7 > > notification_options w,c,r > > contact_groups beick > > } > > > > Any idea what I have missed? > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sascha.Runschke at gfkl.com Fri Feb 8 11:36:07 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Fri, 8 Feb 2008 11:36:07 +0100 Subject: Antwort: Re: no email notification In-Reply-To: <27472.130.73.72.85.1202465984.squirrel@imap.zib.de> References: <27472.130.73.72.85.1202465984.squirrel@imap.zib.de> Message-ID: Whoops... sorry for the empty mail btw - accidently double-clicked in the wrong place ;-) > The Problem is still there. The log isn't telling me of any problem. But I > still don't receive emails?? > > > I don't receive email notifications on problems. Emailing as user nagios > > from the command line works (postfix). Email address in contacts.cfg is > > correct and I have the necessary lines in the service description to (I > > think): > > > > define service{ > > host_name localhost > > service_description test_notification > > check_command test_notification > > max_check_attempts 4 > > normal_check_interval 2 > > retry_check_interval 1 > > check_period 24x7 > > notification_interval 15 > > notification_period 24x7 > > notification_options w,c,r > > contact_groups beick > > } > > > > Any idea what I have missed? What does the defition for the contacts in the beick contact_group look like? Do the contacts have notifications enabled correctly? Does your notification command work properly? We need a bit more info then just the service object. S -- Sascha Runschke Netzwerk- und Systemmanagement Abt. Organisation und Betrieb - IT-Infrastruktur GFKL Financial Services AG Limbecker Platz 1, 45127 Essen Telefon : +49 (201) 102-1879 Mobile : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From beick at zib.de Fri Feb 8 11:54:30 2008 From: beick at zib.de (beick at zib.de) Date: Fri, 8 Feb 2008 11:54:30 +0100 (MET) Subject: Antwort: Re: no email notification In-Reply-To: References: Message-ID: <15012.130.73.72.85.1202468070.squirrel@imap.zib.de> Contacts look like this: define contact{ contact_name bzcbeick alias "Matthias Beick" host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f,n service_notification_options w,u,c,r,f,n host_notification_commands host-notify-by-email service_notification_commands notify-by-email email beick at zib.de } define contactgroup{ contactgroup_name beick alias Testgruppe members bzcbeick } > > >> The Problem is still there. The log isn't telling me of any problem. But > I >> still don't receive emails?? >> >> > I don't receive email notifications on problems. Emailing as user > nagios >> > from the command line works (postfix). Email address in contacts.cfg > is >> > correct and I have the necessary lines in the service description to > (I >> > think): >> > >> > define service{ >> > host_name localhost >> > service_description test_notification >> > check_command test_notification >> > max_check_attempts 4 >> > normal_check_interval 2 >> > retry_check_interval 1 >> > check_period 24x7 >> > notification_interval 15 >> > notification_period 24x7 >> > notification_options w,c,r >> > contact_groups beick >> > } >> > >> > Any idea what I have missed? > > > What does the defition for the contacts in the beick contact_group look > like? Do the contacts have notifications enabled correctly? Does your > notification command work properly? We need a bit more info then just the > service object. > > S > > -- > Sascha Runschke > Netzwerk- und Systemmanagement > Abt. Organisation und Betrieb - IT-Infrastruktur > GFKL Financial Services AG > Limbecker Platz 1, 45127 Essen > > Telefon : +49 (201) 102-1879 > Mobile : +49 (173) 5419665 > Fax : +49 (201) 102-1102105 > > > > GFKL Financial Services AG > Vorstand: Dr. Peter J??nsch (Vors.), J??rgen Baltes, Dr. Till Ergenzinger, > Dr. Tom Haverkamp > Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma > Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB > 13522------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 8 14:03:43 2008 From: marc at ena.com (Marc Powell) Date: Fri, 8 Feb 2008 07:03:43 -0600 Subject: Antwort: Re: no email notification In-Reply-To: <15012.130.73.72.85.1202468070.squirrel@imap.zib.de> References: <15012.130.73.72.85.1202468070.squirrel@imap.zib.de> Message-ID: <17A8BCAB-7ED5-4B76-9F42-F2F90C7EF160@ena.com> On Feb 8, 2008, at 4:54 AM, beick at zib.de wrote: > Contacts look like this: > > define contact{ > contact_name bzcbeick > alias "Matthias Beick" > host_notification_period 24x7 > service_notification_period 24x7 > host_notification_options d,u,r,f,n > service_notification_options w,u,c,r,f,n http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact "service_notification_options ... If you specify n (none) as an option, the contact will not receive any type of service notifications." "host_notification_options ... If you specify n (none) as an option, the contact will not receive any type of host notifications." -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Fri Feb 8 16:54:30 2008 From: hittjw at gmail.com (Justin Hitt) Date: Fri, 8 Feb 2008 10:54:30 -0500 Subject: Nagios checkresults queue grows over time Message-ID: <93344bf0802080754y59469127l9f8322bff987225e@mail.gmail.com> I have two Nagios 3.0 cr1 systems, (A) on a 2.8ghz Solaris 10 system with 212 hosts and (B) the other on VPS multiple core system with 2,916 hosts. Both systems, after the initial host check, has it's [/usr/local/nagios/var/spool/checkresults] grow in size till nagios in non responsive. (A) Has a modified configuration with a longer "cached_host_check_horizon=2700" and "cached_service_check_horizon=1800". I tried to stretch out the time frame that checks were accepted. (B) Has a more standard configuration with reasonable cache counts. Both systems are using "use_large_installation_tweaks=1" and otherwise are standardly configured. Each system allows 45 minutes to finish the host checks. I've also tried this configuration without host checks. Both systems have very low CPU utilization after the initial host check and hardly go over 20% during regular operations. The checkresults queue does go up and down in the number of 'check' files, often dropping down as much as 200 checks, the popping backup twice as much. I've tried tuning the "max_check_result_file_age=3600" which tends to make the queue last longer. I'm also purging the queue of files older than 90 minutes with ... 0,15,30,45 * * * * ( /usr/local/bin/find /usr/local/nagios/var/spool/checkresults -type f -mmin +90 -exec /bin/rm -f {} \; ) > /dev/null 2>&1 ... in the crontab. Finally, here's what I see in the log files ... [1202485459] Warning: The check of host 'FQDN0.com' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... [1202485459] Warning: The check of host 'FQDN1.com' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... [1202485459] Warning: The check of host 'FQDN2.com' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... ... which again is why I tuned the "max_check_result_file" and am purging the queue of really old files. (I've also tested very short "max_check_result_file", at the current setting I've minimized flapping.) Other checks that didn't improve the situation ... -- Nice'd the nagios process to give highest priority possible. Increased CPU load a little, but over time got the same idle conditions after checks where complete. -- Stretched out checks to > 15 minutes for critical services and > 2 hours for "nice to know about" services. Made queues fill up less frequently. -- Looked at disk performance and swapping. Neither system is swapping nor does it have bottlenecks around disk issues. With the purge routine, I won't see a file in the queue older than 90 minutes. Does this mean "max_check_result_file" isn't working? What other parameters can I adjust? Anyone have any ideas of what's going on? Best, Justin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From j.e.vanbaal+nagios-users at uvt.nl Fri Feb 8 17:06:12 2008 From: j.e.vanbaal+nagios-users at uvt.nl (Joost van Baal) Date: Fri, 8 Feb 2008 17:06:12 +0100 Subject: problem with using "hostgroup_name" in service definitions: Error: Hostgroup name and/or alias is NULL Message-ID: <20080208160612.GB2866@banach.uvt.nl> Hi, Is it possible at all to _not_ have an explicit object (with it's own "define") in the nagios configuration for the number of hosts times the number of services on each such host? I assume it _is_ possible, using "hostgroup_name" in service definitions (I've seen it documented on http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service ). However, when I do: define service { hostgroup_name load-cat3-unix-hostgroup check_command check_nrpe!check_load [...] } define service { hostgroup_name ssh-cat3-unix-hostgroup check_command check_ssh [...] } define host { name cat3-unix-host hostgroups [...], load-cat3-unix-hostgroup, ssh-cat3-unix-hostgroup [...] } define host { host_name radix [...] use cat3-unix-host } nagios -v gives: Error: Hostgroup name and/or alias is NULL Error: Could not register hostgroup How should I use the hostgroup_name-trick in a service-definition? Below is a more complete story of the setup we're using, giving more details. If even more details are needed, I'll happily supply them. At our site, we're upgrading our monitoring-server from Nagios1 to Nagios2 (and from Debian sarge to Debian etch). In the process, we'd like to trim our unwieldy Nagios configuration (it's > 400 K currently, we're monitoring > 500 hosts). Here are some relevant bits of our proposed configuration: /etc/nagios2-test/nagios.cfg : [...] cfg_file=/etc/nagios2-test/contactgroups.cfg cfg_file=/etc/nagios2-test/contacts.cfg cfg_file=/etc/nagios2-test/hostgroups.cfg cfg_file=/etc/nagios2-test/head_hosts.cfg cfg_file=/etc/nagios2-test/unix_hosts.cfg cfg_file=/etc/nagios2-test/head_services.cfg cfg_file=/etc/nagios2-test/unix_services.cfg [...] /etc/nagios2-test/hostgroups.cfg : define hostgroup { hostgroup_name disk-cat3-unix-hostgroup } define hostgroup { hostgroup_name load-cat3-unix-hostgroup } define hostgroup { hostgroup_name ssh-cat3-unix-hostgroup } /etc/nagios2-test/head_hosts.cfg : define host { name lean-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 max_check_attempts 10 check_command check-host-alive max_check_attempts 5 check_period 24x7 register 0 } define host { name cat3-unix-host hostgroups disk-cat3-unix-hostgroup, load-cat3-unix-hostgroup, ssh-cat3-unix-hostgroup use lean-host notification_interval 720 notification_period workhours notification_options d,u,r contact_groups categorie3-unix-admins register 0 } /etc/nagios2-test/unix_hosts.cfg : define host { alias radix host_name radix address 10.1.2.3 use cat3-unix-host } /etc/nagios2-test/head_services.cfg : [...] define service { name categorie3-service use generic-service [...] contact_groups categorie3-unix-admins register 0 } /etc/nagios2-test/unix_services.cfg : define service { hostgroup_name disk-cat3-unix-hostgroup name disk-cat3-unix-service service_description Disk Categorie 3 check_command check_nrpe!check_disk use categorie3-service } define service { hostgroup_name load-cat3-unix-hostgroup name load-cat3-unix-service service_description Load Categorie 3 check_command check_nrpe!check_load use categorie3-service } define service { hostgroup_name ssh-cat3-unix-hostgroup name ssh-cat3-unix-service service_description SSH Categorie 3 check_command check_ssh use categorie3-service } With this configuration, running joostvb at infix:~% /usr/sbin/nagios2 -v /etc/nagios2-test/nagios.cfg gives Nagios 2.6 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 11-27-2006 License: GPL Reading configuration data... Error: Hostgroup name and/or alias is NULL Error: Could not register hostgroup (config file '/etc/nagios2-test/hostgroups.cfg', starting on line 2) ***> One or more problems was encountered while processing the config files... We're using the nagios2 Debian package version 2.6-2+etch1 as shipped with Debian GNU/Linux etch. Any clues or hints on how to tackle this problem would be very much appreciated. Thanks, Bye, Joost -- Joost van Baal http://abramowitz.uvt.nl/ Tilburg University mailto:joostvb.uvt.nl The Netherlands -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 835 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 8 17:19:05 2008 From: marc at ena.com (Marc Powell) Date: Fri, 8 Feb 2008 10:19:05 -0600 Subject: problem with using "hostgroup_name" in servicedefinitions: Error: Hostgroup name and/or alias is NULL In-Reply-To: <20080208160612.GB2866@banach.uvt.nl> References: <20080208160612.GB2866@banach.uvt.nl> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Joost van Baal > Sent: Friday, February 08, 2008 10:06 AM > To: Nagios Users > Subject: [Nagios-users] problem with using "hostgroup_name" in > servicedefinitions: Error: Hostgroup name and/or alias is NULL > > Hi, > > Is it possible at all to _not_ have an explicit object (with it's own > "define") in the nagios configuration for the number of hosts times the > number of services on each such host? > > I assume it _is_ possible, using "hostgroup_name" in service definitions > (I've seen it documented on > http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service ). > > However, when I do: > > define service { > hostgroup_name load-cat3-unix-hostgroup > check_command check_nrpe!check_load > [...] > } > > define service { > hostgroup_name ssh-cat3-unix-hostgroup > check_command check_ssh > [...] > } > > define host { > name cat3-unix-host > hostgroups [...], load-cat3-unix-hostgroup, > ssh-cat3-unix-hostgroup > [...] > } > > define host { > host_name radix > [...] > use cat3-unix-host > } > > nagios -v gives: > > Error: Hostgroup name and/or alias is NULL > Error: Could not register hostgroup > > How should I use the hostgroup_name-trick in a service-definition? I don't use this particular trick but it looks like you just need to define the hostgroups. I know that just the implication of a hostgroup definition is not enough. define hostgroup { hostgroup_name load-cat3-unix-hostgroup alias My Favorite Hostgroup } define hostgroup { hostgroup_name ssh-cat3-unix-hostgroup alias My Least Favorite Hostgroup } -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Fri Feb 8 17:19:48 2008 From: hittjw at gmail.com (Justin Hitt) Date: Fri, 8 Feb 2008 11:19:48 -0500 Subject: problem with using "hostgroup_name" in service definitions: Error: Hostgroup name and/or alias is NULL In-Reply-To: <20080208160612.GB2866@banach.uvt.nl> References: <20080208160612.GB2866@banach.uvt.nl> Message-ID: <93344bf0802080819k2a002373m29f240d592a0b738@mail.gmail.com> Joost van Baal, On 2/8/08, Joost van Baal wrote: > Is it possible at all to _not_ have an explicit object (with it's own > "define") in the nagios configuration for the number of hosts times the > number of services on each such host? I'm managing 2,900+ hosts on one environment and have found you do need to define each object completely, however, you can use an object oriented approach of inherited characteristics. With this I create a directory for each business unit or group, then a file in each directory for each host type (i.e. static, dynamic, core, ...), with a generic host for each file with characteristics specific to that group. This way I only need 4 lines for host definitions (5 if you have a 'parents' defined.) The top of the file defines any group specific host checks or intervals. This is kind of like your [/etc/nagios2-test/head_hosts.cfg] example, except I may have "hosts_network.cfg" and a "hosts_core.cfg" each with a more expanded first definition, "lean-host" in your example, followed by a list of all hosts associated to that definition. The same works for services definitions and host dependencies. Think "monitoring groups" rather than "monitoring hosts" then layout hosts in groups by category or purpose. See: http://nagios.sourceforge.net/docs/3_0/objecttricks.html I find this also works for building host groups and when multiple people might be updating the configuration files. Best, Justin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lflacayo at cps.k12.il.us Fri Feb 8 20:30:31 2008 From: lflacayo at cps.k12.il.us (Luis Fernando Lacayo) Date: Fri, 08 Feb 2008 13:30:31 -0600 Subject: Mail Flow.... Exchange server In-Reply-To: References: Message-ID: <1202499031.24819.45.camel@UNIX-TEAM-LACAYO> Hello Everyone, I have a question and asking for some advice. I have an Exchange server and one of the windows admins who controls the exchange servers, would like for me to have Nagios check an individual mailbox by sending and email, receiving the email and deleting the email from the mailbox. basically he wants to make sure that mail is flowing both in and out of the exchange servers. Is anyone checking anything like this? Is he out of his mind? any ideas are welcome. Thanks, Luis Luis Fernando Lacayo Chicago Public Schools Senior Unix Administrator ITS/ UNIX Infrastructure Office: 773-553-3835 Cell: 773-203-4493 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 8 20:56:57 2008 From: marc at ena.com (Marc Powell) Date: Fri, 8 Feb 2008 13:56:57 -0600 Subject: Mail Flow.... Exchange server In-Reply-To: <1202499031.24819.45.camel@UNIX-TEAM-LACAYO> References: <1202499031.24819.45.camel@UNIX-TEAM-LACAYO> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Luis Fernando Lacayo > Sent: Friday, February 08, 2008 1:31 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Mail Flow.... Exchange server > > Hello Everyone, > > I have a question and asking for some advice. I have an Exchange server > and one of the windows admins who controls the exchange servers, would > like for me to have Nagios check an individual mailbox by sending and > email, receiving the email and deleting the email from the mailbox. > basically he wants to make sure that mail is flowing both in and out of > the exchange servers. > > Is anyone checking anything like this? Is he out of his mind? any ideas > are welcome. check_email_loop.pl in the nagios-plugins contrib/ folder works like a charm. $ ./check_email_loop.pl check_email_loop 1.1 Nagios Plugin - Real check of a E-Mail system ======================================================================== === ERROR: Missing or wrong arguments! ======================================================================== === This script sends a mail with a specific id in the subject via an given smtp-server to a given email-adress. When the script is run again, it checks for this Email (with its unique id) on a given pop3 account and sends another mail. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Rick.Garland at quantum.com Fri Feb 8 21:05:42 2008 From: Rick.Garland at quantum.com (Rick Garland) Date: Fri, 8 Feb 2008 13:05:42 -0700 Subject: integrate a running nagios installation into mysql Message-ID: <369C6AFF6F3A3A4582C0BD25142867D3050B4671@PPOMSGVA.QUANTUM.COM> Hi all: Running Nagios 2.9 on a CentOS5 system. I am wanting to integrate into mysql. Can this be done or would I need to reinstall the Nagios? Thanks Rick Garland Sr System Administrator Quantum, Corp. 8560 Upland Dr. Englewood, CO 80112 office 720-249-5984 cell 720-210-4671 rick.garland at quantum.com ----------------------------------------------------------- The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum Corporation. Furthermore, Quantum Corporation is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt. ------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Fri Feb 8 21:09:20 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 8 Feb 2008 12:09:20 -0800 Subject: integrate a running nagios installation into mysql In-Reply-To: <369C6AFF6F3A3A4582C0BD25142867D3050B4671@PPOMSGVA.QUANTUM.COM> References: <369C6AFF6F3A3A4582C0BD25142867D3050B4671@PPOMSGVA.QUANTUM.COM> Message-ID: <20080208200920.GD7974@bakgwai.americas.hpqcorp.net> On Fri, 08 Feb 2008, Rick Garland wrote: > Hi all: > > Running Nagios 2.9 on a CentOS5 system. > I am wanting to integrate into mysql. > > Can this be done or would I need to reinstall the Nagios? http://www.nagios.org/docs/ The docs on ndoutils are there. You won't need to reinstall. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Fri Feb 8 22:30:45 2008 From: Roger at NagiosWiki.com (Roger) Date: Fri, 8 Feb 2008 13:30:45 -0800 Subject: locating check_rrd.pl plugin Message-ID: <2b7af7c40802081330g210daacfmf72808f6594d6db0@mail.gmail.com> I'm looking for check_rrd.pl, but cannot seem to find it ( http://tinyurl.com/2ulzjh). I see lots of check_rrd_??? plugins, but don't seem the find the "original" by that name. Am I missing something? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jonmills at email.unc.edu Fri Feb 8 22:47:25 2008 From: jonmills at email.unc.edu (Jonathan Mills) Date: Fri, 8 Feb 2008 16:47:25 -0500 Subject: aggregator has incorrect state Message-ID: <433B29EA-79D2-42CA-9904-61774FA1E281@email.unc.edu> Hi, I'm using distributed pollers, reporting to an aggregator server. Right now I'm seeing 'OK' for every service on the aggregator, but on the actual pollers, there are numerous warning states. Any ideas what I've wrong? Here's look at my ocsp definition: # 'submit_check_result' command definition; see ocsp_command in nagios.cfg, for use with nsca define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/ distributed-monitoring/submit_check_result_via_nsca $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$|$SERVICEPERFDATA$' } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From smcavoy at ca.afilias.info Fri Feb 8 23:41:31 2008 From: smcavoy at ca.afilias.info (Sean McAvoy) Date: Fri, 8 Feb 2008 17:41:31 -0500 Subject: aggregator has incorrect state In-Reply-To: <433B29EA-79D2-42CA-9904-61774FA1E281@email.unc.edu> References: <433B29EA-79D2-42CA-9904-61774FA1E281@email.unc.edu> Message-ID: I would suggest testing each point along the path ensure the remote can reach the nsca daemon on the aggregator execute the send nsca command with manually entered data turn on debug mode on the nsca daemon and look for incoming data in log files look at the nagios logs on the aggregator, are there unrecognized hosts/services? On 8-Feb-08, at 4:47 PM, Jonathan Mills wrote: > Hi, I'm using distributed pollers, reporting to an aggregator server. > Right now I'm seeing 'OK' for every service on the aggregator, but on > the actual pollers, there are numerous warning states. Any ideas what > I've wrong? Here's look at my ocsp definition: > > # 'submit_check_result' command definition; see ocsp_command in > nagios.cfg, for use with nsca > define command{ > command_name submit_check_result > command_line /usr/local/nagios/libexec/eventhandlers/ > distributed-monitoring/submit_check_result_via_nsca $HOSTNAME$ > '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$|$SERVICEPERFDATA$' > } > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 Sean McAvoy NOC Team Lead Afilias Canada P. 416.673.4194 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From geral at ptwebserv.net Sat Feb 9 00:15:20 2008 From: geral at ptwebserv.net (PT Web Services) Date: Fri, 08 Feb 2008 23:15:20 +0000 Subject: Noob questions Message-ID: <47ACE288.3070000@ptwebserv.net> First of all i want to say hello. I am a new user of Nagios and allot of things still elude me on this brilliant piece of software. I want to modify the alert mails, but i am unable to find where this can be done... Also i am having problems with permissions when installing nagvis or other scripts that use a sub-dir of the share directory, When opened in a browser i get permission denied or Error 500 Internal server error. What should be the default permissions on this share directory and all its subs? (System is running CentOS with Apac+PHP compiled with suPHP and mod_security) Sorry if those questions are trivial even if they do not belong on this list. I would appriciate any help you cn give me. Best regards, Carlos ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Sat Feb 9 00:22:05 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 8 Feb 2008 15:22:05 -0800 Subject: Noob questions In-Reply-To: <47ACE288.3070000@ptwebserv.net> References: <47ACE288.3070000@ptwebserv.net> Message-ID: <20080208232205.GH7974@bakgwai.americas.hpqcorp.net> On Fri, 08 Feb 2008, PT Web Services wrote: > First of all i want to say hello. I am a new user of Nagios and allot of > things still elude me on this brilliant piece of software. > > I want to modify the alert mails, but i am unable to find where this can > be done... This depends completely on how your Nagios installation is configured. Somewhere in there your command(s) to send email notification should be defined, and somewhere else you'll find the command that actually does the mailing. There's a good chance a file search for "mail" would be your friend here. > Also i am having problems with permissions when installing nagvis or > other scripts that use a sub-dir of the share directory, When opened in > a browser i get permission denied or Error 500 Internal server error. > > What should be the default permissions on this share directory and all > its subs? As long as your webserver can read the directories, you're fine. However, a 500 error from a webserver does not usually indicate a permission error; it's usually an indicator that you're trying to run a script that's failing. Your webserver errer logs would be a good place to look for more details. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Stanley.HOPCROFT at deewr.gov.au Sat Feb 9 01:36:15 2008 From: Stanley.HOPCROFT at deewr.gov.au (Stanley.HOPCROFT at deewr.gov.au) Date: Sat, 9 Feb 2008 11:36:15 +1100 Subject: Nagios-users Digest, Vol 21, Issue 5 [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Dear Folks, Please would someone help me out with what may be a bug in global event handlers in 3.0 alpha (not rc1 or 2 since there is nothing in the Changelog that seems to warrant upgrade) ? I have a (gloal host) event handler called like so command_line $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ I expect that $LASTHOSTUP$ when $HOSTSTATE$ eq UP and $HOSTSTATETYPE eq HARD, to be the time the handler was called, and $LASTHOSTDOWN$ to contain, generally, the time that the host was detected in a (hard) down state. Right so far ? The Nagios logs show records like so [sh1517 at acisp057 nagios]$ tail -500 nagios.log | perl -lne 'print if /Hobart/ && /EVENT|HARD/ && !/SERV/' | ./ns-time_t2localtime Sat Feb 9 03:13:39 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:13:59 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:15:19 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:16:39 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:17:59 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:19:19 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:20:39 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:21:59 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:23:19 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:24:39 2008 HOST ALERT: Hobart;DOWN;HARD;10;CRITICAL - Plugin timed out after 10 seconds Sat Feb 9 03:24:39 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 06:48:49 2008 HOST ALERT: Hobart;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 32.19 ms Sat Feb 9 06:48:49 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler but in 3.0alpha, the event handlers arguments have these values (dumped by the handler when it's called) Sat Feb 9 06:48:49 2008 : Hobart UP HARD 1202500129 1202499949 1200659464 0 or in localtime format, [sh1517 at acisp057 nagios]$ perl -le 'print join " ", map { localtime($_) . "" } qw(1202500129 1202499949 1200659464)' Sat Feb 9 06:48:49 2008 Sat Feb 9 06:45:49 2008 Fri Jan 18 23:31:04 2008 ie the $LASTHOSTDOWN$ is 06:45:49 instead of 03:3:39 !! The event handler is perhaps foolish to rely on the macros, but what is wrong here ? Is it the macro value ? Is it the event handler call from Nagios ? Is it something that needs fixing before a 3.0 release ? I am sure this behaviour is different to that in 2.9 since I was using this event handler with only minor changes thruought the 2.x series and producing reports from that data each month (for about 18 months). The docco for 3.x LASTHOST macros is, as far as I can tell, exactly the same as for 2.x, so this appears to be an undocumented (and unwelcome) change. Any comments or suggestions are welcome. >From my point of view, I will have to rewrite an event handler that worked fine with 2.9 since this stuff is VITAL to my availability reporting. Thank you, Yours sincerely. Classification: UNCLASSIFIED Dear Folks, Please would someone help me out with what may be a bug in global event handlers in 3.0 alpha (not rc1 or 2 since there is nothing in the Changelog that seems to warrant upgrade) ? I have a (gloal host) event handler called like so command_line $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ I expect that $LASTHOSTUP$ when $HOSTSTATE$ eq UP and $HOSTSTATETYPE eq HARD, to be the time the handler was called, and $LASTHOSTDOWN$ to contain, generally, the time that the host was detected in a (hard) down state. Right so far ? The Nagios logs show records like so [sh1517 at acisp057 nagios]$ tail -500 nagios.log | perl -lne 'print if /Hobart/ && /EVENT|HARD/ && !/SERV/' | ./ns-time_t2localtime Sat Feb 9 03:13:39 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:13:59 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:15:19 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:16:39 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:17:59 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:19:19 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:20:39 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:21:59 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:23:19 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 03:24:39 2008 HOST ALERT: Hobart;DOWN;HARD;10;CRITICAL - Plugin timed out after 10 seconds Sat Feb 9 03:24:39 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler Sat Feb 9 06:48:49 2008 HOST ALERT: Hobart;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 32.19 ms Sat Feb 9 06:48:49 2008 GLOBAL HOST EVENT HANDLER: Hobart;(null);(null);(null);global_host_event_handler but in 3.0alpha, the event handlers arguments have these values (dumped by the handler when it's called) Sat Feb 9 06:48:49 2008 : Hobart UP HARD 1202500129 1202499949 1200659464 0 or in localtime format, [sh1517 at acisp057 nagios]$ perl -le 'print join " ", map { localtime($_) . "" } qw(1202500129 1202499949 1200659464)' Sat Feb 9 06:48:49 2008 Sat Feb 9 06:45:49 2008 Fri Jan 18 23:31:04 2008 ie the $LASTHOSTDOWN$ is 06:45:49 instead of 03:3:39 !! The event handler is perhaps foolish to rely on the macros, but what is wrong here ? Is it the macro value ? Is it the event handler call from Nagios ? Is it something that needs fixing before a 3.0 release ? I am sure this behaviour is different to that in 2.9 since I was using this event handler with only minor changes thruought the 2.x series and producing reports from that data each month (for about 18 months). The docco for 3.x LASTHOST macros is, as far as I can tell, exactly the same as for 2.x, so this appears to be an undocumented (and unwelcome) change. Any comments or suggestions are welcome. >From my point of view, I will have to rewrite an event handler that worked fine with 2.9 since this stuff is VITAL to my availability reporting. Thank you, Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hvdkooij at vanderkooij.org Sat Feb 9 09:09:42 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 09 Feb 2008 09:09:42 +0100 Subject: Mail Flow.... Exchange server In-Reply-To: <1202499031.24819.45.camel@UNIX-TEAM-LACAYO> References: <1202499031.24819.45.camel@UNIX-TEAM-LACAYO> Message-ID: <47AD5FC6.5070001@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Luis Fernando Lacayo wrote: | Hello Everyone, | | I have a question and asking for some advice. I have an Exchange server | and one of the windows admins who controls the exchange servers, would | like for me to have Nagios check an individual mailbox by sending and | email, receiving the email and deleting the email from the mailbox. | basically he wants to make sure that mail is flowing both in and out of | the exchange servers. | | Is anyone checking anything like this? Is he out of his mind? any ideas | are welcome. Well him being an exchange admin and all. I would guess that should provide you at least with one answer ;-) But the concept has been discussed here before and if memory serves me well at least pluging to send via SMTP and validate via POP3 does exist. Hugo. - -- hvdkooij at vanderkooij.org 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) iD8DBQFHrV/EBvzDRVjxmYERAtL6AJwIXH6pV6wHZFZbGEdf8AmP9RGeuACaAxNL R9S5BeR8F7E3wQBszUEeyxw= =/uaL -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hvdkooij at vanderkooij.org Sat Feb 9 09:23:29 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 09 Feb 2008 09:23:29 +0100 Subject: Nagios-users Digest, Vol 21, Issue 5 [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <47AD6301.1020304@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stanley.HOPCROFT at deewr.gov.au wrote: | Please would someone help me out with what may be a bug in global event | handlers in 3.0 alpha (not | rc1 or 2 since there is nothing in the Changelog that seems to warrant | upgrade) ? Have you considered that the changelog might not be complete? I strongly recommend you to DO upgrade first before you even think of sending in a bug report. If you cannot do so as soon as you have a couple of minutes then you should not be running 3.0 alpha to begin with. And please do not reply to a message if you want to create a new thread. It makes a mess of any threading system (like the archives) and in this case even the subject is rather uninformative. Hugo. - -- hvdkooij at vanderkooij.org 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) iD8DBQFHrWL/BvzDRVjxmYERAqJ7AKCgX/aSAdQhtPo+r3z8OV8MgD7yuACfTF+P 057YKrbzOSWpSle3hZiivdo= =oS9V -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From taieb.riahi at topnet.tn Sat Feb 9 09:16:33 2008 From: taieb.riahi at topnet.tn (Riahi Taieb) Date: Sat, 09 Feb 2008 09:16:33 +0100 Subject: More than one Nagios Demon In-Reply-To: References: <47AAD220.9090302@topnet.tn> Message-ID: <47AD6161.80306@topnet.tn> Hi, Thanks Marc, the real problem isn't that I've to kill the process by hand but that this occurs every day ! May be I'm saying stupid thinks, but is this problem related the fact that I've given the nagios user a shell, and some of my colleges are using this account to add/remove hosts/services? Riahi Taieb Marc Powell a ?crit : > On Feb 7, 2008, at 3:40 AM, Riahi Taieb wrote: > > >> Hi list, >> >> I've Nagios 2.9 installed from ubuntu packages. I've noticed an >> abnormal nagios comportment ( double notification, hosts just added >> not found in the web...). >> Watching to running nagios process I've found more than one, doing a >> normal Nagios stop haven't stopped all running process. To have a >> normal working I'v to kill them by hand. >> Can you help me solving the problem? >> > > I think you've got it. Stop nagios, kill the remaining processes, > start nagios. > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Sat Feb 9 16:34:21 2008 From: marc at ena.com (Marc Powell) Date: Sat, 9 Feb 2008 09:34:21 -0600 Subject: More than one Nagios Demon In-Reply-To: <47AD6161.80306@topnet.tn> References: <47AAD220.9090302@topnet.tn> <47AD6161.80306@topnet.tn> Message-ID: <65490AB4-94C4-45E6-8B20-B19B388AB039@ena.com> On Feb 9, 2008, at 2:16 AM, Riahi Taieb wrote: > Hi, > > Thanks Marc, the real problem isn't that I've to kill the process by > hand but that this occurs every day ! > May be I'm saying stupid thinks, but is this problem related the > fact that I've given the nagios user a shell, and some of my > colleges are using this account to add/remove hosts/services? Having a shell wouldn't be the cause. How are you restarting nagios? It would appear that the restart process isn't working correctly. I assume you're restarting every day to activate config changes. Have you considered doing a reload/HUP instead of a full restart? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Stanley.HOPCROFT at deewr.gov.au Sat Feb 9 23:00:16 2008 From: Stanley.HOPCROFT at deewr.gov.au (Stanley.HOPCROFT at deewr.gov.au) Date: Sun, 10 Feb 2008 09:00:16 +1100 Subject: RFC Possible bug in 3.0 alpha event handlers/macros ... [SEC=UNCLASSIFIED] Message-ID: Dear Hugo, I am writing to thank you for your letter and say, > Message: 8 > Date: Sat, 09 Feb 2008 09:23:29 +0100 > From: Hugo van der Kooij > Have you considered that the changelog might not be complete? Of course ! But don't you think a _major_ change in behaviour should be documented, or a serious bug - think about it, blowing third party software out of the water - acknowledged ? > I strongly recommend you to DO upgrade first before you even think of sending in a bug report. Is it a bug ? If so, is it it fixed in rc2 ? If it hasn't been fixed in rc2, will it be fixed in the release ? > If you cannot do so as soon as you have a couple of minutes then you should not be running 3.0 alpha to begin with. Hey man ! I spend time fulfilling _my_ responsibility by reporting a potential problem and being perfectly willing to be corrected, and you say I should not test new software and identify bugs - unless I am willing to do things you obviously are not - so that when it is released, others are saved others from those bugs ! I could have diffed rc1, rc2 and alpha for an undocumented change; I could have identified the code (maybe) at fault, and may-maybe submitted a patch; and yes, I was hoping, someone else might for me because it is not my code, I am not familiar with it, and I lack the talent to do it quickly, if at at all. In other words, that's why I am asking for help, having done as much as I could. Tell me I should upgrade to rc2 and the problem will go away because of this evidence (such as was sent), and I will gladly upgrade (since I was hoping to go to the release without every step, because for me, upgrade means package build, test, install and possibly rollback) and report the result. Otherwise, your message is clearly "If you want to use alpha/rc1, 2, 3 .. nagios, don't whine about it on Nag users". > And please do not reply to a message if you want to create a new thread. It makes a mess of any threading system (like the archives) > and in this case even the subject is rather uninformative. I beg your pardon (my employers domain has changed so the mail with the correct subject and content bounced and as you can see from my tone, it is starting to become too hard). > Hugo. Classification: UNCLASSIFIED -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hvdkooij at vanderkooij.org Sun Feb 10 00:23:52 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sun, 10 Feb 2008 00:23:52 +0100 Subject: RFC Possible bug in 3.0 alpha event handlers/macros ... [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <47AE3608.8050609@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stanley.HOPCROFT at deewr.gov.au wrote: | "If you want to use alpha/rc1, 2, 3 .. nagios, don't whine about it on | Nag users". The point is that doing a bug report on 3.0alphaX where there are at least 2 release candidates have followed is not usefull. If the problem still exists in in the latest release then it makes sense to report it as such. But for any software is it not usefull to use older versions to send in a bug report. So my recommendations still stands. Upgrade to the latest 3.0 release candidate and retest. Any other 3.0 version of nagios should be considere obsolete and a bug report against those versions is pointless. Hugo. - -- hvdkooij at vanderkooij.org 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) iD8DBQFHrjYGBvzDRVjxmYERAvHPAJ45ktMlAvezrwDhBCYcNAwHRkmnqgCeMoNW AQaZQeuzASVxH8WSvTNA8/o= =icc5 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mrintegrity at gmail.com Sun Feb 10 14:25:23 2008 From: mrintegrity at gmail.com (mr) Date: Sun, 10 Feb 2008 14:25:23 +0100 Subject: License mistake in about page Message-ID: <5dfaf390802100525o981f733vfa1fcfad1de17803@mail.gmail.com> Hi all, The official about page for nagios ( http://nagios.sourceforge.net/docs/3_0/about.html#licensing )states: " Nagios is licensed under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation. This gives you legal permission to copy, distribute and/or modify Nagios under certain conditions. Read the 'LICENSE' file in the Nagios distribution or read the online version of the license for more details. " This says that the license is gpl version 2 however the hyperlink that reads "online version of the license" links directly to the gpl version 3. This may cause confusion as the linked license is different from that included with the source code. Regards, Alan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ian-list at securitypimp.com Sun Feb 10 16:50:42 2008 From: ian-list at securitypimp.com (Ian Lists) Date: Sun, 10 Feb 2008 15:50:42 +0000 (UTC) Subject: Noob questions In-Reply-To: <27791733.2371202658472793.JavaMail.root@postal.insourcedsecurity.com> References: <27791733.2371202658472793.JavaMail.root@postal.insourcedsecurity.com> Message-ID: <25784080.2391202658642086.JavaMail.root@postal.insourcedsecurity.com> I believe the "Error 500 Internal server error" is the default error that mod_security uses when it blocks something. I would set the mod_security SecRuleEngine to "DetectionOnly" until everything is setup correctly, then turn it back on and tune the rules accordingly. Ian ----- "PT Web Services" wrote: > First of all i want to say hello. I am a new user of Nagios and allot > of > things still elude me on this brilliant piece of software. > > I want to modify the alert mails, but i am unable to find where this > can > be done... > > Also i am having problems with permissions when installing nagvis or > other scripts that use a sub-dir of the share directory, When opened > in > a browser i get permission denied or Error 500 Internal server error. > > What should be the default permissions on this share directory and all > > its subs? > > (System is running CentOS with Apac+PHP compiled with suPHP and > mod_security) > > Sorry if those questions are trivial even if they do not belong on > this > list. I would appriciate any help you cn give me. > > Best regards, > > Carlos > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kaushalshriyan at gmail.com Sun Feb 10 16:56:59 2008 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Sun, 10 Feb 2008 21:26:59 +0530 Subject: Configuring multiple services Message-ID: <6b16fb4c0802100756u4f5f72aew54a81a78f449cd29@mail.gmail.com> Hi I am a newbie to Nagios, If i have to monitor SMTP and HTTP services using Nagios define service{ host_name linux-server service_description check-disk-sda1 check_command check-disk!/dev/sda1 max_check_attempts 5 check_interval 5 retry_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups linux-admins } If i have to check_http check_smtp so will the directive check_command look like check_command check_http check_smtp define service{ host_name linux-server service_description check-disk-sda1 check_command check_http check_smtp max_check_attempts 5 check_interval 5 retry_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups linux-admins } Thanks and Regards Kaushal -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Sun Feb 10 19:35:02 2008 From: marc at ena.com (Marc Powell) Date: Sun, 10 Feb 2008 12:35:02 -0600 Subject: Configuring multiple services In-Reply-To: <6b16fb4c0802100756u4f5f72aew54a81a78f449cd29@mail.gmail.com> References: <6b16fb4c0802100756u4f5f72aew54a81a78f449cd29@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kaushal Shriyan > Sent: Sunday, February 10, 2008 9:57 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Configuring multiple services > > Hi > > I am a newbie to Nagios, If i have to monitor SMTP and HTTP services using > Nagios > > If i have to check_http check_smtp so will the directive check_command > look like > > check_command check_http check_smtp > > > define service{ > host_name linux-server > service_description check-disk-sda1 > check_command check_http check_smtp > max_check_attempts 5 > check_interval 5 > > retry_interval 3 > check_period 24x7 > notification_interval 30 > notification_period 24x7 > notification_options w,c,r > contact_groups linux-admins > } You'll need to create a new service{} definition for each unique service you wish to check for each host you want to check*. Using your example above, it looks like you'll need 3 service{} definitions -- 1 checking disk on sda1 (based on your example service_description) 1 checking HTTP using check_http 1 checking SMTP using check_smtp Templates can help you a lot. You can place all the common directives like check_interval, retry_interval, etc in a template then reference that template in each service definition. Your resulting service{} definitions would only contain those directives that changed and likely only be something like -- define service{ name my-service-template max_check_attempts 5 check_interval 5 retry_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups linux-admins register 0 } define service{ use my-service-template host_name linux-server service description My HTTP Check check_command check_http } define service{ use my-service-template host_name linux-server service description My SMTP Check check_command check_smtp } define service{ use my-service-template host_name linux-server service description My Disk Check check_command check_disk_sda1 (or whatever it is) } The documentation and sample config files can be used as a reference for templating, etc. The examples above are from memory so any syntax errors are my own. The documentation should be your definitive reference. -- Marc * Note that there are some advanced template tricks that can help in this regard but for your first start you might want to experiment with simple definitions to understand the concepts. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Stanley.HOPCROFT at deewr.gov.au Sun Feb 10 21:49:46 2008 From: Stanley.HOPCROFT at deewr.gov.au (Stanley.HOPCROFT at deewr.gov.au) Date: Mon, 11 Feb 2008 07:49:46 +1100 Subject: RFC Possible bug in 3.0 alpha event handlers/macros ... [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Dear Hugo, I am writing to thank you for your letter and say, > > Stanley.HOPCROFT at deewr.gov.au wrote: > > | "If you want to use alpha/rc1, 2, 3 .. nagios, don't whine > about it on > | Nag users". > > The point is that doing a bug report on 3.0alphaX where there are at > least 2 release candidates have followed is not usefull. > > If the problem still exists in in the latest release then it makes > sense to report it as such. But for any software is it not usefull to > use older versions to send in a bug report. > > So my recommendations still stands. Upgrade to the latest 3.0 release > candidate and retest. Any other 3.0 version of nagios should be > considere obsolete and a bug report against those versions is > pointless. > You are right. I beg your pardon. Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tbabar at osius.com Mon Feb 11 07:32:07 2008 From: tbabar at osius.com (Tatyaso Babar) Date: Sun, 10 Feb 2008 22:32:07 -0800 Subject: PluginSource Code Message-ID: <1B88EE714FA1204D956B6232A88788740227301C@ex2.osius.com> Hi All, Is there any way to get the source code/script of the nagios plugins (like check_ping,Check_by_ssh etc) which are getting installed in binary file mode? I just wanted to know more about the tests these tools do and modify them as per my environment if required. I tried searching for the plugin sources but could not find any. If someone can point me to right way, it would be helpful. Regards, Tatyaso -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From wojciech at kocjan.org Mon Feb 11 07:40:24 2008 From: wojciech at kocjan.org (Wojciech Kocjan) Date: Mon, 11 Feb 2008 07:40:24 +0100 Subject: PluginSource Code In-Reply-To: <1B88EE714FA1204D956B6232A88788740227301C@ex2.osius.com> References: <1B88EE714FA1204D956B6232A88788740227301C@ex2.osius.com> Message-ID: On Mon, 11 Feb 2008 07:32:07 +0100, Tatyaso Babar wrote: > Hi All, > > > Is there any way to get the source code/script of the nagios plugins > (like check_ping,Check_by_ssh etc) which are getting installed in binary > file mode? Hi Tatyaso! What you are looking for is nagiosplug SourceForge project: http://sourceforge.net/projects/nagiosplug/ This is where Nagios plugins are kept and developed. -- WK ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tbabar at osius.com Mon Feb 11 08:05:20 2008 From: tbabar at osius.com (Tatyaso Babar) Date: Sun, 10 Feb 2008 23:05:20 -0800 Subject: PluginSource Code In-Reply-To: References: <1B88EE714FA1204D956B6232A88788740227301C@ex2.osius.com> Message-ID: <1B88EE714FA1204D956B6232A887887402273032@ex2.osius.com> Thank you very much WK, this is what I was looking for. Appreciate the quick response. Regards, Tatyaso -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Wojciech Kocjan Sent: Monday, February 11, 2008 12:10 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] PluginSource Code On Mon, 11 Feb 2008 07:32:07 +0100, Tatyaso Babar wrote: > Hi All, > > > Is there any way to get the source code/script of the nagios plugins > (like check_ping,Check_by_ssh etc) which are getting installed in binary > file mode? Hi Tatyaso! What you are looking for is nagiosplug SourceForge project: http://sourceforge.net/projects/nagiosplug/ This is where Nagios plugins are kept and developed. -- WK ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dukenukem at vpcit.ru Mon Feb 11 10:41:16 2008 From: dukenukem at vpcit.ru (=?koi8-r?b?98/Kzs/Xyd4g4c7E0sXKIOHMxcvTwc7E0s/Xyd4=?=) Date: Mon, 11 Feb 2008 14:41:16 +0500 Subject: ver. 3.x postgreSQL support Message-ID: <200802111441.16936.dukenukem@vpcit.ru> I want Nagios to store devices' data and log data in a postgreSQL database. I downloaded source files from official site, then read doc and did the following: $./configure <..> --with-pgsql-xdata --with-pgsql-doith-pgsql-status --with-pgsql-retention --with-pgsql-extinfo Then i run $ make all. Following the documentation (http://nagios.sourceforge.net/docs/1_0/xdata-db.html), there should be scripts in contrib/database/ directory (Important: Scripts for creating tables for all types of external data for both MySQL and PostgreSQL databases can be found in the contrib/database/ directory of the distribution.) I found contrib directory but didn't find database directory inside, and scripts to create databases as well. What do I do incorrect? And is there full manual about Nagios + postgreSQL? Yourth faithfully, Andrey. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Mon Feb 11 11:05:48 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 11 Feb 2008 10:05:48 +0000 Subject: Plugin to check OK state when 0 processes are running (in Windows) In-Reply-To: <47A36BC6.2030402@uni-graz.at> References: <47A36BC6.2030402@uni-graz.at> Message-ID: <47B01DFC.2060300@googlemail.com> Wim De Geeter wrote: > Hi, > I am looking for a plugin to check a Windows services that when more > than n processes (ex. WINWORD.EXE) are running I got a critical, less > than n or 0 processes are running I get a OK state. I only found plugins > that gives a Critical when 0 processes are runnin Use the negate plugin to change the exit code to achieve the inverse result that you want. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Mon Feb 11 11:13:03 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 11 Feb 2008 10:13:03 +0000 Subject: How to submit passive test results from a script? In-Reply-To: <1202310999.4586.23.camel@localhost.localdomain> References: <1202310999.4586.23.camel@localhost.localdomain> Message-ID: <47B01FAF.8030104@googlemail.com> Tom Wlodek wrote: > Ladies and gentlemen, > > I have a service running on nagios server and I would like to submit > passive test results from a client script. > > I see that nagios has an interface to submit those results: > > https://my.nagios.com/nagios/cgi-bin/cmd.cgi? > cmd_typ=30&host=my.host.com&service=nagios+test+service& > > I go there and I see a form. All it takes is to fill this form and then > clic submit. > > So I figured out that if I embed the form fields in URL and then load > the URL then I will effectively submit the form. So I do: > > https://my.nagios.com/nagios/cgi-bin/cmd.cgi? > cmd_typ=30&host=my.host.com&service=nagios+test > +service&plugin_state=3&plugin_output=pluginOuttput&performance_data=test&btnSubmit=Commit > > I load this page - and nothing happens. > > How do you submit passive test results to nagios from scripts If all you want to do is to run a plugin or something and submit the result to Nagios as a passive service check, then you want to use NSCA. If you want to do it the easy and standard way, use the nsca_wrapper plugin I wrote which turns runs a plugin you supply on the command line and then submits the result to Nagios. It saves having to reinvent the scripted wheel for this as it's a complete waste of time (I realized I didn't want to write a wrapper script for every new passive service check, hence this is generic enough for converting and standard plugin check in to a passive service check that you can just easily stick in Cron). If you are curious how to do it, just read my code, it's Bash and available on Nagios Exchange here: http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=980 -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From seb at virer.net Mon Feb 11 13:57:24 2008 From: seb at virer.net (seb) Date: Mon, 11 Feb 2008 13:57:24 +0100 Subject: web interface on a different machine then Nagios daemon. Message-ID: <374177e9cfdd6ef5f9b2d1b276087632@virer.net> Hi, I have installed nagios 3.0rc2 on a machine and run the nagios daemon process on a other /var/spool/nagios and /var/log/nagios are shared over NFS and it works pretty fine. BUT! when I want to add/remove a comment, reschedule or submit passive results, cmd.cgi freeze ! The idea is to have only one virtual machine with apache http service and one with nagios process without httpd running. so if it can works or not please tell me I think permission is OK I have set 2777 nagios.apache on every directory but when I "post" someting to "cmd.cgi" It hangs... I have try on the command line export REQUEST_METHOD="post" export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21" export REMOTE_USER="xxxx" ./cmd.cgi but it also freeze after reply me this : Content-type: text/html External Command Interface
External Command Interface
Last Updated: Mon Feb 11 13:32:27 CET 2008
Nagios® 3.0rc2 - www.nagios.org
Logged in as xxxx
Any idea ? Thanks Sebastien CAPS ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kyle.odonnell at gmail.com Mon Feb 11 14:10:18 2008 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Mon, 11 Feb 2008 08:10:18 -0500 Subject: web interface on a different machine then Nagios daemon. In-Reply-To: <374177e9cfdd6ef5f9b2d1b276087632@virer.net> References: <374177e9cfdd6ef5f9b2d1b276087632@virer.net> Message-ID: <2274b9c30802110510y546d0db6o69eeb9c456513f9a@mail.gmail.com> I found a way around this, but its not pretty: Modify nagios-src/cgi/cmd.c to write to a flat file instead of the command pipe: int write_command_to_file(char *cmd){ FILE *fp; struct stat statbuf; /* bail out if the external command file doesn't exist */ if(stat("/path/to/var/spool/cgi.pipe",&statbuf)){ if(content_type==WML_CONTENT) printf("

Error: Could not stat() external command file!

\n"); else{ printf("

Error: Could not stat() command file '%s'!

\n","/path/to/var/spool/cgi.pipe"); printf("

"); printf("The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands.\n"); printf("

\n"); } return ERROR; } /* open the command for writing (since this is a pipe, it will really be appended) */ fp=fopen("/path/to/var/spool/cgi.pipe","w"); if(fp==NULL){ if(content_type==WML_CONTENT) printf("

Error: Could not open command file for update!

\n"); else{ printf("

Error: Could not open command file '%s' for update!

\n","/path/to/var/spool/cgi.pipe"); printf("

"); printf("The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.\n"); printf("

\n"); } return ERROR; } Create a script like this: # cat cmdpipe.sh #!/bin/sh /bin/true > /path/to/var/spool/cgi.pipe chown nagios:nagios /path/to/var/spool/cgi.pipe /usr/bin/tail -F /path/to/var/spool/cgi.pipe > /path/to/var/spool/nagios.cmd & Add it to your nagios start script: start) echo -en "\nStarting network monitor: nagios" $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; if [ $? -eq 0 ]; then su - $NagiosUser -c "touch $NagiosVarDir/nagios.log $NagiosRetentionFile" rm -f $NagiosCommandFile touch $NagiosRunFile chown $NagiosUser:$NagiosGroup $NagiosRunFile $NagiosBin -d $NagiosCfgFile su - nagios -c "/path/to/cmdpipe.sh" > /dev/null 2>&1 & On 2/11/08, seb wrote: > Hi, > > I have installed nagios 3.0rc2 on a machine > and run the nagios daemon process on a other > /var/spool/nagios > and /var/log/nagios are shared over NFS > and it works pretty fine. > > BUT! when I want to add/remove a comment, reschedule or submit passive > results, cmd.cgi freeze ! > > The idea is to have only one virtual machine with apache http service and > one with nagios process without httpd running. > so if it can works or not please tell me > > I think permission is OK I have set 2777 nagios.apache on every directory > but when I "post" someting to "cmd.cgi" It hangs... > > I have try on the command line > > export REQUEST_METHOD="post" > export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21" > export REMOTE_USER="xxxx" > > ./cmd.cgi > > but it also freeze after reply me this : > > Content-type: text/html > > > > type="image/ico"> > > External Command Interface > > HREF='/nagios/stylesheets/common.css'> > > > > > > > > > > > >
> > >
>
External Command Interface
> Last Updated: Mon Feb 11 13:32:27 CET 2008
> Nagios® 3.0rc2 - CLASS='homepageURL'>www.nagios.org
> Logged in as xxxx
>
>
> >
> > Any idea ? > > Thanks > > Sebastien CAPS > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kyle.odonnell at gmail.com Mon Feb 11 14:11:35 2008 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Mon, 11 Feb 2008 08:11:35 -0500 Subject: web interface on a different machine then Nagios daemon. In-Reply-To: <2274b9c30802110510y546d0db6o69eeb9c456513f9a@mail.gmail.com> References: <374177e9cfdd6ef5f9b2d1b276087632@virer.net> <2274b9c30802110510y546d0db6o69eeb9c456513f9a@mail.gmail.com> Message-ID: <2274b9c30802110511t70022438m63828ef251b2b16f@mail.gmail.com> woops email cut off.. Add a kill -9 of the tail/script in the nagios stop case. If you're concerned about file size, create a logrotate script for the file.. --Kyle On 2/11/08, kyle.odonnell at gmail.com wrote: > I found a way around this, but its not pretty: > > Modify nagios-src/cgi/cmd.c to write to a flat file instead of the > command pipe: > > int write_command_to_file(char *cmd){ > FILE *fp; > struct stat statbuf; > > /* bail out if the external command file doesn't exist */ > if(stat("/path/to/var/spool/cgi.pipe",&statbuf)){ > > if(content_type==WML_CONTENT) > printf("

Error: Could not stat() external > command file!

\n"); > else{ > printf("

Error: > Could not stat() command file > '%s'!

\n","/path/to/var/spool/cgi.pipe"); > printf("

"); > printf("The external command file may be > missing, Nagios may not be running, and/or Nagios may not be checking > external commands.\n"); > printf("

\n"); > } > > return ERROR; > } > > /* open the command for writing (since this is a pipe, it will > really be appended) */ > fp=fopen("/path/to/var/spool/cgi.pipe","w"); > if(fp==NULL){ > > if(content_type==WML_CONTENT) > printf("

Error: Could not open command file > for update!

\n"); > else{ > printf("

Error: > Could not open command file '%s' for > update!

\n","/path/to/var/spool/cgi.pipe"); > printf("

"); > printf("The permissions on the external > command file and/or directory may be incorrect. Read the FAQs on how > to setup proper permissions.\n"); > printf("

\n"); > } > > return ERROR; > } > > > Create a script like this: > > # cat cmdpipe.sh > #!/bin/sh > /bin/true > /path/to/var/spool/cgi.pipe > chown nagios:nagios /path/to/var/spool/cgi.pipe > /usr/bin/tail -F /path/to/var/spool/cgi.pipe > /path/to/var/spool/nagios.cmd > & > > > Add it to your nagios start script: > > start) > echo -en "\nStarting network monitor: nagios" > $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; > if [ $? -eq 0 ]; then > su - $NagiosUser -c "touch $NagiosVarDir/nagios.log > $NagiosRetentionFile" > rm -f $NagiosCommandFile > touch $NagiosRunFile > chown $NagiosUser:$NagiosGroup $NagiosRunFile > $NagiosBin -d $NagiosCfgFile > su - nagios -c "/path/to/cmdpipe.sh" > /dev/null 2>&1 & > > > On 2/11/08, seb wrote: > > Hi, > > > > I have installed nagios 3.0rc2 on a machine > > and run the nagios daemon process on a other > > /var/spool/nagios > > and /var/log/nagios are shared over NFS > > and it works pretty fine. > > > > BUT! when I want to add/remove a comment, reschedule or submit passive > > results, cmd.cgi freeze ! > > > > The idea is to have only one virtual machine with apache http service and > > one with nagios process without httpd running. > > so if it can works or not please tell me > > > > I think permission is OK I have set 2777 nagios.apache on every directory > > but when I "post" someting to "cmd.cgi" It hangs... > > > > I have try on the command line > > > > export REQUEST_METHOD="post" > > export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21" > > export REMOTE_USER="xxxx" > > > > ./cmd.cgi > > > > but it also freeze after reply me this : > > > > Content-type: text/html > > > > > > > > > type="image/ico"> > > > > External Command Interface > > > > > HREF='/nagios/stylesheets/common.css'> > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > >
> >
External Command Interface
> > Last Updated: Mon Feb 11 13:32:27 CET 2008
> > Nagios® 3.0rc2 - > CLASS='homepageURL'>www.nagios.org
> > Logged in as xxxx
> >
> >
> > > >
> > > > Any idea ? > > > > Thanks > > > > Sebastien CAPS > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kyle.odonnell at gmail.com Mon Feb 11 14:13:07 2008 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Mon, 11 Feb 2008 08:13:07 -0500 Subject: PluginSource Code In-Reply-To: <1B88EE714FA1204D956B6232A88788740227301C@ex2.osius.com> References: <1B88EE714FA1204D956B6232A88788740227301C@ex2.osius.com> Message-ID: <2274b9c30802110513y514b19e4n9316c8e81dcc1d87@mail.gmail.com> http://nagiosplugins.org/ nagiosexchange.org too On 2/11/08, Tatyaso Babar wrote: > Hi All, > > > > Is there any way to get the source code/script of the nagios plugins > (like check_ping,Check_by_ssh etc) which are getting installed in binary > file mode? > > I just wanted to know more about the tests these tools do and modify > them as per my environment if required. > > > > I tried searching for the plugin sources but could not find any. If > someone can point me to right way, it would be helpful. > > > > Regards, > > Tatyaso > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Mon Feb 11 14:49:24 2008 From: marc at ena.com (Marc Powell) Date: Mon, 11 Feb 2008 07:49:24 -0600 Subject: ver. 3.x postgreSQL support In-Reply-To: <200802111441.16936.dukenukem@vpcit.ru> References: <200802111441.16936.dukenukem@vpcit.ru> Message-ID: On Feb 11, 2008, at 3:41 AM, ???????? ?????? ????????????? wrote: > I want Nagios to store devices' data and log data in a > postgreSQL database. > I downloaded source files from official site, then read doc and did > the > following: > > $./configure > <..> --with-pgsql-xdata --with-pgsql-doith-pgsql-status --with-pgsql- > retention --with-pgsql-extinfo > > Then i run $ make all. Following the documentation > (http://nagios.sourceforge.net/docs/1_0/xdata-db.html), there should > be As you can see from the documentation that you're referencing, these are (practically) ancient nagios-1.0 configure options and were dropped with the move to nagios-2.0. Please use the documentation for the version you're installing, there are many significant changes. http://nagios.sourceforge.net/docs/3_0/ Note that 3.0 is still under development. While many people are using it, bugs are not uncommon. > What do I do incorrect? And is there full manual about Nagios + > postgreSQL? > Database support has been completely revamped and moved to external modules. You're looking for the NDOutils addon. I believe that MYSQL is the only officially supported DB at this time -- http://www.nagios.org/download/ - bottom of the page. There appears to be a user contributed ndomod for postgres at http://www.nagiosexchange.org/Utilities.16.0.html?&tx_netnagext_pi1 [p_view]=1131&tx_netnagext_pi1[page]=10%3A10 -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From seb at virer.net Mon Feb 11 15:19:46 2008 From: seb at virer.net (seb) Date: Mon, 11 Feb 2008 15:19:46 +0100 Subject: web interface on a different machine then Nagios daemon. In-Reply-To: <2274b9c30802110511t70022438m63828ef251b2b16f@mail.gmail.com> References: <2274b9c30802110511t70022438m63828ef251b2b16f@mail.gmail.com> Message-ID: Nice idea :) I have compile cmd.c ok place it to the good path script file and permissions set. when i try to submit passive result it not freeze but now i have this error : "An error occurred while attempting to commit your command for processing." Return from whence you came :( On Mon, 11 Feb 2008 08:11:35 -0500, kyle.odonnell at gmail.com wrote: > woops email cut off.. > > > Add a kill -9 of the tail/script in the nagios stop case. > > If you're concerned about file size, create a logrotate script for the > file.. > > --Kyle > > On 2/11/08, kyle.odonnell at gmail.com wrote: >> I found a way around this, but its not pretty: >> >> Modify nagios-src/cgi/cmd.c to write to a flat file instead of the >> command pipe: >> >> int write_command_to_file(char *cmd){ >> FILE *fp; >> struct stat statbuf; >> >> /* bail out if the external command file doesn't exist */ >> if(stat("/path/to/var/spool/cgi.pipe",&statbuf)){ >> >> if(content_type==WML_CONTENT) >> printf("

Error: Could not stat() external >> command file!

\n"); >> else{ >> printf("

Error: >> Could not stat() command file >> '%s'!

\n","/path/to/var/spool/cgi.pipe"); >> printf("

"); >> printf("The external command file may be >> missing, Nagios may not be running, and/or Nagios may not be checking >> external commands.\n"); >> printf("

\n"); >> } >> >> return ERROR; >> } >> >> /* open the command for writing (since this is a pipe, it will >> really be appended) */ >> fp=fopen("/path/to/var/spool/cgi.pipe","w"); >> if(fp==NULL){ >> >> if(content_type==WML_CONTENT) >> printf("

Error: Could not open command file >> for update!

\n"); >> else{ >> printf("

Error: >> Could not open command file '%s' for >> update!

\n","/path/to/var/spool/cgi.pipe"); >> printf("

"); >> printf("The permissions on the external >> command file and/or directory may be incorrect. Read the FAQs on how >> to setup proper permissions.\n"); >> printf("

\n"); >> } >> >> return ERROR; >> } >> >> >> Create a script like this: >> >> # cat cmdpipe.sh >> #!/bin/sh >> /bin/true > /path/to/var/spool/cgi.pipe >> chown nagios:nagios /path/to/var/spool/cgi.pipe >> /usr/bin/tail -F /path/to/var/spool/cgi.pipe > > /path/to/var/spool/nagios.cmd >> & >> >> >> Add it to your nagios start script: >> >> start) >> echo -en "\nStarting network monitor: nagios" >> $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; >> if [ $? -eq 0 ]; then >> su - $NagiosUser -c "touch $NagiosVarDir/nagios.log >> $NagiosRetentionFile" >> rm -f $NagiosCommandFile >> touch $NagiosRunFile >> chown $NagiosUser:$NagiosGroup $NagiosRunFile >> $NagiosBin -d $NagiosCfgFile >> su - nagios -c "/path/to/cmdpipe.sh" > /dev/null 2>&1 & >> >> >> On 2/11/08, seb wrote: >> > Hi, >> > >> > I have installed nagios 3.0rc2 on a machine >> > and run the nagios daemon process on a other >> > /var/spool/nagios >> > and /var/log/nagios are shared over NFS >> > and it works pretty fine. >> > >> > BUT! when I want to add/remove a comment, reschedule or submit passive >> > results, cmd.cgi freeze ! >> > >> > The idea is to have only one virtual machine with apache http service > and >> > one with nagios process without httpd running. >> > so if it can works or not please tell me >> > >> > I think permission is OK I have set 2777 nagios.apache on every > directory >> > but when I "post" someting to "cmd.cgi" It hangs... >> > >> > I have try on the command line >> > >> > export REQUEST_METHOD="post" >> > export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21" >> > export REMOTE_USER="xxxx" >> > >> > ./cmd.cgi >> > >> > but it also freeze after reply me this : >> > >> > Content-type: text/html >> > >> > >> > >> > > > type="image/ico"> >> > >> > External Command Interface >> > >> > > > HREF='skins/default/nagios/stylesheets/common.css'> >> > HREF='skins/default/nagios/stylesheets/cmd.css'> >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >
>> > >> > >> >
>> >
External Command Interface
>> > Last Updated: Mon Feb 11 13:32:27 CET 2008
>> > Nagios? 3.0rc2 - > > CLASS='homepageURL'>www.nagios.org
>> > Logged in as xxxx
>> >
>> >
>> > >> >
>> > >> > Any idea ? >> > >> > Thanks >> > >> > Sebastien CAPS >> > >> > >> > >> > > ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kyle.odonnell at gmail.com Mon Feb 11 15:30:00 2008 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Mon, 11 Feb 2008 09:30:00 -0500 Subject: web interface on a different machine then Nagios daemon. In-Reply-To: References: <2274b9c30802110511t70022438m63828ef251b2b16f@mail.gmail.com> Message-ID: <2274b9c30802110630p30c2a106v34e70c5b3c3ba4b7@mail.gmail.com> make sure your submissions are being inserted into the cgi.pipe file, permissions might be an issue. On 2/11/08, seb wrote: > Nice idea :) > > I have compile cmd.c ok > place it to the good path > script file and permissions set. > > when i try to submit passive result it not freeze but now i have this error > : > > "An error occurred while attempting to commit your command for processing." > Return from whence you came > > :( > > > On Mon, 11 Feb 2008 08:11:35 -0500, kyle.odonnell at gmail.com wrote: > > woops email cut off.. > > > > > > Add a kill -9 of the tail/script in the nagios stop case. > > > > If you're concerned about file size, create a logrotate script for the > > file.. > > > > --Kyle > > > > On 2/11/08, kyle.odonnell at gmail.com wrote: > >> I found a way around this, but its not pretty: > >> > >> Modify nagios-src/cgi/cmd.c to write to a flat file instead of the > >> command pipe: > >> > >> int write_command_to_file(char *cmd){ > >> FILE *fp; > >> struct stat statbuf; > >> > >> /* bail out if the external command file doesn't exist */ > >> if(stat("/path/to/var/spool/cgi.pipe",&statbuf)){ > >> > >> if(content_type==WML_CONTENT) > >> printf("

Error: Could not stat() external > >> command file!

\n"); > >> else{ > >> printf("

Error: > >> Could not stat() command file > >> '%s'!

\n","/path/to/var/spool/cgi.pipe"); > >> printf("

"); > >> printf("The external command file may be > >> missing, Nagios may not be running, and/or Nagios may not be checking > >> external commands.\n"); > >> printf("

\n"); > >> } > >> > >> return ERROR; > >> } > >> > >> /* open the command for writing (since this is a pipe, it will > >> really be appended) */ > >> fp=fopen("/path/to/var/spool/cgi.pipe","w"); > >> if(fp==NULL){ > >> > >> if(content_type==WML_CONTENT) > >> printf("

Error: Could not open command file > >> for update!

\n"); > >> else{ > >> printf("

Error: > >> Could not open command file '%s' for > >> update!

\n","/path/to/var/spool/cgi.pipe"); > >> printf("

"); > >> printf("The permissions on the external > >> command file and/or directory may be incorrect. Read the FAQs on how > >> to setup proper permissions.\n"); > >> printf("

\n"); > >> } > >> > >> return ERROR; > >> } > >> > >> > >> Create a script like this: > >> > >> # cat cmdpipe.sh > >> #!/bin/sh > >> /bin/true > /path/to/var/spool/cgi.pipe > >> chown nagios:nagios /path/to/var/spool/cgi.pipe > >> /usr/bin/tail -F /path/to/var/spool/cgi.pipe > > > /path/to/var/spool/nagios.cmd > >> & > >> > >> > >> Add it to your nagios start script: > >> > >> start) > >> echo -en "\nStarting network monitor: nagios" > >> $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; > >> if [ $? -eq 0 ]; then > >> su - $NagiosUser -c "touch $NagiosVarDir/nagios.log > >> $NagiosRetentionFile" > >> rm -f $NagiosCommandFile > >> touch $NagiosRunFile > >> chown $NagiosUser:$NagiosGroup $NagiosRunFile > >> $NagiosBin -d $NagiosCfgFile > >> su - nagios -c "/path/to/cmdpipe.sh" > /dev/null 2>&1 & > >> > >> > >> On 2/11/08, seb wrote: > >> > Hi, > >> > > >> > I have installed nagios 3.0rc2 on a machine > >> > and run the nagios daemon process on a other > >> > /var/spool/nagios > >> > and /var/log/nagios are shared over NFS > >> > and it works pretty fine. > >> > > >> > BUT! when I want to add/remove a comment, reschedule or submit passive > >> > results, cmd.cgi freeze ! > >> > > >> > The idea is to have only one virtual machine with apache http service > > and > >> > one with nagios process without httpd running. > >> > so if it can works or not please tell me > >> > > >> > I think permission is OK I have set 2777 nagios.apache on every > > directory > >> > but when I "post" someting to "cmd.cgi" It hangs... > >> > > >> > I have try on the command line > >> > > >> > export REQUEST_METHOD="post" > >> > export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21" > >> > export REMOTE_USER="xxxx" > >> > > >> > ./cmd.cgi > >> > > >> > but it also freeze after reply me this : > >> > > >> > Content-type: text/html > >> > > >> > > >> > > >> > >> > type="image/ico"> > >> > > >> > External Command Interface > >> > > >> > >> > HREF='skins/default/nagios/stylesheets/common.css'> > >> > > HREF='skins/default/nagios/stylesheets/cmd.css'> > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> >
> >> > > >> > > >> >
> >> >
External Command Interface
> >> > Last Updated: Mon Feb 11 13:32:27 CET 2008
> >> > Nagios(R) 3.0rc2 - >> > CLASS='homepageURL'>www.nagios.org
> >> > Logged in as xxxx
> >> >
> >> >
> >> > > >> >
> >> > > >> > Any idea ? > >> > > >> > Thanks > >> > > >> > Sebastien CAPS > >> > > >> > > >> > > >> > > > ------------------------------------------------------------------------- > >> > This SF.net email is sponsored by: Microsoft > >> > Defy all challenges. Microsoft(R) Visual Studio 2008. > >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> > _______________________________________________ > >> > Nagios-users mailing list > >> > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From seb at virer.net Mon Feb 11 16:24:03 2008 From: seb at virer.net (seb) Date: Mon, 11 Feb 2008 16:24:03 +0100 Subject: web interface on a different machine then Nagios daemon. In-Reply-To: <2274b9c30802110630p30c2a106v34e70c5b3c3ba4b7@mail.gmail.com> References: <2274b9c30802110630p30c2a106v34e70c5b3c3ba4b7@mail.gmail.com> Message-ID: <617430a2ba0d82573cafd0f9bc91357f@virer.net> There was 2 mistakes : 1) I have made a mistake in the cmd.c code with "return ERROR;" so it return ERROR lol 2) The file must be append so i change this fp=fopen("/var/spool/nagios/cgi.pipe","w"); to this: fp=fopen("/var/spool/nagios/cgi.pipe","a"); and now it works really fine :D really thank you for your help !!! Have a nice day :) On Mon, 11 Feb 2008 09:30:00 -0500, kyle.odonnell at gmail.com wrote: > make sure your submissions are being inserted into the cgi.pipe file, > permissions might be an issue. > > On 2/11/08, seb wrote: >> Nice idea :) >> >> I have compile cmd.c ok >> place it to the good path >> script file and permissions set. >> >> when i try to submit passive result it not freeze but now i have this > error >> : >> >> "An error occurred while attempting to commit your command for > processing." >> Return from whence you came >> >> :( >> >> >> On Mon, 11 Feb 2008 08:11:35 -0500, kyle.odonnell at gmail.com wrote: >> > woops email cut off.. >> > >> > >> > Add a kill -9 of the tail/script in the nagios stop case. >> > >> > If you're concerned about file size, create a logrotate script for the >> > file.. >> > >> > --Kyle >> > >> > On 2/11/08, kyle.odonnell at gmail.com wrote: >> >> I found a way around this, but its not pretty: >> >> >> >> Modify nagios-src/cgi/cmd.c to write to a flat file instead of the >> >> command pipe: >> >> >> >> int write_command_to_file(char *cmd){ >> >> FILE *fp; >> >> struct stat statbuf; >> >> >> >> /* bail out if the external command file doesn't exist */ >> >> if(stat("/path/to/var/spool/cgi.pipe",&statbuf)){ >> >> >> >> if(content_type==WML_CONTENT) >> >> printf("

Error: Could not stat() external >> >> command file!

\n"); >> >> else{ >> >> printf("

Error: >> >> Could not stat() command file >> >> '%s'!

\n","/path/to/var/spool/cgi.pipe"); >> >> printf("

"); >> >> printf("The external command file may be >> >> missing, Nagios may not be running, and/or Nagios may not be checking >> >> external commands.\n"); >> >> printf("

\n"); >> >> } >> >> >> >> return ERROR; >> >> } >> >> >> >> /* open the command for writing (since this is a pipe, it > will >> >> really be appended) */ >> >> fp=fopen("/path/to/var/spool/cgi.pipe","w"); >> >> if(fp==NULL){ >> >> >> >> if(content_type==WML_CONTENT) >> >> printf("

Error: Could not open command file >> >> for update!

\n"); >> >> else{ >> >> printf("

Error: >> >> Could not open command file '%s' for >> >> update!

\n","/path/to/var/spool/cgi.pipe"); >> >> printf("

"); >> >> printf("The permissions on the external >> >> command file and/or directory may be incorrect. Read the FAQs on how >> >> to setup proper permissions.\n"); >> >> printf("

\n"); >> >> } >> >> >> >> return ERROR; >> >> } >> >> >> >> >> >> Create a script like this: >> >> >> >> # cat cmdpipe.sh >> >> #!/bin/sh >> >> /bin/true > /path/to/var/spool/cgi.pipe >> >> chown nagios:nagios /path/to/var/spool/cgi.pipe >> >> /usr/bin/tail -F /path/to/var/spool/cgi.pipe > >> > /path/to/var/spool/nagios.cmd >> >> & >> >> >> >> >> >> Add it to your nagios start script: >> >> >> >> start) >> >> echo -en "\nStarting network monitor: nagios" >> >> $NagiosBin -v $NagiosCfgFile > /dev/null 2>&1; >> >> if [ $? -eq 0 ]; then >> >> su - $NagiosUser -c "touch $NagiosVarDir/nagios.log >> >> $NagiosRetentionFile" >> >> rm -f $NagiosCommandFile >> >> touch $NagiosRunFile >> >> chown $NagiosUser:$NagiosGroup $NagiosRunFile >> >> $NagiosBin -d $NagiosCfgFile >> >> su - nagios -c "/path/to/cmdpipe.sh" > /dev/null 2>&1 & >> >> >> >> >> >> On 2/11/08, seb wrote: >> >> > Hi, >> >> > >> >> > I have installed nagios 3.0rc2 on a machine >> >> > and run the nagios daemon process on a other >> >> > /var/spool/nagios >> >> > and /var/log/nagios are shared over NFS >> >> > and it works pretty fine. >> >> > >> >> > BUT! when I want to add/remove a comment, reschedule or submit > passive >> >> > results, cmd.cgi freeze ! >> >> > >> >> > The idea is to have only one virtual machine with apache http > service >> > and >> >> > one with nagios process without httpd running. >> >> > so if it can works or not please tell me >> >> > >> >> > I think permission is OK I have set 2777 nagios.apache on every >> > directory >> >> > but when I "post" someting to "cmd.cgi" It hangs... >> >> > >> >> > I have try on the command line >> >> > >> >> > export REQUEST_METHOD="post" >> >> > export QUERY_STRING="cmd_typ=4&cmd_mod=2&com_id=21" >> >> > export REMOTE_USER="xxxx" >> >> > >> >> > ./cmd.cgi >> >> > >> >> > but it also freeze after reply me this : >> >> > >> >> > Content-type: text/html >> >> > >> >> > >> >> > >> >> > > >> > type="image/ico"> >> >> > >> >> > External Command Interface >> >> > >> >> > > >> > HREF='skins/default/nagios/stylesheets/common.css'> >> >> > > > HREF='skins/default/nagios/stylesheets/cmd.css'> >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> >
>> >> > >> >> > >> >> >
>> >> >
External Command Interface
>> >> > Last Updated: Mon Feb 11 13:32:27 CET 2008
>> >> > Nagios(R) 3.0rc2 - > >> > CLASS='homepageURL'>www.nagios.org
>> >> > Logged in as xxxx
>> >> >
>> >> >
>> >> > >> >> >
>> >> > >> >> > Any idea ? >> >> > >> >> > Thanks >> >> > >> >> > Sebastien CAPS >> >> > >> >> > >> >> > >> >> > >> > > ------------------------------------------------------------------------- >> >> > This SF.net email is sponsored by: Microsoft >> >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> >> > _______________________________________________ >> >> > Nagios-users mailing list >> >> > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Mon Feb 11 18:13:43 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Mon, 11 Feb 2008 11:13:43 -0600 Subject: Parenting vs Dependencies Message-ID: I know that this has been discussed ad nauseam and I have read quite a bit of those discussions this morning and over the preceding weekend. I still am at a bit of a loss. I have a pretty firm understanding of parenting and dependencies and how they both work. I think I have a good grasp on what we need in our environment but I seem to be missing the point in explaining this to my boss. So here is an overview of what I have to monitor, what my boss is asking, and what I think we need and maybe someone can beat some sense into me. I have a medium sized network (100-200 hosts). Hosts are in cabinets on site (no off site monitoring yet) Cabinets are not setup by subnet (I think this is fairly normal) 1 switch per cabinet Multiple subnets across the farm The boss and I agree that the switch in each cabinet needs to be part of our monitoring setup and be part of some sort of parenting/dependency. This is where we cease seeing eye to eye. For the purpose of making this easy lets say we are dealing with three subnets and ten cabinets only. Here is what the boss wants (at least as far as I can understand): Setup three hosts per cabinet to represent the three subnets, that actual IP would be the IP of the switch. Parent the hosts in the cabinet to these and parent these to the gateways for the subnet. This is, with the parameters above, thirty extra hosts, and IMO a management nightmare. Since the switch is not part of the route my thought is that we parent in the normal manner as I understand it, host parents to router, and so on and at that point we would make the hosts have a dependency on the switch through which their connection passes. The current setup doesn't take into account the switches at all but rather is setup to where each host is parented to it's gateway IP and that has been working rather well but if a switch dies we need to be able to see that via nagios and not have 20 or servers and their services going off all at once.. I cannot see why adding tens of special hosts for the boss's parenting solution will help anything in the long run. Thanks in advance to anyone who takes the time to respond to this as I probably haven't explained very well to begin with. Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Mon Feb 11 18:26:11 2008 From: hittjw at gmail.com (Justin Hitt) Date: Mon, 11 Feb 2008 12:26:11 -0500 Subject: Parenting vs Dependencies In-Reply-To: References: Message-ID: <93344bf0802110926i5c3d4261vfb8be94cf7f436b4@mail.gmail.com> Mark, On Feb 11, 2008 12:13 PM, wrote: > this to my boss. So here is an overview of what I have to monitor, what my > boss is asking, and what I think we need and maybe someone can beat some I know listening to the boss is good for your long term employment, however, who has to troubleshoot the environment should you get an alert? Setup what ever makes the most since for identifying root cause and narrowing down a problem -- neither way suggested is wrong, just start with what's easiest to get setup today. Best, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Mon Feb 11 18:32:45 2008 From: hittjw at gmail.com (Justin Hitt) Date: Mon, 11 Feb 2008 12:32:45 -0500 Subject: Nagios checkresults queue grows over time Message-ID: <93344bf0802110932w1e4b7361j88d81b7421ce66bd@mail.gmail.com> Update on 'checkresults' queue growth, Nagios 3.0 rc1 ... http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[mode]=1&tx_maillisttofaq_pi1[showUid]=9116 I can keep the system from coming down completely by eliminating host checks. It seems the rapid growth of checks is nagios reading stale entries, then scheduling recheck, which then becomes stale because nagios doesn't get it in time to process. Without host checks, I get fewer ... [1202750959] Warning: The check of service 'URL' on host 'FQDN0.com' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service... ... in the logs. Has any 'checkresults' queuing issues been resolved in RC2 ... I didn't see anything specific in the Changelog? Anyone else experiencing a queue that grows slowly overtime and not processing service checks in a timely manner? Best, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Mon Feb 11 18:40:04 2008 From: marc at ena.com (Marc Powell) Date: Mon, 11 Feb 2008 11:40:04 -0600 Subject: Parenting vs Dependencies In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of mark.potter at academy.com > Sent: Monday, February 11, 2008 11:14 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Parenting vs Dependencies > > I have a medium sized network (100-200 hosts). > Hosts are in cabinets on site (no off site monitoring yet) > Cabinets are not setup by subnet (I think this is fairly normal) > 1 switch per cabinet > Multiple subnets across the farm > > The boss and I agree that the switch in each cabinet needs to be part of > our monitoring setup and be part of some sort of parenting/dependency. > This is where we cease seeing eye to eye. For the purpose of making this > easy lets say we are dealing with three subnets and ten cabinets only. > Here is what the boss wants (at least as far as I can understand): Setup > three hosts per cabinet to represent the three subnets, that actual IP > would be the IP of the switch. Parent the hosts in the cabinet to these > and parent these to the gateways for the subnet. This is, with the > parameters above, thirty extra hosts, and IMO a management nightmare. > > Since the switch is not part of the route my thought is that we parent in > the normal manner as I understand it, host parents to router, and so on > and at that point we would make the hosts have a dependency on the switch > through which their connection passes. The current setup doesn't take into > account the switches at all but rather is setup to where each host is > parented to it's gateway IP and that has been working rather well but if a > switch dies we need to be able to see that via nagios and not have 20 or > servers and their services going off all at once.. I cannot see why adding > tens of special hosts for the boss's parenting solution will help anything > in the long run. > Both solutions sound overly complex to me. It seems to me that you only need to add the 10 switches, with their own IP's, as parents. I expect that you shouldn't really care what subnet a server is on through that switch, you should only be thinking about physical connections. If Switch1 goes down, what servers are connected to it and unreachable as a result? Do you think the switch could fail in such a way that one of the subnets would work and the others won't? It's been my experience that a switch works or it doesn't, outside of human error. The parents directive is used to determine network outages (down v.s. unreachable) and would represent the problem correctly if your switch is down. In your situation I would end up with something like -- Host (subnet1) has parent Switch1 has parent Router1 Host (subnet2) has parent Switch1 has parent Router1 Host (subnet1) has parent Switch2 has parent Router1 Host (subnet3) has parent Switch2 has parent Router2 And so forth. Is there some additional complexity that I'm not grasping? Using dependencies _would_ add the tens of extra definitions that you don't want because you'd need a host dependency for host1 -> switch1, then another for switch1 -> router1, etc, etc. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Mon Feb 11 18:49:34 2008 From: marc at ena.com (Marc Powell) Date: Mon, 11 Feb 2008 11:49:34 -0600 Subject: Parenting vs Dependencies In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Monday, February 11, 2008 11:40 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Parenting vs Dependencies > > The parents directive is used to determine network outages (down v.s. > unreachable) and would represent the problem correctly if your switch is > down. In your situation I would end up with something like -- > > Host (subnet1) has parent Switch1 has parent Router1 > Host (subnet2) has parent Switch1 has parent Router1 > > Host (subnet1) has parent Switch2 has parent Router1 > Host (subnet3) has parent Switch2 has parent Router2 Ack. Switch2 has parent Router2 only. ;) -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Stanley.HOPCROFT at deewr.gov.au Mon Feb 11 22:22:16 2008 From: Stanley.HOPCROFT at deewr.gov.au (Stanley.HOPCROFT at deewr.gov.au) Date: Tue, 12 Feb 2008 08:22:16 +1100 Subject: RFC Possible bug in 3.0 alpha event handlers/macros ... [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Dear Folks, Initial indications from RC2 are that event handlers are called with the _correct_ values of the macros. (This is a simulation: ie disable host/service checks and then submit a passive host check result to DOWN and UP a host) Tue Feb 12 07:47:01 2008 PASSIVE HOST CHECK: wtmrt200;1;Test of event handler/macros - bad val of LASTHOSTDOWN Tue Feb 12 07:47:01 2008 HOST ALERT: wtmrt200;DOWN;HARD;1;Test of event handler/macros - bad val of LASTHOSTDOWN Tue Feb 12 07:47:01 2008 GLOBAL HOST EVENT HANDLER: wtmrt200;(null);(null);(null);global_host_event_handler Tue Feb 12 07:49:43 2008 EXTERNAL COMMAND: DISABLE_HOST_SVC_CHECKS;wtmrt200 Tue Feb 12 07:49:43 2008 EXTERNAL COMMAND: DISABLE_HOST_CHECK;wtmrt200 Tue Feb 12 08:05:41 2008 EXTERNAL COMMAND: PROCESS_HOST_CHECK_RESULT;wtmrt200;0;Test of event handler/macros - bad val of LASTHOSTDOWN| Tue Feb 12 08:05:51 2008 PASSIVE HOST CHECK: wtmrt200;0;Test of event handler/macros - bad val of LASTHOSTDOWN Tue Feb 12 08:05:51 2008 HOST ALERT: wtmrt200;UP;HARD;1;Test of event handler/macros - bad val of LASTHOSTDOWN Tue Feb 12 08:05:51 2008 GLOBAL HOST EVENT HANDLER: wtmrt200;(null);(null);(null);global_host_event_handler And from the event handler log (that appends its args to a file) Tue Feb 12 07:47:01 2008 : wtmrt200 DOWN HARD 1202762761 1202762821 0 0. Tue Feb 12 08:05:51 2008 : wtmrt200 UP HARD 1202763951 1202762821 0 0. $ perl -le 'print join " ", map { scalar localtime($_) } qw(1202763951 1202762821)' Tue Feb 12 08:05:51 2008 Tue Feb 12 07:47:01 2008 $ First two time_t args in the call to the global event handler are $LASTHOSTUP$ and $LASTHOSTDOWN$. In this case these values of the arguments to the event handler correspond to the times the host went down and up, so on the basis of this test case, the values of the macros are being passed correctly to the event handler in Nagios 3.0 rc2. Bravo Nagios ! Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From paul.aviles at nickelnetworks.com Tue Feb 12 05:06:38 2008 From: paul.aviles at nickelnetworks.com (Paul Aviles) Date: Mon, 11 Feb 2008 23:06:38 -0500 Subject: Remote monitoring Message-ID: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> I am looking for a way to remotely monitor Windows servers. The servers are on a remote network and using network address translation so they are not directly accessible. I saw that Pandora uses an agent on the remote servers to connect via ssh to the main monitoring server and I like that idea, but I have not been able to see any documentation on how to do it with Nagios. In our configuration we cannot alter or open ports on the clients firewalls, but outgoing ssh traffic should not be an issue and I guess the monitoring server should not contact the remote servers. Is there a way to have an agent on a remote Windows servers similarly using ssh to tunnel the traffic? Regards, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From wojciech at kocjan.org Tue Feb 12 08:19:34 2008 From: wojciech at kocjan.org (Wojciech Kocjan) Date: Tue, 12 Feb 2008 08:19:34 +0100 Subject: Remote monitoring In-Reply-To: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> References: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> Message-ID: On Tue, 12 Feb 2008 05:06:38 +0100, Paul Aviles wrote: > I am looking for a way to remotely monitor Windows servers. The servers > are on a remote network and using network address translation so they > are not directly accessible. I saw that Pandora uses an agent on the > remote servers to connect via ssh to the main monitoring server and I > like that idea, but I have not been able to see any documentation on how > to do it with Nagios. In our configuration we cannot alter or open ports > on the clients firewalls, but outgoing ssh traffic should not be an > issue and I guess the monitoring server should not contact the remote > servers. Hi Paul, I think it should be quite easy to use putty's plink to connect and tunnel nsclient++ using remote tunneling (-R option). For example assuming NSClient is running on port 12489 you could run plink -R 20001:127.0.0.1:12489 guestuser at nagiosserver And then as long as the SSH connection stays open your nagiosserver will be able to access NSClient++ by connecting to 127.0.0.1 port 20001. You'd need to modify check_nt command a bit to always use 127.0.0.1 as an IP. If it's Nagios 3 you can also use custom variable (like _NSCLIENTPORT) in host definitions and reuse that in your version of check_nt command (using $_HOSTNSCLIENTPORT$). The solution might not be robust enough if your network is not stable - in that case you might need a wrapper that will restart plink if a connection is down... I'm not sure if any working solutions for this exist. I'm curious myself as I wrote a small wrapper that checks for connection timeouts - and I'm wondering if there's any better solution on Windows. -- Wojciech Kocjan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From melanie_pfefer at yahoo.co.uk Tue Feb 12 08:21:13 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Tue, 12 Feb 2008 07:21:13 +0000 (GMT) Subject: alert history Message-ID: <630991.80518.qm@web26205.mail.ukl.yahoo.com> hello how to enable alert history in nagios? thnks __________________________________________________________ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From michael at medin.name Tue Feb 12 08:36:32 2008 From: michael at medin.name (Michael Medin) Date: Tue, 12 Feb 2008 06:36:32 -0100 (GMT+1) Subject: Remote monitoring In-Reply-To: References: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> Message-ID: <49811.193.180.216.132.1202801792.squirrel@ssl.nakednuns.org> Hello, Humm, this was quite interesting, is there a way to (from the plink) to detect the status of the connection or does plink "die" when the connection dies even? Would be quite simple to add a "plugin" to run this from within nsclient++, but for it to be useful you would need to be able to detect the status of the link (and I have never used the command myself). // MickeM > On Tue, 12 Feb 2008 05:06:38 +0100, Paul Aviles > wrote: > >> I am looking for a way to remotely monitor Windows servers. The servers >> are on a remote network and using network address translation so they >> are not directly accessible. I saw that Pandora uses an agent on the >> remote servers to connect via ssh to the main monitoring server and I >> like that idea, but I have not been able to see any documentation on how >> to do it with Nagios. In our configuration we cannot alter or open ports >> on the clients firewalls, but outgoing ssh traffic should not be an >> issue and I guess the monitoring server should not contact the remote >> servers. > > Hi Paul, > > I think it should be quite easy to use putty's plink to connect and tunnel > nsclient++ using remote tunneling (-R option). > > For example assuming NSClient is running on port 12489 you could run > > plink -R 20001:127.0.0.1:12489 guestuser at nagiosserver > > And then as long as the SSH connection stays open your nagiosserver will > be able to access NSClient++ by connecting to 127.0.0.1 port 20001. You'd > need to modify check_nt command a bit to always use 127.0.0.1 as an IP. If > it's Nagios 3 you can also use custom variable (like _NSCLIENTPORT) in > host definitions and reuse that in your version of check_nt command (using > $_HOSTNSCLIENTPORT$). > > The solution might not be robust enough if your network is not stable - in > that case you might need a wrapper that will restart plink if a connection > is down... I'm not sure if any working solutions for this exist. I'm > curious myself as I wrote a small wrapper that checks for connection > timeouts - and I'm wondering if there's any better solution on Windows. > > -- > Wojciech Kocjan > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From federico.donati at hermess.it Tue Feb 12 10:04:59 2008 From: federico.donati at hermess.it (Federico Donati) Date: Tue, 12 Feb 2008 10:04:59 +0100 Subject: how to specify a source port? Message-ID: <47B1613B.30104@hermess.it> Hi all, I'm in trouble with checking a remote service. I have to check if the service is alive and i do this by using the check_tcp plugin. Unfortunately, the remote service is not managed by me and it requires a specific source port, and you know that check_tcp doesn't support this feature. So, somebody had my problem? How to resolve? I've already wrote to devel-list, but i didn't get any answer. Before to begin scripting, i'd like to know if there is a ready-to-use solution. Any kind of help will be appreciated. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cschneemann at suse.de Tue Feb 12 10:53:07 2008 From: cschneemann at suse.de (Christian Schneemann) Date: Tue, 12 Feb 2008 10:53:07 +0100 Subject: Segmentation faults after starting Nagios 3.0 RC2 Message-ID: <200802121053.08147.cschneemann@suse.de> Hallo, our test Nagios dies after every restart with a segmentation fault since last week. I have tried to find the error with gdb. I hope someone can point me to my error. d139:/etc/nagios/objects/hosts # gdb --args /usr/sbin/nagios /etc/nagios/nagios.cfg GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-suse-linux"... (no debugging symbols found) Using host libthread_db library "/lib64/libthread_db.so.1". (gdb) run Starting program: /usr/sbin/nagios /etc/nagios/nagios.cfg (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 47105982427648 (LWP 15658)] (no debugging symbols found) (no debugging symbols found) Nagios 3.0rc2 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 01-29-2008 License: GPL Nagios 3.0rc2 starting... (PID=15658) Local time is Tue Feb 12 10:37:24 CET 2008 [New Thread 1082132800 (LWP 15661)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47105982427648 (LWP 15658)] 0x000000000043b90a in process_check_result_queue () (gdb) bt #0 0x000000000043b90a in process_check_result_queue () #1 0x000000000041c536 in reap_check_results () #2 0x0000000000429119 in handle_timed_event () #3 0x0000000000429701 in event_execution_loop () #4 0x00000000004120fe in main () (gdb) s Single stepping until exit from function process_check_result_queue, which has no line number information. 0x0000000000437c50 in sighandler () (gdb) s Single stepping until exit from function sighandler, which has no line number information. Caught SIGSEGV, shutting down... 0x00002ad7b7394c10 in __restore_rt () from /lib64/libc.so.6 (gdb) s Single stepping until exit from function __restore_rt, which has no line number information. 0x000000000043b90a in process_check_result_queue () (gdb) s Single stepping until exit from function process_check_result_queue, which has no line number information. Program received signal SIGSEGV, Segmentation fault. 0x000000000043b90a in process_check_result_queue () (gdb) Regards -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From djenkins at istreamimaging.com Tue Feb 12 14:18:34 2008 From: djenkins at istreamimaging.com (Dennis Jenkins) Date: Tue, 12 Feb 2008 07:18:34 -0600 Subject: how to specify a source port? In-Reply-To: <47B1613B.30104@hermess.it> References: <47B1613B.30104@hermess.it> Message-ID: <47B19CAA.20106@istreamimaging.com> Federico Donati wrote: > Hi all, > > > I'm in trouble with checking a remote service. I have to check if the > service is alive and i do this by using the check_tcp plugin. > Unfortunately, the remote service is not managed by me and it requires a > specific source port, and you know that check_tcp doesn't support this > feature. > > So, somebody had my problem? How to resolve? I've already wrote to > devel-list, but i didn't get any answer. > Before to begin scripting, i'd like to know if there is a ready-to-use > solution. > > Any kind of help will be appreciated. > If your Nagios server is running BSD or Linux then you can use the built-in firewall to transparently change the port. Kind of like NAT, but just for the port (some vendors (Juniper) call this PAT). I suppose that Solaris and Windows might have this ability too, but I'm not that familiar with their equivalent of iptables / ipfw. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From federico.donati at hermess.it Tue Feb 12 14:49:50 2008 From: federico.donati at hermess.it (Federico Donati) Date: Tue, 12 Feb 2008 14:49:50 +0100 Subject: how to specify a source port? In-Reply-To: <47B19CAA.20106@istreamimaging.com> References: <47B1613B.30104@hermess.it> <47B19CAA.20106@istreamimaging.com> Message-ID: <47B1A3FE.10900@hermess.it> Dennis Jenkins wrote: > If your Nagios server is running BSD or Linux then you can use the > built-in firewall to transparently change the port. Kind of like NAT, > but just for the port (some vendors (Juniper) call this PAT). I suppose > that Solaris and Windows might have this ability too, but I'm not that > familiar with their equivalent of iptables / ipfw. Yes, it runs under Linux and i know how to nat/pat packets, but i'm fairly paranoid and i would like to keep it simple. But in the end, you're right, this is more easy to apply than begin to script in perl using hping or something like that. I can use a masquerade rule in the iptables postrouting chains. So, i will do that way, until developers will integrate source port option. Thanks for the reply and the suggestion :) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Tue Feb 12 16:39:04 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Tue, 12 Feb 2008 09:39:04 -0600 Subject: check_snmp issue Message-ID: Thank you all for the comments on the parenting issue I posted yesterday. We have come up with a much easier solution than had been proposed. I am now having an issue with check_snmp. I have used check_snmp to monitor this exact service in the past on other Nagios hosts and am using other snmp checks as well from the current host. Here is the problem: nagios at ulapnag01:/usr/local/nagios/libexec> ./check_snmp -H peapgse01 -o GSA-MIB::crawlRunning.0 -C public -m GSA-MIB -P 2c -d "=" SNMP problem - No data received from host CMD: /usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public peapgse01:161 GSA-MIB::crawlRunning.0 But if I run the command it shows, exactly: nagios at ulapnag01:/usr/local/nagios/libexec> /usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public peapgse01:161 GSA-MIB::crawlRunning.0 GSA-MIB::crawlRunning.0 = INTEGER: Running(1) Both are being run as the nagios user, the second is a cut and paste of the command shown by check_snmp and reported to have no output. I don't think I have mucked up the syntax as the command produced for snmpget works just fine. I am probably missing something really easy here and if someone could point it out I would really appreciate it. Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors 1800 N. Mason Rd Katy, Texas 77449 Office: 281-646-5857 Cell: 281-734-6965 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 12 16:41:58 2008 From: marc at ena.com (Marc Powell) Date: Tue, 12 Feb 2008 09:41:58 -0600 Subject: alert history In-Reply-To: <630991.80518.qm@web26205.mail.ukl.yahoo.com> References: <630991.80518.qm@web26205.mail.ukl.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer > Sent: Tuesday, February 12, 2008 1:21 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] alert history > > hello > > how to enable alert history in nagios? Please explain further. There's no way to enable/disable it. It just works as long as your nagios.log and archives are readable by your web server (they should be by default). -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 12 17:06:16 2008 From: marc at ena.com (Marc Powell) Date: Tue, 12 Feb 2008 10:06:16 -0600 Subject: check_snmp issue In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of mark.potter at academy.com > Sent: Tuesday, February 12, 2008 9:39 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_snmp issue > > > Thank you all for the comments on the parenting issue I posted yesterday. > We have come up with a much easier solution than had been proposed. What did you end up with? > I am now having an issue with check_snmp. I have used check_snmp to > monitor this exact service in the past on other Nagios hosts and am using > other snmp checks as well from the current host. Here is the problem: > > nagios at ulapnag01:/usr/local/nagios/libexec> /check_snmp -H peapgse01 -o > GSA-MIB::crawlRunning.0 -C public -m GSA-MIB -P 2c -d "=" > SNMP problem - No data received from host > CMD: /usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public peapgse01:161 > GSA-MIB::crawlRunning.0 > > But if I run the command it shows, exactly: > > nagios at ulapnag01:/usr/local/nagios/libexec> /usr/bin/snmpget -t 1 -r 5 -m > GSA-MIB -v 2c -c public peapgse01:161 GSA-MIB::crawlRunning.0 > GSA-MIB::crawlRunning.0 = INTEGER: Running(1) Not a direct answer but to troubleshoot I'd run check_snmp in verbose mode (-v). That will cause it to print the output it receives from snmpget. You'll at least know then if the problem is with the call to snmpget or the parsing of its output. I'd also run 'strace -Ffs512 ./check_snmp ...' and look for the sendto and recvfrom lines which would be the communication with the remote snmp agent just to verify that there is data flowing both ways. I'd also drop the -d "=" since that's the default anyway. I'd try using the numeric OID instead of GSA-MIB::crawlRunning.0 to eliminate MIB loading/parsing issues. And finally, I'd use IP or FQDN for the hostname to eliminate resolution issues. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Tue Feb 12 17:18:59 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Tue, 12 Feb 2008 10:18:59 -0600 Subject: check_snmp issue In-Reply-To: References: Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/12/2008 10:06:16 AM: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of mark.potter at academy.com > > Sent: Tuesday, February 12, 2008 9:39 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_snmp issue > > > > > > Thank you all for the comments on the parenting issue I posted > yesterday. > > We have come up with a much easier solution than had been proposed. > > What did you end up with? host -> gateway -> router Which is actually not much of a change from how we are already doing it. > > > I am now having an issue with check_snmp. I have used check_snmp to > > monitor this exact service in the past on other Nagios hosts and am > using > > other snmp checks as well from the current host. Here is the problem: > > > > nagios at ulapnag01:/usr/local/nagios/libexec> /check_snmp -H peapgse01 > -o > > GSA-MIB::crawlRunning.0 -C public -m GSA-MIB -P 2c -d "=" > > SNMP problem - No data received from host > > CMD: /usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public > peapgse01:161 > > GSA-MIB::crawlRunning.0 > > > > But if I run the command it shows, exactly: > > > > nagios at ulapnag01:/usr/local/nagios/libexec> /usr/bin/snmpget -t 1 -r 5 > -m > > GSA-MIB -v 2c -c public peapgse01:161 GSA-MIB::crawlRunning.0 > > GSA-MIB::crawlRunning.0 = INTEGER: Running(1) > > Not a direct answer but to troubleshoot I'd run check_snmp in verbose > mode (-v). That will cause it to print the output it receives from > snmpget. You'll at least know then if the problem is with the call to > snmpget or the parsing of its output. I'd also run 'strace -Ffs512 > ./check_snmp ...' and look for the sendto and recvfrom lines which would > be the communication with the remote snmp agent just to verify that > there is data flowing both ways. I'd also drop the -d "=" since that's > the default anyway. I'd try using the numeric OID instead of > GSA-MIB::crawlRunning.0 to eliminate MIB loading/parsing issues. And > finally, I'd use IP or FQDN for the hostname to eliminate resolution > issues. > > -- > Marc Sometimes you can't see the forest for the trees. It was an MIB issue. Using the numeric OID gets the result I need. Thank you for the advice. Taking it step by step solved my issue: nagios at ulapnag01:/usr/local/nagios/libexec> ./check_snmp -v -H peapgse01 -o .1.3.6.1.4.1.11129.1.1.1.0 -C public -m GSA-MIB -P 2c /usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public peapgse01:161 1.3.6.1.4.1.11129.1.1.1.0 iso.3.6.1.4.1.11129.1.1.1.0 = INTEGER: 1 SNMP OK - 1 | iso.3.6.1.4.1.11129.1.1.1.0=1 Would be nice to use the MIB but totally unnecessary and I don't feel like bothering to troubleshoot it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From piero at news.fb.se Tue Feb 12 17:37:03 2008 From: piero at news.fb.se (News) Date: Tue, 12 Feb 2008 17:37:03 +0100 Subject: check_by_ssh wont work - help. In-Reply-To: References: Message-ID: <16749DEB-7578-4599-8FA3-EDD2B777BE87@news.fb.se> Hi all. Im trying to get check_by_ssh to work but i keep failing. Its between two linux, Debian (nagiosserver) and redhat (cilent). Im trying something simple at first, just check the disk. I have setup the keys so i can login without password (with user nagios). When i do a test with from terminal it goes well: /usr/local/nagios/libexec/check_by_ssh -H ekonomi.fb.se -C '/usr/local/ nagios/libexec/check_disk -w 75% -c 90% -p /var' When i try the same thing in nagios i get: DISC UNKNOWN 12-02-2008 17:32:57 0d 0h 21m 53s 3/3 Remote command execution failed: Host key verification failed. Im seem having problem with the aut-key. I have doublechecked the nagios-account but in cant see whats wrong. For it is nagios user that is doing the check right? thx. p -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ndisabled.gif Type: image/gif Size: 1003 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From wojciech at kocjan.org Tue Feb 12 18:26:19 2008 From: wojciech at kocjan.org (Wojciech Kocjan) Date: Tue, 12 Feb 2008 18:26:19 +0100 Subject: Remote monitoring In-Reply-To: <49811.193.180.216.132.1202801792.squirrel@ssl.nakednuns.org> References: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> <49811.193.180.216.132.1202801792.squirrel@ssl.nakednuns.org> Message-ID: On Tue, 12 Feb 2008 08:36:32 +0100, Michael Medin wrote: > Hello, > > Humm, this was quite interesting, is there a way to (from the plink) to > detect the status of the connection or does plink "die" when the > connection dies even? > Would be quite simple to add a "plugin" to run this from within > nsclient++, but for it to be useful you would need to be able to detect > the status of the link (and I have never used the command myself). Hi, Well, I once wrote a script that basically runs 'cat' command and uses it to "ping" the server - it writes some garbage every few minutes and checks if it gets back. I'll play with doing it as a service on Windows and if this is trivial enough, I'll make it opensource. I don't think that putting ssh client in NSClient as a plugin is a good way, though. I'm wondering if it can't report directly to NCSA as a long term solution? -- Wojciech Kocjan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From michael at medin.name Tue Feb 12 19:07:54 2008 From: michael at medin.name (Michael Medin) Date: Tue, 12 Feb 2008 17:07:54 -0100 (GMT+1) Subject: Remote monitoring In-Reply-To: References: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> <49811.193.180.216.132.1202801792.squirrel@ssl.nakednuns.org> Message-ID: <2397.213.114.231.181.1202839674.squirrel@ssl.nakednuns.org> I did not mean to add ssh client to nsclient++ but I could write a plugin that runs plink when nsclient++ starts and makes sure plink is running, but maybe NSCA is probably a better solution (which nsclient++ already has :) // MickeM > On Tue, 12 Feb 2008 08:36:32 +0100, Michael Medin > wrote: > >> Hello, >> >> Humm, this was quite interesting, is there a way to (from the plink) to >> detect the status of the connection or does plink "die" when the >> connection dies even? >> Would be quite simple to add a "plugin" to run this from within >> nsclient++, but for it to be useful you would need to be able to detect >> the status of the link (and I have never used the command myself). > > Hi, > > Well, I once wrote a script that basically runs 'cat' command and uses it > to "ping" the server - it writes some garbage every few minutes and checks > if it gets back. > > I'll play with doing it as a service on Windows and if this is trivial > enough, I'll make it opensource. > > I don't think that putting ssh client in NSClient as a plugin is a good > way, though. I'm wondering if it can't report directly to NCSA as a long > term solution? > > -- > Wojciech Kocjan > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From John.DAusilio at mlp.com Tue Feb 12 19:29:51 2008 From: John.DAusilio at mlp.com (D'Ausilio, John) Date: Tue, 12 Feb 2008 13:29:51 -0500 Subject: I can't get my event handler to fire! Message-ID: I've got a 3.0rc2 instance running, and I'm trying to implement a service-based event handler. I've added an event_handler entry to the service check: define service{ use generic-service host_name p5prod0 service_description PING check_command check_ping!100.0,20%!500.0,60% notifications_enabled 1 contacts jdausilio event_handler notify-login-server } The notify-login-server command: # 'notify the login server' command definition define command{ command_name notify-login-server command_line /opt/apache/nagios/libexec/eventhandlers/notify-login-server.sh $HOSTALIAS$ $SERVICESTATE$ } /opt/apache/nagios/libexec/eventhandlers/notify-login-server.sh is executable by the nagios users, and all parent directories as well. I enabled debug, and do not any references to event handler firing. Am I misunderstanding something here? Event handlers are enabled system-wide. jd ###################################################################### The information contained in this communication is confidential and may contain information that is privileged or exempt from disclosure under applicable law. If you are not a named addressee, please notify the sender immediately and delete this email from your system. If you have received this communication, and are not a named recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. ###################################################################### -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 12 19:34:53 2008 From: marc at ena.com (Marc Powell) Date: Tue, 12 Feb 2008 12:34:53 -0600 Subject: check_by_ssh wont work - help. In-Reply-To: <16749DEB-7578-4599-8FA3-EDD2B777BE87@news.fb.se> References: <16749DEB-7578-4599-8FA3-EDD2B777BE87@news.fb.se> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of News > Sent: Tuesday, February 12, 2008 10:37 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_by_ssh wont work - help. > > Hi all. > > Im trying to get check_by_ssh to work but i keep failing. Its between two > linux, Debian (nagiosserver) and redhat (cilent). Im trying something > simple at first, just check the disk. > > I have setup the keys so i can login without password (with user nagios). > When i do a test with from terminal it goes well: > > /usr/local/nagios/libexec/check_by_ssh -H ekonomi.fb.se -C > '/usr/local/nagios/libexec/check_disk -w 75% -c 90% -p /var' > > UNKNOWN 12-02-2008 17:32:57 0d 0h 21m 53s 3/3 Remote command > execution failed: Host key verification failed. > > Im seem having problem with the aut-key. I have doublechecked the nagios- > account but in cant see whats wrong. For it is nagios user that is doing > the check right? Correct. In the host{} definition that this service check is applied to, is the 'address' specified as 'ekonomi.fb.se'? If not, you'll need to manually ssh to the IP/hostname used as the address in the host definition to associate the host key with _that_ name or address. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Tue Feb 12 19:37:09 2008 From: hittjw at gmail.com (Justin Hitt) Date: Tue, 12 Feb 2008 13:37:09 -0500 Subject: Remote monitoring In-Reply-To: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> References: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> Message-ID: <93344bf0802121037g35d2f729mdac6d2d4bf39f570@mail.gmail.com> Paul, On Feb 11, 2008 11:06 PM, Paul Aviles wrote: > I am looking for a way to remotely monitor Windows servers. The servers are > on a remote network and using network address translation so they are not Place NRPE on your windows boxes, then (a) talk with your network team about a low band VPN connection between sites or (b) your systems team about a proxy for NSCA via an SSL connection; or (c) any combination of the two. Either way, wrap your traffic in something secure and be sure to monitor the gateway between your two sites so you'll know when passive checks might stop. Best, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 12 19:42:52 2008 From: marc at ena.com (Marc Powell) Date: Tue, 12 Feb 2008 12:42:52 -0600 Subject: I can't get my event handler to fire! In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of D'Ausilio, John > Sent: Tuesday, February 12, 2008 12:30 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] I can't get my event handler to fire! > > I've got a 3.0rc2 instance running, and I'm trying to implement a service- > based event handler. I've added an event_handler entry to the service > check: > > > > define service{ > > use generic-service > > host_name p5prod0 > > service_description PING > > check_command check_ping!100.0,20%!500.0,60% > > notifications_enabled 1 > > contacts jdausilio > > event_handler notify-login-server > > } > Am I misunderstanding something here? Event handlers are enabled system- > wide. But not in the service{} definition unless it's referenced in the template. In addition to the program-wide setting, it must also be specifically enabled on a per-service basis. http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Tue Feb 12 20:57:15 2008 From: Roger at NagiosWiki.com (Roger) Date: Tue, 12 Feb 2008 11:57:15 -0800 Subject: Using PerfParse *and* PNP? Message-ID: <2b7af7c40802121157x38ac4018qaf40e19c57ebbb61@mail.gmail.com> Is it possible to use both PerfParse and PNP? I'd like to use PerfParse's MySQL backend for some hosts and PNP's rrdtool backend for others. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jgoltz at mail.nih.gov Tue Feb 12 21:24:04 2008 From: jgoltz at mail.nih.gov (Goltz, Jim (NIH/NLM/LHC) [C]) Date: Tue, 12 Feb 2008 15:24:04 -0500 Subject: check_mysql not using ~nagios/.my.cnf on RHEL 4 with Nagios 2.10 (Dag repository RPM) Message-ID: I'm running Nagios 2.10 quite successfully on Red Hat Enterprise Linux 4. However, I can't seem to get check_mysql to use the proper configuration files. >From the command line everything works fine. It reads the "[client]" section of ~nagios/.my.cnf for the needed password. However, it doesn't seem to be using this config file when the plugin is run from Nagios itself. I could put the credentials into /etc/my.cnf, but I really don't want to make them system-wide if I don't have to. What's the proper way to get the plugins to look in ~nagios/.my.cnf for MySQL config info? -- Jim Goltz Contractor, Lockheed Martin National Library of Medicine -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jpratt at norwich.edu Tue Feb 12 21:46:31 2008 From: jpratt at norwich.edu (James E. Pratt) Date: Tue, 12 Feb 2008 15:46:31 -0500 Subject: check_mysql not using ~nagios/.my.cnf on RHEL 4 withNagios 2.10 (Dag repository RPM) In-Reply-To: References: Message-ID: <3CB18FFE1CDC71449BCCEC0FFD9831105DECA6@NUMAIL.norwich.edu> Hi, I don't know of any way to get the plugin to see/use the /etc/my.cnf. You could always just give your nagios mysql user very limited rights - connection allowed only from your nagios host, status query rights etc, etc, then use /usr/local/nagios/etc/resource.cfg to "hide" the password in $USER3$ or $USER4$ (or whatever you wanna call it!).... Ie: # resource.cfg $USER4$=somemysqlpassword Then you could just use: check_mysql -u nagios -p $USER4$ -H mysql.domain.com in your service checks/commands.cfg, and at least the pass will not show in nagios web/config view... Regards, Jamie From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Goltz, Jim (NIH/NLM/LHC) [C] Sent: Tuesday, February 12, 2008 3:24 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_mysql not using ~nagios/.my.cnf on RHEL 4 withNagios 2.10 (Dag repository RPM) I'm running Nagios 2.10 quite successfully on Red Hat Enterprise Linux 4. However, I can't seem to get check_mysql to use the proper configuration files. >From the command line everything works fine. It reads the "[client]" section of ~nagios/.my.cnf for the needed password. However, it doesn't seem to be using this config file when the plugin is run from Nagios itself. I could put the credentials into /etc/my.cnf, but I really don't want to make them system-wide if I don't have to. What's the proper way to get the plugins to look in ~nagios/.my.cnf for MySQL config info? -- Jim Goltz Contractor, Lockheed Martin National Library of Medicine -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jgoltz at mail.nih.gov Tue Feb 12 21:52:22 2008 From: jgoltz at mail.nih.gov (Goltz, Jim (NIH/NLM/LHC) [C]) Date: Tue, 12 Feb 2008 15:52:22 -0500 Subject: check_mysql not using ~nagios/.my.cnf on RHEL 4 withNagios 2.10 (Dag repository RPM) In-Reply-To: References: Message-ID: Sorry for the HTML last time. > I'm running Nagios 2.10 quite successfully on Red Hat Enterprise Linux > 4. ?However, I can't seem to get check_mysql to use the proper > configuration files. Some more info: I managed to run check_mysql from a shell script that actually runs the plugin under "strace", which records every system call. From the command line, check_mysql (via the MySQL library routines) looks for /etc/my.cnf, /var/lib/mysql/my.cnf, and /home/jgoltz/.my.cnf, as it should. However, the plugin as run by Nagios looks for /etc/my.cnf, /var/lib/mysql/my.cnf, and "~/.my.cnf" -- in other words, it treats "~" as a literal file name instead of expanding it to the home directory of user "nagios". I'm not sure what to make of that yet, but it seemed worth mentioning. -- Jim Goltz Contractor, Lockheed Martin National Library of Medicine ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From piero at news.fb.se Tue Feb 12 22:18:51 2008 From: piero at news.fb.se (Piero Giobbi) Date: Tue, 12 Feb 2008 22:18:51 +0100 Subject: Nagios-users Digest, Vol 21, Issue 14 In-Reply-To: References: Message-ID: <1102EB8F-31C1-4B79-80C1-6828BB15CB8E@news.fb.se> Hi. Many thx for the tip Marc - that did the trick! I had ekonomi.fb.se as the address in hosts.cfg i did also connect with only ekonomi and then it worked. Guess i missed something in my services or checkcommand- files but thats an easy fix now. thx again! p 12 feb 2008 kl. 21.14 skrev nagios-users-request at lists.sourceforge.net: > Message: 18 > Date: Tue, 12 Feb 2008 12:34:53 -0600 > From: "Marc Powell" > Subject: Re: [Nagios-users] check_by_ssh wont work - help. > To: > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- >> users- >> bounces at lists.sourceforge.net] On Behalf Of News >> Sent: Tuesday, February 12, 2008 10:37 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] check_by_ssh wont work - help. >> >> Hi all. >> >> Im trying to get check_by_ssh to work but i keep failing. Its between > two >> linux, Debian (nagiosserver) and redhat (cilent). Im trying something >> simple at first, just check the disk. >> >> I have setup the keys so i can login without password (with user > nagios). >> When i do a test with from terminal it goes well: >> >> /usr/local/nagios/libexec/check_by_ssh -H ekonomi.fb.se -C >> '/usr/local/nagios/libexec/check_disk -w 75% -c 90% -p /var' >> > > >> UNKNOWN 12-02-2008 17:32:57 0d 0h 21m 53s 3/3 Remote > command >> execution failed: Host key verification failed. >> >> Im seem having problem with the aut-key. I have doublechecked the > nagios- >> account but in cant see whats wrong. For it is nagios user that is > doing >> the check right? > > Correct. In the host{} definition that this service check is applied > to, > is the 'address' specified as 'ekonomi.fb.se'? If not, you'll need to > manually ssh to the IP/hostname used as the address in the host > definition to associate the host key with _that_ name or address. > > -- > Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Zuzana.Gasparovicova at iacgroup.com Tue Feb 12 22:20:30 2008 From: Zuzana.Gasparovicova at iacgroup.com (Zuzana.Gasparovicova at iacgroup.com) Date: Tue, 12 Feb 2008 22:20:30 +0100 Subject: I am out of the office for nex 3 days, I will answer your email on 15.2. Message-ID: Mimo kancel?? budu od 12.02.2008 a nevr?t?m se do 15.02.2008. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jgoltz at mail.nih.gov Tue Feb 12 22:34:44 2008 From: jgoltz at mail.nih.gov (Goltz, Jim (NIH/NLM/LHC) [C]) Date: Tue, 12 Feb 2008 16:34:44 -0500 Subject: check_mysql not using ~nagios/.my.cnf on RHEL 4withNagios 2.10 (Dag repository RPM) In-Reply-To: References: Message-ID: > I'm running Nagios 2.10 quite successfully on Red Hat Enterprise Linux > 4. ?However, I can't seem to get check_mysql to use the proper > configuration files. Problem resolved. Apparently Nagios does not define the environment variable HOME for its plugins, so "~" does not get expanded to the home directory for user "nagios". I changed the command definition for check_mysql: was: $USER1$/check_mysql -H $HOSTADDRESS$ now: env HOME=/var/log/nagios $USER1$/check_mysql -H $HOSTADDRESS$ The plugin is able to connect successfully now. -- Jim Goltz Contractor, Lockheed Martin National Library of Medicine ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Wed Feb 13 00:39:33 2008 From: Roger at NagiosWiki.com (Roger) Date: Tue, 12 Feb 2008 15:39:33 -0800 Subject: Weird PerfParse errors ("fixed" with kill -9 NagiosPIDs) Message-ID: <2b7af7c40802121539k4198fa09ubabba06f53190fa6@mail.gmail.com> I am getting tons of errors in Nagios (CentOS 4, Nagios 2.10) while integrating PerfParse e.g. Error: Command 'process-host-perfdata' has already been defined Error: Could not register command (config file '/etc/nagios/perfparse/etc/nagios_perfparse.cfg', starting on line 19) The only way that I can seem to fix the errors from "nagios -v" is to kill -9 all Nagios processes I find with "ps -ef | grep nagios" Then I start it up, and it's "ok" (warnings, but still starts ok). Any suggestions as to why this is the case? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From amontibello at gmail.com Wed Feb 13 00:45:36 2008 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 12 Feb 2008 18:45:36 -0500 Subject: Remote monitoring In-Reply-To: <2397.213.114.231.181.1202839674.squirrel@ssl.nakednuns.org> References: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> <49811.193.180.216.132.1202801792.squirrel@ssl.nakednuns.org> <2397.213.114.231.181.1202839674.squirrel@ssl.nakednuns.org> Message-ID: NSCLient++ offers NRPE NC_NEt -(also a windows plugin that uses check_NT) offers NSCA Good Luck, TOny (author of NC_NEt) On Tue, Feb 12, 2008 at 1:07 PM, Michael Medin wrote: > I did not mean to add ssh client to nsclient++ but I could write a plugin > that runs plink when nsclient++ starts and makes sure plink is running, > but maybe NSCA is probably a better solution (which nsclient++ already has > :) > > // MickeM > > > On Tue, 12 Feb 2008 08:36:32 +0100, Michael Medin > > wrote: > > > >> Hello, > >> > >> Humm, this was quite interesting, is there a way to (from the plink) to > >> detect the status of the connection or does plink "die" when the > >> connection dies even? > >> Would be quite simple to add a "plugin" to run this from within > >> nsclient++, but for it to be useful you would need to be able to detect > >> the status of the link (and I have never used the command myself). > > > > Hi, > > > > Well, I once wrote a script that basically runs 'cat' command and uses > it > > to "ping" the server - it writes some garbage every few minutes and > checks > > if it gets back. > > > > I'll play with doing it as a service on Windows and if this is trivial > > enough, I'll make it opensource. > > > > I don't think that putting ssh client in NSClient as a plugin is a good > > way, though. I'm wondering if it can't report directly to NCSA as a long > > term solution? > > > > -- > > Wojciech Kocjan > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.frost1 at pepsi.com Wed Feb 13 04:53:46 2008 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Tue, 12 Feb 2008 22:53:46 -0500 Subject: Perfdata from distributed nodes? Message-ID: <7F477BD26F545A4C8E4779754A38EFB303B74F53@PEPWMV00043.corp.pep.pvt> I'm moving our current Nagios 2.10 configuration to a Nagios 3.0rc2 distributed configuration. One component that isn't working for me is nagiosgraph. After some investigation, it appears that the problem is that while I'm sending the host/service check results to the central server, none of the perfdata is making it there. Some of our checks are processed for nagiosgraph via their host/service output and some by their performance data. This is all working on our 2.10 configuration because none of the perfdata has to travel anywhere (i.e. it's all on one server). So I thought I'd be clever and modify the send-service-perfdata and send-host-perfdata to include $SERVICEPERFDATA$. That is: define command { command_name send_service_check command_line $USER5$/send_service_check.pl $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATEID$ '$SERVICEOUTPUT$' '$SERVICEPERFDATA' } which kinda looked like it worked. However, on closer inspection, it appears that something went wrong on the way to the central server. I haven't perused the source, but either nsca or send_nsca seems to have changed the semi-colons to colons so by the time it got to the Nagios via the external command file, Nagios doesn't see it as perfdata anymore. Clearly I'm missing something. How can I transfer perfdata information from my distributed nodes to my central server where my graphs are going to be created? Thanks Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 13 04:55:02 2008 From: marc at ena.com (Marc Powell) Date: Tue, 12 Feb 2008 21:55:02 -0600 Subject: Weird PerfParse errors ("fixed" with kill -9 NagiosPIDs) In-Reply-To: <2b7af7c40802121539k4198fa09ubabba06f53190fa6@mail.gmail.com> References: <2b7af7c40802121539k4198fa09ubabba06f53190fa6@mail.gmail.com> Message-ID: <7EE3D252-0CDC-4D15-8BF2-3390E5931AE7@ena.com> On Feb 12, 2008, at 5:39 PM, Roger wrote: > I am getting tons of errors in Nagios (CentOS 4, Nagios 2.10) while > integrating PerfParse > > e.g. > > Error: Command 'process-host-perfdata' has already been defined > Error: Could not register command (config file '/etc/nagios/ > perfparse/etc/nagios_perfparse.cfg', starting on line 19) This error is pretty clear. You have two command{} definitions with the name of 'process-host-perfdata'. You can't have duplicates. Probably one is from the sample config files if you installed those. Comment out the sample command definition of that name and restart nagios. As for the tons of others, ... -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 13 05:05:20 2008 From: marc at ena.com (Marc Powell) Date: Tue, 12 Feb 2008 22:05:20 -0600 Subject: Perfdata from distributed nodes? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB303B74F53@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB303B74F53@PEPWMV00043.corp.pep.pvt> Message-ID: On Feb 12, 2008, at 9:53 PM, Frost, Mark {PBG} wrote: > > I'm moving our current Nagios 2.10 configuration to a Nagios 3.0rc2 > distributed configuration. One component that isn't working for me is > nagiosgraph. After some investigation, it appears that the problem is > that while I'm sending the host/service check results to the central > server, none of the perfdata is making it there. Some of our checks > are > processed for nagiosgraph via their host/service output and some by > their performance data. This is all working on our 2.10 configuration > because none of the perfdata has to travel anywhere (i.e. it's all on > one server). > > So I thought I'd be clever and modify the send-service-perfdata and > send-host-perfdata to include $SERVICEPERFDATA$. That is: > > define command { > command_name send_service_check > command_line $USER5$/send_service_check.pl $HOSTNAME$ > '$SERVICEDESC$' $SERVICESTATEID$ '$SERVICEOUTPUT$' '$SERVICEPERFDATA' > } I'm unable to test this but the correct format for nagios to recognize performance data is 'output | perfdata'. Does using the following command_line work as expected -- command_line $USER5$/send_service_check.pl $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATEID$ '$SERVICEOUTPUT$ | $SERVICEPERFDATA$' Note that you were also missing the final $ in $SERVICEPERFDATA above. It might have been an e-mail typo only though. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From webhost32818 at yahoo.com Wed Feb 13 06:26:55 2008 From: webhost32818 at yahoo.com (John King) Date: Wed, 13 Feb 2008 06:26:55 +0100 (CET) Subject: mrtgtraf help needed Message-ID: <20080213052702.98EE3580018@desire.netways.de> Hi list ...[Hi All, I have the latest versions of Nagios, the plugins, net-snmp, net-snmp-utils all installed on a fedora 5 box. I've setup the monitoring of my windows and linux machines and all is well with those. I have or am trying to setup monitoing of my cisco switches and while I am getting gree lights on the snmp and ping tests, none of the bandwith (mrtg) checks are working. Error msg is "check_mrtgtraf: Unable to open MRTG log file " Any help would be greatly appreciated]... - John King (jkingsol1) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From murali.pd at hotmail.com Wed Feb 13 06:28:21 2008 From: murali.pd at hotmail.com (Murali Dharan) Date: Wed, 13 Feb 2008 10:58:21 +0530 Subject: General Query Message-ID: Can i install Nagios to my windows system or this is to monitor only the Linux or Unix Server? -Murali. _________________________________________________________________ Post free property ads on Yello Classifieds now! www.yello.in http://ss1.richmedia.in/recurl.asp?pid=221 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From webhost32818 at yahoo.com Wed Feb 13 06:32:25 2008 From: webhost32818 at yahoo.com (John King) Date: Wed, 13 Feb 2008 06:32:25 +0100 (CET) Subject: check_snmp issue In-Reply-To: References: Message-ID: <20080213053225.BAEC2580018@desire.netways.de> Hi ...[Mark, ensure you have net-snmp and net-snmp-utils grab them using yum or aptitude. Once you have them, you will need to recompile or re-install nagios-plugins and your issues should go away. Hope this helps, it is also in the nagios documentation online]... - John King (jkingsol1) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=9231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From step at tdc.dk Wed Feb 13 08:30:17 2008 From: step at tdc.dk (Steffen Poulsen) Date: Wed, 13 Feb 2008 08:30:17 +0100 Subject: Perfdata from distributed nodes? In-Reply-To: <7F477BD26F545A4C8E4779754A38EFB303B74F53@PEPWMV00043.corp.pep.pvt> References: <7F477BD26F545A4C8E4779754A38EFB303B74F53@PEPWMV00043.corp.pep.pvt> Message-ID: > I'm moving our current Nagios 2.10 configuration to a Nagios > 3.0rc2 distributed configuration. One component that isn't > working for me is nagiosgraph. After some investigation, it > appears that the problem is that while I'm sending the > host/service check results to the central server, none of the > perfdata is making it there. Some of our checks are I think Marc gave a good hint on getting the performance data there already, but I just wanted to give a note on the transfer also - in case you are using NSCA to ship the data along. While Nagios itself now supports (per default) 4kb message data, NSCA only supports ~512 bytes in the message (including performance data), so if you have "chatty" plugins you might also experience some performance data loss in the transfer. To my knowledge there is no easy way of raising this limit, unfortunately (if others know of a way, feel free to share). Best regards, Steffen Poulsen ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From michael at medin.name Wed Feb 13 09:03:10 2008 From: michael at medin.name (Michael Medin) Date: Wed, 13 Feb 2008 07:03:10 -0100 (GMT+1) Subject: Remote monitoring In-Reply-To: References: <40E1C71DFD600D4EA127F2840C6C1E9B029096@www.palei.com> <49811.193.180.216.132.1202801792.squirrel@ssl.nakednuns.org> <2397.213.114.231.181.1202839674.squirrel@ssl.nakednuns.org> Message-ID: <43435.193.180.216.132.1202889790.squirrel@ssl.nakednuns.org> > NSCLient++ offers NRPE might be worth to mention that NSClient++ also offers NSClient and NSCA (with real encryption)... // MickeM > > NC_NEt -(also a windows plugin that uses check_NT) offers NSCA > > Good Luck, > TOny (author of NC_NEt) > On Tue, Feb 12, 2008 at 1:07 PM, Michael Medin wrote: > >> I did not mean to add ssh client to nsclient++ but I could write a >> plugin >> that runs plink when nsclient++ starts and makes sure plink is running, >> but maybe NSCA is probably a better solution (which nsclient++ already >> has >> :) >> >> // MickeM >> >> > On Tue, 12 Feb 2008 08:36:32 +0100, Michael Medin >> > wrote: >> > >> >> Hello, >> >> >> >> Humm, this was quite interesting, is there a way to (from the plink) >> to >> >> detect the status of the connection or does plink "die" when the >> >> connection dies even? >> >> Would be quite simple to add a "plugin" to run this from within >> >> nsclient++, but for it to be useful you would need to be able to >> detect >> >> the status of the link (and I have never used the command myself). >> > >> > Hi, >> > >> > Well, I once wrote a script that basically runs 'cat' command and uses >> it >> > to "ping" the server - it writes some garbage every few minutes and >> checks >> > if it gets back. >> > >> > I'll play with doing it as a service on Windows and if this is trivial >> > enough, I'll make it opensource. >> > >> > I don't think that putting ssh client in NSClient as a plugin is a >> good >> > way, though. I'm wondering if it can't report directly to NCSA as a >> long >> > term solution? >> > >> > -- >> > Wojciech Kocjan >> > >> > >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sascha.Runschke at gfkl.com Wed Feb 13 09:24:04 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Wed, 13 Feb 2008 09:24:04 +0100 Subject: Antwort: Using PerfParse *and* PNP? In-Reply-To: <2b7af7c40802121157x38ac4018qaf40e19c57ebbb61@mail.gmail.com> References: <2b7af7c40802121157x38ac4018qaf40e19c57ebbb61@mail.gmail.com> Message-ID: > Is it possible to use both PerfParse and PNP? > > I'd like to use PerfParse's MySQL backend for some hosts and PNP's > rrdtool backend for others. Write a wrapper script, which calls both processperfdata from PNP _and_ PerfParse with the parameters from nagios. Then use that processperfdata script from within nagios. S -- Sascha Runschke Netzwerk- und Systemmanagement Abt. Organisation und Betrieb - IT-Infrastruktur Telefon : +49 (201) 102-1879 Mobile : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From melanie_pfefer at yahoo.co.uk Wed Feb 13 10:59:15 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Wed, 13 Feb 2008 09:59:15 +0000 (GMT) Subject: nagiosmib Message-ID: <549775.5891.qm@web26201.mail.ukl.yahoo.com> hello, What's the use of this package: nagiosmib? thanks __________________________________________________________ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From federico.donati at hermess.it Wed Feb 13 11:48:12 2008 From: federico.donati at hermess.it (Federico Donati) Date: Wed, 13 Feb 2008 11:48:12 +0100 Subject: how to specify a source port? In-Reply-To: <47B1A3FE.10900@hermess.it> References: <47B1613B.30104@hermess.it> <47B19CAA.20106@istreamimaging.com> <47B1A3FE.10900@hermess.it> Message-ID: <47B2CAEC.3000609@hermess.it> Federico Donati wrote: > I can use a masquerade rule in the iptables postrouting chains. So, i > will do that way, until developers will integrate source port option. Damn, at the end i can't use masquerading because i can't masquerade all the traffic for that host (very tricky network...). I had to wrote a perl script, that i'm going to attach. It's not the best script ever, but i had to be fast :) It uses hping3 and run perfectly under linux. Feel free to use it. In the file, host target is Google :) I hope this will helps someone. -------------- next part -------------- A non-text attachment was scrubbed... Name: hping.pl Type: application/x-perl Size: 1568 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mugnoz.pilar at gmail.com Wed Feb 13 14:22:35 2008 From: mugnoz.pilar at gmail.com (=?ISO-8859-1?Q?Pili_Mu=F1oz_Gargallo?=) Date: Wed, 13 Feb 2008 14:22:35 +0100 Subject: check_rrdtraf Message-ID: <53317ec10802130522u17c09db0idaaa216c13bd8b7@mail.gmail.com> Hi i am trying to measure bandwith using check_rrd i use the command: $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l b -vv -c $ARG1$ -w $ARG2$ and in the service i give it the next arguments: !3000000,3000000!5000000,5000000 i have read about it several times, and it doesn't work how i espect: it returns me an OK value, but it doesn't tell me the present BW... Am i missing something? thank you very much in advance Pili -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.frost1 at pepsi.com Wed Feb 13 16:22:13 2008 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Wed, 13 Feb 2008 10:22:13 -0500 Subject: Perfdata from distributed nodes? In-Reply-To: References: Message-ID: <7F477BD26F545A4C8E4779754A38EFB303B75187@PEPWMV00043.corp.pep.pvt> >-----Original Message----- >From: nagios-users-bounces at lists.sourceforge.net >[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf >Of Marc Powell >Sent: Tuesday, February 12, 2008 11:05 PM >To: Nagios Users Mailinglist >Subject: Re: [Nagios-users] Perfdata from distributed nodes? > > >On Feb 12, 2008, at 9:53 PM, Frost, Mark {PBG} wrote: > >> >> I'm moving our current Nagios 2.10 configuration to a Nagios 3.0rc2 >> distributed configuration. One component that isn't working >for me is >> nagiosgraph. After some investigation, it appears that the >problem is >> that while I'm sending the host/service check results to the central >> server, none of the perfdata is making it there. Some of >our checks >> are >> processed for nagiosgraph via their host/service output and some by >> their performance data. This is all working on our 2.10 >configuration >> because none of the perfdata has to travel anywhere (i.e. it's all on >> one server). >> >> So I thought I'd be clever and modify the send-service-perfdata and >> send-host-perfdata to include $SERVICEPERFDATA$. That is: >> >> define command { >> command_name send_service_check >> command_line $USER5$/send_service_check.pl $HOSTNAME$ >> '$SERVICEDESC$' $SERVICESTATEID$ '$SERVICEOUTPUT$' '$SERVICEPERFDATA' >> } > >I'm unable to test this but the correct format for nagios to >recognize >performance data is 'output | perfdata'. Does using the following >command_line work as expected -- > >command_line $USER5$/send_service_check.pl $HOSTNAME$ >'$SERVICEDESC$' $SERVICESTATEID$ '$SERVICEOUTPUT$ | $SERVICEPERFDATA$' > > >Note that you were also missing the final $ in >$SERVICEPERFDATA above. >It might have been an e-mail typo only though. > >-- >Marc Marc, Actually, yes that was an e-mail typo. I had shut all this down by the time I sent the e-mail that I was just reproducing it in e-mail. I turned everything back on now so I could demonstrate it. My "send_*_check.pl" scripts really just take the fields and stuff them in a file for another program I wrote to process. Per the previous thread I'd posted, letting the process-*-perfdata Nagios command/script do the actual send_nsca work was sending my latencies sky-high. I had understood that the idea here was to make Nagios think the work had been completed as quickly as possible to keep latencies low. I'd seen the 2 other solutions both of which involved a FIFO, but I wasn't as comfortable with that in case there was a problem. My solution, have my checks write to files that are then picked up and sent every 10 seconds by a 2nd independent daemon process has resulted in very low latencies and has worked very well. My send_*_check.pl scripts write each of these fields to a file separated by tabs. The daemon program then grabs those lines and pumps them through send_nsca to the server. Send_nsca also wants to use tabs as the default field separator so I don't have to do anything with the lines and it works nicely. But your point is well-taken. While I don't need to stick the pipe symbol there, I do need it for Nagios to ultimately understand that that's perfdata. I put the pipe symbol as you suggested in my send_*_check.pl scripts (essentially using the pipe to combine service output and service perfdata when writing fields to my files). That seemed to do the trick. I knew I was missing something :-) Thanks. Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lflacayo at cps.k12.il.us Wed Feb 13 16:22:48 2008 From: lflacayo at cps.k12.il.us (Luis Fernando Lacayo) Date: Wed, 13 Feb 2008 09:22:48 -0600 Subject: Question about the time stamp on the log file. In-Reply-To: References: Message-ID: <1202916168.6266.11.camel@UNIX-TEAM-LACAYO> Good Morning (relative) everyone. I have a question about the time stamp on the nagios log file. nagios.log:[1202902952] SERVICE NOTIFICATION Can some on explain to me how to convert the time stamp to a real time? thanks, Luis ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.frost1 at pepsi.com Wed Feb 13 16:24:31 2008 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Wed, 13 Feb 2008 10:24:31 -0500 Subject: Perfdata from distributed nodes? In-Reply-To: References: Message-ID: <7F477BD26F545A4C8E4779754A38EFB303B75198@PEPWMV00043.corp.pep.pvt> >-----Original Message----- >From: nagios-users-bounces at lists.sourceforge.net >[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf >Of Steffen Poulsen >Sent: Wednesday, February 13, 2008 2:30 AM >To: nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] Perfdata from distributed nodes? > >> I'm moving our current Nagios 2.10 configuration to a Nagios >> 3.0rc2 distributed configuration. One component that isn't >> working for me is nagiosgraph. After some investigation, it >> appears that the problem is that while I'm sending the >> host/service check results to the central server, none of the >> perfdata is making it there. Some of our checks are > >I think Marc gave a good hint on getting the performance data there >already, but I just wanted to give a note on the transfer also >- in case >you are using NSCA to ship the data along. > >While Nagios itself now supports (per default) 4kb message data, NSCA >only supports ~512 bytes in the message (including performance >data), so >if you have "chatty" plugins you might also experience some performance >data loss in the transfer. > >To my knowledge there is no easy way of raising this limit, >unfortunately (if others know of a way, feel free to share). > >Best regards, >Steffen Poulsen > Steffen, Thanks for your reply. As I indicated a moment ago in my response to Marc, I needed to include that pipe symbol in my process. It's good to know about that NSCA limit. I wonder if that's going to be fixed soon. I haven't started using long output from service checks, but it's definitely something that's on my agenda. If NSCA can't handle that, that kind of kills my ability to use long output. Thanks Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gcoochey at sapphire.gi Wed Feb 13 16:26:58 2008 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 13 Feb 2008 16:26:58 +0100 Subject: Question about the time stamp on the log file. In-Reply-To: <1202916168.6266.11.camel@UNIX-TEAM-LACAYO> References: <1202916168.6266.11.camel@UNIX-TEAM-LACAYO> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744BD92B5@hermes.sapphire-int.gi> > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Luis Fernando Lacayo > Sent: 13 February 2008 16:23 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Question about the time stamp on the log file. > > Good Morning (relative) everyone. > > I have a question about the time stamp on the nagios log file. > > nagios.log:[1202902952] SERVICE NOTIFICATION > > Can some on explain to me how to convert the time stamp to a real time? > http://www.nagios.org/faqs/viewfaq.php?faq_id=70 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 13 16:34:02 2008 From: marc at ena.com (Marc Powell) Date: Wed, 13 Feb 2008 09:34:02 -0600 Subject: check_rrdtraf In-Reply-To: <53317ec10802130522u17c09db0idaaa216c13bd8b7@mail.gmail.com> References: <53317ec10802130522u17c09db0idaaa216c13bd8b7@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Pili Mu?oz Gargallo > Sent: Wednesday, February 13, 2008 7:23 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_rrdtraf > > Hi > i am trying to measure bandwith using check_rrd When asking about plugins that don't come with the distribution it's helpful to include where you obtained the plugin so everyone knows which check_rrd (or check_rrdtraf as the case may be) you're talking about. > i use the command: > $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l b -vv - > c $ARG1$ -w $ARG2$ You meant $HOSTADDRESS$ here, right? > and in the service i give it the next arguments: > !3000000,3000000!5000000,5000000 > > i have read about it several times, and it doesn't work how i espect: > it returns me an OK value, but it doesn't tell me the present BW... > Am i missing something? > When you run the above command as the nagios user from the command line, does the first line of output match what you're seeing in the GUI? I expect it starts with the word 'Using'. What is the -vv flag causing to happen when the program is run (hint, run check_rrdtraf --help to find out)? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lflacayo at cps.k12.il.us Wed Feb 13 16:34:30 2008 From: lflacayo at cps.k12.il.us (Luis Fernando Lacayo) Date: Wed, 13 Feb 2008 09:34:30 -0600 Subject: Question about the time stamp on the log file. In-Reply-To: <9D30659ABCA7FB428CF91E386C3A5744BD92B5@hermes.sapphire-int.gi> References: <1202916168.6266.11.camel@UNIX-TEAM-LACAYO> <9D30659ABCA7FB428CF91E386C3A5744BD92B5@hermes.sapphire-int.gi> Message-ID: <1202916870.6266.15.camel@UNIX-TEAM-LACAYO> thank you -- just what I was looking for..... thank God for groups like these. Luis On Wed, 2008-02-13 at 16:26 +0100, Giles Coochey wrote: > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Luis Fernando Lacayo > > Sent: 13 February 2008 16:23 > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Question about the time stamp on the log file. > > > > Good Morning (relative) everyone. > > > > I have a question about the time stamp on the nagios log file. > > > > nagios.log:[1202902952] SERVICE NOTIFICATION > > > > Can some on explain to me how to convert the time stamp to a real > time? > > > http://www.nagios.org/faqs/viewfaq.php?faq_id=70 > -- Luis Fernando Lacayo Chicago Public Schools Senior Unix Administrator ITS/ UNIX Infrastructure Office: 773-553-3835 Cell: 773-203-4493 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mosleitnermailings at web.de Wed Feb 13 16:41:20 2008 From: mosleitnermailings at web.de (Stefan Mosleitner) Date: Wed, 13 Feb 2008 16:41:20 +0100 Subject: Howto install backuppc Nagios-Plugin Message-ID: <460056173@web.de> Hi! Could somebody give me (total newbie) a short howto for installing the Nagios-Plugin "check_backuppc" (http://n-backuppc.sourceforge.net/) Running System: Debian-Etch; Apache2; Nagios 1.4. Thanks a lot! Stefan. _____________________________________________________________________ Unbegrenzter Speicherplatz f?r Ihr E-Mail Postfach? Jetzt aktivieren! http://www.digitaledienste.web.de/freemail/club/lp/?lp=7 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sudheep.p.anand at gmail.com Wed Feb 13 17:10:50 2008 From: sudheep.p.anand at gmail.com (Sudheep.P A) Date: Wed, 13 Feb 2008 21:40:50 +0530 Subject: 2 port scanner getting disabled in nessus client Message-ID: <548e51390802130810m6d7a9536nedc9b51b761bfc21@mail.gmail.com> Hi, I am running Nessus-3.0.6-es4 under REDHAT AS4 OS. After updating the latest plugins on the server, the below mentioned port scanners are getting diabled in the client PC. *1.Nessus TCP Scanner 2. scan for LaBrea tarpitted hosts* *3. SYN Scan *The nessus client I am using is Nessus Client Version 1.4.5. My current plugin count is *19522. *I had uninstalled Nessus application in server and even formatted and installed REDHAT OS itself.* *Please help or let me know the possibilities, why these port scanners are getting disabled.* * +++++++++++++++++ Regards, Sudheep.P.A -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sander at pictura-dp.nl Wed Feb 13 17:15:20 2008 From: sander at pictura-dp.nl (Sander Klein) Date: Wed, 13 Feb 2008 17:15:20 +0100 Subject: 2 port scanner getting disabled in nessus client In-Reply-To: <548e51390802130810m6d7a9536nedc9b51b761bfc21@mail.gmail.com> References: <548e51390802130810m6d7a9536nedc9b51b761bfc21@mail.gmail.com> Message-ID: <47B31798.4030103@pictura-dp.nl> You might want to try a more Nessus related list... The is the Nagios list. Greets, Sander Sudheep.P A wrote: > Hi, > > I am running Nessus-3.0.6-es4 under REDHAT AS4 OS. After updating the > latest plugins on the server, the below mentioned port scanners are > getting diabled in the client PC. > > *1.Nessus TCP Scanner > 2. scan for LaBrea tarpitted hosts* > *3. SYN Scan > > *The nessus client I am using is Nessus Client Version 1.4.5. My > current plugin count is *19522. > > *I had uninstalled Nessus application in server and even formatted and > installed REDHAT OS itself.* > > *Please help or let me know the possibilities, why these port scanners > are getting disabled.* > * > +++++++++++++++++ > Regards, > Sudheep.P.A > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Wed Feb 13 17:47:38 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 13 Feb 2008 10:47:38 -0600 Subject: How to explain active host checks to boss Message-ID: Background: Due to management requirements we are using NagiosQL as a configuration manager for our Nagios install. NagiosQL defaults to active checks enabled for hosts so this is how it's been done until now. We have the alerts coming as we want them. We are adding more hosts and services weekly. I know that active host checks are not a good thing to have going forward as they are unnecessary. Please advise on the best way to explain this to the boss who is, at this moment, convinced that if we turn off the option in the config file then the host will never be checked even if a service is down. I can't find a good place in the documentation to point this out and would like to get these turned off in the near future so we don't run into issues later on down the road. Any help in pointing me in the right direction would be appreciated. Here is a sample host cfg from our environment: define host { host_name plapwnd01 alias plapwnd01 address 10.1.254.253 parents 10.1.254-Parent check_command check-host-alive max_check_attempts 3 check_interval 15 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 obsess_over_host 0 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups sysalertstest notification_interval 15 notification_period 24x7 notification_options d,u notifications_enabled 1 register 1 } Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors 1800 N. Mason Rd Katy, Texas 77449 Office: 281-646-5857 Cell: 281-734-6965 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.mohr at elaxy.com Wed Feb 13 18:10:54 2008 From: james.mohr at elaxy.com (Mohr James) Date: Wed, 13 Feb 2008 18:10:54 +0100 Subject: Alerts based on performance data Message-ID: Hi All! We are currently running Nagios 2.5 and are planning the move to 3.0 within the next couple of weeks. We have a monitor that checks whether specific web sites are reachable and the page contains specific text. The Nagios machine does not have internet access, so we are running check_http remotely. There is a Perl wrapper which immediately prior to running check_http determines the current time in using Time::HiRes, runs http_check, checks the time again and calculates the differnce, which should be a good estimate of the response time of the web site and (in my opinion) avoids any addition time for NRPE to connect, etc. The success or failure is returned to Nagios along with the response time as performance data. What we want to do now is generate an alert based on the perfdata (that is the web page response time). I don't want to simply use the fact the the check itself takes too long because sometimes the slowdown is because of a lot of network traffic that effects the connection between Nagios and the machine that does the check, but not between that machine and the Internet. So, we would like to react if just the response time to the web server is too long. The simplest way I can see doing that is to define a service_perfdata_command that compares the service-perfdata to a table and if it is above the predefined value in sends and NSCA message to the service (e.g. "response time too long" or whatever). However, I don't want to reinvent the wheel if someone has done this kind of thing before. Any info is appreaciated. Regards, Jim Mohr ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 13 18:29:06 2008 From: marc at ena.com (Marc Powell) Date: Wed, 13 Feb 2008 11:29:06 -0600 Subject: How to explain active host checks to boss In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of mark.potter at academy.com > Sent: Wednesday, February 13, 2008 10:48 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How to explain active host checks to boss > > > Background: Due to management requirements we are using NagiosQL as a > configuration manager for our Nagios install. NagiosQL defaults to active > checks enabled for hosts so this is how it's been done until now. We have > the alerts coming as we want them. We are adding more hosts and services > weekly. I know that active host checks are not a good thing to have going > forward as they are unnecessary. Please advise on the best way to explain > this to the boss who is, at this moment, convinced that if we turn off the > option in the config file then the host will never be checked even if a > service is down. I can't find a good place in the documentation to point > this out and would like to get these turned off in the near future so we > don't run into issues later on down the road. Any help in pointing me in > the right direction would be appreciated. Here is a sample host cfg from > our environment: Assuming you're using 2.x. The main issue with host checks in 2.x and prior is that they are performed serially, not in parallel. While a host check is being run, nagios stops absolutely everything else, other host/service checks, notifications, etc until that single host check is complete. To put this in perspective, assume that you have 100 hosts checked with 10 pings over a 15 minute check_interval with a max_check_attempts of 3. When every host is up, each host check will take approximately 10 seconds to complete, during which nagios isn't doing anything else except obsessing over that host -- 100 hosts X 10 seconds = 1000 seconds As you can see, you've already exceeded your normal check interval of 900 seconds. Nagios cannot complete the host checks in the time interval you've specified and you haven't even done any service checks yet. Now, nagios will attempt to interleave service checks between host checks to compensate but you've just introduced latency for both check types. Now imagine that you have a simple outage. 5 hosts are down that aren't related via parenting. Your timing now looks like -- (95 hosts X 10 seconds) + (5 hosts X 30 seconds) = 1100 seconds, dedicated to host checks only. Because the host checks aren't related, nagios is able to interleave some service checks between so the latency isn't as bad as it could be. Take the calculation above and determine the effects of a large outage. Factor in parenting, where nagios will only being checking hosts up the tree without interleaving service checks and you start seeing big problems at the time that your monitoring systems is most critical and useful. You could easily end up in a situation where hosts and services aren't being checked for loooooooong intervals. Nagios is smart. You don't need to schedule regular host checks because nagios knows that if there is a problem with a service, it may be caused by an outage of the host or a parent of the host. Nagios will automagically run the host check_command anytime there is a non-OK result from a service check, assuming only that active_checks_enabled is on for the host and there is a valid check_command specified. It will also follow the parents tree if the host check returns non-OK results until nagios finds an OK parent or reaches the top of the tree. Even so, you want to have your host checks finish as quickly as possible; 1 ping max_check_attempts 3 times is usually sufficient to determine status. Nagios-3 introduces parallel host check execution and there are some benefits to running host checks there specifically for caching results for possible use by the on-demand checks or if you're interested in using host performance data for trending for example, but they aren't necessary. Some documentation to help -- http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host "check_interval: NOTE: Do NOT enable regularly scheduled checks of a host unless you absolutely need to! Host checks are already performed on-demand when necessary, so there are few times when regularly scheduled checks would be needed. Regularly scheduled host checks can negatively impact performance - see the performance tuning tips for more information. This directive is used to define the number of "time units" between regularly scheduled checks of the host. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. More information on this value can be found in the check scheduling documentation." http://nagios.sourceforge.net/docs/2_0/networkreachability.html "The main purpose of Nagios is to monitor services that run on or are provided by physical hosts or devices on your network. It should be obvious that if a host or device on your network goes down, all services that it offers will also go down with it. Similarly, if a host becomes unreachable, Nagios will not be able to monitor the services associated with that host. Nagios recognizes this fact and attempts to check for such a scenario when there are problems with a service. Whenever a service check results in a non-OK status level, Nagios will attempt to check and see if the host that the service is running on is "alive". Typically this is done by pinging the host and seeing if any response is received. If the host check commmand returns a non-OK state, Nagios assumes that there is a problem with the host. In this situation Nagios will "silence" all potential alerts for services running on the host and just notify the appropriate contacts that the host is down or unreachable. If the host check command returns an OK state, Nagios will recognize that the host is alive and will send out an alert for the service that is misbehaving." -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 13 18:38:39 2008 From: marc at ena.com (Marc Powell) Date: Wed, 13 Feb 2008 11:38:39 -0600 Subject: Alerts based on performance data In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mohr James > Sent: Wednesday, February 13, 2008 11:11 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Alerts based on performance data > > Hi All! > > We are currently running Nagios 2.5 and are planning the move to 3.0 > within the next couple of weeks. > > We have a monitor that checks whether specific web sites are reachable > and the page contains specific text. The Nagios machine does not have > internet access, so we are running check_http remotely. There is a Perl > wrapper which immediately prior to running check_http determines the > > The success or failure is returned to Nagios along with the response > time as performance data. What we want to do now is generate an alert > based on the perfdata (that is the web page response time). I don't want > The simplest way I can see doing that is to define a > service_perfdata_command that compares the service-perfdata to a table > and if it is above the predefined value in sends and NSCA message to the > service (e.g. "response time too long" or whatever). However, I don't > want to reinvent the wheel if someone has done this kind of thing > before. Why aren't these workable? check_http --help -w, --warning=DOUBLE Response time to result in warning status (seconds) -c, --critical=DOUBLE Response time to result in critical status (seconds) Or, you already have a wrapper that's intercepting the check_http results, doing something with them and sending them on to nagios. Why not just include that rather simple logic in the wrapper? If the time is too long, return CRITICAL to nagios along with appropriate output otherwise return the results reported by check_http. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From israel at frontierflying.com Wed Feb 13 19:27:02 2008 From: israel at frontierflying.com (Israel Brewster) Date: Wed, 13 Feb 2008 09:27:02 -0900 Subject: mrtgtraf help needed In-Reply-To: <20080213052702.98EE3580018@desire.netways.de> References: <20080213052702.98EE3580018@desire.netways.de> Message-ID: On Feb 12, 2008, at 8:26 PM, John King wrote: > Hi list > > ...[Hi All, I have the latest versions of Nagios, the plugins, net- > snmp, net-snmp-utils all installed on a fedora 5 box. I've setup the > monitoring of my windows and linux machines and all is well with > those. I have or am trying to setup monitoing of my cisco switches > and while I am getting gree lights on the snmp and ping tests, none > of the bandwith (mrtg) checks are working. Error msg is > "check_mrtgtraf: Unable to open MRTG log file " > > Any help would be greatly appreciated]... Well, the obvious questions: is MRTG set up and functioning? You didn't mention installing it. If it is, then what is the command definition you have for the bandwidth checks? Do the log files they point to actually exist? From the error you are getting, if MRTG is installed an functioning, then the most likely problem is that your command definitions are looking in the wrong place for the MRTG log files. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > > > - John King (jkingsol1) > > ----------------------- > The mailing list archive is found here: > http://www.nagiosexchange.org/nagios-users.34.0.html > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From israel at frontierflying.com Wed Feb 13 19:47:41 2008 From: israel at frontierflying.com (Israel Brewster) Date: Wed, 13 Feb 2008 09:47:41 -0900 Subject: check_rrdtraf In-Reply-To: References: Message-ID: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> On Feb 13, 2008, at 6:34 AM, Marc Powell wrote: >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- >> users- >> bounces at lists.sourceforge.net] On Behalf Of Pili Mu?oz Gargallo >> Sent: Wednesday, February 13, 2008 7:23 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] check_rrdtraf >> >> Hi >> i am trying to measure bandwith using check_rrd > > When asking about plugins that don't come with the distribution it's > helpful to include where you obtained the plugin so everyone knows > which check_rrd (or check_rrdtraf as the case may be) you're talking > about. That would be (partly) my plugin, obtained from Nagiosexchange.org, most likely :) >> i use the command: >> $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l >> b -vv - >> c $ARG1$ -w $ARG2$ > > You meant $HOSTADDRESS$ here, right? And did you really want that period before the /var ? > > >> and in the service i give it the next arguments: >> !3000000,3000000!5000000,5000000 >> >> i have read about it several times, and it doesn't work how i espect: >> it returns me an OK value, but it doesn't tell me the present BW... >> Am i missing something? >> > > When you run the above command as the nagios user from the command > line, does the first line of output match what you're seeing in the > GUI? I expect it starts with the word 'Using'. What is the -vv flag > causing to happen when the program is run (hint, run check_rrdtraf -- > help to find out)? The -vv is an issue, although there could be a couple of others (see previous comments about the formating of the file string in the command). As that flag gives a lot of debugging output, and nagios only displays the first line of output, I wouldn't expect it to show the traffic values with this switch in there. What I would expect nagios to be showing is something along the lines of "Using RRD File: / var/www/html/cfg/$HOSTADRESS$_1.rrd" (I think that's the first line of debugging output I put in there), with $HOSTADDRESS$ replaced with the applicable value. Try without the -vv and see what happens. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > > -- > Marc > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Wed Feb 13 19:52:56 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 13 Feb 2008 12:52:56 -0600 Subject: How to explain active host checks to boss In-Reply-To: References: Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/13/2008 11:29:06 AM: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of mark.potter at academy.com > > Sent: Wednesday, February 13, 2008 10:48 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] How to explain active host checks to boss > > > > > > Background: Due to management requirements we are using NagiosQL as a > > configuration manager for our Nagios install. NagiosQL defaults to > active > > checks enabled for hosts so this is how it's been done until now. We > have > > the alerts coming as we want them. We are adding more hosts and > services > > weekly. I know that active host checks are not a good thing to have > going > > forward as they are unnecessary. Please advise on the best way to > explain > > this to the boss who is, at this moment, convinced that if we turn off > the > > option in the config file then the host will never be checked even if > a > > service is down. I can't find a good place in the documentation to > point > > this out and would like to get these turned off in the near future so > we > > don't run into issues later on down the road. Any help in pointing me > in > > the right direction would be appreciated. Here is a sample host cfg > from > > our environment: > > Assuming you're using 2.x. The main issue with host checks in 2.x and > prior is that they are performed serially, not in parallel. While a host > check is being run, nagios stops absolutely everything else, other > host/service checks, notifications, etc until that single host check is > complete. To put this in perspective, assume that you have 100 hosts > checked with 10 pings over a 15 minute check_interval with a > max_check_attempts of 3. When every host is up, each host check will > take approximately 10 seconds to complete, during which nagios isn't > doing anything else except obsessing over that host -- > > 100 hosts X 10 seconds = 1000 seconds > > As you can see, you've already exceeded your normal check interval of > 900 seconds. Nagios cannot complete the host checks in the time interval > you've specified and you haven't even done any service checks yet. Now, > nagios will attempt to interleave service checks between host checks to > compensate but you've just introduced latency for both check types. > > Now imagine that you have a simple outage. 5 hosts are down that aren't > related via parenting. Your timing now looks like -- > > (95 hosts X 10 seconds) + (5 hosts X 30 seconds) = 1100 seconds, > dedicated to host checks only. > > Because the host checks aren't related, nagios is able to interleave > some service checks between so the latency isn't as bad as it could be. > Take the calculation above and determine the effects of a large outage. > Factor in parenting, where nagios will only being checking hosts up the > tree without interleaving service checks and you start seeing big > problems at the time that your monitoring systems is most critical and > useful. You could easily end up in a situation where hosts and services > aren't being checked for loooooooong intervals. > > > Nagios is smart. You don't need to schedule regular host checks because > nagios knows that if there is a problem with a service, it may be caused > by an outage of the host or a parent of the host. Nagios will > automagically run the host check_command anytime there is a non-OK > result from a service check, assuming only that active_checks_enabled is > on for the host and there is a valid check_command specified. It will > also follow the parents tree if the host check returns non-OK results > until nagios finds an OK parent or reaches the top of the tree. Even so, > you want to have your host checks finish as quickly as possible; 1 ping > max_check_attempts 3 times is usually sufficient to determine status. > > Nagios-3 introduces parallel host check execution and there are some > benefits to running host checks there specifically for caching results > for possible use by the on-demand checks or if you're interested in > using host performance data for trending for example, but they aren't > necessary. > > Some documentation to help -- > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host > > "check_interval: NOTE: Do NOT enable regularly scheduled checks > of a host unless you absolutely need to! Host checks are already > performed on-demand when necessary, so there are few times when > regularly scheduled checks would be needed. Regularly scheduled host > checks can negatively impact performance - see the performance tuning > tips for more information. This directive is used to define the number > of "time units" between regularly scheduled checks of the host. Unless > you've changed the interval_length directive from the default value of > 60, this number will mean minutes. More information on this value can be > found in the check scheduling documentation." > > > http://nagios.sourceforge.net/docs/2_0/networkreachability.html > > "The main purpose of Nagios is to monitor services that run on or are > provided by physical hosts or devices on your network. It should be > obvious that if a host or device on your network goes down, all services > that it offers will also go down with it. Similarly, if a host becomes > unreachable, Nagios will not be able to monitor the services associated > with that host. > > Nagios recognizes this fact and attempts to check for such a scenario > when there are problems with a service. Whenever a service check results > in a non-OK status level, Nagios will attempt to check and see if the > host that the service is running on is "alive". Typically this is done > by pinging the host and seeing if any response is received. If the host > check commmand returns a non-OK state, Nagios assumes that there is a > problem with the host. In this situation Nagios will "silence" all > potential alerts for services running on the host and just notify the > appropriate contacts that the host is down or unreachable. If the host > check command returns an OK state, Nagios will recognize that the host > is alive and will send out an alert for the service that is > misbehaving." > > -- > Marc > That is precisely the sort of explanation I needed. I think I have the convincing done but there seems to be some concern about how this will show up on tac.cgi and in other places. It will show as disabled if I am not mistaken. I think management may be concerned about this for reasons only management understands. Under the Hosts bar in tac.cgi it will show all 309 hosts as being disabled correct? Since the documentation recommends disabling active host checks for obvious reasons why is this shown on tac.cgi under Hosts and again under Active Checks (in red nonetheless). I almost wish I understood management at this point... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 13 20:12:27 2008 From: marc at ena.com (Marc Powell) Date: Wed, 13 Feb 2008 13:12:27 -0600 Subject: How to explain active host checks to boss In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of mark.potter at academy.com > Sent: Wednesday, February 13, 2008 12:53 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] How to explain active host checks to boss > > > nagios-users-bounces at lists.sourceforge.net wrote on 02/13/2008 11:29:06 > AM: > That is precisely the sort of explanation I needed. I think I have the > convincing done but there seems to be some concern about how this will > show up on tac.cgi and in other places. It will show as disabled if I am > not mistaken. I think management may be concerned about this for reasons > only management understands. Under the Hosts bar in tac.cgi it will show > all 309 hosts as being disabled correct? Since the documentation It won't if you leave 'active_checks_enabled 1' but do not specify the check_interval directive (at all). If one service on the host is OK, the host will be assumed to be and displayed as OK too. There is a difference between disabling host checks and not scheduling them. With 'active_checks_enabled 0', even the on-demand check won't happen so they would show as disabled. Note that this entire logic revolves around the fact that you must have at least one service defined for every host. > recommends disabling active host checks for obvious reasons why is this > shown on tac.cgi under Hosts and again under Active Checks (in red > nonetheless). I almost wish I understood management at this point... I'm sure they don't want it to appear that they're not monitoring those hosts or there is some otherwise unhandled problem that the big red X implies when they show off the spiffy monitoring system to people not-in-the-know. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.mohr at elaxy.com Wed Feb 13 20:53:18 2008 From: james.mohr at elaxy.com (Mohr James) Date: Wed, 13 Feb 2008 20:53:18 +0100 Subject: Alerts based on performance data In-Reply-To: References: Message-ID: > > The simplest way I can see doing that is to define a > > service_perfdata_command that compares the service-perfdata > to a table > > and if it is above the predefined value in sends and NSCA message to > the > > service (e.g. "response time too long" or whatever). > However, I don't > > want to reinvent the wheel if someone has done this kind of thing > > before. > > Why aren't these workable? > > check_http --help > > -w, --warning=DOUBLE > Response time to result in warning status (seconds) -c, > --critical=DOUBLE > Response time to result in critical status (seconds) > Or, you already have a wrapper that's intercepting the > check_http results, doing something with them and sending > them on to nagios. Why not just include that rather simple > logic in the wrapper? If the time is too long, return > CRITICAL to nagios along with appropriate output otherwise > return the results reported by check_http. The wrapper grew historically, so it is difficult to replace it. Plus we have some querystrings we need to pass with character that make NRPE puke. So all we pass to the remote machine is the service name and it parses a config file for the URL, stearch string, etc. and then calls check_http, a special version of check_http for SSL3, or even wget because need to download and check a file via FTP. What I could do is pass an extra parameter or two to the remote command (-w/-c) indicating the max time for the web access and then return the values to NRPE as appropriate. That way there is no external logic and all of the parameters are defined with the service. That seems to do the trick. Regards, Jim Mohr ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From svalding at kent.edu Wed Feb 13 20:30:23 2008 From: svalding at kent.edu (svalding at kent.edu) Date: Wed, 13 Feb 2008 14:30:23 -0500 Subject: add ndo daemon to nagios init script Message-ID: Hello list, I am by no means a programmer so am coming here for some assistance. I am running Nagios 2.10 on an Ubuntu 7.04 box. I started to use the NagVis software for some mapping. What I dislike is that every time I have to stop and start nagios (which is rare) I have to kill and restart the ndo daemon. What I would like to do is put this piece into the init script for nagios. Somewhere within the start) .... .... ;; section of the code. What I am going to test out is using if ndo2db is running then kill it's pid and rm -f the sock file it created else exit 0 fi $Ndodaemonpath/ndo2db -c /$Ndocfgfile/ndo2db.cfg I do not know bash well enough to accomplish this if clause on my own (killing the process is the holdup for me) Could someone assist me with this? Thanks, Stephen -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kyle at caosdigital.com Wed Feb 13 21:47:46 2008 From: kyle at caosdigital.com (kyle) Date: Wed, 13 Feb 2008 21:47:46 +0100 Subject: filter unacknowledged critical services Message-ID: <20080213204746.GA20069@pulsar> Hi, I'd like see only critical services that are NOT ACKNOWLEDGED and NOT IN DOWNTIME, in the web interface . I'm using nagios 2.9 - is this possible ? Right now I'm using URL /nagios/cgi-bin/status.cgi?host=all&servicestatustypes=16&sorttype=1&sortoption=6 but only shows all critical services :-) thanks -- Windows macht frei! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mpineda at bidz.com Wed Feb 13 21:54:30 2008 From: mpineda at bidz.com (Mauricio Pineda) Date: Wed, 13 Feb 2008 12:54:30 -0800 Subject: SWATCH with Nagios Message-ID: <28E3840D78B73C4C81BEE02D71A92A4A1B72C8@mx-1.bar.bidz.com> How all, Can anyone give me a little push in integrating 'swatch' with Nagios.? Is it possible? Anybody? Mauricio -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From perldork at webwizarddesign.com Wed Feb 13 22:18:59 2008 From: perldork at webwizarddesign.com (Max) Date: Wed, 13 Feb 2008 16:18:59 -0500 Subject: SWATCH with Nagios In-Reply-To: <28E3840D78B73C4C81BEE02D71A92A4A1B72C8@mx-1.bar.bidz.com> References: <28E3840D78B73C4C81BEE02D71A92A4A1B72C8@mx-1.bar.bidz.com> Message-ID: Hi, I can tell you how I have integrated my own open source log monitoring tool, LMF, with Nagios. http://lmf.sf.net/ Pretty easy: 1) I think swatch has 'triggers' that can be called whe events happen, yes? If so, install send_nsca on the monitored host, and create a wrapper script that sends an event to Nagios with send_nsca 2) Create a passive check for the service on your Nagios instance, don't forget to set a freshness command that resets the check back to 'ok' after an amount of time with no events. 3) I also use PNP to then graph events for trending. Attached is a screenshot of my LMF graphs over time for SSH attack attempts against one host as detected by LMF .. top of the graph intentionally cut off to hide the host name :). Regards, Max -------------- next part -------------- A non-text attachment was scrubbed... Name: lmf.jpg Type: image/jpeg Size: 22792 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From rup001 at yahoo.com Wed Feb 13 22:54:20 2008 From: rup001 at yahoo.com (Vuppala) Date: Wed, 13 Feb 2008 13:54:20 -0800 (PST) Subject: Upgrade Nagios In-Reply-To: References: Message-ID: <430365.8192.qm@web54603.mail.re2.yahoo.com> Hi All what is the procedure to upgrade nagios 2.x to 2.10. Thanks Vuppala --------------------------------- Never miss a thing. Make Yahoo your homepage. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Thu Feb 14 00:57:03 2008 From: marc at ena.com (Marc Powell) Date: Wed, 13 Feb 2008 17:57:03 -0600 Subject: Upgrade Nagios In-Reply-To: <430365.8192.qm@web54603.mail.re2.yahoo.com> References: <430365.8192.qm@web54603.mail.re2.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Vuppala > Sent: Wednesday, February 13, 2008 3:54 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Upgrade Nagios > > Hi All > what is the procedure to upgrade nagios 2.x to 2.10. Depends on how you installed. If by source, per the UPGRADING document -- "For Nagios 2.x Users: --------------------- If you're upgrading from an earlier version of Nagios 2.x, upgrading is pretty simple. Nothing has changed with the configuration files, so you can simply recompile and install the new binaries and web interface and you'll be good to go." For step by step -- Get the sources and untar cd to source dir ./configure --with whatever options you used previously make /etc/init.d/nagios stop make install /etc/init.d/nagios start PROFIT!? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Thu Feb 14 03:05:07 2008 From: Roger at NagiosWiki.com (Roger) Date: Wed, 13 Feb 2008 18:05:07 -0800 Subject: using fping to find missing A records Message-ID: <2b7af7c40802131805u52a35edcqe5a0c0d35090c150@mail.gmail.com> I have a specific question on how to do something, and a larger question addressing other "better" ways to do the spirit of what I'm asking. I'm setting up Nagios, and am trying to make sure that all of the subnets have A records, as IP addresses will be changing very, very rapidly, and when that day comes, I will not be here (but on another Nagios project). So, I'd like to create A records for each host. How do I "fping -a" a range of IP addresses, strip out the names of the name that the host replies with, and then ping that list of names? (You don't have to tell me how exactly, a general idea of which command line tools will do) I'm thinking something like: fping -g 192.168.1.0 192.168.1.255 -A | grep whatever > file, and then shove that file in another fping statement. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tekion at gmail.com Thu Feb 14 04:03:09 2008 From: tekion at gmail.com (Screaming Eagle) Date: Wed, 13 Feb 2008 22:03:09 -0500 Subject: Would this be consider circular dependency.... Message-ID: Folks, If I have 2 host with the same check (dbcheck), but I want to establish a service dependency on the 2 host; for examle I have the following: host-a host-b All of the above host has db check. I want to establish a service dependency check(db check) on host-a to host-b. Would this be consider a circular dependency? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From throck at duke.edu Thu Feb 14 04:26:34 2008 From: throck at duke.edu (Tom Throckmorton) Date: Wed, 13 Feb 2008 22:26:34 -0500 Subject: using fping to find missing A records In-Reply-To: <2b7af7c40802131805u52a35edcqe5a0c0d35090c150@mail.gmail.com> References: <2b7af7c40802131805u52a35edcqe5a0c0d35090c150@mail.gmail.com> Message-ID: <20080214032634.GA4498@duke.edu> On Feb 13 18:05, Roger wrote: > I have a specific question on how to do something, and a larger question > addressing other "better" ways to do the spirit of what I'm asking. > > I'm setting up Nagios, and am trying to make sure that all of the subnets > have A records, as IP addresses will be changing very, very rapidly, and > when that day comes, I will not be here (but on another Nagios project). > > So, I'd like to create A records for each host. ...so, are you trying to make sure that for every name you have an A record, or for every A you have a PTR (i.e. a name that corresponds to the numeric)? It sounds like the latter, since you're thinking of doing this by looking at numbers... > How do I "fping -a" a range > of IP addresses, strip out the names of the name that the host replies with, > and then ping that list of names? (You don't have to tell me how exactly, a > general idea of which command line tools will do) > > I'm thinking something like: fping -g 192.168.1.0 192.168.1.255 -A | grep > whatever > file, and then shove that file in another fping statement. If I understand correctly what you're shooting for, it can be done in one step: you at yourhost% fping -ang 192.168.1.0/24 ...would return - all hosts that are alive - by name (if one exists) - for a generated range (192.168.1.0..192.168.1.255) If you want to only show hosts for which there is no PTR record, just 'grep -v' your target domain(s) from the output. -tt p.s. Hopefully, none of those hosts in that range are blocking your pings :) -- Tom Throckmorton OIT - CSI Duke University ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Thu Feb 14 06:26:27 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 14 Feb 2008 00:26:27 -0500 Subject: Would this be consider circular dependency.... In-Reply-To: References: Message-ID: <47B3D103.6040207@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/02/08 10:03 PM, Screaming Eagle wrote: > Folks, If I have 2 host with the same check (dbcheck), but I want to > establish a service dependency on the 2 host; for examle I have the > following: > host-a > host-b > All of the above host has db check. I want to establish a service > dependency check(db check) on host-a to host-b. Would this be consider > a circular dependency? Have you looked into using check_cluster ? Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHs9ED6dZ+Kt5BchYRAmCSAKCyCMbJYfMsQA4y53N358EcxOliBwCgrsCx Mp8wCIS8j4Xgf9uXxlY1KsU= =uX6s -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Thu Feb 14 06:29:13 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 14 Feb 2008 00:29:13 -0500 Subject: nagiosmib In-Reply-To: <549775.5891.qm@web26201.mail.ukl.yahoo.com> References: <549775.5891.qm@web26201.mail.ukl.yahoo.com> Message-ID: <47B3D1A9.9080301@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 13/02/08 04:59 AM, Melanie Pfefer wrote: > hello, > What's the use of this package: nagiosmib? I know Nagios-plugins got an enterprise OID so I guess there was projects for it, but this package haven't been toughed for years. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHs9Gp6dZ+Kt5BchYRAmSPAKDYsu9Oip9rUTSws8fe9fGIUxk7twCfSw78 Fl9SzdJFwCpwVZGmvpoLxUA= =fqXi -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cschneemann at suse.de Thu Feb 14 10:39:06 2008 From: cschneemann at suse.de (Christian Schneemann) Date: Thu, 14 Feb 2008 10:39:06 +0100 Subject: Segmentation faults after starting Nagios 3.0 RC2 In-Reply-To: <200802121053.08147.cschneemann@suse.de> References: <200802121053.08147.cschneemann@suse.de> Message-ID: <200802141039.06288.cschneemann@suse.de> Hi, I've resent it to the devel-list. -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sascha.Runschke at gfkl.com Thu Feb 14 11:21:19 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Thu, 14 Feb 2008 11:21:19 +0100 Subject: Nagios 2.x configs compatible with 3.x? Message-ID: Hi, I'm wondering: is it possible to use 2.x configs for hosts, services and the like with 3.x without problems? The scenario is the following: I've monarch running now with some spooky config, so it doesn't overwrite nagios.cfg and cgi.cfg. Those are fully 3.x configured and contain the needed parameters. Yet I'd like to keep monarch for configuring the hosts, services, timeperiods, escalations and such. Of course I've tried it already and it "seems" to work. I still wonder though, if I have to expect any problems sooner or later? I know that I won't be able to use the new 3.x features, like integrated extinfos, inherited contactgroups, multiple templates and the like - but I can live with it for now. I haven't tried if escalations configured with monarch will work, but I'd expect so. The problem is that $CTO says: I want a webconfig for nagios, no excuses! And I don't want to keep using 2.x anymore, since the performance of 3.x and especially the polished parent-checking are extremely valueable to us. So, does anyone have any objections against using 2.x configs with 3.x? Do I have to expect any problems Ethan? Thanks for any input, S -- Sascha Runschke Netzwerk- und Systemmanagement Abt. Organisation und Betrieb - IT-Infrastruktur Telefon : +49 (201) 102-1879 Mobile : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From murali.pd at hotmail.com Thu Feb 14 13:09:37 2008 From: murali.pd at hotmail.com (Murali Dharan) Date: Thu, 14 Feb 2008 17:39:37 +0530 Subject: FW: General Query Message-ID: No answer still for this? -Murali. From: murali.pd at hotmail.comTo: nagios-users at lists.sourceforge.netSubject: General QueryDate: 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! _________________________________________________________________ Post free property ads on Yello Classifieds now! www.yello.in http://ss1.richmedia.in/recurl.asp?pid=220 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From yatindra.ranpura at ukbroadband.com Thu Feb 14 13:12:32 2008 From: yatindra.ranpura at ukbroadband.com (Yatindra Ranpura) Date: Thu, 14 Feb 2008 12:12:32 -0000 Subject: FW: General Query In-Reply-To: References: Message-ID: Hi Murali, Nagios is built on linux so you need to put on some distro that you like and then there are add-ins for windows machines. YATINDRA P RANPURA IT Support | Asset Management | Network Monitoring UKBROADBAND UK Broadband Limited - Privileged/Confidential information may be contained in this Communication (which includes any attachment). If you are not an intended recipient, you must not use, copy, disclose, distribute or retain this communication or any part of it. Instead, please delete all copies of this communication from your computer system and notify the sender immediately by reply email. Thank you. From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Murali Dharan Sent: 14 February 2008 12:10 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] FW: General Query No answer still for this? -Murali. ________________________________ From: murali.pd at hotmail.com To: nagios-users at 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! ________________________________ Fly HYD-BLR for Rs.499 Log on to MakeMyTrip! Check it out! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mikeh at bluegecko.net Thu Feb 14 13:36:01 2008 From: mikeh at bluegecko.net (Mike Hamrick) Date: Thu, 14 Feb 2008 04:36:01 -0800 Subject: Announce: Monocole Oracle Monitoring Package Message-ID: Hello, Blue Gecko Inc, is proud to announce the first release of Monocle, our open source (GPLv2) Oracle 10g database monitoring package! Monocle mostly consists of a body of PL/SQL code that runs inside the database as scheduled Oracle jobs. When events occur inside the database that are significant enough to alert on, the PL/SQL monitoring code notes the problems in a monitoring events table. The check_monocle script, which is used as a connector between Monocole and Nagios, reads the data from the events table and reports the information to Nagios using the command pipe. Requirements: * Oracle 10g or greater * Nagios 2.x * Oracle Instant Client (sqlplus) Features: * Alert Log Monitor - Scans the alert Log and reports on exceptions * Backup Monitor - Monitors the health of Oracle RMAN backups * Job Monitor - Monitors Oracle DBA and Scheduler Jobs * Lock Monitor - Monitors and records info about blocking locks * Resource Monitor - Monitors resource consumption (cursors/ processes) * Space Monitor - Monitors tablespace/archive space consumption * Standby Monitor - Monitors physical/logical standby databases To find out more about Monocle, visit our open source development site at: http://code.bluegecko.net Direct download link: http://files.bluegecko.net/code/Monocle-1.0.tar.gz About Blue Gecko: What Blue Gecko does is simple: We provide database administration support services for Oracle and MySQL. The Blue Gecko team proactively monitors, administers, and tunes Oracle and MySQL Server database environments, either on our own Database Hosting Services platform, or at our Client's site with Remote DBA Services. To find out more about Blue Gecko, visit our services site at: http://www.bluegecko.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Thu Feb 14 13:43:45 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 14 Feb 2008 12:43:45 +0000 Subject: FW: General Query In-Reply-To: References: Message-ID: <47B43781.4020806@googlemail.com> Murali Dharan wrote: > No answer still for this? Sounds like you didn't read the docs... Nagios runs on Linux. You can monitor either *nix or Windows hosts from the Nagios Linux Server though, either directly for network accessible services or with monitoring agents to run remote checks on the other hosts themselves. Read All Of This, It's good: http://nagios.sourceforge.net/docs/2_0/toc.html -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Thu Feb 14 14:10:15 2008 From: ae at op5.se (Andreas Ericsson) Date: Thu, 14 Feb 2008 14:10:15 +0100 Subject: check_snmp issue In-Reply-To: References: Message-ID: <47B43DB7.50006@op5.se> mark.potter at academy.com wrote: > nagios-users-bounces at lists.sourceforge.net wrote on 02/12/2008 10:06:16 > AM: > >> >>> -----Original Message----- >>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >>> bounces at lists.sourceforge.net] On Behalf Of mark.potter at academy.com >>> Sent: Tuesday, February 12, 2008 9:39 AM >>> To: nagios-users at lists.sourceforge.net >>> Subject: [Nagios-users] check_snmp issue >>> >>> >>> Thank you all for the comments on the parenting issue I posted >> yesterday. >>> We have come up with a much easier solution than had been proposed. >> What did you end up with? > > host -> gateway -> router > > Which is actually not much of a change from how we are already doing it. > >>> I am now having an issue with check_snmp. I have used check_snmp to >>> monitor this exact service in the past on other Nagios hosts and am >> using >>> other snmp checks as well from the current host. Here is the problem: >>> >>> nagios at ulapnag01:/usr/local/nagios/libexec> /check_snmp -H peapgse01 >> -o >>> GSA-MIB::crawlRunning.0 -C public -m GSA-MIB -P 2c -d "=" >>> SNMP problem - No data received from host >>> CMD: /usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public >> peapgse01:161 >>> GSA-MIB::crawlRunning.0 >>> >>> But if I run the command it shows, exactly: >>> >>> nagios at ulapnag01:/usr/local/nagios/libexec> /usr/bin/snmpget -t 1 -r 5 >> -m >>> GSA-MIB -v 2c -c public peapgse01:161 GSA-MIB::crawlRunning.0 >>> GSA-MIB::crawlRunning.0 = INTEGER: Running(1) >> Not a direct answer but to troubleshoot I'd run check_snmp in verbose >> mode (-v). That will cause it to print the output it receives from >> snmpget. You'll at least know then if the problem is with the call to >> snmpget or the parsing of its output. I'd also run 'strace -Ffs512 >> ./check_snmp ...' and look for the sendto and recvfrom lines which would >> be the communication with the remote snmp agent just to verify that >> there is data flowing both ways. I'd also drop the -d "=" since that's >> the default anyway. I'd try using the numeric OID instead of >> GSA-MIB::crawlRunning.0 to eliminate MIB loading/parsing issues. And >> finally, I'd use IP or FQDN for the hostname to eliminate resolution >> issues. >> >> -- >> Marc > > Sometimes you can't see the forest for the trees. It was an MIB issue. > Using the numeric OID gets the result I need. Thank you for the advice. > Taking it step by step solved my issue: > nagios at ulapnag01:/usr/local/nagios/libexec> ./check_snmp -v -H peapgse01 > -o .1.3.6.1.4.1.11129.1.1.1.0 -C public -m GSA-MIB -P 2c > /usr/bin/snmpget -t 1 -r 5 -m GSA-MIB -v 2c -c public peapgse01:161 > 1.3.6.1.4.1.11129.1.1.1.0 > iso.3.6.1.4.1.11129.1.1.1.0 = INTEGER: 1 > You can now also drop "-m GSA-MIB" from the command line. I suspect this problem crops up due to the environment being NULL and nothing when the plugin runs snmpget. Do you have some snmp-specific settings in your environment? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tim at tany.com Thu Feb 14 15:16:02 2008 From: tim at tany.com (Tim Palmer) Date: Thu, 14 Feb 2008 09:16:02 -0500 Subject: FW: General Query In-Reply-To: References: Message-ID: <47B44D22.2090108@tany.com> 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: murali.pd at hotmail.com > To: nagios-users at 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! > > > > ------------------------------------------------------------------------ > Fly HYD-BLR for Rs.499 Log on to MakeMyTrip! Check it out! > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Thu Feb 14 15:53:00 2008 From: knobdy at gmail.com (Brian Loe) Date: Thu, 14 Feb 2008 08:53:00 -0600 Subject: snmp v3 on 3600 Message-ID: <3c4611bc0802140653y273d7ffak5148ae983958e651@mail.gmail.com> Anyone have a snmp v3 config for a 3600 they'd be willing to share? I'm needing to monitor a multilink connection...have never configured v3 on any IOS platform. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Thu Feb 14 17:09:55 2008 From: llow at telesphere.com (Larry Low) Date: Thu, 14 Feb 2008 09:09:55 -0700 Subject: snmp v3 on 3600 In-Reply-To: <3c4611bc0802140653y273d7ffak5148ae983958e651@mail.gmail.com> References: <3c4611bc0802140653y273d7ffak5148ae983958e651@mail.gmail.com> Message-ID: <008a01c86f24$0a360f80$1ea22e80$@com> Here is a simple authNoPriv setup. The snmp-server user will not show up on the config but is stored in a private config in flash. 'show snmp user' can be used to get info. snmp-server group v3 auth access snmp-server user v3 auth md5 You will probably want to do more to lock down access as RW is available with those commands. Careful with this as it has crashed a few 12.3 routers I've used (3 out of 700). ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Brian Loe > Sent: Thursday, February 14, 2008 7:53 AM > To: Nagios Users Mailinglist > Subject: [Nagios-users] snmp v3 on 3600 > > Anyone have a snmp v3 config for a 3600 they'd be willing to share? > > I'm needing to monitor a multilink connection...have never configured > v3 on any IOS platform. > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mwjredding at gmail.com Thu Feb 14 17:23:21 2008 From: mwjredding at gmail.com (mark redding) Date: Thu, 14 Feb 2008 16:23:21 +0000 Subject: distributed monitoring - slave server not that intelligent Message-ID: Hi all, I currently have Nagios 2.10 installed on a couple of machines, one of which is configured as a master and the other as a slave. I have a script running on the slave which rsync's up the configs from the master and performs health checks of the master to see that it is running (and if it is not then it enables service checks/notifications on the slave until such time as it detects that the master is back up and running). I also use nsca to pass passive checks to the slave to ensure that it has up to date information about services. The slave does not perform any active service checks, nor are notifications enabled unless the master is down. I do however still have one problem and that is that the slave has no way of knowing when we're ack'ed a critical, scheduled downtime, disabled/enabled notfications/event handlers/checks for a service/host on the master. What this means is that if we schedule downtime on a host, then the master goes down, the slave starts bitching about the host that is down (because it does not know that it's in downtime). A similar problem occurs if we disable an event handler on the master, because unless the slave also knows to disable the event handler it will fire it (regardless of whether or not it is active) as soon as the passive check result returns a critical. At present I am getting round this by tailing the nagios log file through a perl script that looks for specific 'EXTERNAL COMMAND' entries and then flushes those through to the slave by ssh'ing to the slave and writing the command string to the nagios pipe file on the slave. Is there a better way of doing this ? -- bright blessings, Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Thu Feb 14 21:21:30 2008 From: llow at telesphere.com (Larry Low) Date: Thu, 14 Feb 2008 13:21:30 -0700 Subject: Notification Woes Message-ID: <011f01c86f47$2f15d420$8d417c60$@com> Service X actively checked every 60 minutes. Service X passively monitored through SNMP Traps. Service X receives CRITICAL passively. E-mail to contact A. Modify Service X to actively poll every 5 minutes till recovery. Email B after 3rd CRITICAL (10-15 minute delay). I can't use retry_interval because I want contact A to be notified all the time and retry_interval is only used on SOFT states. I was thinking of executing a change in polling interval with an event handler. Any insight? I'm also curious on how flap alerts are handled under serviceescalation. I am assuming they are not. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Thu Feb 14 21:29:56 2008 From: knobdy at gmail.com (Brian Loe) Date: Thu, 14 Feb 2008 14:29:56 -0600 Subject: snmp v3 on 3600 In-Reply-To: <008a01c86f24$0a360f80$1ea22e80$@com> References: <3c4611bc0802140653y273d7ffak5148ae983958e651@mail.gmail.com> <008a01c86f24$0a360f80$1ea22e80$@com> Message-ID: <3c4611bc0802141229n5c8b8f40n17e898d928cec0d8@mail.gmail.com> On Thu, Feb 14, 2008 at 10:09 AM, Larry Low wrote: > Here is a simple authNoPriv setup. The snmp-server user will not show up on > the config but is stored in a private config in flash. 'show snmp user' can > be used to get info. > > snmp-server group v3 auth access > snmp-server user v3 auth md5 > > You will probably want to do more to lock down access as RW is available > with those commands. I've done this with no luck... chasing a firewall issue as I'm only getting timeouts. Anything not obvious about how the firewall should be configured (out of my control in this environment)? This is an ISP router and the firewall has UDP 161 opened up going out from Nagios server to the router only. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Thu Feb 14 21:32:32 2008 From: llow at telesphere.com (Larry Low) Date: Thu, 14 Feb 2008 13:32:32 -0700 Subject: snmp v3 on 3600 In-Reply-To: <3c4611bc0802141229n5c8b8f40n17e898d928cec0d8@mail.gmail.com> References: <3c4611bc0802140653y273d7ffak5148ae983958e651@mail.gmail.com> <008a01c86f24$0a360f80$1ea22e80$@com> <3c4611bc0802141229n5c8b8f40n17e898d928cec0d8@mail.gmail.com> Message-ID: <012601c86f48$b9ea2f00$2dbe8d00$@com> Does the Nagios server have 161 into the firewall allowed? ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: Brian Loe [mailto:knobdy at gmail.com] > Sent: Thursday, February 14, 2008 1:30 PM > To: Larry Low > Cc: Nagios Users Mailinglist > Subject: Re: [Nagios-users] snmp v3 on 3600 > > On Thu, Feb 14, 2008 at 10:09 AM, Larry Low > wrote: > > Here is a simple authNoPriv setup. The snmp-server user will not > show up on > > the config but is stored in a private config in flash. 'show snmp > user' can > > be used to get info. > > > > snmp-server group v3 auth access > > snmp-server user v3 auth md5 > > > > You will probably want to do more to lock down access as RW is > available > > with those commands. > > I've done this with no luck... chasing a firewall issue as I'm only > getting timeouts. > > Anything not obvious about how the firewall should be configured (out > of my control in this environment)? This is an ISP router and the > firewall has UDP 161 opened up going out from Nagios server to the > router only. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Thu Feb 14 21:37:49 2008 From: llow at telesphere.com (Larry Low) Date: Thu, 14 Feb 2008 13:37:49 -0700 Subject: Notification Woes In-Reply-To: <011f01c86f47$2f15d420$8d417c60$@com> References: <011f01c86f47$2f15d420$8d417c60$@com> Message-ID: <012d01c86f49$76e935b0$64bba110$@com> Another question with scenarios: Passive checks set as HARD states Service set to retry 3 times Passive CRITICAL received. Active check returns CRITICAL. What state does this active check cause? I assume it stays in a HARD state? ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Larry Low > Sent: Thursday, February 14, 2008 1:22 PM > To: 'Nagios Users Mailinglist' > Subject: [Nagios-users] Notification Woes > > Service X actively checked every 60 minutes. > Service X passively monitored through SNMP Traps. > > Service X receives CRITICAL passively. E-mail to contact A. Modify > Service > X to actively poll every 5 minutes till recovery. Email B after 3rd > CRITICAL (10-15 minute delay). > > I can't use retry_interval because I want contact A to be notified all > the > time and retry_interval is only used on SOFT states. > > I was thinking of executing a change in polling interval with an event > handler. > > Any insight? > > I'm also curious on how flap alerts are handled under > serviceescalation. I > am assuming they are not. > > ---- > Larry Low > 4150 N Drinkwater Blvd., 5th Floor > Scottsdale, AZ 85251 > Office: 480.385.7045 > E-mail: llow at telesphere.com' > > Telesphere Networks, Inc > > > > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mugnoz.pilar at gmail.com Thu Feb 14 23:48:23 2008 From: mugnoz.pilar at gmail.com (=?ISO-8859-1?Q?Pili_Mu=F1oz_Gargallo?=) Date: Thu, 14 Feb 2008 23:48:23 +0100 Subject: check_rrdtraf In-Reply-To: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> References: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> Message-ID: <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> hi all, thanks for the help. I have been trying several things that you told me. I'll give more information. I am monitoring bandwith with MRTG and storing datas in rrdtool format. If i run command from command line is ./check_rrdtraf -f ./var/www/html/cfg/62.81.189.118_1.rrd -l B -c 3000000,3000000 -w 5000000,5000000 ./var/www/html/cfg/62.81.189.118_1.rrd does not exist. I am graphing with routers2.cgi and it receives values, and if i do : rrdtool fetch /var/www/html/cfg/62.81.189.118_1.rrd AVERAGE . . . 1203025200: 1.3963531752e+05 8.2446477796e+04 1203025500: 1.3719540269e+05 1.0068914358e+05 1203025800: 1.3673972419e+05 1.0818787703e+05 1203026100: 1.3729848910e+05 1.1104579469e+05 1203026400: 1.3708077389e+05 1.1129381874e+05 1203026700: 1.3590177194e+05 1.1081213980e+05 1203027000: 3.1652589163e+05 2.5986265329e+05 1203027300: 3.8436060720e+05 3.1651678017e+05 1203027600: 1.4309192557e+05 1.1708320591e+05 1203027900: nan nan 1203028200: nan nan i see it is storing values... what is wrong? I had read check_rrdtraf help and i have included -l B option to indicate that data are bits...but it is still not working I obtain now: OK - Current BW in: bps Out: bps any more ideas? Thank you again for your patience!!! Pili 2008/2/13, Israel Brewster : > > On Feb 13, 2008, at 6:34 AM, Marc Powell wrote: > >> -----Original Message----- > >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > >> users- > >> bounces at lists.sourceforge.net] On Behalf Of Pili Mu?oz Gargallo > >> Sent: Wednesday, February 13, 2008 7:23 AM > >> To: nagios-users at lists.sourceforge.net > >> Subject: [Nagios-users] check_rrdtraf > >> > >> Hi > >> i am trying to measure bandwith using check_rrd > > > > When asking about plugins that don't come with the distribution it's > > helpful to include where you obtained the plugin so everyone knows > > which check_rrd (or check_rrdtraf as the case may be) you're talking > > about. > > > That would be (partly) my plugin, obtained from Nagiosexchange.org, > most likely :) > > > >> i use the command: > >> $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l > >> b -vv - > >> c $ARG1$ -w $ARG2$ > > > > You meant $HOSTADDRESS$ here, right? > > > And did you really want that period before the /var ? > > > > > > >> and in the service i give it the next arguments: > >> !3000000,3000000!5000000,5000000 > >> > >> i have read about it several times, and it doesn't work how i espect: > >> it returns me an OK value, but it doesn't tell me the present BW... > >> Am i missing something? > >> > > > > When you run the above command as the nagios user from the command > > line, does the first line of output match what you're seeing in the > > GUI? I expect it starts with the word 'Using'. What is the -vv flag > > causing to happen when the program is run (hint, run check_rrdtraf -- > > help to find out)? > > > The -vv is an issue, although there could be a couple of others (see > previous comments about the formating of the file string in the > command). As that flag gives a lot of debugging output, and nagios > only displays the first line of output, I wouldn't expect it to show > the traffic values with this switch in there. What I would expect > nagios to be showing is something along the lines of "Using RRD File: / > var/www/html/cfg/$HOSTADRESS$_1.rrd" (I think that's the first line of > debugging output I put in there), with $HOSTADDRESS$ replaced with > the applicable value. Try without the -vv and see what happens. > > ----------------------------------------------- > > Israel Brewster > Computer Support Technician > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- > > > > > > > -- > > Marc > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Thu Feb 14 23:57:48 2008 From: marc at ena.com (Marc Powell) Date: Thu, 14 Feb 2008 16:57:48 -0600 Subject: check_rrdtraf In-Reply-To: <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> References: <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Pili Mu?oz Gargallo > Sent: Thursday, February 14, 2008 4:48 PM > To: Israel Brewster > Cc: Marc Powell; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_rrdtraf > > hi all, > thanks for the help. I have been trying several things that you told me. > I'll give more information. I am monitoring bandwith with MRTG and storing > datas in rrdtool format. > If i run command from command line is > > ./var/www/html/cfg/62.81.189.118_1.rrd And > /var/www/html/cfg/62.81.189.118_1.rrd are not the same. They start from, and end up at, completely differently places. That's a fundamental unix concept you need to understand. In the first, '.' starts the path in your current directory. If you are in '/usr/local/nagios', the full path would then be '/usr/local/nagios/var/www/html/cfg/62.81.189.118_1.rrd' In the second, '/' starts the path at the root directory. If you are in '/usr/local/nagios', the full path would then be '/var/www/html/cfg/62.81.189.118_1.rrd'. You want to use the latter as the path to check_rrdtraf-- ./check_rrdtraf -f /var/www/html/cfg/62.81.189.118_1.rrd -l B -c 3000000,3000000 -w 5000000,5000000 -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gwong at wong-consulting.com Fri Feb 15 00:21:37 2008 From: gwong at wong-consulting.com (Gregory Wong) Date: Thu, 14 Feb 2008 18:21:37 -0500 Subject: Email Notifications Message-ID: Hi Everyone, I am having a problems with email notifications. They are not being sent. Below is the command from the commands.cfg that is being executed. I changed /usr/bin/printf to /usr/bin/mail. Is this wrong? Thanks. define command{ command_name host-notify-by-email command_line /usr/bin/mail "%b" "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Fri Feb 15 00:36:11 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 14 Feb 2008 15:36:11 -0800 Subject: Email Notifications In-Reply-To: References: Message-ID: <20080214233611.GO7974@bakgwai.americas.hpqcorp.net> On Thu, 14 Feb 2008, Gregory Wong wrote: > Hi Everyone, > > I am having a problems with email notifications. They are not being sent. Below is the command from the commands.cfg that is being executed. I changed /usr/bin/printf to /usr/bin/mail. Is this wrong? > > Thanks. > > define command{ > command_name host-notify-by-email > command_line /usr/bin/mail "%b" "***** Nagios 2.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ > } Yes, that command is most definitely wrong, and will not work. In particular, the "| -s" portion is going to cause major breakage. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From israel at frontierflying.com Fri Feb 15 00:50:49 2008 From: israel at frontierflying.com (Israel Brewster) Date: Thu, 14 Feb 2008 14:50:49 -0900 Subject: check_rrdtraf In-Reply-To: <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> References: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> Message-ID: <2A32A258-BD76-43B9-90C2-6E495D0C2F99@frontierflying.com> On Feb 14, 2008, at 1:48 PM, Pili Mu?oz Gargallo wrote: > hi all, > thanks for the help. I have been trying several things that you told > me. > I'll give more information. I am monitoring bandwith with MRTG and > storing datas in rrdtool format. > If i run command from command line is > > ./check_rrdtraf -f ./var/www/html/cfg/62.81.189.118_1.rrd -l B -c > 3000000,3000000 -w 5000000,5000000 > > ./var/www/html/cfg/62.81.189.118_1.rrd does not exist. > > I am graphing with routers2.cgi and it receives values, and if i do : > > rrdtool fetch /var/www/html/cfg/62.81.189.118_1.rrd AVERAGE > . > . > . > > 1203025200: 1.3963531752e+05 8.2446477796e+04 > 1203025500: 1.3719540269e+05 1.0068914358e+05 > 1203025800: 1.3673972419e+05 1.0818787703e+05 > 1203026100: 1.3729848910e+05 1.1104579469e+05 > 1203026400: 1.3708077389e+05 1.1129381874e+05 > 1203026700: 1.3590177194e+05 1.1081213980e+05 > 1203027000: 3.1652589163e+05 2.5986265329e+05 > 1203027300: 3.8436060720e+05 3.1651678017e+05 > 1203027600: 1.4309192557e+05 1.1708320591e+05 > 1203027900: nan nan > 1203028200: nan nan > > i see it is storing values... > what is wrong? I had read check_rrdtraf help and i have included -l > B option to indicate that data are bits...but it is still not working As Marc pointed out in his response, having the ./var instead of /var in the path to the .rrd file is wrong. you want /var WITHOUT the period. Also, note that the -l switch only affects the display of the output. It is not needed in normal operation, unless you really want to see the output as bits rather than Kb, Mb, etc. The plugin will auto-choose the best option based on the data if you leave this switch out. But the main problem is the period before that slash. Remove it, and it should work. ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > I obtain now: > OK - Current BW in: bps Out: bps > > any more ideas? > Thank you again for your patience!!! > > Pili > > > 2008/2/13, Israel Brewster : > On Feb 13, 2008, at 6:34 AM, Marc Powell wrote: > >> -----Original Message----- > >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > >> users- > >> bounces at lists.sourceforge.net] On Behalf Of Pili Mu?oz Gargallo > >> Sent: Wednesday, February 13, 2008 7:23 AM > >> To: nagios-users at lists.sourceforge.net > >> Subject: [Nagios-users] check_rrdtraf > >> > >> Hi > >> i am trying to measure bandwith using check_rrd > > > > When asking about plugins that don't come with the distribution it's > > helpful to include where you obtained the plugin so everyone knows > > which check_rrd (or check_rrdtraf as the case may be) you're talking > > about. > > > That would be (partly) my plugin, obtained from Nagiosexchange.org, > most likely :) > > > >> i use the command: > >> $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l > >> b -vv - > >> c $ARG1$ -w $ARG2$ > > > > You meant $HOSTADDRESS$ here, right? > > > And did you really want that period before the /var ? > > > > > > >> and in the service i give it the next arguments: > >> !3000000,3000000!5000000,5000000 > >> > >> i have read about it several times, and it doesn't work how i > espect: > >> it returns me an OK value, but it doesn't tell me the present BW... > >> Am i missing something? > >> > > > > When you run the above command as the nagios user from the command > > line, does the first line of output match what you're seeing in the > > GUI? I expect it starts with the word 'Using'. What is the -vv flag > > causing to happen when the program is run (hint, run check_rrdtraf > -- > > help to find out)? > > > The -vv is an issue, although there could be a couple of others (see > previous comments about the formating of the file string in the > command). As that flag gives a lot of debugging output, and nagios > only displays the first line of output, I wouldn't expect it to show > the traffic values with this switch in there. What I would expect > nagios to be showing is something along the lines of "Using RRD > File: / > var/www/html/cfg/$HOSTADRESS$_1.rrd" (I think that's the first line of > debugging output I put in there), with $HOSTADDRESS$ replaced with > the applicable value. Try without the -vv and see what happens. > > ----------------------------------------------- > > Israel Brewster > Computer Support Technician > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- > > > > > > > -- > > Marc > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From twilson at buffalo.k12.mn.us Fri Feb 15 03:31:46 2008 From: twilson at buffalo.k12.mn.us (Tim Wilson) Date: Thu, 14 Feb 2008 20:31:46 -0600 Subject: Checking Cisco devices with performance data Message-ID: <47B4A5320200006100018819@staffmail.buffalo.k12.mn.us> Hi all, I've started experimenting with running check scripts against specific interfaces on our Cisco switches. I haven't yet found a check script that includes performance data. Eventually I'd like to use PNP (or something like it) to incorporate graphs into my nagios interface, and I'd like to monitor throughput on some of my switch and router interfaces. Is this possible? Any suggestions for suitable check scripts? I know I could use Cacti or something like it for the graphing, but I'd rather have it all in one interface. -Tim -- Tim Wilson, Director of Technology Buffalo-Hanover-Montrose Schools 214 1st Ave NE Buffalo, MN 55313 ph: 763.682.8740 fax: 763.682.8743 http://www.buffalo.k12.mn.us ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From liruiyou at ztgame.com Fri Feb 15 08:25:17 2008 From: liruiyou at ztgame.com (=?gb2312?B?wO7I8NPR?=) Date: Fri, 15 Feb 2008 15:25:17 +0800 Subject: hello Message-ID: <178DA97F04E94647B2737E5E5A1A998319336D9D30@MAILSERVER.ztgame.com> test ________________________________ *??* ???????????????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????????? *Notice* This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or any attachment or disclose the contents to any other person. If you have received this transmission in error, please notify the sender immediately and then delete all of it. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pitchfork at ederdrom.de Fri Feb 15 09:28:15 2008 From: pitchfork at ederdrom.de (Joerg Linge) Date: Fri, 15 Feb 2008 09:28:15 +0100 Subject: Checking Cisco devices with performance data In-Reply-To: <47B4A5320200006100018819@staffmail.buffalo.k12.mn.us> References: <47B4A5320200006100018819@staffmail.buffalo.k12.mn.us> Message-ID: <47B54D1F.8030608@ederdrom.de> Tim Wilson schrieb: > Hi all, > > I've started experimenting with running check scripts against specific interfaces on our Cisco switches. I haven't yet found a check script that includes performance data. Eventually I'd like to use PNP (or something like it) to incorporate graphs into my nagios interface, and I'd like to monitor throughput on some of my switch and router interfaces. Is this possible? Any suggestions for suitable check scripts? > > I know I could use Cacti or something like it for the graphing, but I'd rather have it all in one interface. Hi Tim, try check_snmp_int.pl -> http://nagios.manubulon.com/snmp_int.html Joerg ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ae at op5.se Fri Feb 15 09:52:35 2008 From: ae at op5.se (Andreas Ericsson) Date: Fri, 15 Feb 2008 09:52:35 +0100 Subject: distributed monitoring - slave server not that intelligent In-Reply-To: References: Message-ID: <47B552D3.1090704@op5.se> mark redding wrote: > Hi all, > > I currently have Nagios 2.10 installed on a couple of machines, one of > which is configured as a master and the other as a slave. > > I have a script running on the slave which rsync's up the configs from > the master and performs health checks of the master to see that it is > running (and if it is not then it enables service checks/notifications > on the slave until such time as it detects that the master is back up > and running). I also use nsca to pass passive checks to the slave to > ensure that it has up to date information about services. The slave > does not perform any active service checks, nor are notifications > enabled unless the master is down. > > I do however still have one problem and that is that the slave has no > way of knowing when we're ack'ed a critical, scheduled downtime, > disabled/enabled notfications/event handlers/checks for a service/host > on the master. What this means is that if we schedule downtime on a > host, then the master goes down, the slave starts bitching about the > host that is down (because it does not know that it's in downtime). A > similar problem occurs if we disable an event handler on the master, > because unless the slave also knows to disable the event handler it > will fire it (regardless of whether or not it is active) as soon as > the passive check result returns a critical. > > At present I am getting round this by tailing the nagios log file > through a perl script that looks for specific 'EXTERNAL COMMAND' > entries and then flushes those through to the slave by ssh'ing to the > slave and writing the command string to the nagios pipe file on the > slave. > > Is there a better way of doing this ? > You might get lucky using the attached NEB-module. It's not well documented, and it's not very well tested. It will do what you're after though. Contact me off-list if you run into problems. I've been looking for someone to test this for quite some time now, so I'll be happy to help. It's written to make the two servers loadbalanced, so the slave and the master will help each other out doing checks and then transmit them to one another. External commands are also copied from one to the other, so scheduled/cancelled downtime etc will instantly show up on both servers as soon as its parsed in one. If you don't want the host/service check syncing you'll have to either get clever with the config or manually hack that out of the module. Like I said; Feel free to contact me off-list if you're having any problems with it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 -------------- next part -------------- A non-text attachment was scrubbed... Name: mrm-0.1.tar.gz Type: application/x-gzip Size: 27970 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Fri Feb 15 10:42:15 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 15 Feb 2008 04:42:15 -0500 Subject: Notification Woes In-Reply-To: <011f01c86f47$2f15d420$8d417c60$@com> References: <011f01c86f47$2f15d420$8d417c60$@com> Message-ID: <47B55E77.9090301@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/02/08 03:21 PM, Larry Low wrote: > Service X actively checked every 60 minutes. > Service X passively monitored through SNMP Traps. > > Service X receives CRITICAL passively. E-mail to contact A. Modify Service > X to actively poll every 5 minutes till recovery. Email B after 3rd > CRITICAL (10-15 minute delay). > > I can't use retry_interval because I want contact A to be notified all the > time and retry_interval is only used on SOFT states. > > I was thinking of executing a change in polling interval with an event > handler. > > Any insight? > > I'm also curious on how flap alerts are handled under serviceescalation. I > am assuming they are not. I'm not quite sure what you're trying, but a simpler solution might be to have two services: 1 volatile service (passive, will notify on every trap received) 1 active service (will have whichever max_check_attempt and retry_interval you want, won't be affected by passive checks) If you need escalations on top of that you can define some. Otherwise you're pretty much on your own. It's very difficult to remotely understand every details of the logic you want (considering there will be corner cases, etc). So basically understand how nagios will react to each setting, or use something simpler as above ;) Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHtV536dZ+Kt5BchYRAkZDAKD8Fi8FFAw/a9r/bnqNkituvaauvgCdH8Xm 1eFuhM38mouu96GAmLc87Ck= =Y/Il -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mugnoz.pilar at gmail.com Fri Feb 15 12:11:35 2008 From: mugnoz.pilar at gmail.com (=?ISO-8859-1?Q?Pili_Mu=F1oz_Gargallo?=) Date: Fri, 15 Feb 2008 12:11:35 +0100 Subject: check_rrdtraf In-Reply-To: <2A32A258-BD76-43B9-90C2-6E495D0C2F99@frontierflying.com> References: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> <2A32A258-BD76-43B9-90C2-6E495D0C2F99@frontierflying.com> Message-ID: <53317ec10802150311l504c1fbdx82dec8b9a3204ff4@mail.gmail.com> Of course yes, PEBKAC... i have a new issue: if i execute the same command from command line i obtain: ./check_rrdtraf -f /var/www/html/cfg/62.81.189.118_1.rrd -c 5000000,5000000 -w 3000000,3000000 ./check_rrdtraf: line 248: [: 8,000000: integer expression expected ./check_rrdtraf: line 251: [: 8,000000: integer expression expected ./check_rrdtraf: line 254: [: 8,000000: integer expression expected ./check_rrdtraf: line 263: [: 32,000000: integer expression expected ./check_rrdtraf: line 266: [: 32,000000: integer expression expected ./check_rrdtraf: line 269: [: 32,000000: integer expression expected (standard_in) 1: parse error (standard_in) 1: parse error (standard_in) 1: parse error (standard_in) 1: parse error OK - Current BW in: Gbps Out: Gbps(standard_in) 1: parse error (standard_in) 1: parse error |in=Gb/s;3000000;5000000 (standard_in) 1: parse error (standard_in) 1: parse error out=Gb/s;3000000;5000000 so Is there another problem or it is just me? Thanks again, and forgive me for these questions: Like i used to say, i am a student and i am newbie in linux, LAMP servers, Nagios, MRTG, RRDTool..... and everything you imagine.. Cheers Pili 2008/2/15, Israel Brewster : > > > > > On Feb 14, 2008, at 1:48 PM, Pili Mu?oz Gargallo wrote: > > hi all, > thanks for the help. I have been trying several things that you told me. > I'll give more information. I am monitoring bandwith with MRTG and storing > datas in rrdtool format. > If i run command from command line is > > ./check_rrdtraf -f ./var/www/html/cfg/62.81.189.118_1.rrd -l B -c > 3000000,3000000 -w 5000000,5000000 > > ./var/www/html/cfg/62.81.189.118_1.rrd does not exist. > > I am graphing with routers2.cgi and it receives values, and if i do : > > rrdtool fetch /var/www/html/cfg/62.81.189.118_1.rrd AVERAGE > . > . > . > > 1203025200: 1.3963531752e+05 8.2446477796e+04 > 1203025500: 1.3719540269e+05 1.0068914358e+05 > 1203025800: 1.3673972419e+05 1.0818787703e+05 > 1203026100: 1.3729848910e+05 1.1104579469e+05 > 1203026400: 1.3708077389e+05 1.1129381874e+05 > 1203026700: 1.3590177194e+05 1.1081213980e+05 > 1203027000: 3.1652589163e+05 2.5986265329e+05 > 1203027300: 3.8436060720e+05 3.1651678017e+05 > 1203027600: 1.4309192557e+05 1.1708320591e+05 > 1203027900: nan nan > 1203028200: nan nan > > i see it is storing values... > what is wrong? I had read check_rrdtraf help and i have included -l B > option to indicate that data are bits...but it is still not working > > > As Marc pointed out in his response, having the ./var instead of /var in > the path to the .rrd file is wrong. you want /var WITHOUT the period. Also, > note that the -l switch only affects the display of the output. It is not > needed in normal operation, unless you really want to see the output as bits > rather than Kb, Mb, etc. The plugin will auto-choose the best option based > on the data if you leave this switch out. But the main problem is the period > before that slash. Remove it, and it should work. > > ----------------------------------------------- > Israel Brewster > Computer Support Technician > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- > > > I obtain now: > OK - Current BW in: bps Out: bps > > any more ideas? > Thank you again for your patience!!! > > Pili > > > 2008/2/13, Israel Brewster : > > > > On Feb 13, 2008, at 6:34 AM, Marc Powell wrote: > > >> -----Original Message----- > > >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > > >> users- > > >> bounces at lists.sourceforge.net] On Behalf Of Pili Mu?oz Gargallo > > >> Sent: Wednesday, February 13, 2008 7:23 AM > > >> To: nagios-users at lists.sourceforge.net > > >> Subject: [Nagios-users] check_rrdtraf > > >> > > >> Hi > > >> i am trying to measure bandwith using check_rrd > > > > > > When asking about plugins that don't come with the distribution it's > > > helpful to include where you obtained the plugin so everyone knows > > > which check_rrd (or check_rrdtraf as the case may be) you're talking > > > about. > > > > > > That would be (partly) my plugin, obtained from Nagiosexchange.org, > > most likely :) > > > > > > >> i use the command: > > >> $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l > > >> b -vv - > > >> c $ARG1$ -w $ARG2$ > > > > > > You meant $HOSTADDRESS$ here, right? > > > > > > And did you really want that period before the /var ? > > > > > > > > > > >> and in the service i give it the next arguments: > > >> !3000000,3000000!5000000,5000000 > > >> > > >> i have read about it several times, and it doesn't work how i espect: > > >> it returns me an OK value, but it doesn't tell me the present BW... > > >> Am i missing something? > > >> > > > > > > When you run the above command as the nagios user from the command > > > line, does the first line of output match what you're seeing in the > > > GUI? I expect it starts with the word 'Using'. What is the -vv flag > > > causing to happen when the program is run (hint, run check_rrdtraf -- > > > help to find out)? > > > > > > The -vv is an issue, although there could be a couple of others (see > > previous comments about the formating of the file string in the > > command). As that flag gives a lot of debugging output, and nagios > > only displays the first line of output, I wouldn't expect it to show > > the traffic values with this switch in there. What I would expect > > nagios to be showing is something along the lines of "Using RRD File: / > > var/www/html/cfg/$HOSTADRESS$_1.rrd" (I think that's the first line of > > debugging output I put in there), with $HOSTADDRESS$ replaced with > > the applicable value. Try without the -vv and see what happens. > > > > ----------------------------------------------- > > > > Israel Brewster > > Computer Support Technician > > Frontier Flying Service Inc. > > 5245 Airport Industrial Rd > > Fairbanks, AK 99709 > > (907) 450-7250 x293 > > ----------------------------------------------- > > > > > > > > > > > -- > > > Marc > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at 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/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mkellermann at net-com.de Fri Feb 15 12:15:48 2008 From: mkellermann at net-com.de (Matthias Kellermann) Date: Fri, 15 Feb 2008 12:15:48 +0100 Subject: Monitor Gentoo portage Message-ID: <47B57464.8090703@net-com.de> Hi list, does anyone know a Nagios plugin for monitoring Gentoo's portage for updates? A quick google search did not give any results. Thanks. Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Fri Feb 15 12:20:21 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 15 Feb 2008 11:20:21 +0000 Subject: Monitor Gentoo portage In-Reply-To: <47B57464.8090703@net-com.de> References: <47B57464.8090703@net-com.de> Message-ID: <47B57575.3010400@googlemail.com> Matthias Kellermann wrote: > Hi list, > > does anyone know a Nagios plugin for monitoring Gentoo's portage for > updates? A quick google search did not give any results That sounds like a good idea and one that I am quite interested in since I run a lot of gentoo servers. Could you please elaborate on what exactly you want this plugin to do, perhaps I can write it... -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mkellermann at net-com.de Fri Feb 15 12:37:56 2008 From: mkellermann at net-com.de (Matthias Kellermann) Date: Fri, 15 Feb 2008 12:37:56 +0100 Subject: Monitor Gentoo portage In-Reply-To: <47B57575.3010400@googlemail.com> References: <47B57464.8090703@net-com.de> <47B57575.3010400@googlemail.com> Message-ID: <47B57994.70106@net-com.de> Hari Sekhon schrieb: > Matthias Kellermann wrote: >> Hi list, >> >> does anyone know a Nagios plugin for monitoring Gentoo's portage for >> updates? A quick google search did not give any results > That sounds like a good idea and one that I am quite interested in since > I run a lot of gentoo servers. > > Could you please elaborate on what exactly you want this plugin to do, > perhaps I can write it... > > -h The plugin should check the output of "emerge -upD --newuse world" for updates. It's been a while since I've used Gentoo on a daily basis so I'm not sure if the output of the above command shows any difference between critical and non-critical updates. I wrote a similar plugin for FreeBSD where I use portaudit to see if there are any critical packages on the system. This way I can divide between critical packages and normal updates and give the right state back to Nagios (1 = non-critical, yellow / 2 = critical, red). Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Fri Feb 15 12:54:53 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 15 Feb 2008 11:54:53 +0000 Subject: Monitor Gentoo portage In-Reply-To: <47B57994.70106@net-com.de> References: <47B57464.8090703@net-com.de> <47B57575.3010400@googlemail.com> <47B57994.70106@net-com.de> Message-ID: <47B57D8D.6080707@googlemail.com> Matthias Kellermann wrote: > Hari Sekhon schrieb: >> Matthias Kellermann wrote: >>> Hi list, >>> >>> does anyone know a Nagios plugin for monitoring Gentoo's portage for >>> updates? A quick google search did not give any results >> That sounds like a good idea and one that I am quite interested in >> since I run a lot of gentoo servers. >> >> Could you please elaborate on what exactly you want this plugin to >> do, perhaps I can write it... >> >> -h > > The plugin should check the output of "emerge -upD --newuse world" for > updates. It's been a while since I've used Gentoo on a daily basis so > I'm not sure if the output of the above command shows any difference > between critical and non-critical updates. > > I wrote a similar plugin for FreeBSD where I use portaudit to see if > there are any critical packages on the system. This way I can divide > between critical packages and normal updates and give the right state > back to Nagios (1 = non-critical, yellow / 2 = critical, red). When you say critical and non-critical updates do you mean the severity of the security package announcements? Ie. whether is a remote exploitable service and might be considered Critical or whether it takes some previous user account to elevate privilege and therefore is not as severe and only "Important" or "Warning" in Nagios. I take it that you do not mean any old package that has updates or the thing would be permanently triggered? I've just had a look at this and it doesn't look like it distinguishes between security upgrades deemed Critical/Non-Critical. So I guess it would be an all-or-nothing Critical/OK result. Any other ideas on this are welcome. I'll have a go at writing this since I think this is a neat idea and I have a lot of gentoo to test it on here. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madecto at sangria.org.il Fri Feb 15 13:07:29 2008 From: madecto at sangria.org.il (Giulio Botto) Date: Fri, 15 Feb 2008 13:07:29 +0100 Subject: NSCA problem Message-ID: <47B58081.8070901@sangria.org.il> Hi all, We have a distributed Nagios network that monitors about a hundred hosts and the relative services on our customer's networks. Most of them have Nagios servers which send check results using NSCA. On the master server Nagios 2.10 collects data through the NSCA daemon. As services and hosts increas in number so do checks and it appears NSCA daemon is having some problems. We have seen up to several hundred daemons hang on the server and though the documentation says it may be run with the --single option in order to have one single daemon handle all connections it appears it only accepts the first check result even though tcpdump shows it's talking with the clients every time they send something. Any help will be greatly appreciated. Regards, -- Giulio Botto -- madecto at sangria.org.il PGP fingerprint = 1979 A78A 8F82 DB5E 55E9 D6D6 6AB6 0BA9 FDB7 6789 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 15 14:33:22 2008 From: marc at ena.com (Marc Powell) Date: Fri, 15 Feb 2008 07:33:22 -0600 Subject: NSCA problem In-Reply-To: <47B58081.8070901@sangria.org.il> References: <47B58081.8070901@sangria.org.il> Message-ID: <4CB408D1-B61F-4642-8B9F-F2157F3644DA@ena.com> On Feb 15, 2008, at 6:07 AM, Giulio Botto wrote: > Hi all, > > We have a distributed Nagios network that monitors about a hundred > hosts > and the relative services on our customer's networks. > Most of them have Nagios servers which send check results using NSCA. > > On the master server Nagios 2.10 collects data through the NSCA > daemon. > As services and hosts increas in number so do checks and it appears > NSCA daemon is having some problems. > > We have seen up to several hundred daemons hang on the server and Please post the output of /path/to/nagios -s /path/to/nagios.cfg. You'll probably also want to adjust the value of command_check_interval in nagios.cfg if you haven't changed it from the default of 1 minute. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cazzeml at gmail.com Fri Feb 15 14:38:19 2008 From: cazzeml at gmail.com (Pierre Cassimans) Date: Fri, 15 Feb 2008 14:38:19 +0100 Subject: Monitor Gentoo portage In-Reply-To: <47B57D8D.6080707@googlemail.com> References: <47B57464.8090703@net-com.de> <47B57575.3010400@googlemail.com> <47B57994.70106@net-com.de> <47B57D8D.6080707@googlemail.com> Message-ID: You could use the output of glsa-check. That are the packages that needs to be updated for security reasons, so you can see them as critical. Nice project On Fri, Feb 15, 2008 at 12:54 PM, Hari Sekhon wrote: > Matthias Kellermann wrote: > > Hari Sekhon schrieb: > >> Matthias Kellermann wrote: > >>> Hi list, > >>> > >>> does anyone know a Nagios plugin for monitoring Gentoo's portage for > >>> updates? A quick google search did not give any results > >> That sounds like a good idea and one that I am quite interested in > >> since I run a lot of gentoo servers. > >> > >> Could you please elaborate on what exactly you want this plugin to > >> do, perhaps I can write it... > >> > >> -h > > > > The plugin should check the output of "emerge -upD --newuse world" for > > updates. It's been a while since I've used Gentoo on a daily basis so > > I'm not sure if the output of the above command shows any difference > > between critical and non-critical updates. > > > > I wrote a similar plugin for FreeBSD where I use portaudit to see if > > there are any critical packages on the system. This way I can divide > > between critical packages and normal updates and give the right state > > back to Nagios (1 = non-critical, yellow / 2 = critical, red). > When you say critical and non-critical updates do you mean the severity > of the security package announcements? Ie. whether is a remote > exploitable service and might be considered Critical or whether it takes > some previous user account to elevate privilege and therefore is not as > severe and only "Important" or "Warning" in Nagios. > > I take it that you do not mean any old package that has updates or the > thing would be permanently triggered? > > I've just had a look at this and it doesn't look like it distinguishes > between security upgrades deemed Critical/Non-Critical. So I guess it > would be an all-or-nothing Critical/OK result. > > Any other ideas on this are welcome. > > I'll have a go at writing this since I think this is a neat idea and I > have a lot of gentoo to test it on here. > > -h > > -- > Hari Sekhon > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Fri Feb 15 14:40:58 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 15 Feb 2008 13:40:58 +0000 Subject: Monitor Gentoo portage In-Reply-To: <47B5835B.9090704@net-com.de> References: <47B57464.8090703@net-com.de> <47B57575.3010400@googlemail.com> <47B57994.70106@net-com.de> <47B57D8D.6080707@googlemail.com> <47B5835B.9090704@net-com.de> Message-ID: <47B5966A.8080001@googlemail.com> Matthias Kellermann wrote: > Hari Sekhon schrieb: >> Matthias Kellermann wrote: >>> Hari Sekhon schrieb: >>>> Matthias Kellermann wrote: >>>>> Hi list, >>>>> >>>>> does anyone know a Nagios plugin for monitoring Gentoo's portage >>>>> for updates? A quick google search did not give any results >>>> That sounds like a good idea and one that I am quite interested in >>>> since I run a lot of gentoo servers. >>>> >>>> Could you please elaborate on what exactly you want this plugin to >>>> do, perhaps I can write it... >>>> >>>> -h >>> >>> The plugin should check the output of "emerge -upD --newuse world" >>> for updates. It's been a while since I've used Gentoo on a daily >>> basis so I'm not sure if the output of the above command shows any >>> difference between critical and non-critical updates. >>> >>> I wrote a similar plugin for FreeBSD where I use portaudit to see if >>> there are any critical packages on the system. This way I can divide >>> between critical packages and normal updates and give the right >>> state back to Nagios (1 = non-critical, yellow / 2 = critical, red). >> When you say critical and non-critical updates do you mean the >> severity of the security package announcements? Ie. whether is a >> remote exploitable service and might be considered Critical or >> whether it takes some previous user account to elevate privilege and >> therefore is not as severe and only "Important" or "Warning" in Nagios. >> >> I take it that you do not mean any old package that has updates or >> the thing would be permanently triggered? >> >> I've just had a look at this and it doesn't look like it >> distinguishes between security upgrades deemed Critical/Non-Critical. >> So I guess it would be an all-or-nothing Critical/OK result. >> >> Any other ideas on this are welcome. >> >> I'll have a go at writing this since I think this is a neat idea and >> I have a lot of gentoo to test it on here. >> >> -h > > critical update: fixes a security hole (nagios state: critical) > non-critical update: just a new version with new features etc. (nagios > state: warning) > > Thanks for your help and if you need any help for this plugin don't > hesitate to ask me. Ok thanks. Just out of curiosity, why would you want to know if there are new version of a package available? There may be so many packages on a server, that there is always some update. Do you intend to continuously update the system for things which have no benefit? eg. on a relatively light server with 174 packages, the odds of a newer version of some small irrelevent program having gotten an update for some feature you don't even know about is quite high I think. Perhaps that kind of thing is better left for a switch option as I think most people really wouldn't want to be bothered about that. Do you, for example, update all packages on your gentoo servers all the time? I would think that this would destabilize your server by constantly changing things...? What do you think? Everybody else, please let us know your thoughts too. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Fri Feb 15 14:43:21 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 15 Feb 2008 13:43:21 +0000 Subject: Monitor Gentoo portage In-Reply-To: References: <47B57464.8090703@net-com.de> <47B57575.3010400@googlemail.com> <47B57994.70106@net-com.de> <47B57D8D.6080707@googlemail.com> Message-ID: <47B596F9.1050707@googlemail.com> Pierre Cassimans wrote: > You could use the output of glsa-check. That are the packages that > needs to be updated for security reasons, so you can see them as critical. > > Nice project > > On Fri, Feb 15, 2008 at 12:54 PM, Hari Sekhon > wrote: > > Matthias Kellermann wrote: > > Hari Sekhon schrieb: > >> Matthias Kellermann wrote: > >>> Hi list, > >>> > >>> does anyone know a Nagios plugin for monitoring Gentoo's > portage for > >>> updates? A quick google search did not give any results > >> That sounds like a good idea and one that I am quite interested in > >> since I run a lot of gentoo servers. > >> > >> Could you please elaborate on what exactly you want this plugin to > >> do, perhaps I can write it... > >> > >> -h > > > > The plugin should check the output of "emerge -upD --newuse > world" for > > updates. It's been a while since I've used Gentoo on a daily > basis so > > I'm not sure if the output of the above command shows any difference > > between critical and non-critical updates. > > > > I wrote a similar plugin for FreeBSD where I use portaudit to see if > > there are any critical packages on the system. This way I can divide > > between critical packages and normal updates and give the right > state > > back to Nagios (1 = non-critical, yellow / 2 = critical, red). > When you say critical and non-critical updates do you mean the > severity > of the security package announcements? Ie. whether is a remote > exploitable service and might be considered Critical or whether it > takes > some previous user account to elevate privilege and therefore is > not as > severe and only "Important" or "Warning" in Nagios. > > I take it that you do not mean any old package that has updates or the > thing would be permanently triggered? > > I've just had a look at this and it doesn't look like it distinguishes > between security upgrades deemed Critical/Non-Critical. So I guess it > would be an all-or-nothing Critical/OK result. > > Any other ideas on this are welcome. > > I'll have a go at writing this since I think this is a neat idea and I > have a lot of gentoo to test it on here. > > -h > > -- > Hari Sekhon > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > Yes I already use this for our internal package alerts and am writing the plugin around this. It does not tell you about non-security related upgrades available though, so you would need to go back to emerge as well if you wanted that feature (although I'm not sure how useful it is since on my systems there are always packages that will need upgrading as mentioned, you'd be running emerge every single day and risk breaking things that currently work) -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mkellermann at net-com.de Fri Feb 15 15:12:05 2008 From: mkellermann at net-com.de (Matthias Kellermann) Date: Fri, 15 Feb 2008 15:12:05 +0100 Subject: Monitor Gentoo portage In-Reply-To: <47B5966A.8080001@googlemail.com> References: <47B57464.8090703@net-com.de> <47B57575.3010400@googlemail.com> <47B57994.70106@net-com.de> <47B57D8D.6080707@googlemail.com> <47B5835B.9090704@net-com.de> <47B5966A.8080001@googlemail.com> Message-ID: <47B59DB5.4000404@net-com.de> Hari Sekhon schrieb: > Matthias Kellermann wrote: >> critical update: fixes a security hole (nagios state: critical) >> non-critical update: just a new version with new features etc. (nagios >> state: warning) >> >> Thanks for your help and if you need any help for this plugin don't >> hesitate to ask me. > Ok thanks. > > Just out of curiosity, why would you want to know if there are new > version of a package available? There may be so many packages on a > server, that there is always some update. Do you intend to continuously > update the system for things which have no benefit? It's kinda interesting to know which packages are new. > eg. on a relatively light server with 174 packages, the odds of a newer > version of some small irrelevent program having gotten an update for > some feature you don't even know about is quite high I think. > > Perhaps that kind of thing is better left for a switch option as I think > most people really wouldn't want to be bothered about that. You are right - a switch would be the best thing. For most people only the security flaws are interesting. > Do you, for example, update all packages on your gentoo servers all the > time? I would think that this would destabilize your server by > constantly changing things...? At the moment I don't have that much Gentoo machines out there. Most are running FreeBSD oder Debian, there aren't lots of updates. > What do you think? I think the switch is the best solution to get everyone happy :) Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madecto at sangria.org.il Fri Feb 15 15:16:40 2008 From: madecto at sangria.org.il (Giulio Botto) Date: Fri, 15 Feb 2008 15:16:40 +0100 Subject: NSCA problem In-Reply-To: <4CB408D1-B61F-4642-8B9F-F2157F3644DA@ena.com> References: <47B58081.8070901@sangria.org.il> <4CB408D1-B61F-4642-8B9F-F2157F3644DA@ena.com> Message-ID: <47B59EC8.7060609@sangria.org.il> Marc Powell wrote: > On Feb 15, 2008, at 6:07 AM, Giulio Botto wrote: > >> Hi all, >> >> We have a distributed Nagios network that monitors about a hundred >> hosts >> and the relative services on our customer's networks. >> Most of them have Nagios servers which send check results using NSCA. >> >> On the master server Nagios 2.10 collects data through the NSCA >> daemon. >> As services and hosts increas in number so do checks and it appears >> NSCA daemon is having some problems. >> >> We have seen up to several hundred daemons hang on the server and > > Please post the output of /path/to/nagios -s /path/to/nagios.cfg. > You'll probably also want to adjust the value of > command_check_interval in nagios.cfg if you haven't changed it from > the default of 1 minute. In the meantime I realized the central Nagios is still a 2.7 while NSCA is 2.7.2. At the moment upgrading this specific Nagios is not an option. command_check_interval=-1 -------------------------------------------------------------------- # nagios -s /etc/nagios/nagios.cfg Nagios 2.7 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 01-19-2007 License: GPL Projected scheduling information for host and service checks is listed below. This information assumes that you are going to start running Nagios with your current config files. HOST SCHEDULING INFORMATION --------------------------- Total hosts: 105 Total scheduled hosts: 0 Host inter-check delay method: SMART Average host check interval: 0.00 sec Host inter-check delay: 0.00 sec Max host check spread: 30 min First scheduled check: N/A Last scheduled check: N/A SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 398 Total scheduled services: 124 Service inter-check delay method: SMART Average service check interval: 224.03 sec Inter-check delay: 1.81 sec Interleave factor method: SMART Average services per host: 3.79 Service interleave factor: 2 Max service check spread: 30 min First scheduled check: Fri Feb 15 15:00:18 2008 Last scheduled check: Fri Feb 15 15:04:00 2008 CHECK PROCESSING INFORMATION ---------------------------- Service check reaper interval: 10 sec Max concurrent service checks: Unlimited PERFORMANCE SUGGESTIONS ----------------------- I have no suggestions - things look okay. -- Giulio Botto -- madecto at sangria.org.il PGP fingerprint = 1979 A78A 8F82 DB5E 55E9 D6D6 6AB6 0BA9 FDB7 6789 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mwlucas at blackhelicopters.org Fri Feb 15 15:32:23 2008 From: mwlucas at blackhelicopters.org (Michael W. Lucas) Date: Fri, 15 Feb 2008 09:32:23 -0500 Subject: Changing contacts for the same service Message-ID: <20080215143223.GA34672@bewilderbeast.blackhelicopters.org> Hi, I'm running a medium-sized Nagios setup (250 hosts, 700 services). Most of the hardware and software is configured identically, so monitoring is fairly straightforward. The one complication is mapping Nagios alerts onto people. I think I must be doing it the hard way, and I can't find a solution in the archives or docs. Summary: I want a global setting that says "Both hosts and service alerts for system X go to this one contact group." We have different project teams to manage different groups of servers. Team A should only get the alerts for team A's hosts and services, team B should only get the alerts for team B's hosts and services, and so on. The teams, of course, are defined as contact groups. Each server has an associated contact group, that's easy. Services, however... I have defined services such as "Team A C Drive Disk Space" listing Team A as the contact group, then "Team B C Drive Disk Space" with team B as the contact group, and so on. Both services have the same check command. This has resulted in a massive proliferation of services. Surely there's some way to say that "Both host and service alerts for system X go to this contact group"? Thanks, ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Now Shipping: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From j.gabes at lectra.com Fri Feb 15 15:45:21 2008 From: j.gabes at lectra.com (Gabes Jean) Date: Fri, 15 Feb 2008 15:45:21 +0100 Subject: Changing contacts for the same service In-Reply-To: <20080215143223.GA34672@bewilderbeast.blackhelicopters.org> References: <20080215143223.GA34672@bewilderbeast.blackhelicopters.org> Message-ID: <73BD1CEC958A564DB6771C5E97339F280649FB80@SMAIL.eu.lectra.com> Yes, You can use the heritage for contacts and contacts groups in nagios3. If you don't enter contacts for a service, it use the contacts of the host. It's quite usefull. Jean -----Message d'origine----- De?: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de Michael W. Lucas Envoy??: vendredi 15 f?vrier 2008 15:32 ??: nagios-users at lists.sourceforge.net Objet?: [Nagios-users] Changing contacts for the same service Hi, I'm running a medium-sized Nagios setup (250 hosts, 700 services). Most of the hardware and software is configured identically, so monitoring is fairly straightforward. The one complication is mapping Nagios alerts onto people. I think I must be doing it the hard way, and I can't find a solution in the archives or docs. Summary: I want a global setting that says "Both hosts and service alerts for system X go to this one contact group." We have different project teams to manage different groups of servers. Team A should only get the alerts for team A's hosts and services, team B should only get the alerts for team B's hosts and services, and so on. The teams, of course, are defined as contact groups. Each server has an associated contact group, that's easy. Services, however... I have defined services such as "Team A C Drive Disk Space" listing Team A as the contact group, then "Team B C Drive Disk Space" with team B as the contact group, and so on. Both services have the same check command. This has resulted in a massive proliferation of services. Surely there's some way to say that "Both host and service alerts for system X go to this contact group"? Thanks, ==ml -- Michael W. Lucas mwlucas at BlackHelicopters.org, mwlucas at FreeBSD.org http://www.BlackHelicopters.org/~mwlucas/ Now Shipping: "Absolute FreeBSD" -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies "for security reasons." ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 15 16:18:39 2008 From: marc at ena.com (Marc Powell) Date: Fri, 15 Feb 2008 09:18:39 -0600 Subject: NSCA problem In-Reply-To: <47B59B4C.8000205@sangria.org.il> References: <47B59B4C.8000205@sangria.org.il> Message-ID: Please always respond on-list so that others can help and learn from your experience. > -----Original Message----- > From: Giulio Botto [mailto:madecto at sangria.org.il] > Sent: Friday, February 15, 2008 8:02 AM > To: Marc Powell > Subject: Re: [Nagios-users] NSCA problem > > > In the meantime I realized the central Nagios is still a 2.7 while > NSCA is 2.7.2. At the moment upgrading this specific Nagios is not > an option. It doesn't matter. They're not tied in that manner. > command_check_interval=-1 Did you just change this or is this what it was? > -------------------------------------------------------------------- > # nagios -s /etc/nagios/nagios.cfg > > Nagios 2.7 > Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) > Last Modified: 01-19-2007 > License: GPL > > Projected scheduling information for host and service > checks is listed below. This information assumes that > you are going to start running Nagios with your current > config files. > > HOST SCHEDULING INFORMATION > --------------------------- > Total hosts: 105 > Total scheduled hosts: 0 > Host inter-check delay method: SMART > Average host check interval: 0.00 sec > Host inter-check delay: 0.00 sec > Max host check spread: 30 min > First scheduled check: N/A > Last scheduled check: N/A > > > SERVICE SCHEDULING INFORMATION > ------------------------------- > Total services: 398 > Total scheduled services: 124 > Service inter-check delay method: SMART > Average service check interval: 224.03 sec > Inter-check delay: 1.81 sec > Interleave factor method: SMART > Average services per host: 3.79 > Service interleave factor: 2 > Max service check spread: 30 min > First scheduled check: Fri Feb 15 15:00:18 2008 > Last scheduled check: Fri Feb 15 15:04:00 2008 > > > CHECK PROCESSING INFORMATION > ---------------------------- > Service check reaper interval: 10 sec > Max concurrent service checks: Unlimited > > > PERFORMANCE SUGGESTIONS > ----------------------- > I have no suggestions - things look okay. This is all good. You don't have a lot of services at all. How frequently are you sending results? On my own systems I'm easily processing at least 13 results/sec. I know that there are others doing more but there is some point at which nagios can't keep up. Are there other problems with the machine? Disk or memory issues? Do you have embedded perl or performance data processing enabled? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madecto at sangria.org.il Fri Feb 15 16:53:52 2008 From: madecto at sangria.org.il (Giulio Botto) Date: Fri, 15 Feb 2008 16:53:52 +0100 Subject: NSCA problem In-Reply-To: References: Message-ID: <47B5B590.5010900@sangria.org.il> Marc Powell wrote: > Please always respond on-list so that others can help and learn from > your experience. Yep, sorry: that's why I later forwarded my reply to the list. >> -----Original Message----- >> From: Giulio Botto [mailto:madecto at sangria.org.il] >> Sent: Friday, February 15, 2008 8:02 AM >> To: Marc Powell >> Subject: Re: [Nagios-users] NSCA problem >> > >> In the meantime I realized the central Nagios is still a 2.7 while >> NSCA is 2.7.2. At the moment upgrading this specific Nagios is not >> an option. > > It doesn't matter. They're not tied in that manner. > >> command_check_interval=-1 > > Did you just change this or is this what it was? I changed this some months ago, at least 4 I'd say. [...] >> PERFORMANCE SUGGESTIONS >> ----------------------- >> I have no suggestions - things look okay. > > This is all good. You don't have a lot of services at all. How > frequently are you sending results? On my own systems I'm easily > processing at least 13 results/sec. I know that there are others doing > more but there is some point at which nagios can't keep up. The problem we have seems to lay in the number of nsca daemons on the master machine. Also I do not understand why running nsca with the --single option only processes the first message it receives and discards the rest. > Are there other problems with the machine? Disk or memory issues? Do you > have embedded perl or performance data processing enabled? CPU and RAM seem ok up until something goes badly wrong and nagios starts forking and allocating more memory, then swap. We have embedded perl and no data processing. -- Giulio Botto -- madecto at sangria.org.il PGP fingerprint = 1979 A78A 8F82 DB5E 55E9 D6D6 6AB6 0BA9 FDB7 6789 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 15 17:17:02 2008 From: marc at ena.com (Marc Powell) Date: Fri, 15 Feb 2008 10:17:02 -0600 Subject: NSCA problem In-Reply-To: <47B5B590.5010900@sangria.org.il> References: <47B5B590.5010900@sangria.org.il> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Giulio Botto > Sent: Friday, February 15, 2008 9:54 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NSCA problem > > Marc Powell wrote: > > This is all good. You don't have a lot of services at all. How > > frequently are you sending results? On my own systems I'm easily > > processing at least 13 results/sec. I know that there are others doing > > more but there is some point at which nagios can't keep up. > > The problem we have seems to lay in the number of nsca daemons on > the master machine. The number would increase if the NSCA daemons were unable to write to the external command pipe. That could be because the results are coming in faster than nagios is processing them. The command pipe is only going to hold about 4K of data then block until it's cleared. > Also I do not understand why running nsca with the --single option > only processes the first message it receives and discards the rest. Nor do I. I run with -s and haven't experienced that problem. Running nsca-2.1 here. Have you tried putting nsca into debug mode and monitoring that? Running strace on the process would be informative as well. > > Are there other problems with the machine? Disk or memory issues? Do you > > have embedded perl or performance data processing enabled? > > CPU and RAM seem ok up until something goes badly wrong and nagios starts > forking and allocating more memory, then swap. > We have embedded perl and no data processing. I did have a similar problem years ago on a machine with a failing disk. The failures seemed harmless but ended up causing regular backlogs of NSCA processes as you indicate. Fixing the disk problem resolved the issue. That's why I asked. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madecto at sangria.org.il Fri Feb 15 18:55:28 2008 From: madecto at sangria.org.il (Giulio Botto) Date: Fri, 15 Feb 2008 18:55:28 +0100 Subject: NSCA problem In-Reply-To: References: Message-ID: <47B5D210.7020101@sangria.org.il> Marc Powell wrote: > >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- >> bounces at lists.sourceforge.net] On Behalf Of Giulio Botto >> Sent: Friday, February 15, 2008 9:54 AM >> To: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] NSCA problem >> >> Marc Powell wrote: > >>> This is all good. You don't have a lot of services at all. How >>> frequently are you sending results? On my own systems I'm easily >>> processing at least 13 results/sec. I know that there are others > doing >>> more but there is some point at which nagios can't keep up. >> The problem we have seems to lay in the number of nsca daemons on >> the master machine. > > The number would increase if the NSCA daemons were unable to write to > the external command pipe. That could be because the results are coming > in faster than nagios is processing them. The command pipe is only going > to hold about 4K of data then block until it's cleared. If I read the docs correctly external_command_buffer_slots=4096 hold 4096 commands in the queue before it starts blocking. That's the value we have at the moment. >> Also I do not understand why running nsca with the --single option >> only processes the first message it receives and discards the rest. > > Nor do I. I run with -s and haven't experienced that problem. Running > nsca-2.1 here. Have you tried putting nsca into debug mode and > monitoring that? Running strace on the process would be informative as > well. Will do over the weekend: it's something we still haven't had time to do. > I did have a similar problem years ago on a machine with a failing disk. > The failures seemed harmless but ended up causing regular backlogs of > NSCA processes as you indicate. Fixing the disk problem resolved the > issue. That's why I asked. I see how this could cause problems especially since the server is also a mail content filter, but disks are hardware RAID5 on a Dell Perc controller monitored by Nagios and they appear fine. Thanks, -- Giulio Botto -- madecto at sangria.org.il PGP fingerprint = 1979 A78A 8F82 DB5E 55E9 D6D6 6AB6 0BA9 FDB7 6789 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jolivan at sertec-si.com Fri Feb 15 16:20:25 2008 From: jolivan at sertec-si.com (=?ISO-8859-1?Q?Jes=FAs?=) Date: Fri, 15 Feb 2008 16:20:25 +0100 Subject: logging out Message-ID: <1203088825.1220.22.camel@kloaca> Hi! i need to logout from nagios and then re-authenticate with another user. I've readed around that it's only possible closing all browser windows or using a web dev. toolbar for some browsers but is there any other way to do this? Closing all browser windows is not an option for me. Thanks in advance! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From israel at frontierflying.com Fri Feb 15 19:29:16 2008 From: israel at frontierflying.com (Israel Brewster) Date: Fri, 15 Feb 2008 09:29:16 -0900 Subject: check_rrdtraf In-Reply-To: <53317ec10802150311l504c1fbdx82dec8b9a3204ff4@mail.gmail.com> References: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> <2A32A258-BD76-43B9-90C2-6E495D0C2F99@frontierflying.com> <53317ec10802150311l504c1fbdx82dec8b9a3204ff4@mail.gmail.com> Message-ID: ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- On Feb 15, 2008, at 2:11 AM, Pili Mu?oz Gargallo wrote: > Of course yes, PEBKAC... > i have a new issue: > if i execute the same command from command line i obtain: > ./check_rrdtraf -f /var/www/html/cfg/62.81.189.118_1.rrd -c > 5000000,5000000 -w 3000000,3000000 > > ./check_rrdtraf: line 248: [: 8,000000: integer expression expected > ./check_rrdtraf: line 251: [: 8,000000: integer expression expected > ./check_rrdtraf: line 254: [: 8,000000: integer expression expected > ./check_rrdtraf: line 263: [: 32,000000: integer expression expected > ./check_rrdtraf: line 266: [: 32,000000: integer expression expected > ./check_rrdtraf: line 269: [: 32,000000: integer expression expected > (standard_in) 1: parse error > (standard_in) 1: parse error > (standard_in) 1: parse error > (standard_in) 1: parse error > OK - Current BW in: Gbps Out: Gbps(standard_in) 1: parse error > (standard_in) 1: parse error > |in=Gb/s;3000000;5000000 (standard_in) 1: parse error > (standard_in) 1: parse error > out=Gb/s;3000000;5000000 > > so Is there another problem or it is just me? Ok, here's where that -vv switch can come in handy. Try again from the command line with -vv, and send the output you get. That should help me with the debugging. As it is, the only thing I would note is to wonder if you really want the critical and warning values to be 3 Gbps and 5Gbps. It's not completely unreasonable, of course, depending on what you are monitoring (I think there are devices that can get multi- gigabit speeds), but most devices never get anywhere near that kind of traffic. Regardless, that shouldn't cause the first errors you are seeing, as the lines referenced are just seeing how big the input values are. Course, if you ARE getting gigabit speeds, I suppose it's possible i'm getting an overflow somewhere- i've never tested with that level traffic (as I don't have anything that generates that kind of traffic). > > Thanks again, and forgive me for these questions: Like i used to > say, i am a student and i am newbie in linux, LAMP servers, Nagios, > MRTG, RRDTool..... and everything you imagine.. > > Cheers > > Pili > > 2008/2/15, Israel Brewster : > > > > On Feb 14, 2008, at 1:48 PM, Pili Mu?oz Gargallo wrote: > >> hi all, >> thanks for the help. I have been trying several things that you >> told me. >> I'll give more information. I am monitoring bandwith with MRTG and >> storing datas in rrdtool format. >> If i run command from command line is >> >> ./check_rrdtraf -f ./var/www/html/cfg/62.81.189.118_1.rrd -l B -c >> 3000000,3000000 -w 5000000,5000000 >> >> ./var/www/html/cfg/62.81.189.118_1.rrd does not exist. >> >> I am graphing with routers2.cgi and it receives values, and if i do : >> >> rrdtool fetch /var/www/html/cfg/62.81.189.118_1.rrd AVERAGE >> . >> . >> . >> >> 1203025200: 1.3963531752e+05 8.2446477796e+04 >> 1203025500: 1.3719540269e+05 1.0068914358e+05 >> 1203025800: 1.3673972419e+05 1.0818787703e+05 >> 1203026100: 1.3729848910e+05 1.1104579469e+05 >> 1203026400: 1.3708077389e+05 1.1129381874e+05 >> 1203026700: 1.3590177194e+05 1.1081213980e+05 >> 1203027000: 3.1652589163e+05 2.5986265329e+05 >> 1203027300: 3.8436060720e+05 3.1651678017e+05 >> 1203027600: 1.4309192557e+05 1.1708320591e+05 >> 1203027900: nan nan >> 1203028200: nan nan >> >> i see it is storing values... >> what is wrong? I had read check_rrdtraf help and i have included -l >> B option to indicate that data are bits...but it is still not working > > As Marc pointed out in his response, having the ./var instead of / > var in the path to the .rrd file is wrong. you want /var WITHOUT the > period. Also, note that the -l switch only affects the display of > the output. It is not needed in normal operation, unless you really > want to see the output as bits rather than Kb, Mb, etc. The plugin > will auto-choose the best option based on the data if you leave this > switch out. But the main problem is the period before that slash. > Remove it, and it should work. > > ----------------------------------------------- > Israel Brewster > Computer Support Technician > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- >> >> I obtain now: >> OK - Current BW in: bps Out: bps >> >> any more ideas? >> Thank you again for your patience!!! >> >> Pili >> >> >> 2008/2/13, Israel Brewster : >> On Feb 13, 2008, at 6:34 AM, Marc Powell wrote: >> >> -----Original Message----- >> >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- >> >> users- >> >> bounces at lists.sourceforge.net] On Behalf Of Pili Mu?oz Gargallo >> >> Sent: Wednesday, February 13, 2008 7:23 AM >> >> To: nagios-users at lists.sourceforge.net >> >> Subject: [Nagios-users] check_rrdtraf >> >> >> >> Hi >> >> i am trying to measure bandwith using check_rrd >> > >> > When asking about plugins that don't come with the distribution >> it's >> > helpful to include where you obtained the plugin so everyone knows >> > which check_rrd (or check_rrdtraf as the case may be) you're >> talking >> > about. >> >> >> That would be (partly) my plugin, obtained from Nagiosexchange.org, >> most likely :) >> >> >> >> i use the command: >> >> $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l >> >> b -vv - >> >> c $ARG1$ -w $ARG2$ >> > >> > You meant $HOSTADDRESS$ here, right? >> >> >> And did you really want that period before the /var ? >> >> > >> > >> >> and in the service i give it the next arguments: >> >> !3000000,3000000!5000000,5000000 >> >> >> >> i have read about it several times, and it doesn't work how i >> espect: >> >> it returns me an OK value, but it doesn't tell me the present >> BW... >> >> Am i missing something? >> >> >> > >> > When you run the above command as the nagios user from the command >> > line, does the first line of output match what you're seeing in the >> > GUI? I expect it starts with the word 'Using'. What is the -vv flag >> > causing to happen when the program is run (hint, run >> check_rrdtraf -- >> > help to find out)? >> >> >> The -vv is an issue, although there could be a couple of others (see >> previous comments about the formating of the file string in the >> command). As that flag gives a lot of debugging output, and nagios >> only displays the first line of output, I wouldn't expect it to show >> the traffic values with this switch in there. What I would expect >> nagios to be showing is something along the lines of "Using RRD >> File: / >> var/www/html/cfg/$HOSTADRESS$_1.rrd" (I think that's the first line >> of >> debugging output I put in there), with $HOSTADDRESS$ replaced with >> the applicable value. Try without the -vv and see what happens. >> >> ----------------------------------------------- >> >> Israel Brewster >> Computer Support Technician >> Frontier Flying Service Inc. >> 5245 Airport Industrial Rd >> Fairbanks, AK 99709 >> (907) 450-7250 x293 >> ----------------------------------------------- >> >> > >> > >> > -- >> > Marc >> > >> > >> > >> > >> ------------------------------------------------------------------------- >> > This SF.net email is sponsored by: Microsoft >> > Defy all challenges. Microsoft(R) Visual Studio 2008. >> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at 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/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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 >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gregor at hostgis.com Fri Feb 15 19:30:26 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Fri, 15 Feb 2008 11:30:26 -0700 Subject: logging out In-Reply-To: <1203088825.1220.22.camel@kloaca> References: <1203088825.1220.22.camel@kloaca> Message-ID: <47B5DA42.20408@hostgis.com> > I've readed around that it's only possible closing all browser windows Yep, that's HTTP authentication for you. Sorry. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From step at tdc.dk Fri Feb 15 19:46:49 2008 From: step at tdc.dk (Steffen Poulsen) Date: Fri, 15 Feb 2008 19:46:49 +0100 Subject: NSCA problem In-Reply-To: <47B5D210.7020101@sangria.org.il> References: <47B5D210.7020101@sangria.org.il> Message-ID: > I see how this could cause problems especially since the > server is also a mail content filter, but disks are hardware > RAID5 on a Dell Perc controller monitored by Nagios and they > appear fine. If you are sending a lot of stand-alone NSCA results, it is only natural that you will start to get delays and hanging processes at some point (before you reach ~1000/checks minute at current hardware). But this should materialize itself also at the "sending" servers - is latency there OK still? Anyway, if this is the case, solution is to bundle up nsca checks and only send a batch every 10-20 seconds. Should reduce load and latency both at the sending and receiving server. Best regards, Steffen Poulsen ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Fri Feb 15 20:26:32 2008 From: llow at telesphere.com (Larry Low) Date: Fri, 15 Feb 2008 12:26:32 -0700 Subject: Notification Woes In-Reply-To: <47B55E77.9090301@aei.ca> References: <011f01c86f47$2f15d420$8d417c60$@com> <47B55E77.9090301@aei.ca> Message-ID: <02d301c87008$ac042060$040c6120$@com> > -----Original Message----- > From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] > Sent: Friday, February 15, 2008 2:42 AM > To: Larry Low > Cc: 'Nagios Users Mailinglist' > Subject: Re: [Nagios-users] Notification Woes > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 14/02/08 03:21 PM, Larry Low wrote: > > Service X actively checked every 60 minutes. > > Service X passively monitored through SNMP Traps. > > > > Service X receives CRITICAL passively. E-mail to contact A. Modify > Service > > X to actively poll every 5 minutes till recovery. Email B after 3rd > > CRITICAL (10-15 minute delay). > > > > I can't use retry_interval because I want contact A to be notified > all the > > time and retry_interval is only used on SOFT states. > > > > I was thinking of executing a change in polling interval with an > event > > handler. > > > > Any insight? > > > > I'm also curious on how flap alerts are handled under > serviceescalation. I > > am assuming they are not. > > I'm not quite sure what you're trying, but a simpler solution might be > to have two services: > > 1 volatile service (passive, will notify on every trap received) > 1 active service (will have whichever max_check_attempt and > retry_interval you want, won't be affected by passive checks) > > If you need escalations on top of that you can define some. > > > Otherwise you're pretty much on your own. It's very difficult to > remotely understand every details of the logic you want (considering > there will be corner cases, etc). So basically understand how nagios > will react to each setting, or use something simpler as above ;) > > Thomas Thanks for the input. I would like to avoid having separate services for the active and passive as it is the main reason I even use Nagios (easy to make sure active and passive alerts keep status accurate for a service). I am working on using an event handler to change the polling interval from 60 to 5 minutes on a non OK and 5 to 60 on an OK. I'm not sure how well this will work with passive checks but it seems like the best solution for me. I'm just worried about problems occurring and inconsistencies being created. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHtV536dZ+Kt5BchYRAkZDAKD8Fi8FFAw/a9r/bnqNkituvaauvgCdH8Xm > 1eFuhM38mouu96GAmLc87Ck= > =Y/Il > -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From nighthunter92403 at gmail.com Fri Feb 15 20:30:34 2008 From: nighthunter92403 at gmail.com (Nicholas Thompson) Date: Fri, 15 Feb 2008 14:30:34 -0500 Subject: mail notifications Message-ID: <47B5E85A.5080701@gmail.com> Hello all, I am having some trouble getting Nagios to send out emails to the contacts I have specified. I have 3 contacts that it should be going to, all with the same email domain and only 1 of the 3 are getting it. I have had the users check their spam traps and nothing, and when I look at /var/log/maillog it shows that all three recipients ate getting the messages sent. Anyone have any ideas? Anything from extra troubleshooting tips to even a solution I would be grateful for. Thanks ahead of time! Nick~ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From bjlockie at lockie.ca Fri Feb 15 20:36:43 2008 From: bjlockie at lockie.ca (bjlockie at lockie.ca) Date: Fri, 15 Feb 2008 14:36:43 -0500 (EST) Subject: preventing hostup check, only service check Message-ID: <39444.24.215.0.20.1203104203.squirrel@webmail.lockie.ca> How do I prevent a host from doing a hostup check? I just want to check services. ping is blocked. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Fri Feb 15 20:37:40 2008 From: llow at telesphere.com (Larry Low) Date: Fri, 15 Feb 2008 12:37:40 -0700 Subject: mail notifications In-Reply-To: <47B5E85A.5080701@gmail.com> References: <47B5E85A.5080701@gmail.com> Message-ID: <02d501c8700a$3a200520$ae600f60$@com> If /var/log/maillog shows the message being sent to all three recipients I would suggest try sending a test message from the server itself. 'echo test | mail user at domain.com' It's possible you need to modify your notification command or your servers smtp server to make sure the from address is proper and the forward/reverse DNS of the server is proper. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nicholas Thompson > Sent: Friday, February 15, 2008 12:31 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] mail notifications > > Hello all, > > I am having some trouble getting Nagios to send out emails to the > contacts I have specified. I have 3 contacts that it should be going > to, all with the same email domain and only 1 of the 3 are getting it. > I have had the users check their spam traps and nothing, and when I > look > at /var/log/maillog it shows that all three recipients ate getting the > messages sent. Anyone have any ideas? Anything from extra > troubleshooting tips to even a solution I would be grateful for. > Thanks > ahead of time! > > Nick~ > > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kmenard at servprise.com Fri Feb 15 20:44:25 2008 From: kmenard at servprise.com (Kevin Menard) Date: Fri, 15 Feb 2008 14:44:25 -0500 Subject: preventing hostup check, only service check In-Reply-To: <39444.24.215.0.20.1203104203.squirrel@webmail.lockie.ca> References: <39444.24.215.0.20.1203104203.squirrel@webmail.lockie.ca> Message-ID: It's not something I've tried myself, but you could always just write a small command that returns status of OK all the time. It'll obviously still be executed, but you'll never go into a warning or critical state. -- Kevin Kevin Menard Servprise International, Inc. +1 508.892.3823 x308 On 2/15/08 2:36 PM, "bjlockie at lockie.ca" wrote: > How do I prevent a host from doing a hostup check? > I just want to check services. > ping is blocked. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Fri Feb 15 20:46:41 2008 From: llow at telesphere.com (Larry Low) Date: Fri, 15 Feb 2008 12:46:41 -0700 Subject: preventing hostup check, only service check In-Reply-To: References: <39444.24.215.0.20.1203104203.squirrel@webmail.lockie.ca> Message-ID: <02d601c8700b$7c9c5330$75d4f990$@com> Or set your check_period to a timeperiod without any time in it. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kevin Menard > Sent: Friday, February 15, 2008 12:44 PM > To: bjlockie at lockie.ca; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] preventing hostup check, only service check > > It's not something I've tried myself, but you could always just write a > small command that returns status of OK all the time. It'll obviously > still > be executed, but you'll never go into a warning or critical state. > > -- > Kevin > > Kevin Menard > Servprise International, Inc. > +1 508.892.3823 x308 > > > On 2/15/08 2:36 PM, "bjlockie at lockie.ca" wrote: > > > How do I prevent a host from doing a hostup check? > > I just want to check services. > > ping is blocked. > > > > > > > > --------------------------------------------------------------------- > ---- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kmenard at servprise.com Fri Feb 15 20:49:55 2008 From: kmenard at servprise.com (Kevin Menard) Date: Fri, 15 Feb 2008 14:49:55 -0500 Subject: preventing hostup check, only service check In-Reply-To: <02d601c8700b$7c9c5330$75d4f990$@com> References: <02d601c8700b$7c9c5330$75d4f990$@com> Message-ID: On 2/15/08 2:46 PM, "Larry Low" wrote: > Or set your check_period to a timeperiod without any time in it. Good to know. I always assumed that would be an invalid state for Nagios. -- Kevin Kevin Menard Servprise International, Inc. +1 508.892.3823 x308 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Fri Feb 15 20:57:09 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Fri, 15 Feb 2008 11:57:09 -0800 Subject: mail notifications In-Reply-To: <47B5E85A.5080701@gmail.com> References: <47B5E85A.5080701@gmail.com> Message-ID: <20080215194703.GT7974@bakgwai.americas.hpqcorp.net> On Fri, 15 Feb 2008, Nicholas Thompson wrote: > Hello all, > > I am having some trouble getting Nagios to send out emails to the > contacts I have specified. I have 3 contacts that it should be going > to, all with the same email domain and only 1 of the 3 are getting it. > I have had the users check their spam traps and nothing, and when I look > at /var/log/maillog it shows that all three recipients ate getting the > messages sent. Anyone have any ideas? Anything from extra > troubleshooting tips to even a solution I would be grateful for. Thanks > ahead of time! If your mail log shows them going out, they're going out. You'd need to look at (or have the administrator look at) the next hop along the routing path, the same as any other mail non-delivery issue. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 15 21:09:17 2008 From: marc at ena.com (Marc Powell) Date: Fri, 15 Feb 2008 14:09:17 -0600 Subject: mail notifications In-Reply-To: <47B5E85A.5080701@gmail.com> References: <47B5E85A.5080701@gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Nicholas Thompson > Sent: Friday, February 15, 2008 1:31 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] mail notifications > > Hello all, > > I am having some trouble getting Nagios to send out emails to the > contacts I have specified. I have 3 contacts that it should be going > to, all with the same email domain and only 1 of the 3 are getting it. > I have had the users check their spam traps and nothing, and when I look > at /var/log/maillog it shows that all three recipients ate getting the > messages sent. Anyone have any ideas? Anything from extra > troubleshooting tips to even a solution I would be grateful for. Thanks > ahead of time! If you see the messages being accepted by the remote server in your maillogs then it's out of your hands. They accepted responsibility for delivery of the messages from you and only they can say what happened to them. Your recipients should ask their mail server admin what happened and only then might you have actionable information. We could pick one of thousands of reasons why delivery didn't happen but that's a waste of time. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Feb 15 21:11:21 2008 From: marc at ena.com (Marc Powell) Date: Fri, 15 Feb 2008 14:11:21 -0600 Subject: preventing hostup check, only service check In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Kevin Menard > Sent: Friday, February 15, 2008 1:50 PM > To: Larry Low; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] preventing hostup check, only service check > > On 2/15/08 2:46 PM, "Larry Low" wrote: > > > Or set your check_period to a timeperiod without any time in it. > > Good to know. I always assumed that would be an invalid state for Nagios. The sample config files come with a 'none' timeperiod defined -- define timeperiod { timeperiod_name none alias No Time Is A Good Time } You can also not specify the check_command directive for the host{} (i.e. leave the entire directive out). -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kmenard at servprise.com Fri Feb 15 21:29:06 2008 From: kmenard at servprise.com (Kevin Menard) Date: Fri, 15 Feb 2008 15:29:06 -0500 Subject: preventing hostup check, only service check In-Reply-To: References: Message-ID: On 2/15/08 3:11 PM, "Marc Powell" wrote: > > The sample config files come with a 'none' timeperiod defined -- > > define timeperiod { > timeperiod_name none > alias No Time Is A Good Time > } > > You can also not specify the check_command directive for the host{} > (i.e. leave the entire directive out). Thanks for the pointer. I just checked my distro's defaults, an indeed, there is a "never" timeperiod_name tucked away at the bottom. I guess since I never needed it, it slipped my mind. In any event, that's likely to be an easier approach than a dummy check command. So, thanks for the heads up. -- Kevin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Sat Feb 16 00:28:49 2008 From: llow at telesphere.com (Larry Low) Date: Fri, 15 Feb 2008 16:28:49 -0700 Subject: Notification Woes In-Reply-To: <02d301c87008$ac042060$040c6120$@com> References: <011f01c86f47$2f15d420$8d417c60$@com> <47B55E77.9090301@aei.ca> <02d301c87008$ac042060$040c6120$@com> Message-ID: <031901c8702a$84e0c700$8ea25500$@com> Just an FYI on what I did to get what I wanted to work: Service created with a check_interval of 60 and retry_interval of 10 and max_check_attempts of 1. Event handler that is passed a value of 60 and 10. Service escalation for first notification with a notification_interval of 10 (60 in service as it throws warnings otherwise because of the default check_interval). Service escalation for second notification with a notification_interval of 0. Event handler setup to CHANGE_NORMAL_SVC_CHECK_INTERVAL to 60 on OK and 10 on non-OK. If non-OK also SCHEDULE_SVC_CHECK in 10 minutes. So if a passive or active check comes in and changes state from OK to CRITICAL an alert is sent to first person, a check is scheduled in 10 minutes, and if still down on second check sends an email to second person. I also created a flapping only contact to be added to service contact_group so flapping is reported to second person as well. > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Larry Low > Sent: Friday, February 15, 2008 12:27 PM > To: 'Nagios Users Mailinglist' > Subject: Re: [Nagios-users] Notification Woes > > > -----Original Message----- > > From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] > > Sent: Friday, February 15, 2008 2:42 AM > > To: Larry Low > > Cc: 'Nagios Users Mailinglist' > > Subject: Re: [Nagios-users] Notification Woes > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > On 14/02/08 03:21 PM, Larry Low wrote: > > > Service X actively checked every 60 minutes. > > > Service X passively monitored through SNMP Traps. > > > > > > Service X receives CRITICAL passively. E-mail to contact A. > Modify > > Service > > > X to actively poll every 5 minutes till recovery. Email B after > 3rd > > > CRITICAL (10-15 minute delay). > > > > > > I can't use retry_interval because I want contact A to be notified > > all the > > > time and retry_interval is only used on SOFT states. > > > > > > I was thinking of executing a change in polling interval with an > > event > > > handler. > > > > > > Any insight? > > > > > > I'm also curious on how flap alerts are handled under > > serviceescalation. I > > > am assuming they are not. > > > > I'm not quite sure what you're trying, but a simpler solution might > be > > to have two services: > > > > 1 volatile service (passive, will notify on every trap received) > > 1 active service (will have whichever max_check_attempt and > > retry_interval you want, won't be affected by passive checks) > > > > If you need escalations on top of that you can define some. > > > > > > Otherwise you're pretty much on your own. It's very difficult to > > remotely understand every details of the logic you want (considering > > there will be corner cases, etc). So basically understand how nagios > > will react to each setting, or use something simpler as above ;) > > > > Thomas > > Thanks for the input. I would like to avoid having separate services > for > the active and passive as it is the main reason I even use Nagios (easy > to > make sure active and passive alerts keep status accurate for a > service). > > I am working on using an event handler to change the polling interval > from > 60 to 5 minutes on a non OK and 5 to 60 on an OK. I'm not sure how > well > this will work with passive checks but it seems like the best solution > for > me. I'm just worried about problems occurring and inconsistencies > being > created. > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.6 (GNU/Linux) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iD8DBQFHtV536dZ+Kt5BchYRAkZDAKD8Fi8FFAw/a9r/bnqNkituvaauvgCdH8Xm > > 1eFuhM38mouu96GAmLc87Ck= > > =Y/Il > > -----END PGP SIGNATURE----- > > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mugnoz.pilar at gmail.com Sat Feb 16 11:32:34 2008 From: mugnoz.pilar at gmail.com (=?ISO-8859-1?Q?Pili_Mu=F1oz_Gargallo?=) Date: Sat, 16 Feb 2008 11:32:34 +0100 Subject: check_rrdtraf In-Reply-To: References: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> <2A32A258-BD76-43B9-90C2-6E495D0C2F99@frontierflying.com> <53317ec10802150311l504c1fbdx82dec8b9a3204ff4@mail.gmail.com> Message-ID: <53317ec10802160232g4729b56en995d2bad5cbf29e6@mail.gmail.com> Hi Israel, Well that is what i get ./check_rrdtraf -f /var/www/html/cfg/62.81.189.117_1.rrd -c 5000,5000 -w 3000,3000 -vv Using RRD file: /var/www/html/cfg/62.81.189.117_1.rrd Input warning level(kb/s): 3000 Output warning level(kb/s): 3000 Input critical level (kb/s): 5000 Output critical level (kb/s): 5000 Fetching data with command: rrdtool fetch /var/www/html/cfg/62.81.189.117_1.rrd AVERAGE -s-10minutes | grep -vi "nan" RRD File Data: ds0 ds1 1203155100: 4.4908022742e+04 6.8003888963e+04 Raw Input Traffic Value (b/s): 32,000000 Raw Output Traffic Value (b/s): 48,000000 Decimal Input Traffic Value (b/s): 32,000000 Decimal Output Traffic Value (b/s): 48,000000 ./check_rrdtraf: line 248: [: 32,000000: integer expression expected ./check_rrdtraf: line 251: [: 32,000000: integer expression expected ./check_rrdtraf: line 254: [: 32,000000: integer expression expected ./check_rrdtraf: line 263: [: 48,000000: integer expression expected ./check_rrdtraf: line 266: [: 48,000000: integer expression expected ./check_rrdtraf: line 269: [: 48,000000: integer expression expected Traffic IN scalar: 1000000000 Traffic OUT scalar: 1000000000 (standard_in) 1: parse error (standard_in) 1: parse error (standard_in) 1: parse error (standard_in) 1: parse error OK - Current BW in: Gbps Out: Gbps(standard_in) 1: parse error (standard_in) 1: parse error |in=Gb/s;3000;5000 (standard_in) 1: parse error (standard_in) 1: parse error out=Gb/s;3000;5000 As you see, i have changed the threshold values... Before i used the -l option so i have forgotten to rescale them. it is your baby, so you'll know better what happens but what i understnad is that i gets value from 10 minutes ago and makes an average... thank you again. I'll try to discover what i have done ina wrong way before you would tell me.. Best wishes Pili 2008/2/15, Israel Brewster : > > > ----------------------------------------------- > Israel Brewster > Computer Support Technician > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- > > > On Feb 15, 2008, at 2:11 AM, Pili Mu?oz Gargallo wrote: > > Of course yes, PEBKAC... > i have a new issue: > if i execute the same command from command line i obtain: > ./check_rrdtraf -f /var/www/html/cfg/62.81.189.118_1.rrd -c > 5000000,5000000 -w 3000000,3000000 > > ./check_rrdtraf: line 248: [: 8,000000: integer expression expected > ./check_rrdtraf: line 251: [: 8,000000: integer expression expected > ./check_rrdtraf: line 254: [: 8,000000: integer expression expected > ./check_rrdtraf: line 263: [: 32,000000: integer expression expected > ./check_rrdtraf: line 266: [: 32,000000: integer expression expected > ./check_rrdtraf: line 269: [: 32,000000: integer expression expected > (standard_in) 1: parse error > (standard_in) 1: parse error > (standard_in) 1: parse error > (standard_in) 1: parse error > OK - Current BW in: Gbps Out: Gbps(standard_in) 1: parse error > (standard_in) 1: parse error > |in=Gb/s;3000000;5000000 (standard_in) 1: parse error > (standard_in) 1: parse error > out=Gb/s;3000000;5000000 > > so Is there another problem or it is just me? > > > Ok, here's where that -vv switch can come in handy. Try again from the > command line with -vv, and send the output you get. That should help me with > the debugging. As it is, the only thing I would note is to wonder if you > really want the critical and warning values to be 3 Gbps and 5Gbps. It's > not completely unreasonable, of course, depending on what you are monitoring > (I think there are devices that can get multi-gigabit speeds), but most > devices never get anywhere near that kind of traffic. Regardless, that > shouldn't cause the first errors you are seeing, as the lines referenced are > just seeing how big the input values are. Course, if you ARE getting gigabit > speeds, I suppose it's possible i'm getting an overflow somewhere- i've > never tested with that level traffic (as I don't have anything that > generates that kind of traffic). > > > Thanks again, and forgive me for these questions: Like i used to say, i am > a student and i am newbie in linux, LAMP servers, Nagios, MRTG, RRDTool..... > and everything you imagine.. > > Cheers > > Pili > > 2008/2/15, Israel Brewster : > > > > > > > > > > On Feb 14, 2008, at 1:48 PM, Pili Mu?oz Gargallo wrote: > > > > hi all, > > thanks for the help. I have been trying several things that you told me. > > I'll give more information. I am monitoring bandwith with MRTG and > > storing datas in rrdtool format. > > If i run command from command line is > > > > ./check_rrdtraf -f ./var/www/html/cfg/62.81.189.118_1.rrd -l B -c > > 3000000,3000000 -w 5000000,5000000 > > > > ./var/www/html/cfg/62.81.189.118_1.rrd does not exist. > > > > I am graphing with routers2.cgi and it receives values, and if i do : > > > > rrdtool fetch /var/www/html/cfg/62.81.189.118_1.rrd AVERAGE > > . > > . > > . > > > > 1203025200: 1.3963531752e+05 8.2446477796e+04 > > 1203025500: 1.3719540269e+05 1.0068914358e+05 > > 1203025800: 1.3673972419e+05 1.0818787703e+05 > > 1203026100: 1.3729848910e+05 1.1104579469e+05 > > 1203026400: 1.3708077389e+05 1.1129381874e+05 > > 1203026700: 1.3590177194e+05 1.1081213980e+05 > > 1203027000: 3.1652589163e+05 2.5986265329e+05 > > 1203027300: 3.8436060720e+05 3.1651678017e+05 > > 1203027600: 1.4309192557e+05 1.1708320591e+05 > > 1203027900: nan nan > > 1203028200: nan nan > > > > i see it is storing values... > > what is wrong? I had read check_rrdtraf help and i have included -l B > > option to indicate that data are bits...but it is still not working > > > > > > As Marc pointed out in his response, having the ./var instead of /var in > > the path to the .rrd file is wrong. you want /var WITHOUT the period. Also, > > note that the -l switch only affects the display of the output. It is not > > needed in normal operation, unless you really want to see the output as bits > > rather than Kb, Mb, etc. The plugin will auto-choose the best option based > > on the data if you leave this switch out. But the main problem is the period > > before that slash. Remove it, and it should work. > > > > ----------------------------------------------- > > Israel Brewster > > Computer Support Technician > > Frontier Flying Service Inc. > > 5245 Airport Industrial Rd > > Fairbanks, AK 99709 > > (907) 450-7250 x293 > > ----------------------------------------------- > > > > > > I obtain now: > > OK - Current BW in: bps Out: bps > > > > any more ideas? > > Thank you again for your patience!!! > > > > Pili > > > > > > 2008/2/13, Israel Brewster : > > > > > > On Feb 13, 2008, at 6:34 AM, Marc Powell wrote: > > > >> -----Original Message----- > > > >> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios- > > > >> users- > > > >> bounces at lists.sourceforge.net] On Behalf Of Pili Mu?oz Gargallo > > > >> Sent: Wednesday, February 13, 2008 7:23 AM > > > >> To: nagios-users at lists.sourceforge.net > > > >> Subject: [Nagios-users] check_rrdtraf > > > >> > > > >> Hi > > > >> i am trying to measure bandwith using check_rrd > > > > > > > > When asking about plugins that don't come with the distribution it's > > > > helpful to include where you obtained the plugin so everyone knows > > > > which check_rrd (or check_rrdtraf as the case may be) you're talking > > > > about. > > > > > > > > > That would be (partly) my plugin, obtained from Nagiosexchange.org, > > > most likely :) > > > > > > > > > >> i use the command: > > > >> $USER1$/check_rrdtraf -f ./var/www/html/cfg/$HOSTADRESS$_1.rrd -l > > > >> b -vv - > > > >> c $ARG1$ -w $ARG2$ > > > > > > > > You meant $HOSTADDRESS$ here, right? > > > > > > > > > And did you really want that period before the /var ? > > > > > > > > > > > > > > >> and in the service i give it the next arguments: > > > >> !3000000,3000000!5000000,5000000 > > > >> > > > >> i have read about it several times, and it doesn't work how i > > > espect: > > > >> it returns me an OK value, but it doesn't tell me the present BW... > > > >> Am i missing something? > > > >> > > > > > > > > When you run the above command as the nagios user from the command > > > > line, does the first line of output match what you're seeing in the > > > > GUI? I expect it starts with the word 'Using'. What is the -vv flag > > > > causing to happen when the program is run (hint, run check_rrdtraf > > > -- > > > > help to find out)? > > > > > > > > > The -vv is an issue, although there could be a couple of others (see > > > previous comments about the formating of the file string in the > > > command). As that flag gives a lot of debugging output, and nagios > > > only displays the first line of output, I wouldn't expect it to show > > > the traffic values with this switch in there. What I would expect > > > nagios to be showing is something along the lines of "Using RRD File: > > > / > > > var/www/html/cfg/$HOSTADRESS$_1.rrd" (I think that's the first line of > > > debugging output I put in there), with $HOSTADDRESS$ replaced with > > > the applicable value. Try without the -vv and see what happens. > > > > > > ----------------------------------------------- > > > > > > Israel Brewster > > > Computer Support Technician > > > Frontier Flying Service Inc. > > > 5245 Airport Industrial Rd > > > Fairbanks, AK 99709 > > > (907) 450-7250 x293 > > > ----------------------------------------------- > > > > > > > > > > > > > > > -- > > > > Marc > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at 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/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at 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 > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tekion at gmail.com Sat Feb 16 15:45:41 2008 From: tekion at gmail.com (Screaming Eagle) Date: Sat, 16 Feb 2008 09:45:41 -0500 Subject: Nagios daemon bombs out when using.... Message-ID: Folks, I am trying to set the a black out window for a service check and nagios deamon stop running. I had to remove "nagios.lock" and comments.dat and downtime.dat file and then restart nagios daemon. If I just remove the lock file, it won't work. I am running nagios 2.9. Does anyone have similar issue? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tekion at gmail.com Sat Feb 16 15:46:21 2008 From: tekion at gmail.com (Screaming Eagle) Date: Sat, 16 Feb 2008 09:46:21 -0500 Subject: Nagios daemon bombs out when using.... Message-ID: Folks, I am trying to set the a black out window for a service check and nagios deamon stop running. I had to remove "nagios.lock" and comments.dat and downtime.dat file and then restart nagios daemon. If I just remove the lock file, it won't work. I am running nagios 2.9. Does anyone have similar issue? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Sat Feb 16 16:36:24 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sat, 16 Feb 2008 10:36:24 -0500 Subject: logging out In-Reply-To: <1203088825.1220.22.camel@kloaca> References: <1203088825.1220.22.camel@kloaca> Message-ID: <47B702F8.2060500@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 15/02/08 10:20 AM, Jes?s wrote: > Hi! > > i need to logout from nagios and then re-authenticate with another user. > I've readed around that it's only possible closing all browser windows > or using a web dev. toolbar for some browsers but is there any other way > to do this? Closing all browser windows is not an option for me. > > Thanks in advance! There's an option in Firefox to clear authenticated sessions. It will close them all though. Look in the Tools->Clear Private Data menu... Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHtwL36dZ+Kt5BchYRAo4cAKDK/mbPXF6kF37udJVo1uDqW4zBvwCgr2te yvDkuxLaVDyDT0lHSAiJCZM= =dUQk -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Sat Feb 16 16:43:45 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sat, 16 Feb 2008 10:43:45 -0500 Subject: Nagios daemon bombs out when using.... In-Reply-To: References: Message-ID: <47B704B1.4000908@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/02/08 09:45 AM, Screaming Eagle wrote: > Folks, > I am trying to set the a black out window for a service check and nagios > deamon stop running. I had to remove "nagios.lock" and comments.dat and > downtime.dat file and then restart nagios daemon. If I just remove the > lock file, it won't work. I am running nagios 2.9. Does anyone have > similar issue? A "Black out window" is not a Nagios term and makes it unclear what you are tring to do. Are you trying to schedule a service downtime? Have you looked at the log? Please give more details and/or logs. You can also try running Nagios in the foreground and see what it prints. BTW, sending multiple times your question won't help, and some people tent to ignore those who repeatedly do this. Thanks, Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHtwSx6dZ+Kt5BchYRAvegAKDhPkzVkfZLtP81n29fAfCjCGu4MQCfWY3w dCgTOMHLZhPTCJi7VKU+dYo= =SLQM -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From schou at acebiosciences.com Sat Feb 16 16:54:13 2008 From: schou at acebiosciences.com (Henrik Schou) Date: Sat, 16 Feb 2008 16:54:13 +0100 (CET) Subject: NRPE on monitoring host Message-ID: <20080216155414.40D8B580018@desire.netways.de> Hi list I'm having some trouble getting NRPE to run. When I run the following command, it seems to be ok. /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d But when I try to run /etc/xinetd.d/nrpe start, i get the following errors: nrpe: unrecognized service /etc/xinetd.d/nrpe: line 5: flags: command not found /etc/xinetd.d/nrpe: line 6: socket_type: command not found /etc/xinetd.d/nrpe: line 7: wait: `=': not a pid or valid job spec /etc/xinetd.d/nrpe: line 7: wait: `no': not a pid or valid job spec /etc/xinetd.d/nrpe: line 8: user: command not found /etc/xinetd.d/nrpe: line 9: server: command not found /etc/xinetd.d/nrpe: line 10: server_args: command not found /etc/xinetd.d/nrpe: line 11: log_on_failure: command not found disable: Operation failed: client-error-not-found /etc/xinetd.d/nrpe: line 13: only_from: command not found The command I'm trying to run on my Nagios server is: command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/sda1 But I get no results.. When I run this on the remote host, I get the result I want. check_disk -w 20 -c 10 -p /dev/sda1 NRPE version is 2.11 on both systems. Anybody who can help me? - Henrik ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Sat Feb 16 17:07:25 2008 From: Roger at NagiosWiki.com (Roger) Date: Sat, 16 Feb 2008 08:07:25 -0800 Subject: using fping to find missing A records In-Reply-To: <20080214032634.GA4498@duke.edu> References: <2b7af7c40802131805u52a35edcqe5a0c0d35090c150@mail.gmail.com> <20080214032634.GA4498@duke.edu> Message-ID: <2b7af7c40802160807v404cb71bk8972c8c14f085c16@mail.gmail.com> On 2/13/08, Tom Throckmorton wrote: > > If I understand correctly what you're shooting for, it can be done in one > step: > > you at yourhost% fping -ang 192.168.1.0/24 > > ...would return > > - all hosts that are alive > - by name (if one exists) > - for a generated range (192.168.1.0..192.168.1.255) > > If you want to only show hosts for which there is no PTR record, just > 'grep -v' > your target domain(s) from the output. Thanks for your input Tom. I'll try this later, but for the meantime, I ended up trying the following (if I remember right) fping -d -g 192.168.1.0/24 This pinged all my hosts, got me back a host name, and then pinged those host names to give me the records. I will probably come back at you for another question once I get a few other things in order...thx again. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Sat Feb 16 17:20:51 2008 From: Roger at NagiosWiki.com (Roger) Date: Sat, 16 Feb 2008 08:20:51 -0800 Subject: Fping tweaks Message-ID: <2b7af7c40802160820p601afbbauad9913cc33cd29d9@mail.gmail.com> What fping tweaks do you guys use on Nagios? Primarily, this question is a general one (just to see what people check with). A bit more specifically, however, this question is designed to approach the answer on which fping plugin switches / parameters people use to scale Nagios checks to gazillions of hosts and across links that often become quite saturated. I'm struggling with this in many environments. I'm getting too many false positives (when it's just network related) and the host is not actually down. (I've just gotta limp this along until we fix our point to point solution between several of these sites.) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Sat Feb 16 17:47:13 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sat, 16 Feb 2008 11:47:13 -0500 Subject: NRPE on monitoring host In-Reply-To: <20080216155414.40D8B580018@desire.netways.de> References: <20080216155414.40D8B580018@desire.netways.de> Message-ID: <47B71391.2030207@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/02/08 10:54 AM, Henrik Schou wrote: > Hi list > > I'm having some trouble getting NRPE to run. > > When I run the following command, it seems to be ok. > /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d So your daemon seems to work Any reasn you want to use Inetd instead? > But when I try to run /etc/xinetd.d/nrpe start, i get the following errors: > > nrpe: unrecognized service > /etc/xinetd.d/nrpe: line 5: flags: command not found > /etc/xinetd.d/nrpe: line 6: socket_type: command not found > /etc/xinetd.d/nrpe: line 7: wait: `=': not a pid or valid job spec > /etc/xinetd.d/nrpe: line 7: wait: `no': not a pid or valid job spec > /etc/xinetd.d/nrpe: line 8: user: command not found > /etc/xinetd.d/nrpe: line 9: server: command not found > /etc/xinetd.d/nrpe: line 10: server_args: command not found > /etc/xinetd.d/nrpe: line 11: log_on_failure: command not found > disable: Operation failed: client-error-not-found > /etc/xinetd.d/nrpe: line 13: only_from: command not found Seems like you set up xinetd to use the nrpe configuration as an xinetd configuration. It would be analogous to running Apache httpd with Nagios's configuration: it just can't work. You'll have to read more about Xinetd to set it up. Alternatively you can run nrpe as a stand-alone daemon (as the first command above) and it should work. > The command I'm trying to run on my Nagios server is: > command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/sda1 That is actually configured on the remote server in NRPE. Then on the Nagios server you run: /path/to/check_nrpe -H -c check_disk1 > NRPE version is 2.11 on both systems. You need NRPE running only on the remote systems, and check_nrpe on the Nagios server. In practice though I run NRPE on the Nagios server too so that my commands are defined the same way for both remote and local servers. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHtxOR6dZ+Kt5BchYRAuOzAKDzcOQO3SuMjRF3Jp/bvhwk68WltgCgiMdB jJnNNyYVGP2UjI6mLf3eJqA= =Ibxm -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From smcavoy at ca.afilias.info Sat Feb 16 17:29:54 2008 From: smcavoy at ca.afilias.info (Sean McAvoy) Date: Sat, 16 Feb 2008 11:29:54 -0500 Subject: NRPE on monitoring host In-Reply-To: <20080216155414.40D8B580018@desire.netways.de> References: <20080216155414.40D8B580018@desire.netways.de> Message-ID: <9CA47928-23E6-4BC3-9936-00D836616583@ca.afilias.info> NRPE can be run in daemon mode or via (x)inetd, but not both. In xinetd mode you would update the service config file (/etc/xinetd./ nrpe) and then restart or reload the xinetd daemon for the changes to take effect. Pick one method and stick to it Verify the nrpe command works by executing the complete command as it appears in the nrpe.cfg file on the command line as the *same* user the daemon runs as. This will tell you if the command is correct or not. On 16-Feb-08, at 10:54 AM, Henrik Schou wrote: > Hi list > > I'm having some trouble getting NRPE to run. > > When I run the following command, it seems to be ok. > /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d Daemon mode above > > > But when I try to run /etc/xinetd.d/nrpe start, i get the following > errors: > > nrpe: unrecognized service > /etc/xinetd.d/nrpe: line 5: flags: command not found > /etc/xinetd.d/nrpe: line 6: socket_type: command not found > /etc/xinetd.d/nrpe: line 7: wait: `=': not a pid or valid job spec > /etc/xinetd.d/nrpe: line 7: wait: `no': not a pid or valid job spec > /etc/xinetd.d/nrpe: line 8: user: command not found > /etc/xinetd.d/nrpe: line 9: server: command not found > /etc/xinetd.d/nrpe: line 10: server_args: command not found > /etc/xinetd.d/nrpe: line 11: log_on_failure: command not found > disable: Operation failed: client-error-not-found > /etc/xinetd.d/nrpe: line 13: only_from: command not found > > The command I'm trying to run on my Nagios server is: > command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c > 10 -p /dev/sda1 > > But I get no results.. > > When I run this on the remote host, I get the result I want. > check_disk -w 20 -c 10 -p /dev/sda1 > > NRPE version is 2.11 on both systems. > > Anybody who can help me? > > - Henrik > > ----------------------- > The mailing list archive is found here: > http://www.nagiosexchange.org/nagios-users.34.0.html > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 Sean McAvoy NOC Team Lead Afilias Canada P. 416.673.4194 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Sat Feb 16 18:42:48 2008 From: marc at ena.com (Marc Powell) Date: Sat, 16 Feb 2008 11:42:48 -0600 Subject: NRPE on monitoring host In-Reply-To: <20080216155414.40D8B580018@desire.netways.de> References: <20080216155414.40D8B580018@desire.netways.de> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Henrik Schou > Sent: Saturday, February 16, 2008 9:54 AM > To: nagios-users at lists.sourceforge.net; schou at acebiosciences.com > Subject: [Nagios-users] NRPE on monitoring host > > Hi list > > I'm having some trouble getting NRPE to run. > > When I run the following command, it seems to be ok. > /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d > > But when I try to run /etc/xinetd.d/nrpe start, i get the following > errors: Beyond the other answers you've received, if you followed the documentation this would be an xinetd _configuration_ file, not a program that you run. NRPE can be run as a standalone daemon, as in your first test above, or as a xinetd module. If you choose the latter, you just need to install the nrpe conf file for xinetd (as you seem to have done) and restart xinetd. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From schou at acebiosciences.com Sat Feb 16 21:35:11 2008 From: schou at acebiosciences.com (Henrik Schou) Date: Sat, 16 Feb 2008 21:35:11 +0100 (CET) Subject: NRPE on monitoring host In-Reply-To: <47B71391.2030207@aei.ca> References: <47B71391.2030207@aei.ca> Message-ID: <20080216203512.6D455580037@desire.netways.de> Hi all Thank you for your answers. You say that I can install the nrpe conf file for xinetd. As you state you belive I have already done that. Yes, I belive I have.. In /etc/xinetd.d/nrpe I have entered the following: # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /usr/local/nagios/bin/nrpe -c server_args = /etc/local/nagios/etc/nrpe.cfg -d --inetd log_on_failure += USERID disable = no only_from = 192.168.0.0/24 } If I understand all of the comments I have received correct, it seems that I run nrpe in 2 instances, which I can't. How would I do it the right way then? I'd say I would prefer to run it through xinetd.. - Henrik Schou (rumstaden) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=9433 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Sun Feb 17 04:50:14 2008 From: llow at telesphere.com (Larry Low) Date: Sat, 16 Feb 2008 20:50:14 -0700 Subject: Fping tweaks In-Reply-To: <2b7af7c40802160820p601afbbauad9913cc33cd29d9@mail.gmail.com> References: <2b7af7c40802160820p601afbbauad9913cc33cd29d9@mail.gmail.com> Message-ID: <006901c87118$35fa2980$a1ee7c80$@com> I personally use Smokeping to monitor latency, packet loss, etc. I then have nagios check the RRD files for the data and alert on parameters. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Roger Sent: Saturday, February 16, 2008 9:21 AM To: Nagios Users Mailinglist Subject: [Nagios-users] Fping tweaks What fping tweaks do you guys use on Nagios? Primarily, this question is a general one (just to see what people check with). A bit more specifically, however, this question is designed to approach the answer on which fping plugin switches / parameters people use to scale Nagios checks to gazillions of hosts and across links that often become quite saturated. I'm struggling with this in many environments. I'm getting too many false positives (when it's just network related) and the host is not actually down. (I've just gotta limp this along until we fix our point to point solution between several of these sites.) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Sun Feb 17 07:11:08 2008 From: Roger at NagiosWiki.com (Roger) Date: Sat, 16 Feb 2008 22:11:08 -0800 Subject: Fping tweaks In-Reply-To: <006901c87118$35fa2980$a1ee7c80$@com> References: <2b7af7c40802160820p601afbbauad9913cc33cd29d9@mail.gmail.com> <006901c87118$35fa2980$a1ee7c80$@com> Message-ID: <2b7af7c40802162211ra12b37cn26c2e84ec6110a05@mail.gmail.com> On 2/16/08, Larry Low wrote: > > I personally use Smokeping to monitor latency, packet loss, etc. I then > have nagios check the RRD files for the data and alert on parameters. > Which check_rrdtool plugin do you use? I've seen it referenced and googled for it, but haven't been able to find it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Sun Feb 17 07:36:09 2008 From: llow at telesphere.com (Larry Low) Date: Sat, 16 Feb 2008 23:36:09 -0700 Subject: Fping tweaks In-Reply-To: <2b7af7c40802162211ra12b37cn26c2e84ec6110a05@mail.gmail.com> References: <2b7af7c40802160820p601afbbauad9913cc33cd29d9@mail.gmail.com> <006901c87118$35fa2980$a1ee7c80$@com> <2b7af7c40802162211ra12b37cn26c2e84ec6110a05@mail.gmail.com> Message-ID: <008601c8712f$62092ff0$261b8fd0$@com> I use a plugin I wrote called check_smokeping for that. It is available on nagiosexchange. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Roger Sent: Saturday, February 16, 2008 11:11 PM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Fping tweaks On 2/16/08, Larry Low wrote: I personally use Smokeping to monitor latency, packet loss, etc. I then have nagios check the RRD files for the data and alert on parameters. Which check_rrdtool plugin do you use? I've seen it referenced and googled for it, but haven't been able to find it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Sun Feb 17 08:21:57 2008 From: Roger at NagiosWiki.com (Roger) Date: Sat, 16 Feb 2008 23:21:57 -0800 Subject: checking disk i/o Message-ID: <2b7af7c40802162321q65adeb20s7b0167c2f3b50696@mail.gmail.com> What is the "best" Nagios way to measure disk i/o on both Windows and Linux? (Usually, I've just used some other tool to measure and/or trend it) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Sun Feb 17 16:13:56 2008 From: Roger at NagiosWiki.com (Roger) Date: Sun, 17 Feb 2008 07:13:56 -0800 Subject: autogenerate nrpe.cfg file Message-ID: <2b7af7c40802170713t3bcbb674xca661d349945f548@mail.gmail.com> What is the best way to autogenerate nrpe.cfg files across lots of servers? Googling, I've found things like Puppet, but that requires a bit more overhead and planning than I have right now. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dale at chatham.org Sun Feb 17 16:48:38 2008 From: dale at chatham.org (Dale J. Chatham) Date: Sun, 17 Feb 2008 09:48:38 -0600 Subject: Service checks scheduled far in future Message-ID: <47B85756.1070009@chatham.org> Service checks scheduled I stopped nagios I deleted /var/log/nagios/* I started nagios output from date command: Sun Feb 17 09:46:30 CST 2008 From nagios service detail page: Service check scheduled for Mon Feb 18 07:00:00 CST 2008 If I force the check, it will run OK, but the next check will happen far into the future. This one is weird. Help me obi-won kenobi, you're my only hope. Dale ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Sun Feb 17 18:00:33 2008 From: marc at ena.com (Marc Powell) Date: Sun, 17 Feb 2008 11:00:33 -0600 Subject: Service checks scheduled far in future In-Reply-To: <47B85756.1070009@chatham.org> References: <47B85756.1070009@chatham.org> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Dale J. Chatham > Sent: Sunday, February 17, 2008 9:49 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Service checks scheduled far in future > > Service checks scheduled > > I stopped nagios > I deleted /var/log/nagios/* > I started nagios > > output from date command: > Sun Feb 17 09:46:30 CST 2008 > > From nagios service detail page: > Service check scheduled for Mon Feb 18 07:00:00 CST 2008 Please post the service definition (including template) as well as the output of '/path/to/nagios -s /path/to/nagios.cfg'. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Sun Feb 17 18:01:16 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Sun, 17 Feb 2008 12:01:16 -0500 Subject: NRPE on monitoring host In-Reply-To: <20080216203512.6D455580037@desire.netways.de> References: <47B71391.2030207@aei.ca> <20080216203512.6D455580037@desire.netways.de> Message-ID: <47B8685C.6040107@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/02/08 03:35 PM, Henrik Schou wrote: > Hi all > > Thank you for your answers. > > You say that I can install the nrpe conf file for xinetd. > > As you state you belive I have already done that. Yes, I belive I have.. In /etc/xinetd.d/nrpe I have entered the following: > > # default: on > # description: NRPE (Nagios Remote Plugin Executor) > service nrpe > { > flags = REUSE > socket_type = stream > wait = no > user = nagios > server = /usr/local/nagios/bin/nrpe -c > server_args = /etc/local/nagios/etc/nrpe.cfg -d --inetd > log_on_failure += USERID > disable = no > only_from = 192.168.0.0/24 > } > > If I understand all of the comments I have received correct, it seems that I run nrpe in 2 instances, which I can't. How would I do it the right way then? I'd say I would prefer to run it through xinetd.. As Sean made me realize you were actually trying to run the xinetd config file... In fact all you have to do it probably reload or restart xinetc. (make sure to kill all instances of the NRPE daemon) Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHuGhc6dZ+Kt5BchYRAiMnAJ9YjFdi8kxJP4KDInwaBI4GPIUWRgCg9nbb AOzCO0LmnKK81r4njbR5+0c= =BMJx -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dale at chatham.org Sun Feb 17 18:33:34 2008 From: dale at chatham.org (Dale J. Chatham) Date: Sun, 17 Feb 2008 11:33:34 -0600 Subject: Service checks scheduled far in future In-Reply-To: References: Message-ID: <47B86FEE.2000403@chatham.org> An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: objects.cache URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Sun Feb 17 18:50:32 2008 From: marc at ena.com (Marc Powell) Date: Sun, 17 Feb 2008 11:50:32 -0600 Subject: Service checks scheduled far in future In-Reply-To: <47B86FEE.2000403@chatham.org> References: <47B86FEE.2000403@chatham.org> Message-ID: <59B071E5-A16B-4444-9568-7735F6FD2A14@ena.com> On Feb 17, 2008, at 11:33 AM, Dale J. Chatham wrote: > The output of the command is below. > > I included the objects.cache file. As I understand it, this is > created at run time from what nagios > reads from the config files and saves. Therefore, if I left > something out, it should be more obvious here. > > First scheduled check: Mon Feb 18 07:00:00 2008 > Last scheduled check: Mon Feb 18 07:00:00 2008 > > > define timeperiod { > timeperiod_name 24x7 > alias 24 Hours A Day, 7 Days A Week > monday 07:00-17:00 > tuesday 07:00-17:00 > wednesday 07:00-17:00 > thursday 07:00-17:00 > friday 07:00-17:00 > } You've modified this timeperiod to _not_ be 24x7 but are treating it as if it still is. Nagios is doing what you've told it to do. > define service { > host_name callisto > service_description PING > check_period 24x7 -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Sun Feb 17 18:57:24 2008 From: marc at ena.com (Marc Powell) Date: Sun, 17 Feb 2008 11:57:24 -0600 Subject: check_rrdtraf In-Reply-To: <53317ec10802160232g4729b56en995d2bad5cbf29e6@mail.gmail.com> References: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> <2A32A258-BD76-43B9-90C2-6E495D0C2F99@frontierflying.com> <53317ec10802150311l504c1fbdx82dec8b9a3204ff4@mail.gmail.com> <53317ec10802160232g4729b56en995d2bad5cbf29e6@mail.gmail.com> Message-ID: On Feb 16, 2008, at 4:32 AM, Pili Mu?oz Gargallo wrote: > Hi Israel, > Well that is what i get > > ./check_rrdtraf -f /var/www/html/cfg/62.81.189.117_1.rrd -c > 5000,5000 -w 3000,3000 -vv > Using RRD file: /var/www/html/cfg/62.81.189.117_1.rrd > Input warning level(kb/s): 3000 > Output warning level(kb/s): 3000 > Input critical level (kb/s): 5000 > Output critical level (kb/s): 5000 > Fetching data with command: rrdtool fetch /var/www/html/cfg/ > 62.81.189.117_1.rrd AVERAGE -s-10minutes | grep -vi "nan" > RRD File Data: > ds0 ds1 > > 1203155100: 4.4908022742e+04 6.8003888963e+04 > Raw Input Traffic Value (b/s): 32,000000 > Raw Output Traffic Value (b/s): 48,000000 > Decimal Input Traffic Value (b/s): 32,000000 > Decimal Output Traffic Value (b/s): 48,000000 > ./check_rrdtraf: line 248: [: 32,000000: integer expression expected > ./check_rrdtraf: line 251: [: 32,000000: integer expression expected > ./check_rrdtraf: line 254: [: 32,000000: integer expression expected > ./check_rrdtraf: line 263: [: 48,000000: integer expression expected > ./check_rrdtraf: line 266: [: 48,000000: integer expression expected > ./check_rrdtraf: line 269: [: 48,000000: integer expression expected Seems like a regional number-formatting issue. Your OS LC_NUMERIC settings specify a number format that uses ',' in place of '.' and the script (or perl?) isn't internationalized to understand that. Would that be the case? I'm not too familiar with i18n so can't be of much help. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jonmills at email.unc.edu Mon Feb 18 00:36:26 2008 From: jonmills at email.unc.edu (Jonathan Mills) Date: Sun, 17 Feb 2008 18:36:26 -0500 Subject: conditional inclusion of cfg files Message-ID: Okay, let's say you have lots of distributed pollers, which should only load cfg files for their particular environment (both hosts and services). However, you'd like to manage the same set of "global" cfg files from the central server, and rsync them all everywhere. Is there any known way to make a poller just load a subset of cfg files, *without hardcoding it into each poller's nagios.cfg file*? Sorry if this sounds a little crazy. I guess what I had envisioned was a way to push out a set of cfg files named by each poller's hostname, with the expectation that a poller could intelligently include only its own cfg file. Each of those files, in turn, would include a set of cfg_dir definitions to further include the directories needed for the poller to poll its specific environment. Nagios just appears to be very limited in the ability to declare variables in the configuration files. Yes, you can set macros, but that doesn't seem to help me with this particular situation. Any suggestions? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From schou at acebiosciences.com Mon Feb 18 08:51:40 2008 From: schou at acebiosciences.com (Henrik Schou) Date: Mon, 18 Feb 2008 08:51:40 +0100 (CET) Subject: NRPE on monitoring host In-Reply-To: <47B8685C.6040107@aei.ca> References: <47B8685C.6040107@aei.ca> Message-ID: <20080218075140.783F2580054@desire.netways.de> Some of my nrpe checks works ok now. I'm still having some issues getting check_disk to return information. Nagios displays: NRPE: Command 'check_disk' not defined. In my nrpe.cfg I have the following entry: command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/sda1 --> I can run ./configure check_disk... successfully on the remote system? In my localhost.cfg I have: define host{ use check-status host_name donald alias Donald address 192.168.1.21 } # 'linux-boxes' host group definition define hostgroup{ hostgroup_name linux-servers alias Linux Servers # contact_groups infrastructure-production members donald } define service{ use local-service host_name donald service_description cpuload contact_groups infrastructure-production check_command check_nrpe!check_load } define service{ use local-service host_name donald service_description disk - / contact_groups infrastructure-production check_command check_nrpe!check_disk } The nrpe cpuload check returns results. In my commands.cfg: # NRPE define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } I can telnet the remote host as well. - Henrik ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=9449 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sascha.Runschke at gfkl.com Mon Feb 18 10:17:35 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Mon, 18 Feb 2008 10:17:35 +0100 Subject: Antwort: checking disk i/o In-Reply-To: <2b7af7c40802162321q65adeb20s7b0167c2f3b50696@mail.gmail.com> References: <2b7af7c40802162321q65adeb20s7b0167c2f3b50696@mail.gmail.com> Message-ID: nagios-users-bounces at lists.sourceforge.net schrieb am 17.02.2008 08:21:57: > What is the "best" Nagios way to measure disk i/o on both Windows and Linux? > > (Usually, I've just used some other tool to measure and/or trend it) "Usually" there is no such thing as "best way" in a custom scenario ;) For linux I wrote my own plugin to parse iostat output, but it's not yet fully finished. For Windows you might want to look at the WMI Scripts from... uhm... it was op5 I think. Google is your friend. You can embedd those scripts into nsclient++ and use a custom nrpe check then. S -- Sascha Runschke Netzwerk- und Systemmanagement Abt. Organisation und Betrieb - IT-Infrastruktur Telefon : +49 (201) 102-1879 Mobile : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mluser at rbmail.ch Mon Feb 18 10:44:15 2008 From: mluser at rbmail.ch (Andre Keller) Date: Mon, 18 Feb 2008 10:44:15 +0100 Subject: check_mem.pl Message-ID: <47B9536F.4070403@rbmail.ch> Hi there does anybody have a memory plugin which adds the cached memory to the free memory? Or does anybody know how I could modify check_mem.pl from nagios exchange to accomplish that? Thanks and regards Andr? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From schou at acebiosciences.com Mon Feb 18 11:11:38 2008 From: schou at acebiosciences.com (Henrik Schou) Date: Mon, 18 Feb 2008 11:11:38 +0100 (CET) Subject: NRPE on monitoring host In-Reply-To: <20080218075140.783F2580054@desire.netways.de> References: <20080218075140.783F2580054@desire.netways.de> Message-ID: <20080218101138.86DF0580054@desire.netways.de> I have solved the problem. I wasn't aware that the command also should be in the nrpe file of the remote host. Thanks for all the help guys! - Henrik ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=9455 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From andy.shellam-lists at mailnetwork.co.uk Mon Feb 18 13:05:38 2008 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam) Date: Mon, 18 Feb 2008 12:05:38 +0000 Subject: Nagios Looking Glass 1.1.0 beta 1 released Message-ID: <33671a790802180405p40994257v68fa498e60ac2b50@mail.gmail.com> The Nagios Looking Glass is pleased to announce the availability of NLG 1.1.0 beta 1. This is the first release in the 1.1 series that makes NLG compatible with Nagios 3 (tested with Nagios 3.0rc2) while maintaining compatibility with Nagios 2.x. The major changes in this version against 1.0.6 are: - Added configuration option to change the location of cached files client-side (http://tracker.networkmail.eu/task/337) - Locking for cache files (http://tracker.networkmail.eu/task/336) - comments.dat and downtime.dat no longer available (change these to status.dat in server/sync-files/s3_config.inc.php) ( http://tracker.networkmail.eu/task/333) - Allow override of default timezone ( http://tracker.networkmail.eu/task/214) - Ability to disable client-side caching ( http://tracker.networkmail.eu/task/126) The new release can be downloaded from www.nagioslookingglass.co.uk/downloads. Regards, Andy Shellam Lead Developer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gcoochey at sapphire.gi Mon Feb 18 16:59:42 2008 From: gcoochey at sapphire.gi (Giles Coochey) Date: Mon, 18 Feb 2008 16:59:42 +0100 Subject: Nagios Looking Glass 1.1.0 beta 1 released In-Reply-To: <33671a790802180405p40994257v68fa498e60ac2b50@mail.gmail.com> References: <33671a790802180405p40994257v68fa498e60ac2b50@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744BD9459@hermes.sapphire-int.gi> Andy, I thought I'd take a look at your project, as I have some interest in having some sort of dynamic portal which customers can query and I've seen your project surface time-and-time again on this list. I've implemented the 'hack' to limit which hosts a particular user can see, but notice that they still see the "Overall Network Health" still shows the values for all hosts & services, rather than those in the currently selected filter. It would be much better if the granularity for this tool followed the 'Nagios way' and used the contact group for all visibility. Unfortunately this is very important for our environment. In terms of the license, what if I want to remove all references to Nagios Looking Glass, your name etc... from the portal interface? Is that going to be an issue? I'm not talking about removing any copyright or license information from the source files itself, just the customer facing side. Thanks Giles ________________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Andy Shellam Sent: 18 February 2008 13:06 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released The Nagios Looking Glass is pleased to announce the availability of NLG 1.1.0 beta 1. This is the first release in the 1.1 series that makes NLG compatible with Nagios 3 (tested with Nagios 3.0rc2) while maintaining compatibility with Nagios 2.x. The major changes in this version against 1.0.6 are: * Added configuration option to change the location of cached files client-side (http://tracker.networkmail.eu/task/337) * Locking for cache files (http://tracker.networkmail.eu/task/336) * comments.dat and downtime.dat?no?longer?available?(change these to status.dat in server/sync-files/s3_config.inc.php) (http://tracker.networkmail.eu/task/333) * Allow override of default timezone (http://tracker.networkmail.eu/task/214) * Ability to disable client-side caching (http://tracker.networkmail.eu/task/126) The new release can?be?downloaded?from?www.nagioslookingglass.co.uk/downloads. Regards, Andy Shellam Lead Developer ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From israel at frontierflying.com Mon Feb 18 18:04:25 2008 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 18 Feb 2008 08:04:25 -0900 Subject: check_rrdtraf In-Reply-To: References: <1D231CAD-46A1-4ED2-87F8-7762A4430050@frontierflying.com> <53317ec10802141448i17f62ba3qd08aa3887f7c3b25@mail.gmail.com> <2A32A258-BD76-43B9-90C2-6E495D0C2F99@frontierflying.com> <53317ec10802150311l504c1fbdx82dec8b9a3204ff4@mail.gmail.com> <53317ec10802160232g4729b56en995d2bad5cbf29e6@mail.gmail.com> Message-ID: <1246533C-02A3-4165-98DA-E73F07C4FA54@frontierflying.com> On Feb 17, 2008, at 8:57 AM, Marc Powell wrote: > > On Feb 16, 2008, at 4:32 AM, Pili Mu?oz Gargallo wrote: > >> Hi Israel, >> Well that is what i get >> >> ./check_rrdtraf -f /var/www/html/cfg/62.81.189.117_1.rrd -c >> 5000,5000 -w 3000,3000 -vv >> Using RRD file: /var/www/html/cfg/62.81.189.117_1.rrd >> Input warning level(kb/s): 3000 >> Output warning level(kb/s): 3000 >> Input critical level (kb/s): 5000 >> Output critical level (kb/s): 5000 >> Fetching data with command: rrdtool fetch /var/www/html/cfg/ >> 62.81.189.117_1.rrd AVERAGE -s-10minutes | grep -vi "nan" >> RRD File Data: >> ds0 ds1 >> >> 1203155100: 4.4908022742e+04 6.8003888963e+04 >> Raw Input Traffic Value (b/s): 32,000000 >> Raw Output Traffic Value (b/s): 48,000000 >> Decimal Input Traffic Value (b/s): 32,000000 >> Decimal Output Traffic Value (b/s): 48,000000 >> ./check_rrdtraf: line 248: [: 32,000000: integer expression expected >> ./check_rrdtraf: line 251: [: 32,000000: integer expression expected >> ./check_rrdtraf: line 254: [: 32,000000: integer expression expected >> ./check_rrdtraf: line 263: [: 48,000000: integer expression expected >> ./check_rrdtraf: line 266: [: 48,000000: integer expression expected >> ./check_rrdtraf: line 269: [: 48,000000: integer expression expected > > Seems like a regional number-formatting issue. Your OS LC_NUMERIC > settings specify a number format that uses ',' in place of '.' and the > script (or perl?) isn't internationalized to understand that. Would > that be the case? I'm not too familiar with i18n so can't be of much > help. Ok, yeah, that would make sense. It is a shell script, and no, it isn't internationalized- partly because I didn't think of that when writing it, partly because I'm not entirely sure how. I suppose I could just do a simple string search and replace on the values to replace any commas with periods, but I don't really know if this would be the best or right way of doing it. Any of the more experienced programers out there have any suggestions? ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > > -- > Marc > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Mon Feb 18 18:17:49 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Mon, 18 Feb 2008 11:17:49 -0600 Subject: SNMP/Windows disk usage Message-ID: We are using snmp to monitor our windows servers and I have had a request from the windows admins. They want to alert at 80% and 90% usage on C:\ but 95% and 98% on all other partitions. (I didn't ask about the logic because it wouldn't matter). I have tried multiple snmp plugins and all of them seem to act the same. I can monitor all the disks on a single check, a single disk on a single check but I cannot monitor all the disks except C: on a single check. There doesn't seem to be any plugins out there that allow exclusion and use snmp. Before I go writing a wrapper for an existing plugin does anyone know if there is a plugin that will allow me to do this? I am looking to exclude a single drive letter but check all the rest of the drives via snmp on windows servers. Thanks in advance for any advice. Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors 1800 N. Mason Rd Katy, Texas 77449 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pitchfork at ederdrom.de Mon Feb 18 18:22:05 2008 From: pitchfork at ederdrom.de (Joerg Linge) Date: Mon, 18 Feb 2008 18:22:05 +0100 Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: <47B9BEBD.7080807@ederdrom.de> mark.potter at academy.com schrieb: > We are using snmp to monitor our windows servers and I have had a request > from the windows admins. They want to alert at 80% and 90% usage on C:\ > but 95% and 98% on all other partitions. (I didn't ask about the logic > because it wouldn't matter). I have tried multiple snmp plugins and all of > them seem to act the same. I can monitor all the disks on a single check, > a single disk on a single check but I cannot monitor all the disks except > C: on a single check. There doesn't seem to be any plugins out there that > allow exclusion and use snmp. Before I go writing a wrapper for an > existing plugin does anyone know if there is a plugin that will allow me > to do this? I am looking to exclude a single drive letter but check all > the rest of the drives via snmp on windows servers. Thanks in advance for > any advice. > http://nagios.manubulon.com/snmp_storage.html check_snmp_storage will do the Job Joerg ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From andy.shellam-lists at mailnetwork.co.uk Mon Feb 18 18:31:01 2008 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam) Date: Mon, 18 Feb 2008 17:31:01 +0000 Subject: Nagios Looking Glass 1.1.0 beta 1 released Message-ID: <4fdd756c423d555f2468617c09d66ca0@connect.networkmail.eu> Hi Giles, Thanks for your comments. The 'Network Health' page is designed to reflect the status of the network as a whole which, I agree, can be confusing when host-specific filters are specified. An example scenario of the reasoning behind this is: You're viewing the 'network health' page and select the "down hosts only" filter. All the hosts in this filter will be down, thus rendering the network "100% down", which obviously looks bad. NLG v2 is going to be designed to work better with users, permissions and groups and will be better suited to those who don't want a simple "network overview" and would like to restrict what different users and groups can see. In terms of licensing, clause 4c states that if the work, ie. NLG, is publicly displayed then all copyright notices must be kept intact, including the author's name, designated company, title of the work and URL. Therefore if you're providing access to NLG through a publicly-available URL or website, the copyright notice must be left intact, otherwise if it is only available to a set number of users (e.g. through an internal URL or intranet) I'm happy for the copyright notice to be removed. Regards, Andy > ----- Original Message ----- > Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released > From: Giles Coochey > To: nagios-users at lists.sourceforge.net > Date: 18/02/2008 15:59 > > > Andy, > > I thought I'd take a look at your project, as I have some interest in having some sort of dynamic portal which customers can query and I've seen your project surface time-and-time again on this list. > > I've implemented the 'hack' to limit which hosts a particular user can see, but notice that they still see the "Overall Network Health" still shows the values for all hosts & services, rather than those in the currently selected filter. > > It would be much better if the granularity for this tool followed the 'Nagios way' and used the contact group for all visibility. Unfortunately this is very important for our environment. > > In terms of the license, what if I want to remove all references to Nagios Looking Glass, your name etc... from the portal interface? Is that going to be an issue? I'm not talking about removing any copyright or license information from the source files itself, just the customer facing side. > > Thanks > > Giles > > ________________________________________ > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Andy Shellam > Sent: 18 February 2008 13:06 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released > > The Nagios Looking Glass is pleased to announce the availability of NLG 1.1.0 beta 1. > This is the first release in the 1.1 series that makes NLG compatible with Nagios 3 (tested with Nagios 3.0rc2) while maintaining compatibility with Nagios 2.x. > > The major changes in this version against 1.0.6 are: > * Added configuration option to change the location of cached files client-side (http://tracker.networkmail.eu/task/337) > * Locking for cache files (http://tracker.networkmail.eu/task/336) > * comments.dat and downtime.dat?no?longer?available?(change these to status.dat in server/sync-files/s3_config.inc.php) (http://tracker.networkmail.eu/task/333) > * Allow override of default timezone (http://tracker.networkmail.eu/task/214) > * Ability to disable client-side caching (http://tracker.networkmail.eu/task/126) > The new release can?be?downloaded?from?www.nagioslookingglass.co.uk/downloads. > > Regards, > > Andy Shellam > Lead Developer > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Mon Feb 18 18:46:26 2008 From: knobdy at gmail.com (Brian Loe) Date: Mon, 18 Feb 2008 11:46:26 -0600 Subject: Nagios Looking Glass 1.1.0 beta 1 released In-Reply-To: <4fdd756c423d555f2468617c09d66ca0@connect.networkmail.eu> References: <4fdd756c423d555f2468617c09d66ca0@connect.networkmail.eu> Message-ID: <3c4611bc0802180946w6f89f05bn6afa66d49cea91c3@mail.gmail.com> On Feb 18, 2008 11:31 AM, Andy Shellam wrote: > NLG v2 is going to be designed to work better with users, permissions and > groups and will be better suited to those who don't want a simple "network > overview" and would like to restrict what different users and groups can > see. > Is there a nagios project for implementing better authentication methods? Maybe I missed it in Nagios docs but I'd like a better interface for managing users - and more importantly, allowing users change their passwords via the web interface. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dale at chatham.org Mon Feb 18 18:43:30 2008 From: dale at chatham.org (Dale Chatham) Date: Mon, 18 Feb 2008 11:43:30 -0600 Subject: conditional inclusion of cfg files In-Reply-To: References: Message-ID: <47B9C3C2.5050706@chatham.org> Host/Service groups? Use cfengine to push the cfg files? Jonathan Mills wrote: > Okay, let's say you have lots of distributed pollers, which should > only load cfg files for their particular environment (both hosts and > services). However, you'd like to manage the same set of "global" cfg > files from the central server, and rsync them all everywhere. Is > there any known way to make a poller just load a subset of cfg files, > *without hardcoding it into each poller's nagios.cfg file*? > > Sorry if this sounds a little crazy. I guess what I had envisioned > was a way to push out a set of cfg files named by each poller's > hostname, with the expectation that a poller could intelligently > include only its own cfg file. Each of those files, in turn, would > include a set of cfg_dir definitions to further include the > directories needed for the poller to poll its specific environment. > > Nagios just appears to be very limited in the ability to declare > variables in the configuration files. Yes, you can set macros, but > that doesn't seem to help me with this particular situation. > > Any suggestions? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Mon Feb 18 19:48:16 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Mon, 18 Feb 2008 12:48:16 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <47B9BEBD.7080807@ederdrom.de> References: <47B9BEBD.7080807@ederdrom.de> Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/18/2008 11:22:05 AM: > mark.potter at academy.com schrieb: > > We are using snmp to monitor our windows servers and I have had a request > > from the windows admins. They want to alert at 80% and 90% usage on C:\ > > but 95% and 98% on all other partitions. (I didn't ask about the logic > > because it wouldn't matter). I have tried multiple snmp plugins and all of > > them seem to act the same. I can monitor all the disks on a single check, > > a single disk on a single check but I cannot monitor all the disks except > > C: on a single check. There doesn't seem to be any plugins out there that > > allow exclusion and use snmp. Before I go writing a wrapper for an > > existing plugin does anyone know if there is a plugin that will allow me > > to do this? I am looking to exclude a single drive letter but check all > > the rest of the drives via snmp on windows servers. Thanks in advance for > > any advice. > > > > http://nagios.manubulon.com/snmp_storage.html > > > check_snmp_storage will do the Job > > Joerg That does exactly what we need. Is it listed on Nagios Exchange? Thank you for your response; I have managed to escape writing a wrapper thanks to you! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Mon Feb 18 20:31:01 2008 From: hittjw at gmail.com (Justin Hitt) Date: Mon, 18 Feb 2008 14:31:01 -0500 Subject: conditional inclusion of cfg files In-Reply-To: <47B9C3C2.5050706@chatham.org> References: <47B9C3C2.5050706@chatham.org> Message-ID: <93344bf0802181131n52de146cyf360f74190012ae5@mail.gmail.com> Jonathan, Jonathan Mills wrote: > > Okay, let's say you have lots of distributed pollers, which should > > only load cfg files for their particular environment (both hosts and > > services). However, you'd like to manage the same set of "global" cfg I setup configurations in subdirectories by datacenter (location of the distributed poller) then have a local 'sed' check change the location of the configuration relevant to that specific box. These directories are also broken out individually ... $NAGIOS_HOME/etc/corporate/$ASSET_GROUP/{hosts,groups,contact}.cfg $NAGIOS_HOME/etc/datacenter/$CITY_STATE/{hosts,groups,contact}.cfg $NAGIOS_HOME/etc/thirdparty/$VENDOR/{hosts,groups,contact}.cfg All my pollers check a common pool ("corporate", "thirdparty") and have local checks for their own site ("datacenter".) $CITY_STATE could also be the name of your host, that makes 'sed' a little easier. Use 'cfg_dir=' You could use 'cfengine', I use 'sed', but just comment out all datacenters on your console and uncomment the one necessary for a particular datacenter. If you won't want to use 'sed' or 'cfengine' then just uncomment it by hand. Best, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jonmills at email.unc.edu Tue Feb 19 03:07:40 2008 From: jonmills at email.unc.edu (Jonathan Mills) Date: Mon, 18 Feb 2008 21:07:40 -0500 Subject: conditional inclusion of cfg files In-Reply-To: <93344bf0802181131n52de146cyf360f74190012ae5@mail.gmail.com> References: <47B9C3C2.5050706@chatham.org> <93344bf0802181131n52de146cyf360f74190012ae5@mail.gmail.com> Message-ID: <8F9779D3-A1CF-4DDC-A949-734244A6CDD3@email.unc.edu> So I think what I'm going to do is rsync the same files everywhere, but use cfengine to manage the nagios.cfg file on each poller. Actually, I'm looking at using Puppet instead of cfengine. I also want to use this to control the nrpe.cfg on each server of course. If you're going to do it from scratch, Puppet looks a lot cleaner and more modern than cfengine. Anyone with Puppet feedback? On Feb 18, 2008, at 2:31 PM, "Justin Hitt" wrote: > Jonathan, > > Jonathan Mills wrote: >>> Okay, let's say you have lots of distributed pollers, which should >>> only load cfg files for their particular environment (both hosts and >>> services). However, you'd like to manage the same set of "global" >>> cfg > > I setup configurations in subdirectories by datacenter (location of > the distributed poller) then have a local 'sed' check change the > location of the configuration relevant to that specific box. > > These directories are also broken out individually ... > > $NAGIOS_HOME/etc/corporate/$ASSET_GROUP/{hosts,groups,contact}.cfg > $NAGIOS_HOME/etc/datacenter/$CITY_STATE/{hosts,groups,contact}.cfg > $NAGIOS_HOME/etc/thirdparty/$VENDOR/{hosts,groups,contact}.cfg > > All my pollers check a common pool ("corporate", "thirdparty") and > have local checks for their own site ("datacenter".) $CITY_STATE > could also be the name of your host, that makes 'sed' a little easier. > > Use 'cfg_dir=' > > You could use 'cfengine', I use 'sed', but just comment out all > datacenters on your console and uncomment the one necessary for a > particular datacenter. If you won't want to use 'sed' or 'cfengine' > then just uncomment it by hand. > > Best, > > Justin > -- > Attention Sales And Marketing Professionals Who Serve B2B Executives > http://hittpublishingdirect.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From msh.computing at gmail.com Tue Feb 19 04:51:54 2008 From: msh.computing at gmail.com (Steve Kieu) Date: Tue, 19 Feb 2008 16:51:54 +1300 Subject: status.cgi very high cpu usage Message-ID: Hello, I have a problem with status.cgi taking up too much cpu so the page is very slow to render. Is there any way to find out where the problem is? We have about 650 services monitored. The output os nagios -s command is below: HOST SCHEDULING INFORMATION --------------------------- Total hosts: 114 Total scheduled hosts: 5 Host inter-check delay method: SMART Average host check interval: 300.00 sec Host inter-check delay: 60.00 sec Max host check spread: 15 min First scheduled check: Tue Feb 19 16:44:01 2008 Last scheduled check: Tue Feb 19 16:48:01 2008 SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 645 Total scheduled services: 596 Service inter-check delay method: SMART Average service check interval: 877.85 sec Inter-check delay: 1.47 sec Interleave factor method: SMART Average services per host: 5.66 Service interleave factor: 6 Max service check spread: 15 min First scheduled check: Tue Feb 19 16:46:28 2008 Last scheduled check: Tue Feb 19 17:01:09 2008 CHECK PROCESSING INFORMATION ---------------------------- Service check reaper interval: 10 sec Max concurrent service checks: Unlimited PERFORMANCE SUGGESTIONS ----------------------- I have no suggestions - things look okay. It is running on a vmware host with 1Gb of ram and we just allocate 1 more cpu (3Ghz) without any improvement. The custom frontend using Nagvis but even if we do not access nagvis, accessing normal nagios services list still causes high cpu usage and slow response in a such unusable state. Please help. Thanks you in advance. -- Steve Kieu Mob: (+64) 021 250 6437 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stava at telcotec.se Tue Feb 19 08:01:10 2008 From: stava at telcotec.se (Lars Stavholm) Date: Tue, 19 Feb 2008 08:01:10 +0100 Subject: Nagios Looking Glass 1.1.0 beta 1 released In-Reply-To: <4fdd756c423d555f2468617c09d66ca0@connect.networkmail.eu> References: <4fdd756c423d555f2468617c09d66ca0@connect.networkmail.eu> Message-ID: <47BA7EB6.8050906@telcotec.se> Andy Shellam wrote: > Hi Giles, > > Thanks for your comments. The 'Network Health' page is designed to reflect > the status of the network as a whole which, I agree, can be confusing when > host-specific filters are specified. An example scenario of the reasoning > behind this is: > > You're viewing the 'network health' page and select the "down hosts only" > filter. All the hosts in this filter will be down, thus rendering the > network "100% down", which obviously looks bad. Of course it does, and as an example of the situation at hand, pretty useless. How about viewing this problem from the users point of view? And I mean the non-techie user. Then it would be quite obvious that Network Health should reflect the network health of the users machines, otherwise you would have a bit of explaining to do to a bunch of not so happy users, that would look at you with those eyes saying "now there's a real techie, he hasn't got a clue, let's get out of here". When using the "down hosts only filter", one might consider not letting this reflect on the overall Network Health at all, actually. IMHO the Network Health should show the summary of health for the users select machines only, at all times, filter or not. Other than that, NLG is a brilliant solution, badly needed out there (here at least), and I've been looking forward to try it out with nagios 3.x. Thanks for the effort Andy! Just my 2c worth Cheers /Lars > NLG v2 is going to be designed to work better with users, permissions and > groups and will be better suited to those who don't want a simple "network > overview" and would like to restrict what different users and groups can > see. > > In terms of licensing, clause 4c states that if the work, ie. NLG, is > publicly displayed then all copyright notices must be kept intact, including > the author's name, designated company, title of the work and URL. Therefore > if you're providing access to NLG through a publicly-available URL or > website, the copyright notice must be left intact, otherwise if it is only > available to a set number of users (e.g. through an internal URL or > intranet) I'm happy for the copyright notice to be removed. > > Regards, > > Andy > >> ----- Original Message ----- >> Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released >> From: Giles Coochey >> To: nagios-users at lists.sourceforge.net >> Date: 18/02/2008 15:59 >> >> >> Andy, >> >> I thought I'd take a look at your project, as I have some interest in > having some sort of dynamic portal which customers can query and I've seen > your project surface time-and-time again on this list. >> I've implemented the 'hack' to limit which hosts a particular user can > see, but notice that they still see the "Overall Network Health" still shows > the values for all hosts & services, rather than those in the currently > selected filter. >> It would be much better if the granularity for this tool followed the > 'Nagios way' and used the contact group for all visibility. Unfortunately > this is very important for our environment. >> In terms of the license, what if I want to remove all references to Nagios > Looking Glass, your name etc... from the portal interface? Is that going to > be an issue? I'm not talking about removing any copyright or license > information from the source files itself, just the customer facing side. >> Thanks >> >> Giles >> >> ________________________________________ >> From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Andy > Shellam >> Sent: 18 February 2008 13:06 >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released >> >> The Nagios Looking Glass is pleased to announce the availability of NLG > 1.1.0 beta 1. >> This is the first release in the 1.1 series that makes NLG compatible with > Nagios 3 (tested with Nagios 3.0rc2) while maintaining compatibility with > Nagios 2.x. >> The major changes in this version against 1.0.6 are: >> * Added configuration option to change the location of cached files > client-side (http://tracker.networkmail.eu/task/337) >> * Locking for cache files (http://tracker.networkmail.eu/task/336) >> * comments.dat and downtime.dat no longer available (change these to > status.dat in server/sync-files/s3_config.inc.php) > (http://tracker.networkmail.eu/task/333) >> * Allow override of default timezone > (http://tracker.networkmail.eu/task/214) >> * Ability to disable client-side caching > (http://tracker.networkmail.eu/task/126) >> The new release > can be downloaded from www.nagioslookingglass.co.uk/downloads. >> Regards, >> >> Andy Shellam >> Lead Developer >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mailinglists at belfin.ch Tue Feb 19 10:20:43 2008 From: mailinglists at belfin.ch (Philipp Snizek) Date: Tue, 19 Feb 2008 10:20:43 +0100 (CET) Subject: service escalation question Message-ID: <53139.172.17.0.1.1203412843.squirrel@webmail.seaan.net> Hi I would like to configure service escalations for a number of services. The services normal_check_interval is 10 minutes and the retry_check_interval 5 minutes. If state is not OK, a notification for the NOK service is sent only once (notification_interval 0) to a designated contact. If the serviceescalation's first_notification is 3, what behaviour can I expect from Nagios? Will Nagios expect to really sent 3 notifications before it escalates or does the first_notification parameter depend on the service definition's retry_check_interval? Thanks for your time Best, Philipp ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gaurav at subisu.net.np Tue Feb 19 10:29:11 2008 From: gaurav at subisu.net.np (Gaurav Ghimire) Date: Tue, 19 Feb 2008 15:14:11 +0545 Subject: Error: Cannot Complete SSL Handshake. Message-ID: <47BAA167.3030406@subisu.net.np> Dear all, Hi...This is my first post to the list so far. I have been facing a very weird problem related to the SSL handshake when trying to use NRPE. All (nagios, nagios-plugins and NRPE) are of v2.10 both the client running the NRPE Daemon and the Nagios Monitoring host are with the same version of nagios and related plugins. The configuration and the installation went fine and I had not had any problems with it, but when I use the NRPE along with I see a UNKNOWN Error ( CHECK_NRPE: Error receiving data from host.) in my web interface. But if the same [./check_nrpe -H host -c plugin] is run in the terminal I dont receive a single error and it goes fine. Seeing at the nagios logs and the syslogs at the instant I see [ Error: Could not complete SSL handshake. 1] but when I do the same thing via the terminal it goes fine and not a single error is logged. MY QUESTION: Why am I seeing the error in my web interface and when nagios induces it, and not when I do it myself from the console? TIA, Gaurav -- Disclaimer: This Email message along with any attachments is intended only for the addressee and may contain confidential and/or privileged information. If you have received this message in error, please notify sender immediately and delete this message from your system. If the reader is not the intended recipient then any dissemination, distribution or copy of this communication is strictly prohibited. Reasonable precautions have been taken to ensure that this message is virus-free. However, Subisu Cablenet Pvt. Ltd. does not accept responsibility for any loss or damage arising from the use of this message or attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sholikar at yahoo.com Tue Feb 19 10:37:52 2008 From: sholikar at yahoo.com (sachin holikar) Date: Tue, 19 Feb 2008 01:37:52 -0800 (PST) Subject: NRPE not working --- 127 Error code Message-ID: <80073.55390.qm@web53203.mail.re2.yahoo.com> Hi All, Getting following error "(Return code of 127 is out of bounds - plugin may be missing) " when we configured few services on a remote system using NRPE. Have installed nagios plugins using RPM and NRPE using compile code.Post installations all the plugins were on "/usr/lib/nagios/plugins/" . Thinking that this would be the issue , have copied all the plugins to ""/usr/local/nagios/libexec/"" .Currently all the plugins are present under "/usr/local/nagios/libexec/" & "/usr/lib/nagios/plugins/" as well. What could be the issue? Please gve us atleast a hint. Thanks, --------------------------------- Never miss a thing. Make Yahoo your homepage. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Tue Feb 19 10:39:54 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 19 Feb 2008 09:39:54 +0000 Subject: check_mem.pl In-Reply-To: <47B9536F.4070403@rbmail.ch> References: <47B9536F.4070403@rbmail.ch> Message-ID: <47BAA3EA.9080009@googlemail.com> Andre Keller wrote: > Hi there > > does anybody have a memory plugin which adds the cached memory to the > free memory? Or does anybody know how I could modify check_mem.pl from > nagios exchange to accomplish that? > > > Thanks and regards > > Andr? > I wrote a check_ram plugin which does this (in fact it includes Cache as Free by default as this reflects the way Linux really works, but there is also a switch to change this behaviour too if desired). You can find it here: http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=909 It was the first nagios plugin I ever wrote and I haven't looked at it in a while so if there is anything that's imperfect, let me know and I'll change it. Thanks -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gaurav at subisu.net.np Tue Feb 19 10:41:28 2008 From: gaurav at subisu.net.np (Gaurav Ghimire) Date: Tue, 19 Feb 2008 15:26:28 +0545 Subject: NRPE not working --- 127 Error code In-Reply-To: <80073.55390.qm@web53203.mail.re2.yahoo.com> References: <80073.55390.qm@web53203.mail.re2.yahoo.com> Message-ID: <47BAA448.9070609@subisu.net.np> Dear Sachin, Though you compiled it to some other directory...did you check with the permissions ..and I guess version mismatch may also cause the same error. Regards, Gaurav Disclaimer: This Email message along with any attachments is intended only for the addressee and may contain confidential and/or privileged information. If you have received this message in error, please notify sender immediately and delete this message from your system. If the reader is not the intended recipient then any dissemination, distribution or copy of this communication is strictly prohibited. Reasonable precautions have been taken to ensure that this message is virus-free. However, Subisu Cablenet Pvt. Ltd. does not accept responsibility for any loss or damage arising from the use of this message or attachments. sachin holikar wrote: > Hi All, > > Getting following error "(Return code of 127 is out of bounds - plugin > may be missing) " when we configured few services on a remote system > using NRPE. Have installed nagios plugins using RPM and NRPE using > compile code.Post installations all > the plugins were on "/usr/lib/nagios/plugins/" . Thinking that this > would be the issue , have copied all the plugins to > ""/usr/local/nagios/libexec/"" .Currently all the plugins are present > under "/usr/local/nagios/libexec/" & "/usr/lib/nagios/plugins/" as well. > What could be the issue? Please gve us atleast a hint. > > Thanks, > > ------------------------------------------------------------------------ > Never miss a thing. Make Yahoo your homepage. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tom.welsh at bt.com Tue Feb 19 10:43:50 2008 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Tue, 19 Feb 2008 09:43:50 -0000 Subject: Error: Cannot Complete SSL Handshake. In-Reply-To: <47BAA167.3030406@subisu.net.np> References: <47BAA167.3030406@subisu.net.np> Message-ID: <6546343904687E41B19D8E5A26AB9F53024E2DA7@E03MVB2-UKBR.domain1.systemhost.net> Hi Gaurav you don't point out what OS you are running Nagios/nrpe under. Have you checked the faq on nagios.org under support. There are multiple faqs available for this error. Does any off your errors fall into any of them? Regards Tom ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Gaurav Ghimire Sent: 19 February 2008 09:29 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Error: Cannot Complete SSL Handshake. Dear all, Hi...This is my first post to the list so far. I have been facing a very weird problem related to the SSL handshake when trying to use NRPE. All (nagios, nagios-plugins and NRPE) are of v2.10 both the client running the NRPE Daemon and the Nagios Monitoring host are with the same version of nagios and related plugins. The configuration and the installation went fine and I had not had any problems with it, but when I use the NRPE along with I see a UNKNOWN Error ( CHECK_NRPE: Error receiving data from host.) in my web interface. But if the same [./check_nrpe -H host -c plugin] is run in the terminal I dont receive a single error and it goes fine. Seeing at the nagios logs and the syslogs at the instant I see [ Error: Could not complete SSL handshake. 1] but when I do the same thing via the terminal it goes fine and not a single error is logged. MY QUESTION: Why am I seeing the error in my web interface and when nagios induces it, and not when I do it myself from the console? TIA, Gaurav -- Disclaimer: This Email message along with any attachments is intended only for the addressee and may contain confidential and/or privileged information. If you have received this message in error, please notify sender immediately and delete this message from your system. If the reader is not the intended recipient then any dissemination, distribution or copy of this communication is strictly prohibited. Reasonable precautions have been taken to ensure that this message is virus-free. However, Subisu Cablenet Pvt. Ltd. does not accept responsibility for any loss or damage arising from the use of this message or attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gaurav at subisu.net.np Tue Feb 19 10:48:19 2008 From: gaurav at subisu.net.np (Gaurav Ghimire) Date: Tue, 19 Feb 2008 15:33:19 +0545 Subject: Error: Cannot Complete SSL Handshake. In-Reply-To: <6546343904687E41B19D8E5A26AB9F53024E2DA7@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F53024E2DA7@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: <47BAA5E3.2030908@subisu.net.np> Hi Tom, Sorry, I missed to point the OS....its Fedora Core 4 both the Monitoring Host and the clients running the daemons are on the same OS. Yes I did check with the FAQs on the site and also visited other related forums, but unfortunately I did not find any such occurrences that matches to what I am facing for now. Most of the related posts that talks of the same problem says they receive the error when running the check_nrpe plugin from console as well. But in my case its not as such. I don't get the error when running it from console, neither any such instance is logged, its just when nagios itselfs runs the plugin I see the error in the web interface. Regards, Gaurav Disclaimer: This Email message along with any attachments is intended only for the addressee and may contain confidential and/or privileged information. If you have received this message in error, please notify sender immediately and delete this message from your system. If the reader is not the intended recipient then any dissemination, distribution or copy of this communication is strictly prohibited. Reasonable precautions have been taken to ensure that this message is virus-free. However, Subisu Cablenet Pvt. Ltd. does not accept responsibility for any loss or damage arising from the use of this message or attachments. tom.welsh at bt.com wrote: > Hi Gaurav > you don't point out what OS you are running Nagios/nrpe under. > > Have you checked the faq on nagios.org under support. There are > multiple faqs available for this error. Does any off your errors fall > into any of them? > > Regards > > Tom > > > > ------------------------------------------------------------------------ > *From:* nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] *On Behalf Of > *Gaurav Ghimire > *Sent:* 19 February 2008 09:29 > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] Error: Cannot Complete SSL Handshake. > > Dear all, > > Hi...This is my first post to the list so far. > > I have been facing a very weird problem related to the SSL handshake > when trying to use NRPE. > > All (nagios, nagios-plugins and NRPE) are of v2.10 both the client > running the NRPE Daemon and the Nagios Monitoring host are with the > same version of nagios and related plugins. > > The configuration and the installation went fine and I had not had > any problems with it, but when I use the NRPE along with I see a > UNKNOWN Error ( CHECK_NRPE: Error receiving data from host.) in my web > interface. But if the same [./check_nrpe -H host -c plugin] is run in > the terminal I dont receive a single error and it goes fine. Seeing at > the nagios logs and the syslogs at the instant I see [ Error: Could > not complete SSL handshake. 1] but when I do the same thing via the > terminal it goes fine and not a single error is logged. > > MY QUESTION: Why am I seeing the error in my web interface and when > nagios induces it, and not when I do it myself from the console? > > TIA, > > Gaurav > -- > Disclaimer: > This Email message along with any attachments is intended only for the addressee and may contain confidential and/or privileged information. If you have received this message in error, please notify sender immediately and delete this message from your system. If the reader is not the intended recipient then any dissemination, distribution or copy of this communication is strictly prohibited. Reasonable precautions have been taken to ensure that this message is virus-free. However, Subisu Cablenet Pvt. Ltd. does not accept responsibility for any loss or damage arising from the use of this message or attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Sascha.Runschke at gfkl.com Tue Feb 19 10:49:37 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Tue, 19 Feb 2008 10:49:37 +0100 Subject: Antwort: Re: check_mem.pl In-Reply-To: <47BAA3EA.9080009@googlemail.com> References: <47BAA3EA.9080009@googlemail.com> Message-ID: nagios-users-bounces at lists.sourceforge.net schrieb am 19.02.2008 10:39:54: > http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=909 > > It was the first nagios plugin I ever wrote and I haven't looked at it > in a while so if there is anything that's imperfect, let me know and > I'll change it. Could you change it into a perl plugin? ;) I'd like to give it a try, but I cannot install python on all our servers now, since we don't use that at all. Pity. S -- Sascha Runschke Netzwerk- und Systemmanagement Abt. Organisation und Betrieb - IT-Infrastruktur Telefon : +49 (201) 102-1879 Mobile : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Tue Feb 19 10:54:59 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 19 Feb 2008 09:54:59 +0000 Subject: Error: Cannot Complete SSL Handshake. In-Reply-To: <47BAA5E3.2030908@subisu.net.np> References: <6546343904687E41B19D8E5A26AB9F53024E2DA7@E03MVB2-UKBR.domain1.systemhost.net> <47BAA5E3.2030908@subisu.net.np> Message-ID: <47BAA773.2050000@googlemail.com> Gaurav Ghimire wrote: > Hi Tom, > > Sorry, I missed to point the OS....its Fedora Core 4 both the > Monitoring Host and the clients running the daemons are on the same OS. > > Yes I did check with the FAQs on the site and also visited other > related forums, but unfortunately I did not find any such occurrences > that matches to what I am facing for now. Most of the related posts > that talks of the same problem says they receive the error when > running the check_nrpe plugin from console as well. But in my case its > not as such. I don't get the error when running it from console, > neither any such instance is logged, its just when nagios itselfs runs > the plugin I see the error in the web interface. If you run it ok on the command line but Nagios complains then there must be a discrepancy between your nagios config, ie what nagios is running and what you are doing on the command line, perhaps you're not testing as the nagios user account on the command line or there is a parameter problem or something when nagios runs it? I get this error when using -H localhost but not when -H hostname so perhaps it's one of these kinds of issues, try logging the command being executed by echoing it to a file and then run that exact command on the command line. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Tue Feb 19 10:56:42 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 19 Feb 2008 09:56:42 +0000 Subject: Antwort: Re: check_mem.pl In-Reply-To: References: Message-ID: <47BAA7DA.1040109@googlemail.com> Sascha.Runschke at gfkl.com wrote: > > nagios-users-bounces at lists.sourceforge.net schrieb am 19.02.2008 10:39:54: > > > > http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1[p_view]=909 > > > > It was the first nagios plugin I ever wrote and I haven't looked at it > > in a while so if there is anything that's imperfect, let me know and > > I'll change it. > > Could you change it into a perl plugin? ;) > > I'd like to give it a try, but I cannot install python on all our servers > now, since we don't use that at all. Pity. > > S You didn't mention what Operating System you were running, but if you are using Linux, then any remotely modern distro will have it by default and it will just run. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From andy.shellam-lists at mailnetwork.co.uk Tue Feb 19 11:12:13 2008 From: andy.shellam-lists at mailnetwork.co.uk (Andy Shellam) Date: Tue, 19 Feb 2008 10:12:13 +0000 Subject: Nagios Looking Glass 1.1.0 beta 1 released Message-ID: <43df928fdc7821e783d4b9a48f058a20@connect.networkmail.eu> Hi Lars, I agree with you 100%. If I, as a user (techie or not), looking at my own machines, I'd expect some sort of summary; I wouldn't care about anyone else's or even the network as a whole. As you quite rightly said Lars, the 'overall health' needs to be aimed at the users "select machines". NLG v1, however, has no concept of machine ownership, it simply shows the entire Nagios estate. This isn't a fault, that's how it was designed. It is, however, also where it falls down, and the need for a solution targeted to a different audience becomes apparent, hence the v2 project. I designed v1 originally for my own use, to present users who have signed up to my services as an ISP with an overview of my network and how well (or badly) it was performing. Users didn't have machines or services of their own; they just wanted to be able to see if network problems were affecting the servers they may use. Since I released it to the Nagios community last year, a wider audience have seen the potential for using NLG in ways it wasn't originally designed, which is fantastic because it means I get the chance to build on the success of the project, and hopefully design and build a solution that more and more people will find useful :-) The "host-filter" hack was indeed a hack as many people were requesting the same thing, but with the current code architecture it wasn't possible to do a permanent fix, and it was indeed a hack put in simply to tide people over until v2 is ready. Andy > ----- Original Message ----- > Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released > From: Lars Stavholm > To: "Andy Shellam" > CC: "Giles Coochey" ,"nagios-users at lists.sourceforge.net" > Date: 19/02/2008 7:01 > > > Andy Shellam wrote: > > Hi Giles, > > > > Thanks for your comments. The 'Network Health' page is designed to reflect > > the status of the network as a whole which, I agree, can be confusing when > > host-specific filters are specified. An example scenario of the reasoning > > behind this is: > > > > You're viewing the 'network health' page and select the "down hosts only" > > filter. All the hosts in this filter will be down, thus rendering the > > network "100% down", which obviously looks bad. > > Of course it does, and as an example of the situation at hand, > pretty useless. > > How about viewing this problem from the users point of view? > And I mean the non-techie user. Then it would be quite obvious > that Network Health should reflect the network health of the > users machines, otherwise you would have a bit of explaining > to do to a bunch of not so happy users, that would look at you > with those eyes saying "now there's a real techie, he hasn't > got a clue, let's get out of here". > > When using the "down hosts only filter", one might consider not > letting this reflect on the overall Network Health at all, > actually. IMHO the Network Health should show the summary of > health for the users select machines only, at all times, > filter or not. > > Other than that, NLG is a brilliant solution, badly needed > out there (here at least), and I've been looking forward to > try it out with nagios 3.x. Thanks for the effort Andy! > > Just my 2c worth > > Cheers > /Lars > > > NLG v2 is going to be designed to work better with users, permissions and > > groups and will be better suited to those who don't want a simple "network > > overview" and would like to restrict what different users and groups can > > see. > > > > In terms of licensing, clause 4c states that if the work, ie. NLG, is > > publicly displayed then all copyright notices must be kept intact, including > > the author's name, designated company, title of the work and URL. Therefore > > if you're providing access to NLG through a publicly-available URL or > > website, the copyright notice must be left intact, otherwise if it is only > > available to a set number of users (e.g. through an internal URL or > > intranet) I'm happy for the copyright notice to be removed. > > > > Regards, > > > > Andy > > > >> ----- Original Message ----- > >> Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released > >> From: Giles Coochey > >> To: nagios-users at lists.sourceforge.net > >> Date: 18/02/2008 15:59 > >> > >> > >> Andy, > >> > >> I thought I'd take a look at your project, as I have some interest in > > having some sort of dynamic portal which customers can query and I've seen > > your project surface time-and-time again on this list. > >> I've implemented the 'hack' to limit which hosts a particular user can > > see, but notice that they still see the "Overall Network Health" still shows > > the values for all hosts & services, rather than those in the currently > > selected filter. > >> It would be much better if the granularity for this tool followed the > > 'Nagios way' and used the contact group for all visibility. Unfortunately > > this is very important for our environment. > >> In terms of the license, what if I want to remove all references to Nagios > > Looking Glass, your name etc... from the portal interface? Is that going to > > be an issue? I'm not talking about removing any copyright or license > > information from the source files itself, just the customer facing side. > >> Thanks > >> > >> Giles > >> > >> ________________________________________ > >> From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Andy > > Shellam > >> Sent: 18 February 2008 13:06 > >> To: nagios-users at lists.sourceforge.net > >> Subject: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released > >> > >> The Nagios Looking Glass is pleased to announce the availability of NLG > > 1.1.0 beta 1. > >> This is the first release in the 1.1 series that makes NLG compatible with > > Nagios 3 (tested with Nagios 3.0rc2) while maintaining compatibility with > > Nagios 2.x. > >> The major changes in this version against 1.0.6 are: > >> * Added configuration option to change the location of cached files > > client-side (http://tracker.networkmail.eu/task/337) > >> * Locking for cache files (http://tracker.networkmail.eu/task/336) > >> * comments.dat and downtime.dat no longer available (change these to > > status.dat in server/sync-files/s3_config.inc.php) > > (http://tracker.networkmail.eu/task/333) > >> * Allow override of default timezone > > (http://tracker.networkmail.eu/task/214) > >> * Ability to disable client-side caching > > (http://tracker.networkmail.eu/task/126) > >> The new release > > can be downloaded from www.nagioslookingglass.co.uk/downloads. > >> Regards, > >> > >> Andy Shellam > >> Lead Developer > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at 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/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From greg at easyflirt.com Tue Feb 19 11:53:36 2008 From: greg at easyflirt.com (Greg) Date: Tue, 19 Feb 2008 11:53:36 +0100 Subject: Nagios didn't rotate logs Message-ID: <47BAB530.3020607@easyflirt.com> Hi, Nagios 3.0rc1 didn't rotate the log files ! Settings : epoc-01:~# egrep ^log_ /etc/nagios/nagios.cfg log_file=/var/log/nagios.log log_rotation_method=d log_archive_path=/var/nagios/archives log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=1 log_external_commands=1 log_passive_checks=1 epoc-01:~# ls -altrh /var/log/nagios.* -rw-r--r-- 1 nagios nagios 12M 2008-02-19 11:51 /var/log/nagios.log epoc-01:~# ls -altrh /var/nagios/archives/ total 8.0K drwxrwxr-x 2 nagios nagios 4.0K 2007-12-19 09:15 . drwxrwxr-x 5 nagios nagios 4.0K 2008-02-19 11:52 .. epoc-01:~# ps auxw | grep nagios nagios 1365 0.4 0.0 16852 2348 ? Ssl Feb13 41:26 /usr/local/nagios/bin/nagios -d /etc/nagios/nagios.cfg Is it a bug ? Should I'll have to use debian's logrotate ? -- Greg ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gaurav at subisu.net.np Tue Feb 19 12:36:37 2008 From: gaurav at subisu.net.np (Gaurav Ghimire) Date: Tue, 19 Feb 2008 17:21:37 +0545 Subject: Error: Cannot Complete SSL Handshake. In-Reply-To: <47BAA773.2050000@googlemail.com> References: <6546343904687E41B19D8E5A26AB9F53024E2DA7@E03MVB2-UKBR.domain1.systemhost.net> <47BAA5E3.2030908@subisu.net.np> <47BAA773.2050000@googlemail.com> Message-ID: <47BABF45.5080103@subisu.net.np> Dear all and Hari, Thanks for your help. I figured out the problem to be with resources.cfg. USER1 was defined as a location that did have the nrpe plugin with some older version. Changing it solved the problem. I was just wondering and was astonished then..when it was working fine from the commandline and nagios was shooting errors ;) Regards, Gaurav Disclaimer: This Email message along with any attachments is intended only for the addressee and may contain confidential and/or privileged information. If you have received this message in error, please notify sender immediately and delete this message from your system. If the reader is not the intended recipient then any dissemination, distribution or copy of this communication is strictly prohibited. Reasonable precautions have been taken to ensure that this message is virus-free. However, Subisu Cablenet Pvt. Ltd. does not accept responsibility for any loss or damage arising from the use of this message or attachments. Hari Sekhon wrote: > Gaurav Ghimire wrote: >> Hi Tom, >> >> Sorry, I missed to point the OS....its Fedora Core 4 both the >> Monitoring Host and the clients running the daemons are on the same OS. >> >> Yes I did check with the FAQs on the site and also visited other >> related forums, but unfortunately I did not find any such occurrences >> that matches to what I am facing for now. Most of the related posts >> that talks of the same problem says they receive the error when >> running the check_nrpe plugin from console as well. But in my case >> its not as such. I don't get the error when running it from console, >> neither any such instance is logged, its just when nagios itselfs >> runs the plugin I see the error in the web interface. > If you run it ok on the command line but Nagios complains then there > must be a discrepancy between your nagios config, ie what nagios is > running and what you are doing on the command line, perhaps you're not > testing as the nagios user account on the command line or there is a > parameter problem or something when nagios runs it? > > I get this error when using -H localhost but not when -H hostname so > perhaps it's one of these kinds of issues, try logging the command > being executed by echoing it to a file and then run that exact command > on the command line. > > -h > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 19 13:44:15 2008 From: marc at ena.com (Marc Powell) Date: Tue, 19 Feb 2008 06:44:15 -0600 Subject: NRPE not working --- 127 Error code In-Reply-To: <80073.55390.qm@web53203.mail.re2.yahoo.com> References: <80073.55390.qm@web53203.mail.re2.yahoo.com> Message-ID: <2845D2E8-0945-4C68-B27D-DE4D499AF709@ena.com> On Feb 19, 2008, at 3:37 AM, sachin holikar wrote: > Hi All, > > Getting following error "(Return code of 127 is out of bounds - > plugin may be missing) " when we Either the command{} definition for check_nrpe on your nagios host specifies and invalid path to the check_nrpe binary or the command[] definitions on nrpe.cfg on the remote machine specifies an invalid path to the plugin you are trying to execute. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stava at telcotec.se Tue Feb 19 13:56:25 2008 From: stava at telcotec.se (Lars Stavholm) Date: Tue, 19 Feb 2008 13:56:25 +0100 Subject: Nagios Looking Glass 1.1.0 beta 1 released In-Reply-To: <43df928fdc7821e783d4b9a48f058a20@connect.networkmail.eu> References: <43df928fdc7821e783d4b9a48f058a20@connect.networkmail.eu> Message-ID: <47BAD1F9.4060304@telcotec.se> Fair enough, looking forward to version 2 of NLG! Cheers /Lars Andy Shellam wrote: > Hi Lars, > > I agree with you 100%. If I, as a user (techie or not), looking at my own > machines, I'd expect some sort of summary; I wouldn't care about anyone > else's or even the network as a whole. As you quite rightly said Lars, the > 'overall health' needs to be aimed at the users "select machines". NLG v1, > however, has no concept of machine ownership, it simply shows the entire > Nagios estate. > > This isn't a fault, that's how it was designed. It is, however, also where > it falls down, and the need for a solution targeted to a different audience > becomes apparent, hence the v2 project. > > I designed v1 originally for my own use, to present users who have signed up > to my services as an ISP with an overview of my network and how well (or > badly) it was performing. Users didn't have machines or services of their > own; they just wanted to be able to see if network problems were affecting > the servers they may use. > > Since I released it to the Nagios community last year, a wider audience have > seen the potential for using NLG in ways it wasn't originally designed, > which is fantastic because it means I get the chance to build on the success > of the project, and hopefully design and build a solution that more and more > people will find useful :-) > > The "host-filter" hack was indeed a hack as many people were requesting the > same thing, but with the current code architecture it wasn't possible to do > a permanent fix, and it was indeed a hack put in simply to tide people over > until v2 is ready. > > Andy > > >> ----- Original Message ----- >> Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released >> From: Lars Stavholm >> To: "Andy Shellam" >> CC: "Giles Coochey" > ,"nagios-users at lists.sourceforge.net" > >> Date: 19/02/2008 7:01 >> >> >> Andy Shellam wrote: >>> Hi Giles, >>> >>> Thanks for your comments. The 'Network Health' page is designed to > reflect >>> the status of the network as a whole which, I agree, can be confusing > when >>> host-specific filters are specified. An example scenario of the > reasoning >>> behind this is: >>> >>> You're viewing the 'network health' page and select the "down hosts > only" >>> filter. All the hosts in this filter will be down, thus rendering the >>> network "100% down", which obviously looks bad. >> Of course it does, and as an example of the situation at hand, >> pretty useless. >> >> How about viewing this problem from the users point of view? >> And I mean the non-techie user. Then it would be quite obvious >> that Network Health should reflect the network health of the >> users machines, otherwise you would have a bit of explaining >> to do to a bunch of not so happy users, that would look at you >> with those eyes saying "now there's a real techie, he hasn't >> got a clue, let's get out of here". >> >> When using the "down hosts only filter", one might consider not >> letting this reflect on the overall Network Health at all, >> actually. IMHO the Network Health should show the summary of >> health for the users select machines only, at all times, >> filter or not. >> >> Other than that, NLG is a brilliant solution, badly needed >> out there (here at least), and I've been looking forward to >> try it out with nagios 3.x. Thanks for the effort Andy! >> >> Just my 2c worth >> >> Cheers >> /Lars >> >>> NLG v2 is going to be designed to work better with users, permissions > and >>> groups and will be better suited to those who don't want a simple > "network >>> overview" and would like to restrict what different users and groups can >>> see. >>> >>> In terms of licensing, clause 4c states that if the work, ie. NLG, is >>> publicly displayed then all copyright notices must be kept intact, > including >>> the author's name, designated company, title of the work and URL. > Therefore >>> if you're providing access to NLG through a publicly-available URL or >>> website, the copyright notice must be left intact, otherwise if it is > only >>> available to a set number of users (e.g. through an internal URL or >>> intranet) I'm happy for the copyright notice to be removed. >>> >>> Regards, >>> >>> Andy >>> >>>> ----- Original Message ----- >>>> Subject: Re: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released >>>> From: Giles Coochey >>>> To: nagios-users at lists.sourceforge.net >>>> Date: 18/02/2008 15:59 >>>> >>>> >>>> Andy, >>>> >>>> I thought I'd take a look at your project, as I have some interest in >>> having some sort of dynamic portal which customers can query and I've > seen >>> your project surface time-and-time again on this list. >>>> I've implemented the 'hack' to limit which hosts a particular user can >>> see, but notice that they still see the "Overall Network Health" still > shows >>> the values for all hosts & services, rather than those in the currently >>> selected filter. >>>> It would be much better if the granularity for this tool followed the >>> 'Nagios way' and used the contact group for all visibility. > Unfortunately >>> this is very important for our environment. >>>> In terms of the license, what if I want to remove all references to > Nagios >>> Looking Glass, your name etc... from the portal interface? Is that going > to >>> be an issue? I'm not talking about removing any copyright or license >>> information from the source files itself, just the customer facing side. >>>> Thanks >>>> >>>> Giles >>>> >>>> ________________________________________ >>>> From: nagios-users-bounces at lists.sourceforge.net >>> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Andy >>> Shellam >>>> Sent: 18 February 2008 13:06 >>>> To: nagios-users at lists.sourceforge.net >>>> Subject: [Nagios-users] Nagios Looking Glass 1.1.0 beta 1 released >>>> >>>> The Nagios Looking Glass is pleased to announce the availability of NLG >>> 1.1.0 beta 1. >>>> This is the first release in the 1.1 series that makes NLG compatible > with >>> Nagios 3 (tested with Nagios 3.0rc2) while maintaining compatibility > with >>> Nagios 2.x. >>>> The major changes in this version against 1.0.6 are: >>>> * Added configuration option to change the location of cached files >>> client-side (http://tracker.networkmail.eu/task/337) >>>> * Locking for cache files (http://tracker.networkmail.eu/task/336) >>>> * comments.dat and downtime.dat no longer available (change these to >>> status.dat in server/sync-files/s3_config.inc.php) >>> (http://tracker.networkmail.eu/task/333) >>>> * Allow override of default timezone >>> (http://tracker.networkmail.eu/task/214) >>>> * Ability to disable client-side caching >>> (http://tracker.networkmail.eu/task/126) >>>> The new release >>> can be downloaded from www.nagioslookingglass.co.uk/downloads. >>>> Regards, >>>> >>>> Andy Shellam >>>> Lead Developer >>>> >>>> > ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at 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/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Tue Feb 19 14:58:20 2008 From: Roger at NagiosWiki.com (Roger) Date: Tue, 19 Feb 2008 05:58:20 -0800 Subject: NagiosPluginsNT scaling to 400 sites? Message-ID: <2b7af7c40802190558m15a261eetbb0b243e2576c1b4@mail.gmail.com> I have about 400 sites, each of which has a Windows server with LogMeIn that is dedicated to the IT department. I'm wondering if one centralized Nagios server can use the NagiosPluginsNT project (http://tinyurl.com/2y8ykr) to effectively monitor certain critical internal services from that location. I've used NagiosPluginsNT with one of the Nagios client agents (NSClient++ or NC_net, NSClient++ I think...) but I'm wondering if this will scale to 400 sites easily. I'm guessing I will need (a) to seriously crank down the active checks on the main server, and/or (b) test out these plugins on a box that makes, say, 100 checks every minute. Ideally, I would just drop a little Nagios sensor at each location. However, the IT team does not want this extra work and doing this via a client agent on a PC that's already there saves a lot of time. Any suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Tue Feb 19 15:51:21 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Tue, 19 Feb 2008 08:51:21 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <892272.5678.qm@web26210.mail.ukl.yahoo.com> References: <892272.5678.qm@web26210.mail.ukl.yahoo.com> Message-ID: Melanie, I have setup the plugin available here: http://nagios.manubulon.com/snmp_storage.html and it works perfectly for our needs. It uses SNMP so you would have to have SNMP setup on all of your Windows boxes but with that caveat it is the best solution I have found for monitoring windows partitions. If you are looking for something slightly less complicated or with fewer options there are many plugins on nagiosexchange.com that will do the job. I would recommend check_snmp_storage though due to the options and the robustness of the plugin. Best Regards, Mark L. Potter Systems Engineer Academy Sports & Outdoors 1800 N. Mason Rd Katy, Texas 77449 Melanie Pfefer wrote on 02/19/2008 03:04:23 AM: > Hello Mark, > I am interested in monitoring the disks even with no > exclusions. > I installed nagios2.9 and the nagios plugin on a linux > box. > > Would it be possible that you give me what you?ve done > to monitor the partitions on windows? > > I appreciate your help. > > --- mark.potter at academy.com wrote: > > > nagios-users-bounces at lists.sourceforge.net wrote on > > 02/18/2008 11:22:05 > > AM: > > > > > mark.potter at academy.com schrieb: > > > > We are using snmp to monitor our windows servers > > and I have had a > > request > > > > from the windows admins. They want to alert at > > 80% and 90% usage on > > C:\ > > > > but 95% and 98% on all other partitions. (I > > didn't ask about the logic > > > > > > because it wouldn't matter). I have tried > > multiple snmp plugins and > > all of > > > > them seem to act the same. I can monitor all the > > disks on a single > > check, > > > > a single disk on a single check but I cannot > > monitor all the disks > > except > > > > C: on a single check. There doesn't seem to be > > any plugins out there > > that > > > > allow exclusion and use snmp. Before I go > > writing a wrapper for an > > > > existing plugin does anyone know if there is a > > plugin that will allow > > me > > > > to do this? I am looking to exclude a single > > drive letter but check > > all > > > > the rest of the drives via snmp on windows > > servers. Thanks in advance > > for > > > > any advice. > > > > > > > > > > http://nagios.manubulon.com/snmp_storage.html > > > > > > > > > check_snmp_storage will do the Job > > > > > > Joerg > > That does exactly what we need. Is it listed on > > Nagios Exchange? Thank you > > for your response; I have managed to escape writing > > a wrapper thanks to > > you! > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio > > 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 > > > > ___________________________________________________________ > Yahoo! Answers - Got a question? Someone out there knows the answer. Try it > now. > http://uk.answers.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Tue Feb 19 16:01:30 2008 From: hittjw at gmail.com (Justin Hitt) Date: Tue, 19 Feb 2008 10:01:30 -0500 Subject: NagiosPluginsNT scaling to 400 sites? In-Reply-To: <2b7af7c40802190558m15a261eetbb0b243e2576c1b4@mail.gmail.com> References: <2b7af7c40802190558m15a261eetbb0b243e2576c1b4@mail.gmail.com> Message-ID: <93344bf0802190701v73bbe054yc62b70927e54cb10@mail.gmail.com> Roger, On Feb 19, 2008 8:58 AM, Roger wrote: > I'm wondering if one centralized Nagios server can use the NagiosPluginsNT > project (http://tinyurl.com/2y8ykr) to effectively monitor certain critical > internal services from that location. I'm monitoring 3,100 hosts at one location and 215 at another with very few issues. As long as you get as much work off the server, distributed to hosts (i.e. use NSCA or some kind of passive push) you'll be fine as your volume grows. If you are using virtualization, then you need a balanced model where you are using passive only on the global zone or host operating system, then light polling on individual zones. The model you describe sounds like it will work. There is a point where you'll need to optimize your top end hardware. My 215 sites is a test bed in a Solaris zone on a P4 2.8Ghz single processor ... needless to say, it doesn't run as clean as the larger installation. Some common problems you'll face: -- Your 'checkresults' queue may grow in size with stale checks because of the time it takes to cycle through all the hosts. Passive checks reporting to a main console will improve this and so will a more meaty head server. -- Some of the "Monitoring" menus become useless. For example, "Host Detail" will take forever to load and "Hostgroup Grid" will kill Internet Explorer. It would be nice to disable these menu items. Best, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Tue Feb 19 16:12:22 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 19 Feb 2008 15:12:22 +0000 Subject: NagiosPluginsNT scaling to 400 sites? In-Reply-To: <93344bf0802190701v73bbe054yc62b70927e54cb10@mail.gmail.com> References: <2b7af7c40802190558m15a261eetbb0b243e2576c1b4@mail.gmail.com> <93344bf0802190701v73bbe054yc62b70927e54cb10@mail.gmail.com> Message-ID: <47BAF1D6.3080803@googlemail.com> Justin Hitt wrote: > -- Some of the "Monitoring" menus become useless. For example, "Host > Detail" will take forever to load and "Hostgroup Grid" will kill > Internet Explorer. It would be nice to disable these menu items. > Just go to side.html on the nagios server and edit the html to remove the lines referencing those pages then, it's easy to do and that way they won't appear in your interface for you to accidentally click on them and make your system hang. If they don't appear in the sidebar, then you're unlikely to type in the url to hang the browser even if you knew what it was. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Tue Feb 19 16:15:17 2008 From: hittjw at gmail.com (Justin Hitt) Date: Tue, 19 Feb 2008 10:15:17 -0500 Subject: status.cgi very high cpu usage In-Reply-To: References: Message-ID: <93344bf0802190715y3e4f5502g191c5fbc2776c926@mail.gmail.com> Steve, On Feb 18, 2008 10:51 PM, Steve Kieu wrote: > I have a problem with status.cgi taking up too much cpu so the page is very > slow to render. Is there any way to find out where the problem is? > We have about 650 services monitored. The output os nagios -s command is Many of the "Monitoring" reports don't work well at volume, I've been asking users to only use "Unhandled" reports. You may get better response in Mozilla, but 'status.cgi' can kill Internet Explorer because of how it's loading everything in one large list. Nagios is at the point where it needs an SQL back end with a more modular look at how it stores site data. Perhaps, rolling status up into summary reports that are queried to create reports then go into host tables only when someone drills down into host information. In production you'll want to be on a multi-core multi-threaded machine; 2 cores won't do it if you'll have more than one user in the system. Until then, keep users in the "Unhandled" menus around "{Service,Host} Problems" Best, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Deborah.Martin at Kognitio.com Tue Feb 19 16:16:22 2008 From: Deborah.Martin at Kognitio.com (Deborah Martin) Date: Tue, 19 Feb 2008 15:16:22 -0000 Subject: Accessing macros as environment variables Message-ID: Hi, I want to access some of the macros such as $SERVICEOUTPUT$ as an environment variable. I've installed and configured Nagios 3.0rc2 and its all working fine. I have enabled enable_environment_macros=1 in nagios.cfg Does anyone have any idea of how I can access the macro from a shell script for example ? Are the environment variables prefixed with anything ? I can't seem to find it in the docs or FAQs elsewhere. Any pointers would be much appreciated! thanks, deborah *************************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited Registered in England: 0212 7833 Registered Address: 3a Waterside Park Cookham Road Bracknell Berks RG12 1RB VAT number: 864 4378 92 *************************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hittjw at gmail.com Tue Feb 19 16:24:01 2008 From: hittjw at gmail.com (Justin Hitt) Date: Tue, 19 Feb 2008 10:24:01 -0500 Subject: NagiosPluginsNT scaling to 400 sites? In-Reply-To: <47BAF1D6.3080803@googlemail.com> References: <2b7af7c40802190558m15a261eetbb0b243e2576c1b4@mail.gmail.com> <93344bf0802190701v73bbe054yc62b70927e54cb10@mail.gmail.com> <47BAF1D6.3080803@googlemail.com> Message-ID: <93344bf0802190724s12caaa71sbf35569a618efeff@mail.gmail.com> Hari, On Feb 19, 2008 10:12 AM, Hari Sekhon wrote: > If they don't appear in the sidebar, then you're unlikely to type in the > url to hang the browser even if you knew what it was. Excellent, commented out "Detail" and "Grid" options from 'side.html' ... definitely keeps people from bogging down the server with 'status.cgi' and still let's people drill down specific selects. Thank you. Best, Justin -- Attention Sales And Marketing Professionals Who Serve B2B Executives http://hittpublishingdirect.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 19 16:59:04 2008 From: marc at ena.com (Marc Powell) Date: Tue, 19 Feb 2008 09:59:04 -0600 Subject: Accessing macros as environment variables In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Deborah Martin > Sent: Tuesday, February 19, 2008 9:16 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Accessing macros as environment variables > Importance: High > Does anyone have any idea of how I can access the macro from a shell > script > for example ? Are the environment variables prefixed with anything ? I > can't seem to find it in the docs or FAQs elsewhere. > Any pointers would be much appreciated! http://nagios.sourceforge.net/docs/3_0/macros.html Macros as Environment Variables Most macros are made available as environment variables for easy reference by scripts or commands that are executed by Nagios. For purposes of security and sanity, $USERn$ and "on-demand" host and service macros are not made available as environment variables. Environment variables that contain standard macros are named the same as their corresponding macro names (listed here), with "NAGIOS_" prepended to their names. For example, the $HOSTNAME$ macro would be available as an environment variable named "NAGIOS_HOSTNAME". -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From rup001 at yahoo.com Tue Feb 19 20:00:50 2008 From: rup001 at yahoo.com (Vuppala) Date: Tue, 19 Feb 2008 11:00:50 -0800 (PST) Subject: does nagios work if we move nagios from Linux lower version server to higher version server In-Reply-To: References: Message-ID: <712271.5204.qm@web54602.mail.re2.yahoo.com> Hi What is the procedure to move nagios from lower version linux server to Higher version of linux server. Can we simply copy or need to install fresh and copy /var and /etc. Can anyone explain it. Thanks Rupesh --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 19 20:20:03 2008 From: marc at ena.com (Marc Powell) Date: Tue, 19 Feb 2008 13:20:03 -0600 Subject: status.cgi very high cpu usage In-Reply-To: <93344bf0802190715y3e4f5502g191c5fbc2776c926@mail.gmail.com> References: <93344bf0802190715y3e4f5502g191c5fbc2776c926@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Justin Hitt > Sent: Tuesday, February 19, 2008 9:15 AM > To: Steve Kieu > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] status.cgi very high cpu usage > > Steve, > > On Feb 18, 2008 10:51 PM, Steve Kieu wrote: > > I have a problem with status.cgi taking up too much cpu so the page is > very > > slow to render. Is there any way to find out where the problem is? > > We have about 650 services monitored. The output os nagios -s command is > > Many of the "Monitoring" reports don't work well at volume, I've been > asking users to only use "Unhandled" reports. You may get better > response in Mozilla, but 'status.cgi' can kill Internet Explorer > because of how it's loading everything in one large list. This is a browser rendering issue, nothing to do with the nagios' speed at reading and parsing its status file. To get the html to display status for all 3800 of my services takes under 1.5 seconds -- $ time wget http:///cgi-bin/status.cgi?host=all --12:59:50-- http:///cgi-bin/status.cgi?host=all => `status.cgi?host=all' Resolving Connecting to |:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 4,540,227 23.92M/s 12:59:51 (23.84 MB/s) - `status.cgi?host=all' saved [4540227] real 0m1.364s user 0m0.010s sys 0m0.000s $ wc -l status.cgi\?host\=all 128601 status.cgi?host=all > > Nagios is at the point where it needs an SQL back end with a more > modular look at how it stores site data. Perhaps, rolling status up Perhaps, but not for speed/performance reasons (outside of long-duration archive reports), IMHO. > into summary reports that are queried to create reports then go into > host tables only when someone drills down into host information. Isn't this already available? Status Summary, various links from Tactical Overview, Service Problems, etc. > In production you'll want to be on a multi-core multi-threaded > machine; 2 cores won't do it if you'll have more than one user in the > system. Until then, keep users in the "Unhandled" menus around > "{Service,Host} Problems" This is best from a workflow perspective but saying that you need to have dual cores if you have more than one nagios user is a bit a dubious statement. My own experience is that the above test used less than 3% cpu for the duration of a 3.1Ghz Xeon cpu, even when viewed with a browser. Granted it's not a vmware box but if vmware introduces that significant of a performance impact, I'd abandon it without prejudice. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From chrisserafin at gmail.com Tue Feb 19 21:13:46 2008 From: chrisserafin at gmail.com (chris serafin) Date: Tue, 19 Feb 2008 14:13:46 -0600 Subject: Monitor Netscreen VPNs Message-ID: I'm trying to monitor a ton of Juniper Netscreen VPNs through any way possible. I have the check_netscreen_vpn.pl plugin to check for this but I'm getting bad results. I can list the VPNs on the device but not input the name for monitoring the tunnel: [root at sylpheed libexec]# ./check_netscreen_vpn.pl -H 66.243.128.251 -C rk0nmssp -v 2 -n TO_WSMC -l Found interface: To GCS Supply Found interface: To_Resurrection Found interface: VPN for 10.50.190.0/24 Found interface: VPN for 172.26.1.0/24 Found interface: To_WSMC Found interface: To_Willow_Glenn [root at sylpheed libexec]# ./check_netscreen_vpn.pl -H 66.243.128.251 -C rk0nmssp -v 2 -n TO_WSMC **ERROR: Tunnel name not found**.[root at sylpheed libexec]# Anyone have insight as to the monitoring of Juniper Netscreen devices? All comments wanted, thanks! chrisserafin at gmail.com chris at chrisserafin.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From msh.computing at gmail.com Tue Feb 19 21:32:19 2008 From: msh.computing at gmail.com (Steve Kieu) Date: Wed, 20 Feb 2008 09:32:19 +1300 Subject: status.cgi very high cpu usage In-Reply-To: References: <93344bf0802190715y3e4f5502g191c5fbc2776c926@mail.gmail.com> Message-ID: > > > > > Many of the "Monitoring" reports don't work well at volume, I've been > > asking users to only use "Unhandled" reports. You may get better > > response in Mozilla, but 'status.cgi' can kill Internet Explorer > > because of how it's loading everything in one large list. > > This is a browser rendering issue, nothing to do with the nagios' speed > at reading and parsing its status file. To get the html to display > status for all 3800 of my services takes under 1.5 seconds -- > In my case it is not the browser issue. The problem is that status,cgi does not return data rather than the data it generates is so big. And status.cgi hog cpu time at the monitoring host (not the desktop viewing using a browser) I guess there are something wrong with status.cgi and even the extinfo.cgitake considerable amount of cpu as well Thanks -- Steve Kieu Mob: (+64) 021 250 6437 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sschwartz at gracenote.com Tue Feb 19 22:01:01 2008 From: sschwartz at gracenote.com (Steven Schwartz) Date: Tue, 19 Feb 2008 13:01:01 -0800 Subject: Problems with check_ssh Message-ID: I'm trying to use check_ssh as a substitute for check_ping, for machines on the other side of a no-ping firewall. When I run the check by hand, I get: ../libexec/check_ssh -t 20 -H SSH OK - Sun_SSH_1.1 (protocol 2.0) (The -H was added after trying it without - it worked from the command line without. Also, the -t 20 was added because I was getting 10-second timeout messages, and wanted to make sure that the code was responding to the right item placed in the checkcommands.cfg file - so I changed that to -t 20 as well.) My checkcommands.cfg entry: # 'check_ssh' command definition define command{ command_name check_ssh command_line $USER1$/check_ssh -4 -t 20 -H $HOSTADDRESS$ } My services entry: define service{ use generic-service ; Name of servic host_name service_description SSHPING is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_ssh } It is right now running as a service, but it fails in exactly the same way as a host-check command. I get: CRITICAL - Socket timeout after 20 seconds Even though from the command line, I can reach it no problem. Any suggestions? Steven Schwartz Gracenote, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Tue Feb 19 22:14:31 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 19 Feb 2008 13:14:31 -0800 Subject: does nagios work if we move nagios from Linux lower version server to higher version server In-Reply-To: <712271.5204.qm@web54602.mail.re2.yahoo.com> References: <712271.5204.qm@web54602.mail.re2.yahoo.com> Message-ID: <20080219211431.GX7974@bakgwai.americas.hpqcorp.net> On Tue, 19 Feb 2008, Vuppala wrote: > Hi > What is the procedure to move nagios from lower version linux server > to Higher version of linux server. Can we simply copy or need to install > fresh and copy /var and /etc. Can anyone explain it. The install process would be the same as if you were installing for the first time -- do *not* try to copy everything over. Once Nagios is installed, replace the config files with the ones from your old server. If you need to keep history, also copy over the log and status files to the new server in the correct location for that installation. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 19 22:35:14 2008 From: marc at ena.com (Marc Powell) Date: Tue, 19 Feb 2008 15:35:14 -0600 Subject: Problems with check_ssh In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Steven Schwartz > Sent: Tuesday, February 19, 2008 3:01 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problems with check_ssh > > I'm trying to use check_ssh as a substitute for check_ping, for machines > on the other side of a no-ping firewall. > > > > When I run the check by hand, I get: > > > > ../libexec/check_ssh -t 20 -H > > SSH OK - Sun_SSH_1.1 (protocol 2.0) Tested as the nagios user? > My checkcommands.cfg entry: > > > > # 'check_ssh' command definition > > define command{ > > command_name check_ssh > > command_line $USER1$/check_ssh -4 -t 20 -H $HOSTADDRESS$ > > } > > CRITICAL - Socket timeout after 20 seconds > > > > Even though from the command line, I can reach it no problem. Any > suggestions? Does from the successful test above exactly match the value of $HOSTADDRESS$? Fundamentally, the plugin is just doing a TCP connect to $HOSTADDRESS$ and looking for the version string. It then disconnects. Does 'telnet $HOSTADDRESS$ 22' return an SSH banner? You'll need to substitute the value of the 'address' parameter in the host{} definition for $HOSTADDRESS$ of course. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Tue Feb 19 22:36:07 2008 From: marc at ena.com (Marc Powell) Date: Tue, 19 Feb 2008 15:36:07 -0600 Subject: status.cgi very high cpu usage In-Reply-To: References: Message-ID: > -----Original Message----- > From: Steve Kieu [mailto:msh.computing at gmail.com] > Sent: Tuesday, February 19, 2008 2:32 PM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] status.cgi very high cpu usage > > > > > Many of the "Monitoring" reports don't work well at volume, I've > been > > asking users to only use "Unhandled" reports. You may get better > > response in Mozilla, but 'status.cgi' can kill Internet Explorer > > because of how it's loading everything in one large list. > > > This is a browser rendering issue, nothing to do with the nagios' > speed > at reading and parsing its status file. To get the html to display > status for all 3800 of my services takes under 1.5 seconds -- > > > > > In my case it is not the browser issue. The problem is that status,cgi > does not return data rather than the data it generates is so big. > 4.4M of data in 1.39s -- [nagios at noctools nagios]$ export REQUEST_METHOD=GET; export QUERY_STRING="host=all"; export REMOTE_USER="mpowell"; [nagios at noctools nagios]$ time ./sbin/status.cgi >foo real 0m1.390s user 0m1.300s sys 0m0.090s [nagios at noctools nagios]$ du -sh foo 4.4M foo > And status.cgi hog cpu time at the monitoring host (not the desktop > viewing using a browser) > > I guess there are something wrong with status.cgi and even the extinfo.cgi > take considerable amount of cpu as well What status view specifically is the issue for you? What version of nagios? Unless you're still using nagios-1.x, my gut feeling is that there is something outside of nagios causing the issue (i.e. disk IO, memory pressure, etc). Nagios-2 should be able to easily handle the status data for 650 services. That was an area of significant focus and improvement with the current version. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From melanie_pfefer at yahoo.co.uk Tue Feb 19 22:37:04 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Tue, 19 Feb 2008 21:37:04 +0000 (GMT) Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: <374060.86759.qm@web26214.mail.ukl.yahoo.com> Hello I added this: define command{ command_name check_win_storage command_line $USER3$/check_snmp_storage.pl -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c $ARG4$ } define service { use common-service hostgroup_name nt-servers service_description Check Windows drives check_command check_win_storage!public!^[CDE]:!80!90! } the result was: Return code of 127 is out of bounds - plugin may be missing Any idea? thanks --- mark.potter at academy.com wrote: > Melanie, > > I have setup the plugin available here: > http://nagios.manubulon.com/snmp_storage.html and it > works perfectly for > our needs. It uses SNMP so you would have to have > SNMP setup on all of > your Windows boxes but with that caveat it is the > best solution I have > found for monitoring windows partitions. If you are > looking for something > slightly less complicated or with fewer options > there are many plugins on > nagiosexchange.com that will do the job. I would > recommend > check_snmp_storage though due to the options and the > robustness of the > plugin. > > Best Regards, > > Mark L. Potter > Systems Engineer > Academy Sports & Outdoors > 1800 N. Mason Rd > Katy, Texas 77449 > > > > Melanie Pfefer wrote on > 02/19/2008 03:04:23 > AM: > > > Hello Mark, > > I am interested in monitoring the disks even with > no > > exclusions. > > I installed nagios2.9 and the nagios plugin on a > linux > > box. > > > > Would it be possible that you give me what you?ve > done > > to monitor the partitions on windows? > > > > I appreciate your help. > > > > --- mark.potter at academy.com wrote: > > > > > nagios-users-bounces at lists.sourceforge.net wrote > on > > > 02/18/2008 11:22:05 > > > AM: > > > > > > > mark.potter at academy.com schrieb: > > > > > We are using snmp to monitor our windows > servers > > > and I have had a > > > request > > > > > from the windows admins. They want to alert > at > > > 80% and 90% usage on > > > C:\ > > > > > but 95% and 98% on all other partitions. (I > > > didn't ask about the logic > > > > > > > > because it wouldn't matter). I have tried > > > multiple snmp plugins and > > > all of > > > > > them seem to act the same. I can monitor all > the > > > disks on a single > > > check, > > > > > a single disk on a single check but I cannot > > > monitor all the disks > > > except > > > > > C: on a single check. There doesn't seem to > be > > > any plugins out there > > > that > > > > > allow exclusion and use snmp. Before I go > > > writing a wrapper for an > > > > > existing plugin does anyone know if there is > a > > > plugin that will allow > > > me > > > > > to do this? I am looking to exclude a single > > > drive letter but check > > > all > > > > > the rest of the drives via snmp on windows > > > servers. Thanks in advance > > > for > > > > > any advice. > > > > > > > > > > > > > http://nagios.manubulon.com/snmp_storage.html > > > > > > > > > > > > check_snmp_storage will do the Job > > > > > > > > Joerg > > > That does exactly what we need. Is it listed on > > > Nagios Exchange? Thank you > > > for your response; I have managed to escape > writing > > > a wrapper thanks to > > > you! > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio > > > 2008. > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at 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 > > > > > > > > > ___________________________________________________________ > > Yahoo! Answers - Got a question? Someone out there > knows the answer. Try > it > > now. > > http://uk.answers.yahoo.com/ > ___________________________________________________________ Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Tue Feb 19 22:58:23 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Tue, 19 Feb 2008 15:58:23 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <374060.86759.qm@web26214.mail.ukl.yahoo.com> References: <374060.86759.qm@web26214.mail.ukl.yahoo.com> Message-ID: You will need to actually download the plugin from http://nagios.manubulon.com/snmp_storage.html as it is not part of the Nagios plugins package but rather a third party plugin. Melanie Pfefer wrote on 02/19/2008 03:37:04 PM: > Hello > > I added this: > > define command{ > command_name check_win_storage > command_line $USER3$/check_snmp_storage.pl > -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c > $ARG4$ > } > > > define service { > use common-service > hostgroup_name nt-servers > service_description Check Windows drives > check_command > check_win_storage!public!^[CDE]:!80!90! > } > > the result was: Return code of 127 is out of bounds - > plugin may be missing > > > Any idea? > thanks > --- mark.potter at academy.com wrote: > > > Melanie, > > > > I have setup the plugin available here: > > http://nagios.manubulon.com/snmp_storage.html and it > > works perfectly for > > our needs. It uses SNMP so you would have to have > > SNMP setup on all of > > your Windows boxes but with that caveat it is the > > best solution I have > > found for monitoring windows partitions. If you are > > looking for something > > slightly less complicated or with fewer options > > there are many plugins on > > nagiosexchange.com that will do the job. I would > > recommend > > check_snmp_storage though due to the options and the > > robustness of the > > plugin. > > > > Best Regards, > > > > Mark L. Potter > > Systems Engineer > > Academy Sports & Outdoors > > 1800 N. Mason Rd > > Katy, Texas 77449 > > > > > > > > Melanie Pfefer wrote on > > 02/19/2008 03:04:23 > > AM: > > > > > Hello Mark, > > > I am interested in monitoring the disks even with > > no > > > exclusions. > > > I installed nagios2.9 and the nagios plugin on a > > linux > > > box. > > > > > > Would it be possible that you give me what you?ve > > done > > > to monitor the partitions on windows? > > > > > > I appreciate your help. > > > > > > --- mark.potter at academy.com wrote: > > > > > > > nagios-users-bounces at lists.sourceforge.net wrote > > on > > > > 02/18/2008 11:22:05 > > > > AM: > > > > > > > > > mark.potter at academy.com schrieb: > > > > > > We are using snmp to monitor our windows > > servers > > > > and I have had a > > > > request > > > > > > from the windows admins. They want to alert > > at > > > > 80% and 90% usage on > > > > C:\ > > > > > > but 95% and 98% on all other partitions. (I > > > > didn't ask about the logic > > > > > > > > > > because it wouldn't matter). I have tried > > > > multiple snmp plugins and > > > > all of > > > > > > them seem to act the same. I can monitor all > > the > > > > disks on a single > > > > check, > > > > > > a single disk on a single check but I cannot > > > > monitor all the disks > > > > except > > > > > > C: on a single check. There doesn't seem to > > be > > > > any plugins out there > > > > that > > > > > > allow exclusion and use snmp. Before I go > > > > writing a wrapper for an > > > > > > existing plugin does anyone know if there is > > a > > > > plugin that will allow > > > > me > > > > > > to do this? I am looking to exclude a single > > > > drive letter but check > > > > all > > > > > > the rest of the drives via snmp on windows > > > > servers. Thanks in advance > > > > for > > > > > > any advice. > > > > > > > > > > > > > > > > http://nagios.manubulon.com/snmp_storage.html > > > > > > > > > > > > > > > check_snmp_storage will do the Job > > > > > > > > > > Joerg > > > > That does exactly what we need. Is it listed on > > > > Nagios Exchange? Thank you > > > > for your response; I have managed to escape > > writing > > > > a wrapper thanks to > > > > you! > > > > > > > > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Microsoft > > > > Defy all challenges. Microsoft(R) Visual Studio > > > > 2008. > > > > > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at 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 > > > > > > > > > > > > > > > ___________________________________________________________ > > > Yahoo! Answers - Got a question? Someone out there > > knows the answer. Try > > it > > > now. > > > http://uk.answers.yahoo.com/ > > > > > > ___________________________________________________________ > Support the World Aids Awareness campaign this month with Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From msh.computing at gmail.com Tue Feb 19 23:15:30 2008 From: msh.computing at gmail.com (Steve Kieu) Date: Wed, 20 Feb 2008 11:15:30 +1300 Subject: status.cgi very high cpu usage In-Reply-To: References: Message-ID: Hello, [nagios at noctools nagios]$ time ./sbin/status.cgi >foo > > real 0m1.390s > user 0m1.300s > sys 0m0.090s > [nagios at noctools nagios]$ du -sh foo > 4.4M foo > Similar benchmark in my case : nagtst01:/usr/local/nagios/sbin # time ./status.cgi > testdata real 0m3.553s user 0m3.316s sys 0m0.044s nagtst01:/usr/local/nagios/sbin # ls -l ../var/status.dat -rw-rw-r-- 1 nagios nagios 849578 2008-02-20 11:02 ../var/status.dat Compare with another box we have which is 30 times slower, and every part (sys usr ; is around 20 times slower. We suspect there are some thing wrong with the vmware config in this case. The other (good) box has around 460 services In another box: illuminati:/usr/local/nagios/sbin # time ./status.cgi > testdata real 0m0.364s user 0m0.104s sys 0m0.002s illuminati:/usr/local/nagios/sbin # ls -l ../var/status.dat -rw-rw-r-- 1 nagios nagcmd 622377 Feb 20 11:03 ../var/status.dat > What status view specifically is the issue for you? What version of > nagios? Unless you're still using nagios-1.x, my gut feeling is that Nagios 2.9 having some custom code I made but just change the some of the html tag output only, trivvial and 100% not affect performance. The view is requested by nagvis. I do not do the nagvis config then I am not sure how many request that nagvis generate but even the main page of nagios it still takes too much cpu for status.cgi to run Thanks for your help Cheers > > there is something outside of nagios causing the issue (i.e. disk IO, > memory pressure, etc). Nagios-2 should be able to easily handle the > status data for 650 services. That was an area of significant focus and > improvement with the current version. > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -- Steve Kieu Mob: (+64) 021 250 6437 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mailinglists at belfin.ch Wed Feb 20 09:40:59 2008 From: mailinglists at belfin.ch (Philipp Snizek) Date: Wed, 20 Feb 2008 09:40:59 +0100 (CET) Subject: Feature requests Message-ID: <48490.172.17.0.1.1203496859.squirrel@webmail.seaan.net> Hi we are integrating nagios in our company. we have nearly 3 dozens of servers and several hundred clients. We are 15 admins split in 3 groups. Our internal organisation is split in functions, eg. somebody cares for the mail stuff, another one cares for the web servers and so on. >From what I've seen while configuring contacts, contact groups, services and service groups and timeperiods there are a few limitations that from our point of view gave a bit of a headache. We tried to map our organisation to somehow fit into Nagios: - contact groups cannot be grouped. This would be great. Because the boss of such an organisational unit could then see all tests that belong to his OU. - a contact cannot be associated with more than 1 time period. Thus, I cannot be advertised from 0900 - 1700 by email (as I am in the office all day) and from 1700 - 0900 by sms unless I configure another contact for myself. - service groups cannot be associated with contact groups and vice versa. this would be very nice if serveral services are grouped then the service group could be associated with the contact group. - and finally theres a bug in the Nagios 2.6 (Debian Etch Stable) documentation regarding contacts: A contact must have an email address. The nagios documentation states otherwise. Thanks for consideration Best, Philipp ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stephen.kitchener at aciworldwide.com Wed Feb 20 10:46:04 2008 From: stephen.kitchener at aciworldwide.com (stephen.kitchener at aciworldwide.com) Date: Wed, 20 Feb 2008 09:46:04 +0000 Subject: Is this possible - to make a user only see certain hosts or hostgroups ?? Message-ID: Hi, Is this possible - to create a user that is only allowed to see certain hosts or hostgroups, it would be really usefull as we have a windows admin that only interested in windows machines... Regards Stephen Kitchener IT Services ACI Worldwide (EMEA) Ltd tel: 01923812885 email: Stephen.Kitchener at aciworldwide.com This e-mail message and any attachments may contain confidential, proprietary or non-public information. This information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this e-mail, please notify the sender immediately and destroy this e-mail. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this e-mail are those of the author personally. ------------------------------------------------------------------------------------------------------------------------------------------- ACI Worldwide (EMEA) Limited. Registered in England and Wales (Registered no. 2310474). Registered Office: 55 - 57 clarendon road, Watford, Hertfordshire. WD17 iFQ, United Kingdom ------------------------------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tom.welsh at bt.com Wed Feb 20 10:49:01 2008 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Wed, 20 Feb 2008 09:49:01 -0000 Subject: Is this possible - to make a user only see certainhosts or hostgroups ?? In-Reply-To: References: Message-ID: <6546343904687E41B19D8E5A26AB9F53024E3407@E03MVB2-UKBR.domain1.systemhost.net> Hi Stephen, Read the docs about contacts and groups. This will show you what you want to know. Regards Tom ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of stephen.kitchener at aciworldwide.com Sent: 20 February 2008 09:46 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Is this possible - to make a user only see certainhosts or hostgroups ?? Hi, Is this possible - to create a user that is only allowed to see certain hosts or hostgroups, it would be really usefull as we have a windows admin that only interested in windows machines... Regards Stephen Kitchener IT Services ACI Worldwide (EMEA) Ltd tel: 01923812885 email: Stephen.Kitchener at aciworldwide.com This e-mail message and any attachments may contain confidential, proprietary or non-public information. This information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this e-mail, please notify the sender immediately and destroy this e-mail. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this e-mail are those of the author personally. ------------------------------------------------------------------------ ------------------------------------------------------------------- ACI Worldwide (EMEA) Limited. Registered in England and Wales (Registered no. 2310474). Registered Office: 55 - 57 clarendon road, Watford, Hertfordshire. WD17 iFQ, United Kingdom ------------------------------------------------------------------------ ------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stephen.kitchener at aciworldwide.com Wed Feb 20 11:17:54 2008 From: stephen.kitchener at aciworldwide.com (stephen.kitchener at aciworldwide.com) Date: Wed, 20 Feb 2008 10:17:54 +0000 Subject: Is this possible - to make a user only see certainhosts or hostgroups ?? In-Reply-To: <6546343904687E41B19D8E5A26AB9F53024E3407@E03MVB2-UKBR.domain1.systemhost.net> References: <6546343904687E41B19D8E5A26AB9F53024E3407@E03MVB2-UKBR.domain1.systemhost.net> Message-ID: Hi Tom, Thanks Ok - I must have not understood that then as I thought that contacts and groups only applied to notifications and didn't provide a mechanism to enable the web display to be modified so that users can only see certain machines/or group(s) based on their login user. I will go and read them again. Regards Stephen Kitchener IT Services ACI Worldwide (EMEA) Ltd tel: 01923812885 email: Stephen.Kitchener at aciworldwide.com This e-mail message and any attachments may contain confidential, proprietary or non-public information. This information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this e-mail, please notify the sender immediately and destroy this e-mail. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this e-mail are those of the author personally. ------------------------------------------------------------------------------------------------------------------------------------------- ACI Worldwide (EMEA) Limited. Registered in England and Wales (Registered no. 2310474). Registered Office: 55 - 57 clarendon road, Watford, Hertfordshire. WD17 iFQ, United Kingdom ------------------------------------------------------------------------------------------------------------------------------------------- 20-Feb-2008 09:49 AM To , cc Subject RE: [Nagios-users] Is this possible - to make a user only see certainhosts or hostgroups ?? Hi Stephen, Read the docs about contacts and groups. This will show you what you want to know. Regards Tom From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of stephen.kitchener at aciworldwide.com Sent: 20 February 2008 09:46 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Is this possible - to make a user only see certainhosts or hostgroups ?? Hi, Is this possible - to create a user that is only allowed to see certain hosts or hostgroups, it would be really usefull as we have a windows admin that only interested in windows machines... Regards Stephen Kitchener IT Services ACI Worldwide (EMEA) Ltd tel: 01923812885 email: Stephen.Kitchener at aciworldwide.com This e-mail message and any attachments may contain confidential, proprietary or non-public information. This information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this e-mail, please notify the sender immediately and destroy this e-mail. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this e-mail are those of the author personally. ------------------------------------------------------------------------------------------------------------------------------------------- ACI Worldwide (EMEA) Limited. Registered in England and Wales (Registered no. 2310474). Registered Office: 55 - 57 clarendon road, Watford, Hertfordshire. WD17 iFQ, United Kingdom ------------------------------------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From melanie_pfefer at yahoo.co.uk Wed Feb 20 14:00:30 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Wed, 20 Feb 2008 13:00:30 +0000 (GMT) Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: <812349.53372.qm@web26201.mail.ukl.yahoo.com> Hello again I downloaded the perl script and indeed I can use it manually: ./check_snmp_storage.pl -H TROY -C public -m ^[CDE]: -w 80% -c 90% D:\ Label: Serial Number 225e3590: 3%used(2587MB/89495MB) C:\ Label: Serial Number 8cfa6a13: 27%used(6644MB/25000MB) (<80%) : OK In nagios, I should define a service and a command to start using check_snmp_storage.pl. Could you please help in what I should add? Many thanks --- mark.potter at academy.com wrote: > You will need to actually download the plugin from > http://nagios.manubulon.com/snmp_storage.html as it > is not part of the > Nagios plugins package but rather a third party > plugin. > > Melanie Pfefer wrote on > 02/19/2008 03:37:04 > PM: > > > Hello > > > > I added this: > > > > define command{ > > command_name check_win_storage > > command_line > $USER3$/check_snmp_storage.pl > > -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c > > $ARG4$ > > } > > > > > > define service { > > use common-service > > hostgroup_name nt-servers > > service_description Check Windows > drives > > check_command > > check_win_storage!public!^[CDE]:!80!90! > > } > > > > the result was: Return code of 127 is out of > bounds - > > plugin may be missing > > > > > > Any idea? > > thanks > > --- mark.potter at academy.com wrote: > > > > > Melanie, > > > > > > I have setup the plugin available here: > > > http://nagios.manubulon.com/snmp_storage.html > and it > > > works perfectly for > > > our needs. It uses SNMP so you would have to > have > > > SNMP setup on all of > > > your Windows boxes but with that caveat it is > the > > > best solution I have > > > found for monitoring windows partitions. If you > are > > > looking for something > > > slightly less complicated or with fewer options > > > there are many plugins on > > > nagiosexchange.com that will do the job. I would > > > recommend > > > check_snmp_storage though due to the options and > the > > > robustness of the > > > plugin. > > > > > > Best Regards, > > > > > > Mark L. Potter > > > Systems Engineer > > > Academy Sports & Outdoors > > > 1800 N. Mason Rd > > > Katy, Texas 77449 > > > > > > > > > > > > Melanie Pfefer > wrote on > > > 02/19/2008 03:04:23 > > > AM: > > > > > > > Hello Mark, > > > > I am interested in monitoring the disks even > with > > > no > > > > exclusions. > > > > I installed nagios2.9 and the nagios plugin on > a > > > linux > > > > box. > > > > > > > > Would it be possible that you give me what > you?ve > > > done > > > > to monitor the partitions on windows? > > > > > > > > I appreciate your help. > > > > > > > > --- mark.potter at academy.com wrote: > > > > > > > > > nagios-users-bounces at lists.sourceforge.net > wrote > > > on > > > > > 02/18/2008 11:22:05 > > > > > AM: > > > > > > > > > > > mark.potter at academy.com schrieb: > > > > > > > We are using snmp to monitor our windows > > > servers > > > > > and I have had a > > > > > request > > > > > > > from the windows admins. They want to > alert > > > at > > > > > 80% and 90% usage on > > > > > C:\ > > > > > > > but 95% and 98% on all other partitions. > (I > > > > > didn't ask about the logic > > > > > > > > > > > > because it wouldn't matter). I have > tried > > > > > multiple snmp plugins and > > > > > all of > > > > > > > them seem to act the same. I can monitor > all > > > the > > > > > disks on a single > > > > > check, > > > > > > > a single disk on a single check but I > cannot > > > > > monitor all the disks > > > > > except > > > > > > > C: on a single check. There doesn't seem > to > > > be > > > > > any plugins out there > > > > > that > > > > > > > allow exclusion and use snmp. Before I > go > > > > > writing a wrapper for an > > > > > > > existing plugin does anyone know if > there is > > > a > > > > > plugin that will allow > > > > > me > > > > > > > to do this? I am looking to exclude a > single > > > > > drive letter but check > > > > > all > > > > > > > the rest of the drives via snmp on > windows > > > > > servers. Thanks in advance > > > > > for > > > > > > > any advice. > > > > > > > > > > > > > > > > > > > > http://nagios.manubulon.com/snmp_storage.html > > > > > > > > > > > > > > > > > > check_snmp_storage will do the Job > > > > > > > > > > > > Joerg > > > > > That does exactly what we need. Is it listed > on > > > > > Nagios Exchange? Thank you > > > > > for your response; I have managed to escape > > > writing > > > > > a wrapper thanks to > > > > > you! > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual > Studio > > > > > 2008. > > > > > > > > > > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at 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 > > > > > === message truncated === __________________________________________________________ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From manju.kudu at gmail.com Wed Feb 20 14:21:03 2008 From: manju.kudu at gmail.com (manju a) Date: Wed, 20 Feb 2008 18:51:03 +0530 Subject: NC_Net nagios client to monitor Event logs on windows Message-ID: Hi All, i am facing some problem while monitoring event logs on the windows box. please find the steps i followed. 1) i installed Nc_Net nagios client on the windows box. 2) from the nagios server(UNIX machine) i m trying to execute this command [root at nagios libexec]# ./check_nt -H windowsmachine -p 1248 -v EVENTLOG -l any,any,any5,0,0,0 -w 5 -c 10 check_nt: Could not parse arguments Usage:check_nt -H host -v variable [-p port] [-w warning] [-c critical][-l param s] [-d SHOWALL] [-t timeout] i always use to get the below mention error check_nt: could not parse arguments where check_nt is default plugin which will come with the nagios installation. do u think i m missing something. please help me on this thanks manju -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From vanderleeden at logicunited.com Wed Feb 20 14:26:28 2008 From: vanderleeden at logicunited.com (Rudolf van der Leeden) Date: Wed, 20 Feb 2008 14:26:28 +0100 Subject: Nagios 3.0rc2 on Mac OSX 10.4 (PPC) Message-ID: Hi, there is a problem running Nagios 3.0rc2 on Mac OSX 10.4 (PPC). It builds without any problems. But as soon as nagios runs with a really tiny test configuration (just one node and one service) it hangs forever very soon after the start. After looking into the source and adding some additional debug statements the "hang" could be boiled down to the following point: Source= base/utils.c : int shutdown_command_file_worker_thread(void){ result=pthread_cancel(worker_threads[COMMAND_WORKER_THREAD]); result=pthread_join(worker_threads[COMMAND_WORKER_THREAD],NULL); } The process runs up to the "pthread_join" and then waits forever for the cancelled thread to finish. I tried the same on Mac OSX 10.5 and haven't seen any problems there. Question: Does anybody have experience with Nagios 3.0rc on Mac OSX 10.4 and/or know how to get it working successfully? Thanks and best regards, Rudolf VanderLeeden Logic United GmbH Munich, Germany ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ From LadislavHavlik at seznam.cz Wed Feb 20 14:48:32 2008 From: LadislavHavlik at seznam.cz (LadislavHavlik) Date: Wed, 20 Feb 2008 14:48:32 +0100 (CET) Subject: Nagios and Mysql? Message-ID: <3106.6536-12114-2029329054-1203515312@seznam.cz> Hi, how can I compiled nagios (vers 3.X+) with support mysql ( I know "mysql" has been included in Nagios version 1.4X, but today??)? Thanks and best regards, Ladislav Havl?k ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Wed Feb 20 15:44:37 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 20 Feb 2008 08:44:37 -0600 Subject: Feature requests In-Reply-To: <48490.172.17.0.1.1203496859.squirrel@webmail.seaan.net> References: <48490.172.17.0.1.1203496859.squirrel@webmail.seaan.net> Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/20/2008 02:40:59 AM: > Hi > > we are integrating nagios in our company. we have nearly 3 dozens of > servers and several hundred clients. We are 15 admins split in 3 groups. > Our internal organisation is split in functions, eg. somebody cares for > the mail stuff, another one cares for the web servers and so on. > > >From what I've seen while configuring contacts, contact groups, services > and service groups and timeperiods there are a few limitations that from > our point of view gave a bit of a headache. We tried to map our > organisation to somehow fit into Nagios: > > - contact groups cannot be grouped. This would be great. Because the boss > of such an organisational unit could then see all tests that belong to his > OU. Contact groups cannot be grouped but contacts can be members of multiple groups. Bosses, in my limited experience either want to see problems when they happen and when they recover or when they have not been handled. I have yet to see a boss who really wants to see all notifications. I have met a couple who thought they wanted all notifications. This has never lasted more than a week before escalations were implemented. See the documentation for escalations: http://nagios.sourceforge.net/docs/2_0/escalations.html > - a contact cannot be associated with more than 1 time period. Thus, I > cannot be advertised from 0900 - 1700 by email (as I am in the office all > day) and from 1700 - 0900 by sms unless I configure another contact for > myself. This is accomplished by using escalations. > - service groups cannot be associated with contact groups and vice versa. > this would be very nice if serveral services are grouped then the service > group could be associated with the contact group. > - and finally theres a bug in the Nagios 2.6 (Debian Etch Stable) > documentation regarding contacts: A contact must have an email address. > The nagios documentation states otherwise. I, personally, never recommend using the distro package for nagios. 2.6 is older, the packages are not maintained by Ethan, and the latest version is 2.10. We are a SLES shop and SLES is pretty good about updating their packages but I much prefer to compile Nagios from source to have that little bit of control. I would check the online docs concerning your problem and download 2.10, compile it, and go from there. Your other problems are all handled by escalations pretty easily. > > > Thanks for consideration > Best, > Philipp > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 20 15:49:45 2008 From: marc at ena.com (Marc Powell) Date: Wed, 20 Feb 2008 08:49:45 -0600 Subject: Nagios and Mysql? In-Reply-To: <3106.6536-12114-2029329054-1203515312@seznam.cz> References: <3106.6536-12114-2029329054-1203515312@seznam.cz> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of LadislavHavlik > Sent: Wednesday, February 20, 2008 7:49 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios and Mysql? > > Hi, > how can I compiled nagios (vers 3.X+) with support mysql ( > I know "mysql" has been included in Nagios version 1.4X, but today??)? Database support has been moved to external modules and isn't quite the same as the 1.x version. You're looking for NDOUtils on the nagios download page. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Wed Feb 20 15:50:54 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 20 Feb 2008 08:50:54 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <812349.53372.qm@web26201.mail.ukl.yahoo.com> References: <812349.53372.qm@web26201.mail.ukl.yahoo.com> Message-ID: Melanie. 1. When you test the script are you testing it as the nagios user? 2. Does the script reside in the libexec folder under the nagios user's home directory? If the answer to the above questions is yes then: define command { command_name check_snmp_windows_disk command_line $USER1$/check_snmp_storage -H $HOSTADDRESS$ -C $ARG1$ -q FixedDisk -w $ARG2$ -c $ARG3$ -m $ARG4$ $ARG5$ } That is my command definition. $ARG5$ is an optional switch for exclusion. One of the check commands (with security info snipped) define service { host_name service_description SNMP - Windows - Disk - Production is_volatile 0 check_command check_snmp_windows_disk!!95!98!^C:!-e max_check_attempts 3 normal_check_interval 120 retry_check_interval 30 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups sysalertstest notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 register 1 } That is the check for our production windows servers excluding the C drive (the -e is the exclude switch). I hope this information is helpful. Melanie Pfefer wrote on 02/20/2008 07:00:30 AM: > Hello again > > I downloaded the perl script and indeed I can use it > manually: > ./check_snmp_storage.pl -H TROY -C public -m ^[CDE]: > -w 80% -c 90% > > D:\ Label: Serial Number 225e3590: > 3%used(2587MB/89495MB) C:\ Label: Serial Number > 8cfa6a13: 27%used(6644MB/25000MB) (<80%) : OK > > > > In nagios, I should define a service and a command to > start using check_snmp_storage.pl. Could you please > help in what I should add? > > Many thanks > > > --- mark.potter at academy.com wrote: > > > You will need to actually download the plugin from > > http://nagios.manubulon.com/snmp_storage.html as it > > is not part of the > > Nagios plugins package but rather a third party > > plugin. > > > > Melanie Pfefer wrote on > > 02/19/2008 03:37:04 > > PM: > > > > > Hello > > > > > > I added this: > > > > > > define command{ > > > command_name check_win_storage > > > command_line > > $USER3$/check_snmp_storage.pl > > > -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -w $ARG3$ -c > > > $ARG4$ > > > } > > > > > > > > > define service { > > > use common-service > > > hostgroup_name nt-servers > > > service_description Check Windows > > drives > > > check_command > > > check_win_storage!public!^[CDE]:!80!90! > > > } > > > > > > the result was: Return code of 127 is out of > > bounds - > > > plugin may be missing > > > > > > > > > Any idea? > > > thanks > > > --- mark.potter at academy.com wrote: > > > > > > > Melanie, > > > > > > > > I have setup the plugin available here: > > > > http://nagios.manubulon.com/snmp_storage.html > > and it > > > > works perfectly for > > > > our needs. It uses SNMP so you would have to > > have > > > > SNMP setup on all of > > > > your Windows boxes but with that caveat it is > > the > > > > best solution I have > > > > found for monitoring windows partitions. If you > > are > > > > looking for something > > > > slightly less complicated or with fewer options > > > > there are many plugins on > > > > nagiosexchange.com that will do the job. I would > > > > recommend > > > > check_snmp_storage though due to the options and > > the > > > > robustness of the > > > > plugin. > > > > > > > > Best Regards, > > > > > > > > Mark L. Potter > > > > Systems Engineer > > > > Academy Sports & Outdoors > > > > 1800 N. Mason Rd > > > > Katy, Texas 77449 > > > > > > > > > > > > > > > > Melanie Pfefer > > wrote on > > > > 02/19/2008 03:04:23 > > > > AM: > > > > > > > > > Hello Mark, > > > > > I am interested in monitoring the disks even > > with > > > > no > > > > > exclusions. > > > > > I installed nagios2.9 and the nagios plugin on > > a > > > > linux > > > > > box. > > > > > > > > > > Would it be possible that you give me what > > you?ve > > > > done > > > > > to monitor the partitions on windows? > > > > > > > > > > I appreciate your help. > > > > > > > > > > --- mark.potter at academy.com wrote: > > > > > > > > > > > nagios-users-bounces at lists.sourceforge.net > > wrote > > > > on > > > > > > 02/18/2008 11:22:05 > > > > > > AM: > > > > > > > > > > > > > mark.potter at academy.com schrieb: > > > > > > > > We are using snmp to monitor our windows > > > > servers > > > > > > and I have had a > > > > > > request > > > > > > > > from the windows admins. They want to > > alert > > > > at > > > > > > 80% and 90% usage on > > > > > > C:\ > > > > > > > > but 95% and 98% on all other partitions. > > (I > > > > > > didn't ask about the logic > > > > > > > > > > > > > > because it wouldn't matter). I have > > tried > > > > > > multiple snmp plugins and > > > > > > all of > > > > > > > > them seem to act the same. I can monitor > > all > > > > the > > > > > > disks on a single > > > > > > check, > > > > > > > > a single disk on a single check but I > > cannot > > > > > > monitor all the disks > > > > > > except > > > > > > > > C: on a single check. There doesn't seem > > to > > > > be > > > > > > any plugins out there > > > > > > that > > > > > > > > allow exclusion and use snmp. Before I > > go > > > > > > writing a wrapper for an > > > > > > > > existing plugin does anyone know if > > there is > > > > a > > > > > > plugin that will allow > > > > > > me > > > > > > > > to do this? I am looking to exclude a > > single > > > > > > drive letter but check > > > > > > all > > > > > > > > the rest of the drives via snmp on > > windows > > > > > > servers. Thanks in advance > > > > > > for > > > > > > > > any advice. > > > > > > > > > > > > > > > > > > > > > > > > http://nagios.manubulon.com/snmp_storage.html > > > > > > > > > > > > > > > > > > > > > check_snmp_storage will do the Job > > > > > > > > > > > > > > Joerg > > > > > > That does exactly what we need. Is it listed > > on > > > > > > Nagios Exchange? Thank you > > > > > > for your response; I have managed to escape > > > > writing > > > > > > a wrapper thanks to > > > > > > you! > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > > This SF.net email is sponsored by: Microsoft > > > > > > Defy all challenges. Microsoft(R) Visual > > Studio > > > > > > 2008. > > > > > > > > > > > > > > > > > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > > > > > > > _______________________________________________ > > > > > > Nagios-users mailing list > > > > > > Nagios-users at 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 > > > > > > > > === message truncated === > > > > __________________________________________________________ > Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Wed Feb 20 15:56:17 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 20 Feb 2008 08:56:17 -0600 Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: "Valdinger, Stephen (DOV, MSX)" wrote on 02/20/2008 07:09:34 AM: > -----Original Message----- > From: Melanie Pfefer [mailto:melanie_pfefer at yahoo.co.uk] > Sent: Wednesday, February 20, 2008 8:01 AM > To: mark.potter at academy.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] SNMP/Windows disk usage > > Hello again > > I downloaded the perl script and indeed I can use it > manually: > ./check_snmp_storage.pl -H TROY -C public -m ^[CDE]: > -w 80% -c 90% > > D:\ Label: Serial Number 225e3590: > 3%used(2587MB/89495MB) C:\ Label: Serial Number > 8cfa6a13: 27%used(6644MB/25000MB) (<80%) : OK > > > > In nagios, I should define a service and a command to > start using check_snmp_storage.pl. Could you please > help in what I should add? > > Many thanks > > <> > > Melanie, > > Here is a sample command and service definition that I use with > this plugin: > > In commands.cfg: > > define command{ > command_name check_c:\ > command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ > -C $USER3$ -m ^C: -w 85 -c 95 > } > > In services.cfg (or wherever you place your service definitions) > > define service{ > use generic-service > host_name > service_description Check C:\ Usage Data > check_command check_c:\ > } > > This is how we use it on our network, your needs may be different. > Remember when testing to plugin to test as root and to chown > nagiosuser.nagiosgroup when you put it into libexec for it to work > correctly. > Some systems may have issues with the "\" in a command name. I have seen it blow things up so there is a point on which care needs to be taken. I would also recommend against hard coding -w and -c values where at all possible. It makes using the same command for multiple services with different needs much more difficult. Also you should always test as the nagios user and not as root. Testing as root really does nothing other than show permissions and rights issues if the command fails to work as the nagios user. The script should be in libexec, owned by the nagios user and group, and tested as the nagios user. If that doesn't work then test it as root for the same dir with the same ownership to see if it works at all. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Edgar.Matzinger at Valid.nl Wed Feb 20 16:00:56 2008 From: Edgar.Matzinger at Valid.nl (Edgar Matzinger) Date: Wed, 20 Feb 2008 16:00:56 +0100 Subject: NC_Net nagios client to monitor Event logs on windows In-Reply-To: References: Message-ID: Hi Manju, > > [root at nagios libexec]# ./check_nt -H windowsmachine -p 1248 > -v EVENTLOG -l any,any,any5,0,0,0 -w 5 -c 10 > check_nt: Could not parse arguments and if you replace "any5" with "5"? HTH, cu l8r, Edgar. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Paradijslaan 36 \ /| /\| : : 5611 KN Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ... ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 20 16:29:20 2008 From: marc at ena.com (Marc Powell) Date: Wed, 20 Feb 2008 09:29:20 -0600 Subject: Nagios and Mysql? In-Reply-To: <3106.6536-12557-1158716761-1203519548@seznam.cz> References: <3106.6536-12557-1158716761-1203519548@seznam.cz> Message-ID: > -----Original Message----- > From: LadislavHavlik [mailto:LadislavHavlik at seznam.cz] > Sent: Wednesday, February 20, 2008 8:59 AM > To: Marc Powell > Subject: Re: [Nagios-users] Nagios and Mysql? > > > Database support has been moved to external modules and isn't quite the > > same as the 1.x version. You're looking for NDOUtils on the nagios > > download page. > Please do you know cause for this separation? - Because it was difficult and time-consuming for Ethan to maintain/test the integrated database code - It wasn't flexible at all - Ethan could only support databases he had direct access to and knowledge about. - The new method allows anyone to create a module to do pretty much whatever they want with the data via the Event Broker interface. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From xlevrat at yahoo.fr Wed Feb 20 16:29:19 2008 From: xlevrat at yahoo.fr (Xavier LEVRAT) Date: Wed, 20 Feb 2008 15:29:19 +0000 (GMT) Subject: Orphan Processes Message-ID: <853903.68172.qm@web23104.mail.ird.yahoo.com> Hi list, We arecurrently monitoring 220 Host and 3000 services with NAGIOS 2.5 on Solaris 8.The web server and the CGIs are chrooted, but Nagios core is out of the jail.We use symlinks to ensure the communication between the CORE and the CGIs. We notice that some hosts and services suddenly disappear on the web interface. According to the FAQ, this is due to multiple main nagios process in memory. We are surethat Nagios init script is run just once and then watch nagios processes Here is theresult: -bash-3.1#ps -eaf|grep -i nagios.cfg|grep -v grep;echo;echo;echo nagios 8188 1 0 15:15:24 ? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 10334 1 3 Feb 19 ? 138:44 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 8200 10334 0 15:15:24? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 8197 1 0 15:15:24 ? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg -bash-3.1#ps -eaf|grep -i nagios.cfg|grep -v grep;echo;echo;echo nagios 8188 1 0 15:15:24 ? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 10334 1 3 Feb 19 ? 138:44 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 8200 10334 1 15:15:24? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 8204 8200 0 15:15:24 ? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg -bash-3.1#ps -eaf|grep -i nagios.cfg|grep -v grep;echo;echo;echo nagios 8188 1 0 15:15:24 ? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 10334 1 3 Feb 19 ? 138:44 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 8204 1 0 15:15:24 ? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg nagios 8210 10334 1 15:15:24 ? 0:00 /usr/local/bin/nagios -d/usr/local/etc/nagios.cfg Mainprocess id is 10334, and we see it forking frequently. Some childs fork inturn, then die, letting orphan processes ? What aboutthose orphan processes staying in memory ? Is it Nagios? normal behaviour ? Doservices and host disappear suddenly because of this ? Thanks foryour advices ! Regards Xavier _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.frost1 at pepsi.com Wed Feb 20 16:46:12 2008 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Wed, 20 Feb 2008 10:46:12 -0500 Subject: State Stalking and notifications Message-ID: On more than a few occasions, I've had users ask me if it's possible to have alerts sent if the output of a check changes. That is, if you consider that a check might actually have multiple failure conditions it could be monitoring. And example of this might be a single command you run that reports about multiple aspects of an application. The check goes critical if one part of that app becomes non-functional, but if a second piece goes off-line, the state of the check hasn't changed, so no notification is sent. I read about "state stalking" and thought that this might be what I was looking for. However, after reading a bit more closely, it appears that what state stalking is really about is logging results of checks and not about sending additional notifications. I understand the philosophy of "well if one part is broken or two parts are broken, you have to fix it anyway". There's also the hack of having recurring notifications sent (say every 30 minutes) which should send a user the latest check output. Neither of those options are particularly nice for us. I had thought about writing a custom check for each line of output that this command generates, but that seems needlessly painful. I see that volatile checks are more about notifications, however they will send a notification every time the service comes back non-OK (i.e. even if the check output is exactly the same) which is not what we want. I'm guessing the answer here is "Nagios can't do that", but I thought I'd ask anyway. Thanks Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Feb 20 16:55:19 2008 From: marc at ena.com (Marc Powell) Date: Wed, 20 Feb 2008 09:55:19 -0600 Subject: State Stalking and notifications In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Frost, Mark {PBG} > Sent: Wednesday, February 20, 2008 9:46 AM > To: Nagios Users Mailinglist > Subject: [Nagios-users] State Stalking and notifications > > > On more than a few occasions, I've had users ask me if it's possible to > have alerts sent if the output of a check changes. That is, if you > I see that volatile checks are more about notifications, however they > will send a notification every time the service comes back non-OK (i.e. > even if the check output is exactly the same) which is not what we want. > > I'm guessing the answer here is "Nagios can't do that", but I thought > I'd ask anyway. Nagios can't do that. However, you can but it's not necessarily convenient. I would approach it as having intimate control over the notification script. It's certainly possible to specify a notification script for that service that tracks the previous output, status and other information and notifies appropriately. Combine that with the volatile setting and you have a way to do what you want outside of nagios. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Wed Feb 20 17:06:10 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 20 Feb 2008 10:06:10 -0600 Subject: State Stalking and notifications In-Reply-To: References: Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/20/2008 09:46:12 AM: > > On more than a few occasions, I've had users ask me if it's possible to > have alerts sent if the output of a check changes. That is, if you > consider that a check might actually have multiple failure conditions it > could be monitoring. And example of this might be a single command you > run that reports about multiple aspects of an application. The check > goes critical if one part of that app becomes non-functional, but if a > second piece goes off-line, the state of the check hasn't changed, so no > notification is sent. > > I read about "state stalking" and thought that this might be what I was > looking for. However, after reading a bit more closely, it appears that > what state stalking is really about is logging results of checks and not > about sending additional notifications. > > I understand the philosophy of "well if one part is broken or two parts > are broken, you have to fix it anyway". There's also the hack of having > recurring notifications sent (say every 30 minutes) which should send a > user the latest check output. Neither of those options are particularly > nice for us. I had thought about writing a custom check for each line > of output that this command generates, but that seems needlessly > painful. > > I see that volatile checks are more about notifications, however they > will send a notification every time the service comes back non-OK (i.e. > even if the check output is exactly the same) which is not what we want. > > I'm guessing the answer here is "Nagios can't do that", but I thought > I'd ask anyway. > > Thanks > > Mark > Technically Nagios can't do that. At least not from the vantage point you have described. We are much more granular in our monitoring for exactly the scenario you have described. At this point we don't combine multiple pieces into a single service check unless a department manager specifically requests a full overview in a single check. We monitor each piece with its own service check so we have complete control over who get notified for what, when they get notified, how often they get notified, and so on. I would say that Nagios can do what you want but that it is up to you to make your checks more granular. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From john.calcote at gmail.com Wed Feb 20 17:14:11 2008 From: john.calcote at gmail.com (John Calcote) Date: Wed, 20 Feb 2008 09:14:11 -0700 Subject: DNX Version 0.15 Released! In-Reply-To: <3ee91eb90802200806l37bdee98y75efd34f35069867@mail.gmail.com> References: <3ee91eb90802200806l37bdee98y75efd34f35069867@mail.gmail.com> Message-ID: <3ee91eb90802200814xe2de5a5j8ab72becc4fba665@mail.gmail.com> We're pleased to announce the release of the Distributed Nagios eXecutor (DNX) version 0.15. DNX is a modular extension of Nagios that offloads a significant portion of the work normally done by Nagios to a distributed network of remote hosts. DNX worker nodes execute the DNX client as a daemon service. DNX clients register requests for work with the DNX server module. The DNX server module is a Nagios NEB (Nagios Event Broker) plugin module, which registers an event handler for all service checks. During the event, the DNX NEB module indicates to Nagios that it will handle the service check. It sends the check command to a registered worker node. A background thread awaits result information, which the NEB module then posts to the Nagios results queue. The DNX NEB module ensures that work is distributed fairly and evenly among the registered DNX client hosts. It's been 4 months since the release of the last version (0.13) of DNX. The following is an excerpt from the DNX NEWS file for version 0.15: - We're in SVN on sourceforge now! - Added autotools build system. - Completely rewritten configuration system. - Completely updated thread pool. - New configuration parameters added. - New command-line options added. - Ability to reconfigure most parameters with SIGHUP. - Unit test infrastructure added; several unit tests added. - Debug memory manager added; fixed several memory leaks. - Added node address to dnx error strings passed from failed checks. - Doxygen documentation added. - Init script updated to LSB. - Several install and doc targets added. - Added support for Nagios versions 2.8, 2.9, 2.10, 3.0rc2. - dnxstats utility added to manage and retrieve stats from dnx client nodes. - Configuration and build system allow installation of client and server separately. - Support added to configure script for RPM packages managed through the OpenSUSE build service. Binary packages are published through the OpenSuSE Build Service (OBS) at http://build.opensuse.org. Just search for the keyword "dnx" at http://software.opensuse.org/search. You can find out more about DNX at the DNX project web site at http://dnx.sourceforge.net. You can access this release at the sourceforge project page at http://www.sourceforge.net/projects/dnx. Enjoy! John ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dale at chatham.org Wed Feb 20 17:19:20 2008 From: dale at chatham.org (Dale Chatham) Date: Wed, 20 Feb 2008 10:19:20 -0600 Subject: Feature requests In-Reply-To: References: <48490.172.17.0.1.1203496859.squirrel@webmail.seaan.net> Message-ID: <47BC5308.40105@chatham.org> As long as we are speaking of feature requests, it would be extremely cool if the groups could be defined redundantly. i.e., groups could contain groups with arbitrary nesting depth. If there is one feature which would make Nagios orders of magnitude better, this may well be it. I'm looking at monitoring a lot of servers and being able to group servers into a rack group, groups into a module group, modules into a ??? group, and so on would cut the problem of thousands of servers into manageable chuncks. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From John.DAusilio at mlp.com Wed Feb 20 17:44:43 2008 From: John.DAusilio at mlp.com (D'Ausilio, John) Date: Wed, 20 Feb 2008 11:44:43 -0500 Subject: I can't get my event handler to fire! In-Reply-To: References: Message-ID: Well, I added event_handler_enabled configuration and still I'm not getting my event handler fired. I've tried both for the service (PING) and for the host, individually and in combination. I don't see anything in the debug logs that would indicate that an event handler should have fired (even with the filter set to -1). The script is executable by the nagios user (logged in as that user, execute same commandline as in command def, no problem). 1. What/where should I be able to see in terms of event handlers firing in the logs? 2. Are event handlers affected by notification settings (I'm assuming not)? 3. What the heck am I doing wrong? This looks like it should be straightforward! john d >But not in the service{} definition unless it's referenced in the >template. In addition to the program-wide setting, it must also be >specifically enabled on a per-service basis. ###################################################################### The information contained in this communication is confidential and may contain information that is privileged or exempt from disclosure under applicable law. If you are not a named addressee, please notify the sender immediately and delete this email from your system. If you have received this communication, and are not a named recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. ###################################################################### ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From svalding at kent.edu Wed Feb 20 17:45:17 2008 From: svalding at kent.edu (svalding at kent.edu) Date: Wed, 20 Feb 2008 11:45:17 -0500 Subject: check some code Message-ID: Hi, I was wondering if anyone would be willing to check some code for me. I have modified the nagios startup script to include NDO, and just wanted some feedback on the methods I used and to see if anyone has a cleaner way. Thanks. I have not tested this yet, as we are in the middle of changing our test center around right now. Stephen -------------- next part -------------- A non-text attachment was scrubbed... Name: new_init_script.sh Type: application/octet-stream Size: 5571 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kharford at constantcontact.com Wed Feb 20 18:23:35 2008 From: kharford at constantcontact.com (Harford, Ken) Date: Wed, 20 Feb 2008 12:23:35 -0500 Subject: Memory Usage for Process Message-ID: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> Are there any plugins that will monitor memory use of processes on a Windows system? Thanks Ken Ken Harford -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Wed Feb 20 18:29:37 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 20 Feb 2008 17:29:37 +0000 Subject: Memory Usage for Process In-Reply-To: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> References: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> Message-ID: <47BC6381.1000207@googlemail.com> Harford, Ken wrote: > > Are there any plugins that will monitor memory use of processes on a > Windows system? > NSClient++ has this built in, see check_nt --help. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Wed Feb 20 18:31:10 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 20 Feb 2008 17:31:10 +0000 Subject: Memory Usage for Process In-Reply-To: <47BC6381.1000207@googlemail.com> References: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> <47BC6381.1000207@googlemail.com> Message-ID: <47BC63DE.8070502@googlemail.com> Hari Sekhon wrote: > Harford, Ken wrote: >> >> Are there any plugins that will monitor memory use of processes on a >> Windows system? >> > > NSClient++ has this built in, see check_nt --help. > > -h > Ah, sorry, if you mean how much memory a given process is using then you'll need a plugin indeed. Have you checked NagiosExchange.org and done a search there? If you don't find anything, you could probably just rustle something up with a bit of VBS+WMI if you're a coder. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Wed Feb 20 19:09:34 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 20 Feb 2008 12:09:34 -0600 Subject: Memory Usage for Process In-Reply-To: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> References: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/20/2008 11:23:35 AM: > Are there any plugins that will monitor memory use of processes on a > Windows system? > > Thanks > > Ken > > Ken Harford http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1 [p_view]=686 That claims to do exactly what you want. I haven't used it so I can't say more than that. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Wed Feb 20 19:15:58 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 20 Feb 2008 18:15:58 +0000 Subject: Memory Usage for Process In-Reply-To: References: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> Message-ID: <47BC6E5E.8040306@googlemail.com> mark.potter at academy.com wrote: > > nagios-users-bounces at lists.sourceforge.net wrote on 02/20/2008 > 11:23:35 AM: > > > Are there any plugins that will monitor memory use of processes on a > > Windows system? > > > > Thanks > > > > Ken > > > > Ken Harford > > > http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1 > [p_view]=686 > > > That claims to do exactly what you want. I haven't used it so I can't > say more than that. Had a quick look at that, it's very short, and you will need snmp on the windows hosts available. I think WMI would be a better choice here if you could write something to do this, otherwise you'd have to go and set up snmp on all the windows devices you wanted to monitor in this way and open up the firewalls too. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From John.DAusilio at mlp.com Wed Feb 20 19:21:39 2008 From: John.DAusilio at mlp.com (D'Ausilio, John) Date: Wed, 20 Feb 2008 13:21:39 -0500 Subject: FW: I can't get my event handler to fire! Message-ID: Searching the archives I found where to look in debug .. it appears that Nagios thinks it's running my event handler. Macro expansion looks fine. Problem is .. it's not actually running it! Still lost ... -----Original Message----- From: D'Ausilio, John Sent: Wednesday, February 20, 2008 11:45 AM To: 'Marc Powell'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] I can't get my event handler to fire! Well, I added event_handler_enabled configuration and still I'm not getting my event handler fired. I've tried both for the service (PING) and for the host, individually and in combination. I don't see anything in the debug logs that would indicate that an event handler should have fired (even with the filter set to -1). The script is executable by the nagios user (logged in as that user, execute same commandline as in command def, no problem). 1. What/where should I be able to see in terms of event handlers firing in the logs? 2. Are event handlers affected by notification settings (I'm assuming not)? 3. What the heck am I doing wrong? This looks like it should be straightforward! john d >But not in the service{} definition unless it's referenced in the >template. In addition to the program-wide setting, it must also be >specifically enabled on a per-service basis. ###################################################################### The information contained in this communication is confidential and may contain information that is privileged or exempt from disclosure under applicable law. If you are not a named addressee, please notify the sender immediately and delete this email from your system. If you have received this communication, and are not a named recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. ###################################################################### ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dale at chatham.org Wed Feb 20 19:52:24 2008 From: dale at chatham.org (Dale Chatham) Date: Wed, 20 Feb 2008 12:52:24 -0600 Subject: FW: I can't get my event handler to fire! In-Reply-To: References: Message-ID: <47BC76E8.5000000@chatham.org> Look through error logs. If your handler is a script, have it write a file in /tmp when it starts. D'Ausilio, John wrote: > Searching the archives I found where to look in debug .. it appears that > Nagios thinks it's running my event handler. Macro expansion looks fine. > Problem is .. it's not actually running it! Still lost ... > > -----Original Message----- > From: D'Ausilio, John > Sent: Wednesday, February 20, 2008 11:45 AM > To: 'Marc Powell'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] I can't get my event handler to fire! > > Well, I added event_handler_enabled configuration and still I'm not > getting my event handler fired. I've tried both for the service (PING) > and for the host, individually and in combination. I don't see anything > in the debug logs that would indicate that an event handler should have > fired (even with the filter set to -1). The script is executable by the > nagios user (logged in as that user, execute same commandline as in > command def, no problem). > > 1. What/where should I be able to see in terms of event handlers firing > in the logs? > > 2. Are event handlers affected by notification settings (I'm assuming > not)? > > 3. What the heck am I doing wrong? This looks like it should be > straightforward! > > john d > > > >> But not in the service{} definition unless it's referenced in the >> template. In addition to the program-wide setting, it must also be >> specifically enabled on a per-service basis. >> > > > ###################################################################### > The information contained in this communication is confidential and > may contain information that is privileged or exempt from disclosure > under applicable law. If you are not a named addressee, please notify > the sender immediately and delete this email from your system. > If you have received this communication, and are not a named > recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. > ###################################################################### > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From llow at telesphere.com Wed Feb 20 20:10:21 2008 From: llow at telesphere.com (Larry Low) Date: Wed, 20 Feb 2008 12:10:21 -0700 Subject: Memory Usage for Process In-Reply-To: <47BC6E5E.8040306@googlemail.com> References: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> <47BC6E5E.8040306@googlemail.com> Message-ID: <01c001c873f4$3d11a480$b734ed80$@com> If you want to use WMI from Linux look at Pegasus and wbemcli. ---- Larry Low 4150 N Drinkwater Blvd., 5th Floor Scottsdale, AZ 85251 Office: 480.385.7045 E-mail: llow at telesphere.com' Telesphere Networks, Inc > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon > Sent: Wednesday, February 20, 2008 11:16 AM > To: mark.potter at academy.com > Cc: Harford, Ken; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Memory Usage for Process > > mark.potter at academy.com wrote: > > > > nagios-users-bounces at lists.sourceforge.net wrote on 02/20/2008 > > 11:23:35 AM: > > > > > Are there any plugins that will monitor memory use of processes on > a > > > Windows system? > > > > > > Thanks > > > > > > Ken > > > > > > Ken Harford > > > > > > http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1 > > > [p_v > iew]=686 > > > > > > That claims to do exactly what you want. I haven't used it so I can't > > say more than that. > Had a quick look at that, it's very short, and you will need snmp on > the > windows hosts available. I think WMI would be a better choice here if > you could write something to do this, otherwise you'd have to go and > set > up snmp on all the windows devices you wanted to monitor in this way > and > open up the firewalls too. > > -h > > -- > Hari Sekhon > > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mark.potter at academy.com Wed Feb 20 20:14:35 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Wed, 20 Feb 2008 13:14:35 -0600 Subject: Memory Usage for Process In-Reply-To: <47BC6E5E.8040306@googlemail.com> References: <160927FF5C72F84E9C8B9469F68BCC9A01569281@c1-mail1.roving.com> <47BC6E5E.8040306@googlemail.com> Message-ID: Hari Sekhon wrote on 02/20/2008 12:15:58 PM: > mark.potter at academy.com wrote: > > > > nagios-users-bounces at lists.sourceforge.net wrote on 02/20/2008 > > 11:23:35 AM: > > > > > Are there any plugins that will monitor memory use of processes on a > > > Windows system? > > > > > > Thanks > > > > > > Ken > > > > > > Ken Harford > > > > > > http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1 > > >[p_view]=686 > > > > > > That claims to do exactly what you want. I haven't used it so I can't > > say more than that. > Had a quick look at that, it's very short, and you will need snmp on the > windows hosts available. I think WMI would be a better choice here if > you could write something to do this, otherwise you'd have to go and set > up snmp on all the windows devices you wanted to monitor in this way and > open up the firewalls too. > > -h > > -- > Hari Sekhon > Yeah I tend to forget that not everyone has SNMP turned on. We have HP boxes and use HPSIM so SNMP is already enabled on every one of our hosts as part of the setup process including secure community strings and so on. This is a boon for me because I get to use SNMP for a majority of monitoring tasks and don't have to go through change control to get stuff installed on the farm. If you don't already have it enabled I can see it being a massive chore. Good point Hari and thanks for the response. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Matthias.Flacke at gmx.de Wed Feb 20 22:54:48 2008 From: Matthias.Flacke at gmx.de (Matthias Flacke) Date: Wed, 20 Feb 2008 22:54:48 +0100 Subject: State Stalking and notifications In-Reply-To: References: Message-ID: <47BCA1A8.7040301@gmx.de> mark.potter at academy.com wrote: > > I had thought about writing a custom check for each line > > of output that this command generates, but that seems needlessly > > painful. [...] > > I'm guessing the answer here is "Nagios can't do that", but I thought > > I'd ask anyway. > > Technically Nagios can't do that. At least not from the vantage point > you have described. We are much more granular in our monitoring for > exactly the scenario you have described. At this point we don't combine > multiple pieces into a single service check unless a department manager > specifically requests a full overview in a single check. We monitor each > piece with its own service check so we have complete control over who > get notified for what, when they get notified, how often they get > notified, and so on. I would say that Nagios can do what you want but > that it is up to you to make your checks more granular. If you need both granularity and flexibility and on top an overall evaluation of your particular results then have a look onto check_multi (http://www.my-plugin.de/check_multi). It combines both concepts - granular results and process views - just as you define it. -Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From msh.computing at gmail.com Thu Feb 21 00:50:40 2008 From: msh.computing at gmail.com (Steve Kieu) Date: Thu, 21 Feb 2008 12:50:40 +1300 Subject: status.cgi very high cpu usage => Problem gone away Message-ID: Hi, The most scary thing is, as suddenly like when it came, it suddenly went away this morning. Not any changes to the nagios system or vmware guest and hosts. I have been doing the similar benchmark of status.cgi on the real host with the same status.dat file with the host having problem. It takes 0.1 sec to process, and in the vmware host it took 3.9 second. I have a quick look of how status.cgi parse the text file and see lots of memory cmp (strcmp call to libc) and move. So my wild guess is that memory operation on the vm is terribly slow for some reason. And suddenly as come from nowhere, it just become as fast as normal. Any one has a bright idea of what is going on ? Thanks -- Steve Kieu Mob: (+64) 021 250 6437 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Thu Feb 21 01:38:03 2008 From: Roger at NagiosWiki.com (Roger) Date: Wed, 20 Feb 2008 16:38:03 -0800 Subject: check_ssh to find "corrupt" keys that need regeneration? Message-ID: <2b7af7c40802201638v50aa556flfa06ce48d73c9599@mail.gmail.com> I have ~300 Foundry routers, and periodically something (not sure what) "happens" that resets some sort of key that prevents me from SSH'ing in with a tool like PuTTY and Teraterm (have not tried this from a Linux ssh box). check_ssh, I know, checks the ssh handshake but (to my knowledge) does not help us make sure that we can add the user/passwd from PuTTY (or equiv). Is there a switch in check_ssh that I'm missing? Or perhaps a plugin? Or is this something that I will have to kludge myself? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sholikar at yahoo.com Thu Feb 21 06:40:07 2008 From: sholikar at yahoo.com (sachin holikar) Date: Wed, 20 Feb 2008 21:40:07 -0800 (PST) Subject: help needed Message-ID: <811769.37257.qm@web53211.mail.re2.yahoo.com> Hi Could you please help me giving proper documentation of NAGIOS. Thanks Sachin --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From narendran.neelamegam at wipro.com Thu Feb 21 06:43:28 2008 From: narendran.neelamegam at wipro.com (narendran.neelamegam at wipro.com) Date: Thu, 21 Feb 2008 11:13:28 +0530 Subject: help needed In-Reply-To: <811769.37257.qm@web53211.mail.re2.yahoo.com> References: <811769.37257.qm@web53211.mail.re2.yahoo.com> Message-ID: This should get you going... http://nagios.sourceforge.net/docs/3_0/quickstart.html All the docs are available here... http://www.nagios.org/docs/ Best Regards, Narendran Neelamegam ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of sachin holikar Sent: Thursday, February 21, 2008 11:10 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] help needed Hi Could you please help me giving proper documentation of NAGIOS. Thanks Sachin ________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sholikar at yahoo.com Thu Feb 21 06:49:55 2008 From: sholikar at yahoo.com (sachin holikar) Date: Wed, 20 Feb 2008 21:49:55 -0800 (PST) Subject: help needed Message-ID: <892340.92426.qm@web53210.mail.re2.yahoo.com> Hi , We are not able to access "View Config" option tab in Web Access. Getting the CGI permission error. Could someone point out what could be the problem/s --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From manju.kudu at gmail.com Thu Feb 21 07:00:36 2008 From: manju.kudu at gmail.com (manju a) Date: Thu, 21 Feb 2008 11:30:36 +0530 Subject: NC_Net nagios client to monitor Event logs on windows In-Reply-To: References: Message-ID: Hi, sorry it was my mistake while typing, yes i replaced any5 with 5.... same problem!!! please help me on this thanks manjunath A. On Wed, Feb 20, 2008 at 8:30 PM, Edgar Matzinger wrote: > Hi Manju, > > > > > [root at nagios libexec]# ./check_nt -H windowsmachine -p 1248 > > -v EVENTLOG -l any,any,any5,0,0,0 -w 5 -c 10 > > check_nt: Could not parse arguments > > and if you replace "any5" with "5"? > > HTH, cu l8r, Edgar. > -- > |\ /| : : Addr: Valid Eindhoven B.V. > / | \/ | : Edgar R. Matzinger : t.a.v. E.R. > Matzinger > / | | : : Paradijslaan 36 > \ /| /\| : : 5611 KN Eindhoven > \/ / \ : Valid Eindhoven BV : > \ /\ / : : > \/ |\/ : : > | : : > Disclaimer: Any comments, opinions made are mine, etc ... > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Roger at NagiosWiki.com Thu Feb 21 15:06:54 2008 From: Roger at NagiosWiki.com (Roger) Date: Thu, 21 Feb 2008 06:06:54 -0800 Subject: check_ssh to find "corrupt" keys that need regeneration? In-Reply-To: <2b7af7c40802201638v50aa556flfa06ce48d73c9599@mail.gmail.com> References: <2b7af7c40802201638v50aa556flfa06ce48d73c9599@mail.gmail.com> Message-ID: <2b7af7c40802210606h39c88815jc456cbc3a74a513f@mail.gmail.com> On 2/20/08, Roger wrote: > > I have ~300 Foundry routers, and periodically something (not sure what) > "happens" that resets some sort of key that prevents me from SSH'ing in with > a tool like PuTTY and Teraterm (have not tried this from a Linux ssh box). > > check_ssh, I know, checks the ssh handshake but (to my knowledge) does not > help us make sure that we can add the user/passwd from PuTTY (or equiv). > > Is there a switch in check_ssh that I'm missing? Or perhaps a plugin? Or > is this something that I will have to kludge myself? > For what it's worth, one associate of mine has suggested using a script based on Net::Telnet (which, according to the man page, can be told to use SSH for the underlying transport -- see man page), Net::SSH, or maybe even just a plain expect script to prove that one can log in. Anybody have an example of one of these that I can look at? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Thu Feb 21 15:50:35 2008 From: marc at en