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 ena.com (Marc Powell) Date: Thu, 21 Feb 2008 08:50:35 -0600 Subject: check_ssh to find "corrupt" keys that needregeneration? In-Reply-To: <2b7af7c40802210606h39c88815jc456cbc3a74a513f@mail.gmail.com> References: <2b7af7c40802210606h39c88815jc456cbc3a74a513f@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 Roger > Sent: Thursday, February 21, 2008 8:07 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_ssh to find "corrupt" keys that > needregeneration? > > 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). What is the specific error and symptoms that you're seeing? "resets some sort of key" isn't very useful in helping you figure out how to check for it. I've never seen anything like what you're describing outside of the host key changing. check_ssh should detect that and at least WARN. > 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). You need to be more specific about the problem you're having before any determination can be made along these lines. I don't think there's anything that can guarantee that those applications will work outside of using those applications. > 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. This may or may not be useful depending on the error that you're seeing. -- 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 Thu Feb 21 15:58:36 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Thu, 21 Feb 2008 08:58:36 -0600 Subject: help needed In-Reply-To: <892340.92426.qm@web53210.mail.re2.yahoo.com> References: <892340.92426.qm@web53210.mail.re2.yahoo.com> Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/20/2008 11:49:55 PM: > 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 Depending on your version here is where you start: http://nagios.sourceforge.net/docs/3_0/ - 3.x docs http://nagios.sourceforge.net/docs/2_0/ - 2.x docs If you are going to get help on the list you will likely need to give at least the following information: 1. Nagios version 2. OS and version 3. What troubleshooting you have done thus far If you want support without doing any of your own troubleshooting then nagios.com might be your best bet. -------------- 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 16:04:20 2008 From: marc at ena.com (Marc Powell) Date: Thu, 21 Feb 2008 09:04:20 -0600 Subject: check_ssh to find "corrupt" keys thatneedregeneration? 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: Thursday, February 21, 2008 8:51 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_ssh to find "corrupt" keys > thatneedregeneration? > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Roger > > Sent: Thursday, February 21, 2008 8:07 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_ssh to find "corrupt" keys that > > needregeneration? > > > > 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). > > What is the specific error and symptoms that you're seeing? "resets some > sort of key" isn't very useful in helping you figure out how to check > for it. I've never seen anything like what you're describing outside of > the host key changing. check_ssh should detect that and at least WARN. Just a redaction. I was _really_ thinking of check_by_ssh here but that wouldn't work in your case. check_ssh does not verify host keys. More info about the problem is still useful 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 Sebastian.Ries at dtnet.de Thu Feb 21 16:09:00 2008 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Thu, 21 Feb 2008 16:09:00 +0100 Subject: check time syncronization Message-ID: <1203606540.23246.35.camel@bofh.dtnet.de> Hi there I am looking for a plugin to check time syncronization. We had the problem that the clock on some computers was running away and caused problems witch kerberos authentication. Is there a plugin that checks the difference in time between the checked host and - say - a specified ntp server? Or does ntpq -pn have different exit codes when the computer is in sync an when the computer is out of sync? Does anyone know? Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Feb 21 16:38:24 2008 From: jgoltz at mail.nih.gov (Goltz, Jim (NIH/NLM/LHC) [C]) Date: Thu, 21 Feb 2008 10:38:24 -0500 Subject: check time syncronization In-Reply-To: <1203606540.23246.35.camel@bofh.dtnet.de> References: <1203606540.23246.35.camel@bofh.dtnet.de> Message-ID: SR> Is there a plugin that checks the difference in time between the checked SR> host and - say - a specified ntp server? We just started doing this here. We're using "check_ntp -H host -w warn -c crit", where "host" is the remote host and "warn" and "crit" are thresholds for time difference between the Nagios host and the remote host, in seconds. check_ntp, check_ntp_peer and check_ntp_time are part of the standard plugins. I don't think any of them allow you to check the difference in system time between a remote host and its NTP server, but as long as your Nagios host is synced correctly it should work. If every monitored host seems to drop sync at the same time you'll know your Nagios host's sync has been lost. :-) -- Jim Goltz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 21 17:13:04 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 21 Feb 2008 16:13:04 +0000 Subject: check time syncronization In-Reply-To: References: <1203606540.23246.35.camel@bofh.dtnet.de> Message-ID: <47BDA310.8000004@googlemail.com> Goltz, Jim (NIH/NLM/LHC) [C] wrote: > SR> Is there a plugin that checks the difference in time between the > checked > SR> host and - say - a specified ntp server? > > We just started doing this here. We're using "check_ntp -H host -w warn > -c > crit", where "host" is the remote host and "warn" and "crit" are > thresholds > for time difference between the Nagios host and the remote host, in > seconds. > > check_ntp, check_ntp_peer and check_ntp_time are part of the standard > plugins. I don't think any of them allow you to check the difference in > system time between a remote host and its NTP server, but as long as > your > Nagios host is synced correctly it should work. If every monitored host > seems to drop sync at the same time you'll know your Nagios host's sync > has > been lost. :-) > Of course you can, just use "check_ntp -H ntpserver -w 30", which warns you if the clock time is out by more than 15 seconds. Run it through an nrpe call on each remote server you want to keep monitored. This is what I do, this way each server is tested against the ntp server than it is supposed to sync against. -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 jgoltz at mail.nih.gov Thu Feb 21 17:21:09 2008 From: jgoltz at mail.nih.gov (Goltz, Jim (NIH/NLM/LHC) [C]) Date: Thu, 21 Feb 2008 11:21:09 -0500 Subject: check time syncronization In-Reply-To: <47BDA310.8000004@googlemail.com> References: <1203606540.23246.35.camel@bofh.dtnet.de> <47BDA310.8000004@googlemail.com> Message-ID: Hari Sekhon writes: > Of course you can, just use "check_ntp -H ntpserver -w 30", which warns > you if the clock time is out by more than 15 seconds. Sorry. I meant, there's no plugin that lets you check from the Nagios host whether host A is in sync with NTP server B. NRPE works, but we can't use it here because of security issues. I keep forgetting not everyone is prohibited from running NRPE. -- Jim Goltz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emi_p_l at yahoo.com Thu Feb 21 17:22:09 2008 From: emi_p_l at yahoo.com (Emilio Perez) Date: Thu, 21 Feb 2008 08:22:09 -0800 (PST) Subject: Use expresions in definition In-Reply-To: <3ee91eb90802200814xe2de5a5j8ab72becc4fba665@mail.gmail.com> References: <3ee91eb90802200814xe2de5a5j8ab72becc4fba665@mail.gmail.com> Message-ID: <3244.58734.qm@web57704.mail.re3.yahoo.com> Hello, Can I define a service that include all the hosts, any similar to char * ??? or all the hosts whith a host_name that have coincidences in the name. Thank you ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sebastian.Ries at dtnet.de Thu Feb 21 17:32:21 2008 From: Sebastian.Ries at dtnet.de (Sebastian Ries) Date: Thu, 21 Feb 2008 17:32:21 +0100 Subject: OT: check time syncronization In-Reply-To: References: <1203606540.23246.35.camel@bofh.dtnet.de> <47BDA310.8000004@googlemail.com> Message-ID: <1203611541.23246.39.camel@bofh.dtnet.de> Hi > Sorry. I meant, there's no plugin that lets you check from the Nagios > host whether host A is in sync with NTP server B. > > NRPE works, but we can't use it here because of security issues. I keep > forgetting not everyone is prohibited from running NRPE. Nagios without NRPE -- isn't it like a Cheeseburger without cheese? -> It helps you a little, but it is not what you want! ;-) Regards Sebastian Ries -- ------------------------------------------------------------ DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: Sebastian.Ries at dtnet.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 21 17:40:41 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 21 Feb 2008 16:40:41 +0000 Subject: check time syncronization In-Reply-To: References: <1203606540.23246.35.camel@bofh.dtnet.de> <47BDA310.8000004@googlemail.com> Message-ID: <47BDA989.4070506@googlemail.com> Goltz, Jim (NIH/NLM/LHC) [C] wrote: > Sorry. I meant, there's no plugin that lets you check from the Nagios > host whether host A is in sync with NTP server B. > > NRPE works, but we can't use it here because of security issues. I keep > forgetting not everyone is prohibited from running NRPE. > If you have ntp on each server, and configure it correctly, you could use check_ntp -H remote_server -w 15 to test if it's out of sync with the Nagios server The on the nagios server itself have the same check but against the real ntp server, this way you've got a chain of correct times or not. Not ideal, but one possible workaround. Other ideas could be SNMP on the remote hosts, or NSCA to feed back to the nagios server... -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 Thu Feb 21 17:42:27 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 21 Feb 2008 16:42:27 +0000 Subject: Use expresions in definition In-Reply-To: <3244.58734.qm@web57704.mail.re3.yahoo.com> References: <3244.58734.qm@web57704.mail.re3.yahoo.com> Message-ID: <47BDA9F3.3020404@googlemail.com> Emilio Perez wrote: > Hello, > > Can I define a service that include all the hosts, any > similar to char * ??? or all the hosts whith a > host_name that have coincidences in the name. > http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service -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 Thu Feb 21 17:44:15 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 21 Feb 2008 16:44:15 +0000 Subject: OT: check time syncronization In-Reply-To: <1203611541.23246.39.camel@bofh.dtnet.de> References: <1203606540.23246.35.camel@bofh.dtnet.de> <47BDA310.8000004@googlemail.com> <1203611541.23246.39.camel@bofh.dtnet.de> Message-ID: <47BDAA5F.4030200@googlemail.com> Sebastian Ries wrote: > Hi > > >> Sorry. I meant, there's no plugin that lets you check from the Nagios >> host whether host A is in sync with NTP server B. >> >> NRPE works, but we can't use it here because of security issues. I keep >> forgetting not everyone is prohibited from running NRPE. >> > > Nagios without NRPE -- isn't it like a Cheeseburger without cheese? > -> It helps you a little, but it is not what you want! ;- Unless you use NSCA, SNMP, WMI or something else similar. Or you are only interested in monitoring if hosts and/or network accessible services like DNS or FTP are up.... Nagios is very flexible. Make of it what 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 marc at ena.com Thu Feb 21 17:49:23 2008 From: marc at ena.com (Marc Powell) Date: Thu, 21 Feb 2008 10:49:23 -0600 Subject: Use expresions in definition In-Reply-To: <47BDA9F3.3020404@googlemail.com> References: <47BDA9F3.3020404@googlemail.com> Message-ID: > Emilio Perez wrote: > > Hello, > > > > Can I define a service that include all the hosts, any > > similar to char * ??? or all the hosts whith a > > host_name that have coincidences in the name. > > > http://nagios.sourceforge.net/docs/2_0/templatetricks.html#service See also http://nagios.sourceforge.net/docs/2_0/configmain.html#use_regexp_matchi ng http://nagios.sourceforge.net/docs/2_0/configmain.html#use_true_regexp_m atching -- 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 Thu Feb 21 18:26:02 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Thu, 21 Feb 2008 17:26:02 +0000 (GMT) Subject: force check Message-ID: <984507.3724.qm@web26201.mail.ukl.yahoo.com> Hello When changing config files, the service status may appear as ?PENDING? in the web page. How to force nagios to check the availability of a service? thanks ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.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 llow at telesphere.com Thu Feb 21 18:31:17 2008 From: llow at telesphere.com (Larry Low) Date: Thu, 21 Feb 2008 10:31:17 -0700 Subject: force check In-Reply-To: <984507.3724.qm@web26201.mail.ukl.yahoo.com> References: <984507.3724.qm@web26201.mail.ukl.yahoo.com> Message-ID: <013501c874af$90a79620$b1f6c260$@com> Re-schedule the next check of this service If active checks are disabled or the service is using a check_period that would prevent it from being checked check the "Force Check" as well. ---- 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 Melanie Pfefer > Sent: Thursday, February 21, 2008 10:26 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] force check > > Hello > When changing config files, the service status may > appear as "PENDING" in the web page. > How to force nagios to check the availability of a > service? > > thanks > > > > ___________________________________________________________ > Yahoo! Answers - Got a question? Someone out there knows the answer. > Try it > now. > http://uk.answers.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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Feb 21 19:16:48 2008 From: hittjw at gmail.com (Justin Hitt) Date: Thu, 21 Feb 2008 13:16:48 -0500 Subject: DNX Version 0.15 Released! In-Reply-To: <3ee91eb90802200814xe2de5a5j8ab72becc4fba665@mail.gmail.com> References: <3ee91eb90802200806l37bdee98y75efd34f35069867@mail.gmail.com> <3ee91eb90802200814xe2de5a5j8ab72becc4fba665@mail.gmail.com> Message-ID: <93344bf0802211016s1f006873je3943b5d88eaefbd@mail.gmail.com> John, On Wed, Feb 20, 2008 at 11:14 AM, John Calcote wrote: > DNX is a modular extension of Nagios that offloads a significant > portion of the work normally done by Nagios to a distributed network Why not just off-load the Nagios checks to Condor, GNU Queue, PBS, or some other distributed job system? All of them support Perl and be setup to return output to a specific location (i.e. Nagio 'checkresults' directory or the external commands queue.) Or even additional passive check drones that run Nagios checks in Xen or Vmware containers out in the environment, passing data back to your Nagios console. Don't get me wrong, DNX is a great and viable concept, I just have these other resources already in production. What types of distribution have people used to help Nagios stay on top of checks? 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 Thu Feb 21 19:39:07 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 21 Feb 2008 18:39:07 +0000 Subject: Announce: Check_Gentoo_Portage plugin Message-ID: <47BDC54B.7030107@googlemail.com> Hi, I've written another plugin called check_gentoo_portage which allows you to monitor Security Updates on Gentoo systems, thereby integrating your security patching information in to Nagios. It will alert if there are any outstanding security updates that haven't been applied to a system. It also tests the age of the Portage tree since security updates are dependent on this. It can also tell you the age of the Portage tree and how many general package updates available (there is also a switch to alert on any general package upgrades as this was a feature request but it's not the default behaviour as most people won't want to do this). There are various customization switches, see --help for full details. You can get the plugin from NagiosExchange here: http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1244 I've found this to be very effective across a range of servers and much better than having a locally run glsa script mail you as this is more controlled, more reliable and easily trackable/referenced with a Nagios interface, I actually found 2 instances at a remote site where a cronned glsa script had failed to inform me of security patches due to local mta failure. I can't believe I didn't write this sooner, a must have for all those using Gentoo I think. Thanks to Matthias Kellermann for the original idea. All feedback is of course welcome at this email address. -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 Thu Feb 21 20:15:06 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Thu, 21 Feb 2008 13:15:06 -0600 Subject: check time syncronization In-Reply-To: <47BDA989.4070506@googlemail.com> References: <1203606540.23246.35.camel@bofh.dtnet.de> <47BDA310.8000004@googlemail.com> <47BDA989.4070506@googlemail.com> Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/21/2008 10:40:41 AM: > Goltz, Jim (NIH/NLM/LHC) [C] wrote: > > Sorry. I meant, there's no plugin that lets you check from the Nagios > > host whether host A is in sync with NTP server B. > > > > NRPE works, but we can't use it here because of security issues. I keep > > forgetting not everyone is prohibited from running NRPE. > > > If you have ntp on each server, and configure it correctly, you could > use check_ntp -H remote_server -w 15 to test if it's out of sync with > the Nagios server > > The on the nagios server itself have the same check but against the real > ntp server, this way you've got a chain of correct times or not. > > Not ideal, but one possible workaround. > > Other ideas could be SNMP on the remote hosts, or NSCA to feed back to > the nagios server... > > -h > > -- > Hari Sekhon > Another option would to be used check_by_ssh. I am, of course, assuming they are allowed to use ssh but a machine with no remote connectivity is a problem to begin with. check_by_ssh isn't quite as nice as nrpe but it would accomplish the checks in question. One could also write a pretty simple wrapper to check the time on both servers, compare it, and account for the lag between the checks. It wouldn't be pretty but it would work for the most part. -------------- 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 Thu Feb 21 20:52:15 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 21 Feb 2008 19:52:15 +0000 Subject: check time syncronization In-Reply-To: References: <1203606540.23246.35.camel@bofh.dtnet.de> <47BDA310.8000004@googlemail.com> <47BDA989.4070506@googlemail.com> Message-ID: <47BDD66F.4050501@googlemail.com> mark.potter at academy.com wrote: > Another option would to be used check_by_ssh. I am, of course, > assuming they are allowed to use ssh but a machine with no remote > connectivity is a problem to begin with. check_by_ssh isn't quite as > nice as nrpe but it would accomplish the checks in question. One could > also write a pretty simple wrapper to check the time on both servers, > compare it, and account for the lag between the checks. It wouldn't be > pretty but it would work for the most part. check_by_ssh? I'd avoid that at any cost, ssh is too powerful, it's the equivalent of nrpe with the "don't blame me flag if you get hacked". If you can't use nrpe, then you certainly can't give out ssh access. Also, I'm not sure it's worth writing any wrapper, since any which way you'd still need a remote execution mechanism. By the time you have any remote execution mechanism, then surely you should use the standard check_ntp plugin... I think that SNMP, NSCA would be your best bets, but if you can't have anything, there is also one more remote possibility. Timestamping through ICMP. Long shot but it can be done, you'd probably need to write a custom plugin though and if it's a tight environment then likely this would be blocked. -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 marc at ena.com Thu Feb 21 21:05:11 2008 From: marc at ena.com (Marc Powell) Date: Thu, 21 Feb 2008 14:05:11 -0600 Subject: check time syncronization In-Reply-To: <47BDD66F.4050501@googlemail.com> References: <47BDD66F.4050501@googlemail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon > Sent: Thursday, February 21, 2008 1:52 PM > To: mark.potter at academy.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check time syncronization > > mark.potter at academy.com wrote: > > Another option would to be used check_by_ssh. I am, of course, > > assuming they are allowed to use ssh but a machine with no remote > > connectivity is a problem to begin with. check_by_ssh isn't quite as > > nice as nrpe but it would accomplish the checks in question. One could > > also write a pretty simple wrapper to check the time on both servers, > > compare it, and account for the lag between the checks. It wouldn't be > > pretty but it would work for the most part. > check_by_ssh? I'd avoid that at any cost, ssh is too powerful, it's the > equivalent of nrpe with the "don't blame me flag if you get hacked". If I call FUD. If you're super lazy about your configuration, then perhaps, but it certainly doesn't have to be that way. You can get so restrictive that only connections from a particular host with a specific key can receive output from a specific command that you've configured to be run when that session connects, no matter what else they try to do. Man sshd and /authorized_keys. > you can't use nrpe, then you certainly can't give out ssh access. > > Also, I'm not sure it's worth writing any wrapper, since any which way > you'd still need a remote execution mechanism. By the time you have any > remote execution mechanism, then surely you should use the standard > check_ntp plugin... > > I think that SNMP, NSCA would be your best bets, but if you can't have OMG. SNMP can be used to execute programs remotely and reboot machines. I'd avoid that at all costs, even if I needed to turn the machine off to not use it. I'm kidding of course but my point is that the tools are only as open as you make them. -- 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 mikeh at bluegecko.net Thu Feb 21 21:09:14 2008 From: mikeh at bluegecko.net (Mike Hamrick) Date: Thu, 21 Feb 2008 12:09:14 -0800 Subject: State Stalking and notifications In-Reply-To: References: Message-ID: <53B5A292-966B-4374-BC09-33A985A89E34@bluegecko.net> On Feb 20, 2008, at 7:46 AM, Frost, Mark {PBG} wrote: > I had thought about writing a custom check for each line > of output that this command generates, but that seems needlessly > painful. You could write one active check that parses the output, figures out what's gone wrong, and then submits passive results for the specific services that have errors. Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Feb 21 22:15:25 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Thu, 21 Feb 2008 15:15:25 -0600 Subject: check time syncronization In-Reply-To: <47BDD66F.4050501@googlemail.com> References: <1203606540.23246.35.camel@bofh.dtnet.de> <47BDA310.8000004@googlemail.com> <47BDA989.4070506@googlemail.com> <47BDD66F.4050501@googlemail.com> Message-ID: Hari Sekhon wrote on 02/21/2008 01:52:15 PM: > mark.potter at academy.com wrote: > > Another option would to be used check_by_ssh. I am, of course, > > assuming they are allowed to use ssh but a machine with no remote > > connectivity is a problem to begin with. check_by_ssh isn't quite as > > nice as nrpe but it would accomplish the checks in question. One could > > also write a pretty simple wrapper to check the time on both servers, > > compare it, and account for the lag between the checks. It wouldn't be > > pretty but it would work for the most part. > > check_by_ssh? I'd avoid that at any cost, ssh is too powerful, it's the > equivalent of nrpe with the "don't blame me flag if you get hacked". If > you can't use nrpe, then you certainly can't give out ssh access. This is patently untrue. NRPE opens a new port and introduces new processes to an environment. This has to be vetted through all security testing and that can take months at some companies only to have it fail because they do not understand it. If they are admining Linux boxes already I am betting they have ssh running in the environment and properly locked down at many levels. SSH may be more powerful than NRPE as far as what could happen but it is also running in a lot more places. It is an alternative if you can't get NRPE approved. The final statement is false as well. "If you can't use nrpe, then you certainly can't give out ssh access". I can assure you that there are many environments where the security admins are more concerned about introducing new processes that use open ports than they are about giving out ssh access when properly locked down. It is really very simple to allow ssh access by IP and chroot the nagios user making ssh no more of a risk than nrpe and not introducing a new "threat" into the farm. The security admins are likely wrong but they are also the ones calling the shots in many cases. > > Also, I'm not sure it's worth writing any wrapper, since any which way > you'd still need a remote execution mechanism. By the time you have any > remote execution mechanism, then surely you should use the standard > check_ntp plugin... You don't need a remote execute mechanism: HOST-RESOURCES-MIB::hrSystemDate.0 That will pull the system date via snmp without a remote execute mechanism. Meaning you could, in theory, pull the date off of two systems with one being the ntp server, write some logic in for the lag between the two checks, and compare the time without any remote execute mechanism whatsoever. It would not be as reliable as anything using a remote execute method because the lag between the two checks will vary but it could be used as a basic check without too much trouble. > > I think that SNMP, NSCA would be your best bets, but if you can't have > anything, there is also one more remote possibility. Timestamping > through ICMP. Long shot but it can be done, you'd probably need to write > a custom plugin though and if it's a tight environment then likely this > would be blocked. I was referring to writing a wrapped for snmp checks. Amazing that you suggest using snmp. I highly doubt nsca can be used if nrpe cannot. SNMP or SSH are likely the only options for the scenario as presented. Also I don't know if you noticed the OP's email address but I am betting he deals with a lot more red tape than most us in getting anything changed, installed, and so on. -------------- 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 don_shesnicky at carleton.ca Thu Feb 21 22:40:12 2008 From: don_shesnicky at carleton.ca (Don Shesnicky) Date: Thu, 21 Feb 2008 16:40:12 -0500 Subject: Nagios compared to Sun's SMC In-Reply-To: References: Message-ID: <47BDEFBC.5010400@carleton.ca> I did a search of the archives and this topic didn't seem to get any hits, if I missed something please point me in the right direction. I'm wondering if anyone on the list has compared Nagios to Sun Management Center or has thoughts on the two? We're a Solaris shop and the container/zone features of SMC are definitely of interest but my understanding is that it has a fairly heavy cpu load. On the Nagios side, the ability to script the various situations when needed is a real plus and we have good abilities there so that and the fact that it's open source are definite pros. Anyone had to consider these tools side-by-side? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Feb 21 22:53:22 2008 From: bjlockie at lockie.ca (bjlockie at lockie.ca) Date: Thu, 21 Feb 2008 16:53:22 -0500 (EST) Subject: init script Message-ID: <24483.24.215.0.20.1203630802.squirrel@webmail.lockie.ca> Can someone please send me the init script? I didn't install it before I got rid of the source. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Feb 21 23:06:16 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Thu, 21 Feb 2008 16:06:16 -0600 Subject: init script In-Reply-To: <24483.24.215.0.20.1203630802.squirrel@webmail.lockie.ca> References: <24483.24.215.0.20.1203630802.squirrel@webmail.lockie.ca> Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/21/2008 03:53:22 PM: > Can someone please send me the init script? > I didn't install it before I got rid of the source. > > Here is one for CentOS: http://www.unixservers.us/content/view/51/69/ Of course I imagine that http:www.google.com has more. As for sending one it's sort of hard because you haven't said whether you are running on Linux (what distro), BDS, Solaris, etc. I could send you mine but we are a SLES shop and I don't know what you run. I hope the CentOS one helps you 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 mark.frost1 at pepsi.com Thu Feb 21 23:47:30 2008 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Thu, 21 Feb 2008 17:47:30 -0500 Subject: check_procs with -a argument Message-ID: I must admit I'm a little confused about using the check_procs plugin. The help shows that you can use the -a argument to match against args in the command as follows: -a, --argument-array=STRING Only scan for processes with args that contain STRING. I'm trying to trap a process that's running under ksh. If I run check_procs -C ksh I get PROCS OK: 7 processes with command name 'ksh' (as I expect). The specific process I want to match shows in 'ps' as 401 S foo 1079 1062 0 158 20 e00000019523e280 111 e00000013c2de000 Feb 20 ? 0:00 ksh /opt/zib/fit/asn_nex/OFH1/scripts/runnex.sh /opt/java1.4/jre /opt/zib/fit/asn_nex/OFH1/bin/ but if I run check_procs -C ksh -a runnex.sh check_procs -C ksh -a "runnex.sh" check_procs -C ksh -a "OFH1" check_procs -C ksh -a "/opt/zib/fit/asn_nex/OFH1/scripts/runnex.sh /opt/java1.4/jre /opt/zib/fit/asn_nex/OFH1/bin/" all I get in response is PROCS OK: 0 processes with args 'runnex', command name 'ksh' or variants of that. What am I missing here? Am I not listing all or part of arguments to ksh? 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 Fri Feb 22 00:15:17 2008 From: marc at ena.com (Marc Powell) Date: Thu, 21 Feb 2008 17:15:17 -0600 Subject: check_procs with -a argument 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: Thursday, February 21, 2008 4:48 PM > To: Nagios Users Mailinglist > Subject: [Nagios-users] check_procs with -a argument > > > I must admit I'm a little confused about using the check_procs plugin. > The help shows that you can use the -a argument to match against args in > the command as follows: > > -a, --argument-array=STRING > Only scan for processes with args that contain STRING. > > check_procs -C ksh -a runnex.sh > check_procs -C ksh -a "runnex.sh" > check_procs -C ksh -a "OFH1" > check_procs -C ksh -a "/opt/zib/fit/asn_nex/OFH1/scripts/runnex.sh > /opt/java1.4/jre /opt/zib/fit/asn_nex/OFH1/bin/" > > all I get in response is > > PROCS OK: 0 processes with args 'runnex', command name 'ksh' > > or variants of that. > > What am I missing here? Am I not listing all or part of arguments to > ksh? The -a is a substring search so I would expect it to be working. My guess is that your ps command isn't returning the args you think it is. Try running check_procs with '-v -v -v' to see the ps command that it's using and the output it is parsing from ps. Plugins version and how installed as well as OS version might be useful. I suspect that you're not using a recent version as the output is transposed. You should try with the latest release if you're using an older 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 amontibello at gmail.com Fri Feb 22 00:42:36 2008 From: amontibello at gmail.com (Anthony Montibello) Date: Thu, 21 Feb 2008 18:42:36 -0500 Subject: NC_Net nagios client to monitor Event logs on windows In-Reply-To: References: Message-ID: HI, THe problem is your version of check_nt >>"where check_nt is default plugin which will come with the nagios installation." You need to compile check_nc_net.c to do this, copy the check_nc_net.c to check_nt.c then recompile the plugins check_nc_net.c is in the install location of NC_Net as well as downloadable seperatly from http://downloads.sourceforge.net/nc-net/check_nc_net_040107.zip?modtime=1175541733&big_mirror=0&filesize=17953 However please use the eventlog_new command -(See the help of check_nc_net) It is a more efficient check than eventlog TOny (Author of NC_NEt) On Thu, Feb 21, 2008 at 1:00 AM, manju a wrote: > 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 ... > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 sholikar at yahoo.com Fri Feb 22 03:02:20 2008 From: sholikar at yahoo.com (sachin holikar) Date: Thu, 21 Feb 2008 18:02:20 -0800 (PST) Subject: Fwd: help needed Message-ID: <15882.35722.qm@web53202.mail.re2.yahoo.com> Hi Mark, First of all, thanks for the reply. Ok fact is , I had written a detailed mail on the scenario but believe it or not , it was getting refused continuously by the nagios forum. And the only option remained with me is to reduce the mail as much as I could, thinking that some of the words might not be appropriate ? for this forum. And yes again believe it or not , I could manage to send the below mail atlast. That said , I am again giving a try to describe the problem and the steps I had taken so far. Complete Error Message --> ""It appears as though you do not have permission to view the configuration information you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file."" Now I allowed as much of the options (related to External Command Execution) in nagios.cfg To name few , check_external_commands=1 log_external_commands=1 In cgi.cfg nagios_check_command=/usr/local/NAGIOS/libexec/check_nagios /usr/local/NAGIOS/var/status.dat 5 '/usr/local/NAGIOS//bin/nagios' Now I'm not sure if there is any other option that I have missed out as I have just started working on NAGIOS. I could configure it till Graphical access but it just that View Config is not working for me. Other information of our setup is, OS - RedHat Linux EL 4.0 Nagios Version 2.9 If you require any more info then please let me know. Thanks. Sac Note: forwarded message attached. --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: sachin holikar Subject: [Nagios-users] help needed Date: Wed, 20 Feb 2008 21:49:55 -0800 (PST) Size: 4835 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 bjlockie at lockie.ca Fri Feb 22 03:25:40 2008 From: bjlockie at lockie.ca (James Lockie) Date: Thu, 21 Feb 2008 21:25:40 -0500 Subject: init script In-Reply-To: References: <24483.24.215.0.20.1203630802.squirrel@webmail.lockie.ca> Message-ID: <47BE32A4.3050201@lockie.ca> mark.potter at academy.com wrote: > > > nagios-users-bounces at lists.sourceforge.net wrote on 02/21/2008 > 03:53:22 PM: > > > Can someone please send me the init script? > > I didn't install it before I got rid of the source. > > > > > Here is one for CentOS: http://www.unixservers.us/content/view/51/69/ > > Of course I imagine that http:www.google.com has more. As for sending > one it's sort of hard because you haven't said whether you are running > on Linux (what distro), BDS, Solaris, etc. I could send you mine but > we are a SLES shop and I don't know what you run. I hope the CentOS > one helps you out. Solaris8. I hope the CentOS one isn't too different. :-) 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 bjlockie at lockie.ca Fri Feb 22 03:39:20 2008 From: bjlockie at lockie.ca (James Lockie) Date: Thu, 21 Feb 2008 21:39:20 -0500 Subject: init script In-Reply-To: References: <24483.24.215.0.20.1203630802.squirrel@webmail.lockie.ca> Message-ID: <47BE35D8.8000806@lockie.ca> mark.potter at academy.com wrote: > > > nagios-users-bounces at lists.sourceforge.net wrote on 02/21/2008 > 03:53:22 PM: > > > Can someone please send me the init script? > > I didn't install it before I got rid of the source. > > > > > Here is one for CentOS: http://www.unixservers.us/content/view/51/69/ > > Of course I imagine that http:www.google.com has more. As for sending > one it's sort of hard because you haven't said whether you are running > on Linux (what distro), BDS, Solaris, etc. I could send you mine but > we are a SLES shop and I don't know what you run. I hope the CentOS > one helps you out. The CentOS one was easy to adapt. I added a check before start to see if it is running: if [[ `status_nagios nagios` ]] then echo "Nagios is already running" else ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbenger at ztechnet.com Fri Feb 22 06:39:49 2008 From: jbenger at ztechnet.com (Jeff C. Benger) Date: Fri, 22 Feb 2008 00:39:49 -0500 Subject: Fwd: help needed In-Reply-To: <15882.35722.qm@web53202.mail.re2.yahoo.com> References: <15882.35722.qm@web53202.mail.re2.yahoo.com> Message-ID: <10BE874C84038E448517C08D335C1B680157A1E2@gimli.allezsoftware.com> http://www.google.com/search?hl=en&q=It+appears+as+though+you+do+not+hav e+permission+to+view+the+configuration+information+you+requested... http://www.nagios.org/faqs/viewfaq.php?faq_id=352 check cgi.cfg ________________________________ 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 9:02 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Fwd: help needed Hi Mark, First of all, thanks for the reply. Ok fact is , I had written a detailed mail on the scenario but believe it or not , it was getting refused continuously by the nagios forum. And the only option remained with me is to reduce the mail as much as I could, thinking that some of the words might not be appropriate ? for this forum. And yes again believe it or not , I could manage to send the below mail atlast. That said , I am again giving a try to describe the problem and the steps I had taken so far. Complete Error Message --> ""It appears as though you do not have permission to view the configuration information you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file."" Now I allowed as much of the options (related to External Command Execution) in nagios.cfg To name few , check_external_commands=1 log_external_commands=1 In cgi.cfg nagios_check_command=/usr/local/NAGIOS/libexec/check_nagios /usr/local/NAGIOS/var/status.dat 5 '/usr/local/NAGIOS//bin/nagios' Now I'm not sure if there is any other option that I have missed out as I have just started working on NAGIOS. I could configure it till Graphical access but it just that View Config is not working for me. Other information of our setup is, OS - RedHat Linux EL 4.0 Nagios Version 2.9 If you require any more info then please let me know. Thanks. Sac Note: forwarded message attached. ________________________________ 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 sholikar at yahoo.com Fri Feb 22 07:14:56 2008 From: sholikar at yahoo.com (sachin holikar) Date: Thu, 21 Feb 2008 22:14:56 -0800 (PST) Subject: Fwd: help needed In-Reply-To: <10BE874C84038E448517C08D335C1B680157A1E2@gimli.allezsoftware.com> References: <10BE874C84038E448517C08D335C1B680157A1E2@gimli.allezsoftware.com> Message-ID: <823030.90424.qm@web53206.mail.re2.yahoo.com> Hi, Thanks all for the replies. But hard luck. Ultimately I have enabled every single option by putting * against it. Still "View Config" seems to be not working for me. nagios_check_command=/usr/local/NAGIOS/libexec/check_nagios /usr/local/NAGIOS/var/status.dat 5 '/usr/local/NAGIOS//bin/nagios' use_authentication=0 authorized_for_system_information=* authorized_for_configuration_information=* authorized_for_system_commands=* authorized_for_all_services=* authorized_for_all_hosts=* authorized_for_all_service_commands=* authorized_for_all_host_commands=* And still getting the same error. Now what ??? "Jeff C. Benger" wrote: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} http://www.google.com/search?hl=en&q=It+appears+as+though+you+do+not+have+permission+to+view+the+configuration+information+you+requested... http://www.nagios.org/faqs/viewfaq.php?faq_id=352 check cgi.cfg --------------------------------- 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 9:02 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Fwd: help needed Hi Mark, First of all, thanks for the reply. Ok fact is , I had written a detailed mail on the scenario but believe it or not , it was getting refused continuously by the nagios forum. And the only option remained with me is to reduce the mail as much as I could, thinking that some of the words might not be appropriate ? for this forum. And yes again believe it or not , I could manage to send the below mail atlast. That said , I am again giving a try to describe the problem and the steps I had taken so far. Complete Error Message --> ""It appears as though you do not have permission to view the configuration information you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file."" Now I allowed as much of the options (related to External Command Execution) in nagios.cfg To name few , check_external_commands=1 log_external_commands=1 In cgi.cfg nagios_check_command=/usr/local/NAGIOS/libexec/check_nagios /usr/local/NAGIOS/var/status.dat 5 '/usr/local/NAGIOS//bin/nagios' Now I'm not sure if there is any other option that I have missed out as I have just started working on NAGIOS. I could configure it till Graphical access but it just that View Config is not working for me. Other information of our setup is, OS - RedHat Linux EL 4.0 Nagios Version 2.9 If you require any more info then please let me know. Thanks. Sac Note: forwarded message attached. --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --------------------------------- 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 hvdkooij at vanderkooij.org Fri Feb 22 07:26:33 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Fri, 22 Feb 2008 07:26:33 +0100 Subject: status.cgi very high cpu usage => Problem gone away In-Reply-To: References: Message-ID: <47BE6B19.7010606@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steve Kieu wrote: | 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 ? You wouldn't happen to own a google indexing device now would you? THat could hammer down a webbased server like nagios. 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) iD8DBQFHvmsXBvzDRVjxmYERAi0qAKC3ZCvsFQ24Hz4BvQj7M+MMAzEiJwCgnuMV emfj+Gf5tZjQxS0zZEdnyzM= =YkCx -----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 manju.kudu at gmail.com Fri Feb 22 07:29:47 2008 From: manju.kudu at gmail.com (manju a) Date: Fri, 22 Feb 2008 11:59:47 +0530 Subject: NC_Net nagios client to monitor Event logs on windows In-Reply-To: References: Message-ID: Hi, > > Thanks a lot for your replay. > > when i copied to the libexec folder i got the below error, i know this is > not a command soo shell is not able to recognize it. > > [root at nagios libexec]# ./check_nt.c > ./check_nt.c: line 1: > /********************************************************* > : No such file or directory > ./check_nt.c: line 2: check_apt: command not found > : command not found3: * > ./check_nt.c: line 4: check_apt: command not found > ./check_nt.c: line 5: check_apt: command not found > ./check_nt.c: line 6: check_apt: command not found > : command not found7: * > ./check_nt.c: line 8: check_apt: command not found > ./check_nt.c: line 9: check_apt: command not found > ./check_nt.c: line 10: syntax error near unexpected token `(' > ./check_nt.c: line 10: ` * Copyright (c) 2007 TOny Montibello ( > tony at MontiTech.co > ') > > can you please let me know how we can recomplie check_nt.c plugins. > > thanks > manjunath A. > > > > On Fri, Feb 22, 2008 at 5:12 AM, Anthony Montibello > wrote: > > > HI, > > > > THe problem is your version of check_nt > > >>"where check_nt is default plugin which will come with the nagios > > installation." > > > > You need to compile check_nc_net.c > > to do this, copy the check_nc_net.c to check_nt.c > > then recompile the plugins > > > > check_nc_net.c is in the install location of NC_Net as well as > > downloadable seperatly from > > > > http://downloads.sourceforge.net/nc-net/check_nc_net_040107.zip?modtime=1175541733&big_mirror=0&filesize=17953 > > > > However please use the eventlog_new command -(See the help of > > check_nc_net) > > It is a more efficient check than eventlog > > > > TOny (Author of NC_NEt) > > On Thu, Feb 21, 2008 at 1:00 AM, manju a wrote: > > > > > 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 < > > > Edgar.Matzinger at valid.nl> 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 ... > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: 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 thomas at glanzmann.de Fri Feb 22 07:42:23 2008 From: thomas at glanzmann.de (Thomas Glanzmann) Date: Fri, 22 Feb 2008 07:42:23 +0100 Subject: [PATCH] NRPE Compile FIX Message-ID: <20080222064223.GA13583@cip.informatik.uni-erlangen.de> Hello, the version 2.11 of nrpe does not build under Solaris because it depends on two defines that are not existant and uses the gnu version of the asprintf. Thomas --- src/nrpe.c.tg 2008-02-22 07:28:15.880067000 +0100 +++ src/nrpe.c 2008-02-22 07:32:08.870003000 +0100 @@ -80,13 +80,13 @@ int debug=FALSE; +static char env_string[128]; int main(int argc, char **argv){ int result=OK; int x; char buffer[MAX_INPUT_BUFFER]; - char *env_string=NULL; #ifdef HAVE_SSL DH *dh; char seedfile[FILENAME_MAX]; @@ -94,9 +94,8 @@ #endif /* set some environment variables */ - asprintf(&env_string,"NRPE_MULTILINESUPPORT=1"); - putenv(env_string); - asprintf(&env_string,"NRPE_PROGRAMVERSION=%s",PROGRAM_VERSION); + putenv("NRPE_MULTILINESUPPORT=1"); + snprintf(128, env_string,"NRPE_PROGRAMVERSION=%s",PROGRAM_VERSION); putenv(env_string); /* process command-line args */ @@ -613,10 +612,12 @@ log_facility=LOG_UUCP; else if(!strcmp(varvalue,"cron")) log_facility=LOG_CRON; +#if 0 else if(!strcmp(varvalue,"authpriv")) log_facility=LOG_AUTHPRIV; else if(!strcmp(varvalue,"ftp")) log_facility=LOG_FTP; +#endif else if(!strcmp(varvalue,"local0")) log_facility=LOG_LOCAL0; else if(!strcmp(varvalue,"local1")) ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbenger at ztechnet.com Fri Feb 22 07:45:53 2008 From: jbenger at ztechnet.com (Jeff C. Benger) Date: Fri, 22 Feb 2008 01:45:53 -0500 Subject: NC_Net nagios client to monitor Event logs onwindows In-Reply-To: References: Message-ID: <10BE874C84038E448517C08D335C1B680157A1E3@gimli.allezsoftware.com> Download & extract nagios-plugins source Remove/rename the original check_nt.c in the plugins dir copy the check_nc_net.c file into the plugins folder and rename to check_nt.c rebuild the plugins(make) ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of manju a Sent: Friday, February 22, 2008 1:30 AM To: Anthony Montibello Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NC_Net nagios client to monitor Event logs onwindows Hi, Thanks a lot for your replay. when i copied to the libexec folder i got the below error, i know this is not a command soo shell is not able to recognize it. [root at nagios libexec]# ./check_nt.c ./check_nt.c: line 1: /********************************************************* : No such file or directory ./check_nt.c: line 2: check_apt: command not found : command not found3: * ./check_nt.c: line 4: check_apt: command not found ./check_nt.c: line 5: check_apt: command not found ./check_nt.c: line 6: check_apt: command not found : command not found7: * ./check_nt.c: line 8: check_apt: command not found ./check_nt.c: line 9: check_apt: command not found ./check_nt.c: line 10: syntax error near unexpected token `(' ./check_nt.c: line 10: ` * Copyright (c) 2007 TOny Montibello (tony at MontiTech.co ') can you please let me know how we can recomplie check_nt.c plugins. thanks manjunath A. On Fri, Feb 22, 2008 at 5:12 AM, Anthony Montibello wrote: HI, THe problem is your version of check_nt >>"where check_nt is default plugin which will come with the nagios installation." You need to compile check_nc_net.c to do this, copy the check_nc_net.c to check_nt.c then recompile the plugins check_nc_net.c is in the install location of NC_Net as well as downloadable seperatly from http://downloads.sourceforge.net/nc-net/check_nc_net_040107.zip?modtime= 1175541733&big_mirror=0&filesize=17953 However please use the eventlog_new command -(See the help of check_nc_net) It is a more efficient check than eventlog TOny (Author of NC_NEt) On Thu, Feb 21, 2008 at 1:00 AM, manju a wrote: 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 ... ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 22 08:26:11 2008 From: mkellermann at net-com.de (Matthias Kellermann) Date: Fri, 22 Feb 2008 08:26:11 +0100 Subject: Announce: Check_Gentoo_Portage plugin In-Reply-To: <47BDC54B.7030107@googlemail.com> References: <47BDC54B.7030107@googlemail.com> Message-ID: <47BE7913.2020101@net-com.de> > You can get the plugin from NagiosExchange here: > > http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1244 Thanks Hari for this great plugin - just what I needed! :) Just tested it - works fine! I had to raise the DEFAULT_TIMEOUT to something like 30 on some older machines to get this to work. But on newer system 10 seconds are ok. 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 Fri Feb 22 09:20:45 2008 From: msh.computing at gmail.com (Steve Kieu) Date: Fri, 22 Feb 2008 21:20:45 +1300 Subject: status.cgi very high cpu usage => Problem gone away In-Reply-To: <47BE6B19.7010606@vanderkooij.org> References: <47BE6B19.7010606@vanderkooij.org> Message-ID: Not slow because of many requests, slow because cpu execution time is like 30 times slower, effectively running like 100Mh i486 cpu (benchmark on the console only, disconnect all network NIC. So no ; not because of Google :-) Obviously vmware is doing something nasty. When the box is slow and high load, the host load is still rather low. Cheers, On Fri, Feb 22, 2008 at 7:26 PM, Hugo van der Kooij < hvdkooij at vanderkooij.org> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Steve Kieu wrote: > > | 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 ? > > You wouldn't happen to own a google indexing device now would you? THat > could hammer down a webbased server like nagios. > > 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) > > iD8DBQFHvmsXBvzDRVjxmYERAi0qAKC3ZCvsFQ24Hz4BvQj7M+MMAzEiJwCgnuMV > emfj+Gf5tZjQxS0zZEdnyzM= > =YkCx > -----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 > -- 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 hpsekhon at googlemail.com Fri Feb 22 10:22:35 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 22 Feb 2008 09:22:35 +0000 Subject: check time syncronization In-Reply-To: References: <1203606540.23246.35.camel@bofh.dtnet.de> <47BDA310.8000004@googlemail.com> <47BDA989.4070506@googlemail.com> <47BDD66F.4050501@googlemail.com> Message-ID: <47BE945B.2030000@googlemail.com> mark.potter at academy.com wrote: > > This is patently untrue. NRPE opens a new port and introduces new > processes to an environment. This has to be vetted through all > security testing and that can take months at some companies only to > have it fail because they do not understand it. If they are admining > Linux boxes already I am betting they have ssh running in the > environment and properly locked down at many levels. SSH may be more > powerful than NRPE as far as what could happen but it is also running > in a lot more places. It is an alternative if you can't get NRPE > approved. The final statement is false as well. "If you can't use > nrpe, then you certainly can't give out ssh access". I can assure you > that there are many environments where the security admins are more > concerned about introducing new processes that use open ports than > they are about giving out ssh access when properly locked down. It is > really very simple to allow ssh access by IP and chroot the nagios > user making ssh no more of a risk than nrpe and not introducing a new > "threat" into the farm. The security admins are likely wrong but they > are also the ones calling the shots in many cases. > > > > > Also, I'm not sure it's worth writing any wrapper, since any which way > > you'd still need a remote execution mechanism. By the time you have any > > remote execution mechanism, then surely you should use the standard > > check_ntp plugin... > > You don't need a remote execute mechanism: > HOST-RESOURCES-MIB::hrSystemDate.0 I already mentioned SNMP... > I was referring to writing a wrapped for snmp checks. Ok I must have misunderstood, you didn't mention what type of wrapper you were talking about, you mentioned ssh, then writing a wrapper and there was mention of snmp in your email. > Amazing that you suggest using snmp. I highly doubt nsca can be used > if nrpe cannot. SNMP or SSH are likely the only options for the > scenario as presented. I don't understand how it's amazing to suggest snmp... you did the same afterwards... I'm losing something in translation here, but never mind. Let's let it rest. The OP has a good range of options now: SNMP, NSCA, SSH etc. 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 hpsekhon at googlemail.com Fri Feb 22 10:29:24 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 22 Feb 2008 09:29:24 +0000 Subject: check time syncronization In-Reply-To: References: Message-ID: <47BE95F4.6010502@googlemail.com> Marc Powell wrote: > OMG. SNMP can be used to execute programs remotely and reboot machines. > I'd avoid that at all costs, even if I needed to turn the machine off to > not use it. > > I'm kidding of course but my point is that the tools are only as open as > you make them. > That's a good point of course, SNMP is no panacea, it can also do many things, but I think there are a lot of environments that do have SNMP but that may not have NRPE or NSCA running since SNMP seems to be quite widely used already. -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 22 10:40:00 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 22 Feb 2008 09:40:00 +0000 Subject: Announce: Check_Gentoo_Portage plugin In-Reply-To: <47BE7913.2020101@net-com.de> References: <47BDC54B.7030107@googlemail.com> <47BE7913.2020101@net-com.de> Message-ID: <47BE9870.8020703@googlemail.com> Matthias Kellermann wrote: >> You can get the plugin from NagiosExchange here: >> >> http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1244 > > > Thanks Hari for this great plugin - just what I needed! :) > > Just tested it - works fine! > I had to raise the DEFAULT_TIMEOUT to something like 30 on some older > machines to get this to work. But on newer system 10 seconds are ok. > > Matthias Yes it depends on what checks you run as well, getting the number of all available upgrades is very slow, hence why it's not the default - you'd need 30-40 seconds, but this is completely emerge's fault which has always been slow to start up. I find that increasing the --timeout helps anyway even if you just stick to the default Outstanding Security Packages check as it takes glsa-check around 6.5-7 seconds just to return the output of security packages, you may end up hitting the 10 second limit, and of course this will be slower on old machines... This is one good reason for the --timeout switch. I've just used that switch to increase the running timeout to 30 seconds as well just to be safe from timeouts. If you're referring to the DEFAULT_TIMEOUT in the plugin, it's not really needed to change the code if you use the --timeout switch when you run it (or embed that in the NRPE call or whatever you use for remote checks), but it's completely your choice. -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 22 11:30:21 2008 From: mkellermann at net-com.de (Matthias Kellermann) Date: Fri, 22 Feb 2008 11:30:21 +0100 Subject: Announce: Check_Gentoo_Portage plugin In-Reply-To: <47BE9870.8020703@googlemail.com> References: <47BDC54B.7030107@googlemail.com> <47BE7913.2020101@net-com.de> <47BE9870.8020703@googlemail.com> Message-ID: <47BEA43D.8060307@net-com.de> Hari Sekhon schrieb: > Matthias Kellermann wrote: >>> You can get the plugin from NagiosExchange here: >>> >>> http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1244 >> >> >> >> Thanks Hari for this great plugin - just what I needed! :) >> >> Just tested it - works fine! >> I had to raise the DEFAULT_TIMEOUT to something like 30 on some older >> machines to get this to work. But on newer system 10 seconds are ok. >> >> Matthias > This is one good reason for the --timeout switch. I've just used that > switch to increase the running timeout to 30 seconds as well just to be > safe from timeouts. If you're referring to the DEFAULT_TIMEOUT in the > plugin, it's not really needed to change the code if you use the > --timeout switch when you run it (or embed that in the NRPE call or > whatever you use for remote checks), but it's completely your choice. You are right - the timeout switch is the better choice for changing the timeout. It's also more flexible to change it that way. So, next is to build an ebuild for that plugin, right? ;) 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 22 11:46:19 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 22 Feb 2008 10:46:19 +0000 Subject: Announce: Check_Gentoo_Portage plugin In-Reply-To: <47BEA43D.8060307@net-com.de> References: <47BDC54B.7030107@googlemail.com> <47BE7913.2020101@net-com.de> <47BE9870.8020703@googlemail.com> <47BEA43D.8060307@net-com.de> Message-ID: <47BEA7FB.7090602@googlemail.com> Matthias Kellermann wrote: > Hari Sekhon schrieb: >> Matthias Kellermann wrote: >>>> You can get the plugin from NagiosExchange here: >>>> >>>> http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1244 >>> >>> >>> >>> >>> Thanks Hari for this great plugin - just what I needed! :) >>> >>> Just tested it - works fine! >>> I had to raise the DEFAULT_TIMEOUT to something like 30 on some >>> older machines to get this to work. But on newer system 10 seconds >>> are ok. >>> >>> Matthias >> This is one good reason for the --timeout switch. I've just used that >> switch to increase the running timeout to 30 seconds as well just to >> be safe from timeouts. If you're referring to the DEFAULT_TIMEOUT in >> the plugin, it's not really needed to change the code if you use the >> --timeout switch when you run it (or embed that in the NRPE call or >> whatever you use for remote checks), but it's completely your choice. > > You are right - the timeout switch is the better choice for changing > the timeout. It's also more flexible to change it that way. So, next > is to build an ebuild for that plugin, right? ;) > > Matthias > I have a hard enough time getting the plugins out at the moment, I have some unfinished ones I can't release yet. I think I'll try to get them out and then release a package of them, perhaps do an ebuild for that later in the year. Thanks for the suggestion. -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 melanie_pfefer at yahoo.co.uk Fri Feb 22 12:34:39 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 22 Feb 2008 11:34:39 +0000 (GMT) Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: <126574.32174.qm@web26210.mail.ukl.yahoo.com> thanks indeed Now if I want to use hostgroup_name instead of host_name, ow to write the check_command line in services.cfg? check_command check_snmp_windows_disk!TROY!95!98!^[CDE]:! is working for TROY only What should I do to apply it on all hosts of a group? thx --- mark.potter at academy.com wrote: > "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. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.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 melanie_pfefer at yahoo.co.uk Fri Feb 22 12:53:03 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 22 Feb 2008 11:53:03 +0000 (GMT) Subject: SNMP/Windows disk usage In-Reply-To: <126574.32174.qm@web26210.mail.ukl.yahoo.com> References: <126574.32174.qm@web26210.mail.ukl.yahoo.com> Message-ID: <801791.69057.qm@web26205.mail.ukl.yahoo.com> also another question please. I had no problem on my test machine. On my prod machine I got this error: (No output!) according to http://nagios.manubulon.com/faq.html#FAQ8, I should apply a patch. In that case, how to apply this patch? according to http://www.nagios.org/faqs/viewfaq.php?faq_id=336, I need to add use lib "path-to-utils.pm" to the perl script. how to specify that path? thanks PS: I m using Linux fedora --- Melanie Pfefer wrote: > thanks indeed > > Now if I want to use hostgroup_name instead of > host_name, > > ow to write the check_command line in services.cfg? > > check_command > check_snmp_windows_disk!TROY!95!98!^[CDE]:! > > is working for TROY only What should I do to apply > it > on all hosts of a group? > > thx > > --- mark.potter at academy.com wrote: > > > "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. > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio > > 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version > > (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk > being > > sent to /dev/null > > > > > __________________________________________________________ > Sent from Yahoo! Mail. > A Smarter Inbox. > http://uk.docs.yahoo.com/nowyoucan.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 > __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.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 sukesh.v at jigrahak.com Fri Feb 22 13:17:48 2008 From: sukesh.v at jigrahak.com (Sukesh /IT/BLR/JIG/IN) Date: Fri, 22 Feb 2008 17:47:48 +0530 Subject: Unable to see all matching entries in a browser Message-ID: Hi, Configured nagios with a total of 75 Services.But when i used to see my services in a browser whicle clicking ' Service Detail' , iam able to see only 65 entries.and If i refresh my browser again it showing all services.please let me know what could be the problem for this. Using Nagios 3.0a4 with Ubuntu server .and added specific one server with 17 services and that host doesn't show service properly in a browser. Thanks, Sukesh -------------- 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 Fri Feb 22 13:12:17 2008 From: narendran.neelamegam at wipro.com (narendran.neelamegam at wipro.com) Date: Fri, 22 Feb 2008 17:42:17 +0530 Subject: Unable to see all matching entries in a browser In-Reply-To: References: Message-ID: Killall Nagios daemon processes and restart Nagios. Narendran Neelamegam ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Sukesh /IT/BLR/JIG/IN Sent: Friday, February 22, 2008 5:48 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Unable to see all matching entries in a browser Hi, Configured nagios with a total of 75 Services.But when i used to see my services in a browser whicle clicking ' Service Detail' , iam able to see only 65 entries.and If i refresh my browser again it showing all services.please let me know what could be the problem for this. Using Nagios 3.0a4 with Ubuntu server .and added specific one server with 17 services and that host doesn't show service properly in a browser. Thanks, Sukesh -------------- 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 22 14:14:28 2008 From: marc at ena.com (Marc Powell) Date: Fri, 22 Feb 2008 07:14:28 -0600 Subject: Unable to see all matching entries in a browser 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 Sukesh /IT/BLR/JIG/IN > Sent: Friday, February 22, 2008 6:18 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Unable to see all matching entries in a browser > > > Hi, > Configured nagios with a total of 75 Services.But when i used to see my > services in a browser whicle clicking ' Service Detail' , iam able to see > only 65 entries.and If i refresh my browser again it showing all > services.please let me know what could be the problem for this. This is in the FAQ. -- 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 linuxmail at 4lin.net Fri Feb 22 14:28:45 2008 From: linuxmail at 4lin.net (Denny Schierz) Date: Fri, 22 Feb 2008 14:28:45 +0100 Subject: passive or active checks over ssh satellite (cause of dmz) Message-ID: <20080222142845.k5idli4psgk8og00@www.4lin.net> hi, we have a DMZ with a lot of servers and services. The only way, to reach them from the nagios view, is over SSH. Actually we use the ssh_check plugin that calls a script on the satellite server. These scripts checks the services and hosts, write the results down into a file and pipe them via nagios-cmd or ncsa into nagios. These scripts are grown over the time and not very easy to read. So,i want to make it easier. My idea is: Nagios: 192.168.197.100 SSH-SAT: 192.168.197.101/192.168.198.100 DMZPC01: 192.168.198.101 NAGIOS> --check_by_ssh!check_dmzpc01_diskfree-- -> SSH-SAT -> nrpe_client!check_diskfree -h dmzpc01_diskfree -> DMZPC01 -> NRPE Daemon -> command[check_disk]=/usr.... In a view sentences: Nagios have to use the ssh_check plugin with the argument to check from server "dmzpc01" the disks. On DMZPC01 runs a nrpe daemon and i can connect via the nrpe_check plugin to get information from SSH-SAT. Nagios can connect via SSH and execte the nrpe_check plugins, like the following: nagios at nagios:~> ../libexec/check_by_ssh -H ssh-sat -C "/usr/local/nagios/libexec/check_nrpe -H dmzpc01 -c check_hda5" DISK OK - free space: / 432 MB (22% inode=73%);| /=1480MB;1612;1813;0;2015 So, now i have to define a command and here is,where i have some problems. Is here anybody, who can me give some hints? i tried a similar like these test, which also does not work: define command{ command_name ssh_check_dmz_icmp command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "$USER1$/check_icmp -H $ARG1$ } My hope was, that $ARG1$ could be the IP from the hostconfig. But i'm sure, that is wrong .... I got back only "0" in nagios webfrontend... cu denny ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Feb 22 15:15:59 2008 From: manju.kudu at gmail.com (manju a) Date: Fri, 22 Feb 2008 19:45:59 +0530 Subject: NC_Net nagios client to monitor Event logs onwindows In-Reply-To: <10BE874C84038E448517C08D335C1B680157A1E3@gimli.allezsoftware.com> References: <10BE874C84038E448517C08D335C1B680157A1E3@gimli.allezsoftware.com> Message-ID: yes this time it works fine... i am able to build On Fri, Feb 22, 2008 at 12:15 PM, Jeff C. Benger wrote: > Download & extract nagios-plugins source > > Remove/rename the original check_nt.c in the plugins dir > > copy the check_nc_net.c file into the plugins folder and rename to > check_nt.c > > rebuild the plugins(make) > > > ------------------------------ > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *manju a > *Sent:* Friday, February 22, 2008 1:30 AM > *To:* Anthony Montibello > *Cc:* Nagios-users at lists.sourceforge.net > *Subject:* Re: [Nagios-users] NC_Net nagios client to monitor Event logs > onwindows > > > > > > Hi, > > > Thanks a lot for your replay. > > when i copied to the libexec folder i got the below error, i know this is > not a command soo shell is not able to recognize it. > > [root at nagios libexec]# ./check_nt.c > ./check_nt.c: line 1: > /********************************************************* > : No such file or directory > ./check_nt.c: line 2: check_apt: command not found > : command not found3: * > ./check_nt.c: line 4: check_apt: command not found > ./check_nt.c: line 5: check_apt: command not found > ./check_nt.c: line 6: check_apt: command not found > : command not found7: * > ./check_nt.c: line 8: check_apt: command not found > ./check_nt.c: line 9: check_apt: command not found > ./check_nt.c: line 10: syntax error near unexpected token `(' > ./check_nt.c: line 10: ` * Copyright (c) 2007 TOny Montibello ( > tony at MontiTech.co > ') > > can you please let me know how we can recomplie check_nt.c plugins. > > thanks > manjunath A. > > > > On Fri, Feb 22, 2008 at 5:12 AM, Anthony Montibello < > amontibello at gmail.com> wrote: > > HI, > > > THe problem is your version of check_nt > > >>"where check_nt is default plugin which will come with the nagios > installation." > > > > You need to compile check_nc_net.c > > to do this, copy the check_nc_net.c to check_nt.c > > then recompile the plugins > > > > check_nc_net.c is in the install location of NC_Net as well as > downloadable seperatly from > > > http://downloads.sourceforge.net/nc-net/check_nc_net_040107.zip?modtime=1175541733&big_mirror=0&filesize=17953 > > > > However please use the eventlog_new command -(See the help of > check_nc_net) > > It is a more efficient check than eventlog > > > > TOny (Author of NC_NEt) > > On Thu, Feb 21, 2008 at 1:00 AM, manju a wrote: > > 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 < > Edgar.Matzinger at valid.nl> 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 ... > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mark.potter at academy.com Fri Feb 22 15:54:32 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Fri, 22 Feb 2008 08:54:32 -0600 Subject: Fwd: help needed In-Reply-To: <823030.90424.qm@web53206.mail.re2.yahoo.com> References: <10BE874C84038E448517C08D335C1B680157A1E2@gimli.allezsoftware.com> <823030.90424.qm@web53206.mail.re2.yahoo.com> Message-ID: nagios-users-bounces at lists.sourceforge.net wrote on 02/22/2008 12:14:56 AM: > > Hi, > > Thanks all for the replies. But hard luck. Ultimately I have enabled > every single option by putting * against it. Still "View Config" > seems to be not working for me. > > nagios_check_command=/usr/local/NAGIOS/libexec/check_nagios /usr/ > local/NAGIOS/var/status.dat 5 '/usr/local/NAGIOS//bin/nagios' > > use_authentication=0 > authorized_for_system_information=* > authorized_for_configuration_information=* > authorized_for_system_commands=* > authorized_for_all_services=* > authorized_for_all_hosts=* > authorized_for_all_service_commands=* > authorized_for_all_host_commands=* > And still getting the same error. Now what ??? > > I would change all of that: use_authentication=1 and then put the same name you used for the http authorization where you have the "*" on each line. Restart both apache and nagios in case there is any issue with the http auth and go from there. I believe, but could be wrong, since you have use_authentication set to 0 that it is not parsing anything having to do with authorization afterwards. -------------- 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 mjn at umn.edu Fri Feb 22 15:58:15 2008 From: mjn at umn.edu (mjn) Date: Fri, 22 Feb 2008 08:58:15 -0600 Subject: check_sql and --show Message-ID: Anyone know whether it is possible to get multi-line output from the the --show option of check_sql? Commandline output is: ./check_sql -H sqldev -d Sybase -p 1433 -U user -P pass -q 'select @@version' --show -l Version CHECK_SQL OK - SQL Server Version: Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2) (0.037617 seconds) | time=0.037617s;; However, the service detail screen only shows this: P1.PL OK - SQL Server Version: Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) I would really like to still see the response time and would very much like the service pack information to display through the web as well. Anyone know of a way to do this or another plugin that would do it? -- ____________________________________ Mike Neuharth Server Operations Manager phn: 612.625.1957 cal: http://tinyurl.com/3jc2v ===================================== College of Food, Agricultural, and Natural Resource Sciences University of Minnesota http://www.cfans.umn.edu/ -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2405 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 mark.potter at academy.com Fri Feb 22 15:58:25 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Fri, 22 Feb 2008 08:58:25 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <126574.32174.qm@web26210.mail.ukl.yahoo.com> References: <126574.32174.qm@web26210.mail.ukl.yahoo.com> Message-ID: Melanie Pfefer wrote on 02/22/2008 05:34:39 AM: > thanks indeed > > Now if I want to use hostgroup_name instead of > host_name, > > ow to write the check_command line in services.cfg? > > check_command > check_snmp_windows_disk!TROY!95!98!^[CDE]:! > > is working for TROY only What should I do to apply it > on all hosts of a group? > > thx Just use hostgroup_name instead of host_name. That's in the Nagios docs. -------------- 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 Fri Feb 22 16:16:51 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 22 Feb 2008 15:16:51 +0000 (GMT) Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: <128881.45206.qm@web26203.mail.ukl.yahoo.com> Hello Mark, all, Yes true but what to put instead of the hostname(TROY) in? check_snmp_windows_disk!TROY!95!98!^[CDE]:! in case I want to put the hostgroup_name thanks --- mark.potter at academy.com wrote: > Melanie Pfefer wrote on > 02/22/2008 05:34:39 > AM: > > > thanks indeed > > > > Now if I want to use hostgroup_name instead of > > host_name, > > > > ow to write the check_command line in > services.cfg? > > > > check_command > > check_snmp_windows_disk!TROY!95!98!^[CDE]:! > > > > is working for TROY only What should I do to apply > it > > on all hosts of a group? > > > > thx > > Just use hostgroup_name instead of host_name. That's > in the Nagios docs.> ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio > 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null ___________________________________________________________ Rise to the challenge for Sport Relief 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 marc at ena.com Fri Feb 22 16:19:57 2008 From: marc at ena.com (Marc Powell) Date: Fri, 22 Feb 2008 09:19:57 -0600 Subject: Fwd: help needed 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: Friday, February 22, 2008 8:55 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Fwd: help needed > > > > nagios-users-bounces at lists.sourceforge.net wrote on 02/22/2008 12:14:56 > AM: > > > > > Hi, > > > > Thanks all for the replies. But hard luck. Ultimately I have enabled > > every single option by putting * against it. Still "View Config" > > seems to be not working for me. > > > > nagios_check_command=/usr/local/NAGIOS/libexec/check_nagios /usr/ > > local/NAGIOS/var/status.dat 5 '/usr/local/NAGIOS//bin/nagios' > > OP: 'NAGIOS' is unusual. Do you mean 'nagios'? > > use_authentication=0 > I would change all of that: > > use_authentication=1 > any issue with the http auth and go from there. I believe, but could be > wrong, since you have use_authentication set to 0 that it is not parsing > anything having to do with authorization afterwards. You are correct. -- 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 lavalamp at spiritual-machines.org Fri Feb 22 16:25:23 2008 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Fri, 22 Feb 2008 10:25:23 -0500 Subject: FW: I can't get my event handler to fire! In-Reply-To: References: Message-ID: <1203693923.10391.101.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> Nagios doesn't check exec() error code results on event handlers. non-zero return codes should be logged as critical errors. It's a known bug. I reported it a while ago. ~BAS On Wed, 2008-02-20 at 13:21 -0500, 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 marc at ena.com Fri Feb 22 16:31:05 2008 From: marc at ena.com (Marc Powell) Date: Fri, 22 Feb 2008 09:31:05 -0600 Subject: check_sql and --show 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 mjn > Sent: Friday, February 22, 2008 8:58 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_sql and --show > > Anyone know whether it is possible to get multi-line output from the > the --show option of check_sql? > I would really like to still see the response time and would very much > like the service pack information to display through the web as well. Nagios-2 expects and processes only the first line of output from all plugins. Nagios-3 introduces support for multi-line plugin output but it is my belief that still only the first line of output is used in the web interface. This makes sense as the rendering of non-htmlized multi-line plugin output could be messy. My suggestion would be to create a wrapper for check_sql that munged it's output by at least replacing \n's with
's. -- 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 Fri Feb 22 16:31:30 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 22 Feb 2008 15:31:30 +0000 (GMT) Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: <544831.93462.qm@web26214.mail.ukl.yahoo.com> it is ok had to change use lib "/usr/local/nagios/libexec"; to use lib "/usr/local/nagios2/libexec"; thanks --- mark.potter at academy.com wrote: > Melanie Pfefer wrote on > 02/22/2008 05:53:03 > AM: > > > also another question please. I had no problem on > my > > test machine. On my prod machine I got this error: > > > > (No output!) > > > > according to > > http://nagios.manubulon.com/faq.html#FAQ8, I > should > > apply a patch. In that case, how to apply this > patch? > > > > according to > > http://www.nagios.org/faqs/viewfaq.php?faq_id=336, > I > > need to add use lib "path-to-utils.pm" to the perl > > script. how to specify that path? > > > > thanks > > PS: I m using Linux fedora > > > (No Output) could be a variety of things. First run > the command from the > command line with the -v switch to see the verbose > output, as the nagios > user of course, and from there begin > troubleshooting. I doubt it is option > #2 since I have not had to modify the script on any > server. If you have to > apply a patch I would start with contacting the > developer of the script. ___________________________________________________________ Rise to the challenge for Sport Relief 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 Fri Feb 22 16:04:04 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Fri, 22 Feb 2008 09:04:04 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <801791.69057.qm@web26205.mail.ukl.yahoo.com> References: <126574.32174.qm@web26210.mail.ukl.yahoo.com> <801791.69057.qm@web26205.mail.ukl.yahoo.com> Message-ID: Melanie Pfefer wrote on 02/22/2008 05:53:03 AM: > also another question please. I had no problem on my > test machine. On my prod machine I got this error: > > (No output!) > > according to > http://nagios.manubulon.com/faq.html#FAQ8, I should > apply a patch. In that case, how to apply this patch? > > according to > http://www.nagios.org/faqs/viewfaq.php?faq_id=336, I > need to add use lib "path-to-utils.pm" to the perl > script. how to specify that path? > > thanks > PS: I m using Linux fedora > (No Output) could be a variety of things. First run the command from the command line with the -v switch to see the verbose output, as the nagios user of course, and from there begin troubleshooting. I doubt it is option #2 since I have not had to modify the script on any server. If you have to apply a patch I would start with contacting the developer of the script. -------------- 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 linuxmail at 4lin.net Fri Feb 22 16:41:53 2008 From: linuxmail at 4lin.net (Denny Schierz) Date: Fri, 22 Feb 2008 16:41:53 +0100 Subject: passive or active checks over ssh satellite (cause of dmz) [solved] In-Reply-To: <20080222142845.k5idli4psgk8og00@www.4lin.net> References: <20080222142845.k5idli4psgk8og00@www.4lin.net> Message-ID: <20080222164153.lncajfj7k0kocsk8@www.4lin.net> hi, reading my own words could be useful, sometimes ;-) for google: Example for disk: commands.cfg ##### [...] define command{ command_name ssh_check_dmz_icmp command_line $USER1$/check_by_ssh -H ssh-sat -C "$USER1$/check_icmp -H $ARG1$" } define command{ command_name ssh_check_dmz_rootdisk command_line $USER1$/check_by_ssh -H ssh-sat -C "$USER1$/check_nrpe -H $ARG1$ -c check_hda5" } ##### host.cfg ##### define host{ use linux-server host_name dmzpc01 address 192.168.198.101 check_command ssh_check_dmz_icmp!dmzpc01 } define service{ use generic-service host_name dmzpc01 service_description Check rootdisk check_command ssh_check_dmz_rootdisk!dmzpc01 } Mabe, you can use sh_check_dmz_rootdisk!$HOSTADDRRESS$, but not tested now. Don't forget to configure nrpe on dmzhost01. Also it is in most cases better to use IP, instead of hostnames! cu denny ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at AdamsInfoServ.Com Fri Feb 22 17:36:53 2008 From: RLAdams at AdamsInfoServ.Com (Russell Adams) Date: Fri, 22 Feb 2008 10:36:53 -0600 Subject: SNMP/Windows disk usage In-Reply-To: References: <892272.5678.qm@web26210.mail.ukl.yahoo.com> Message-ID: <20080222163653.GA17671@odin.demosthenes.org> Mark, I have used NACE in the past to configure one service per disk according to criteria like include hard drives, exclude CDROM, etc, with varying host groups (C: & D: were OS, others were applications) and more. Also, if you're in the Houston area you ought to stop by HLUG. I'm often at the Wednesday working session. Enjoy! On Tue, Feb 19, 2008 at 08:51:21AM -0600, 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 ------------------------------------------------------------------ Russell Adams RLAdams at AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 22 18:01:24 2008 From: Roger at NagiosWiki.com (Roger) Date: Fri, 22 Feb 2008 09:01:24 -0800 Subject: autogenerating NRPE handlers for nrpe.cfg Message-ID: <2b7af7c40802220901k716b5ae1t68456e6f43681d94@mail.gmail.com> I have hundreds of hosts, each of which needs an npre.cfg file to reflect the true "fdisk -l" and "df -h" output of each box. Anyone have any scripts that they've used? I'm in a bind, otherwise I'd think about writing my own... -------------- 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 Fri Feb 22 18:06:49 2008 From: mark.potter at academy.com (mark.potter at academy.com) Date: Fri, 22 Feb 2008 11:06:49 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <128881.45206.qm@web26203.mail.ukl.yahoo.com> References: <128881.45206.qm@web26203.mail.ukl.yahoo.com> Message-ID: Melanie Pfefer wrote on 02/22/2008 09:16:51 AM: > Hello Mark, all, > Yes true but what to put instead of the hostname(TROY) > in? > check_snmp_windows_disk!TROY!95!98!^[CDE]:! > in case I want to put the hostgroup_name > > thanks You would use hostgroup_name in the service definition and this line: check_snmp_windows_disk!$HOSTADDRESS$!95!98!^[CDE]: You can use $HOSTNAME$ but I wouldn't as DNS issues will then cause your checks to fail. -------------- 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 22 18:17:14 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 22 Feb 2008 17:17:14 +0000 Subject: autogenerating NRPE handlers for nrpe.cfg In-Reply-To: <2b7af7c40802220901k716b5ae1t68456e6f43681d94@mail.gmail.com> References: <2b7af7c40802220901k716b5ae1t68456e6f43681d94@mail.gmail.com> Message-ID: <47BF039A.8010903@googlemail.com> Roger wrote: > I have hundreds of hosts, each of which needs an npre.cfg file to > reflect the true "fdisk -l" and "df -h" output of each box. > > Anyone have any scripts that they've used? I'm in a bind, otherwise > I'd think about writing my own... If this is to get a disk check depending on what disks are available, look here for a tip: http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg11936.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 ed.anderson at NWEA.org Fri Feb 22 23:39:50 2008 From: ed.anderson at NWEA.org (Ed Anderson) Date: Fri, 22 Feb 2008 14:39:50 -0800 Subject: Intermittent issues with check_nt and/or NSClient Message-ID: <1D47D77A70708D49A3D4A816CE6C69F605650FA4@exchbe1.Americas.nwea.pvt> I'm hoping that someone has run into this before. I'm having intermittent issues with check_nt that produces any of the following error messages: Could not fetch information from server or Connection reset by peer or No data was received from host This only happens with 2 remote servers (so far), both of which are Windows 2k3 EE / SQL 2k5 database servers. The symptoms last for about 13-15 minutes, enough time for the notifications to be sent out, then snaps back to OK statuses. I'm using NSClient on all of my Windows server, and the check_nt plugin to watch things such as disk utilization, services, CPU, etc. Here are some samples of the check_nt commands I'm using: $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -l $ARG1 $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$ $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ Something else to note...these Nagios service checks have been in place for quite some time, and it's just recently started acting up. I'd say within the last couple weeks. Any ideas? Is this as simple as increasing the timeout for check_nt, or does this mean I have some other underlying issues I need to address? I'm thinking 10 seconds should be plenty of time to run the service checks as the servers are all within the same location. Edward Anderson Information Services| BI Administrator/Report Developer ed.anderson at nwea.org | cell: 971.221.7523 | office: 503.624.1951 Ext. 4121 NWEA Partnering to help all kids learn 5885 SW Meadows Road, Suite 200 Lake Oswego, OR 97035-3256 Fax: 503.639.7873 -------------- 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 ed.anderson at NWEA.org Fri Feb 22 23:47:55 2008 From: ed.anderson at NWEA.org (Ed Anderson) Date: Fri, 22 Feb 2008 14:47:55 -0800 Subject: Intermittent issues with check_nt and/or NSClient Message-ID: <1D47D77A70708D49A3D4A816CE6C69F605650FA5@exchbe1.Americas.nwea.pvt> I'm hoping that someone has run into this before. I'm having intermittent issues with check_nt that produces any of the following error messages: Could not fetch information from server or Connection reset by peer or No data was received from host This only happens with 2 remote servers (so far), both of which are Windows 2k3 EE / SQL 2k5 database servers. The symptoms last for about 13-15 minutes, enough time for the notifications to be sent out, then snaps back to OK statuses. I'm using NSClient on all of my Windows server, and the check_nt plugin to watch things such as disk utilization, services, CPU, etc. Here are some samples of the check_nt commands I'm using: $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -l $ARG1 $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$ $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ Something else to note...these Nagios service checks have been in place for quite some time, and it's just recently started acting up. I'd say within the last couple weeks. Any ideas? Is this as simple as increasing the timeout for check_nt, or does this mean I have some other underlying issues I need to address? I'm thinking 10 seconds should be plenty of time to run the service checks as the servers are all within the same location. Nagios version = 2.10 check_nt version = v1590 NSClient version = ?? not sure how to find it. Edward Anderson Information Services| BI Administrator/Report Developer ed.anderson at nwea.org | cell: 971.221.7523 | office: 503.624.1951 Ext. 4121 NWEA Partnering to help all kids learn 5885 SW Meadows Road, Suite 200 Lake Oswego, OR 97035-3256 Fax: 503.639.7873 -------------- 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 Fri Feb 22 23:58:47 2008 From: Roger at NagiosWiki.com (Roger) Date: Fri, 22 Feb 2008 14:58:47 -0800 Subject: autogenerating NRPE handlers for nrpe.cfg In-Reply-To: <47BF039A.8010903@googlemail.com> References: <2b7af7c40802220901k716b5ae1t68456e6f43681d94@mail.gmail.com> <47BF039A.8010903@googlemail.com> Message-ID: <2b7af7c40802221458w35359fbescf01127d7bebac1f@mail.gmail.com> On Fri, Feb 22, 2008 at 9:17 AM, Hari Sekhon wrote: > Roger wrote: > > I have hundreds of hosts, each of which needs an npre.cfg file to > > reflect the true "fdisk -l" and "df -h" output of each box. > > > > > Anyone have any scripts that they've used? I'm in a bind, otherwise > > I'd think about writing my own... > If this is to get a disk check depending on what disks are available, > look here for a tip: > > > http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg11936.html I'm having a problem getting this sort of thing to work on monitored server (with nrpe) i have the following line in nrpe.cfg command[check_disks_proc_mount]=/usr/lib/nagios/plugins/check_disks_proc_mount In my check_disk_proc_mount script (which runs ok on its own), I have something similar to ./check_disk -w 15% -c 20% $(for x in $(/proc/mounts | awk '{print $2}'); do echo -n " -p $x "; done) I run this from the command line, and I get my expected "DISK OK" return value. However, I get "NRPE: Unable to read output" when I run the following command from the plugins directory from my Nagios server ./check_nrpe -H (ipOfMonitoredBox) -c check_disks_proc_mount What do I need to do for this to work across NRPE like it does when I'm shelled in the box? -------------- 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 Karl.Yost at iqor.com Sat Feb 23 00:19:14 2008 From: Karl.Yost at iqor.com (Yost, Karl) Date: Fri, 22 Feb 2008 18:19:14 -0500 Subject: Intermittent issues with check_nt and/or NSClient References: <1D47D77A70708D49A3D4A816CE6C69F605650FA5@exchbe1.Americas.nwea.pvt> Message-ID: <56F8CBCA82D02D4B894B69C804906D1A8D5C77@usnjpar1blex04.us.ad.irmc.com> I tend to get these when the Windows box his at a high cpu utilization, other times just cycling the service has fixed it when it wasn't the CPU, 98% of the time I have found it to be CPU. Thanks, Karl Yost IQOR karl.yost at iqor.com Vice President, Technology Phone: 614.284.3985 From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Ed Anderson Sent: Friday, February 22, 2008 5:48 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Intermittent issues with check_nt and/or NSClient I'm hoping that someone has run into this before. I'm having intermittent issues with check_nt that produces any of the following error messages: Could not fetch information from server or Connection reset by peer or No data was received from host This only happens with 2 remote servers (so far), both of which are Windows 2k3 EE / SQL 2k5 database servers. The symptoms last for about 13-15 minutes, enough time for the notifications to be sent out, then snaps back to OK statuses. I'm using NSClient on all of my Windows server, and the check_nt plugin to watch things such as disk utilization, services, CPU, etc. Here are some samples of the check_nt commands I'm using: $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -l $ARG1 $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$ $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ Something else to note...these Nagios service checks have been in place for quite some time, and it's just recently started acting up. I'd say within the last couple weeks. Any ideas? Is this as simple as increasing the timeout for check_nt, or does this mean I have some other underlying issues I need to address? I'm thinking 10 seconds should be plenty of time to run the service checks as the servers are all within the same location. Nagios version = 2.10 check_nt version = v1590 NSClient version = ?? not sure how to find it. Edward Anderson Information Services| BI Administrator/Report Developer ed.anderson at nwea.org | cell: 971.221.7523 | office: 503.624.1951 Ext. 4121 NWEA Partnering to help all kids learn 5885 SW Meadows Road, Suite 200 Lake Oswego, OR 97035-3256 Fax: 503.639.7873 -------------- 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 23 00:23:18 2008 From: Roger at NagiosWiki.com (Roger) Date: Fri, 22 Feb 2008 15:23:18 -0800 Subject: autogenerating NRPE handlers for nrpe.cfg In-Reply-To: <2b7af7c40802221458w35359fbescf01127d7bebac1f@mail.gmail.com> References: <2b7af7c40802220901k716b5ae1t68456e6f43681d94@mail.gmail.com> <47BF039A.8010903@googlemail.com> <2b7af7c40802221458w35359fbescf01127d7bebac1f@mail.gmail.com> Message-ID: <2b7af7c40802221523q4680470eqdcd0294d4e1ca95f@mail.gmail.com> On Fri, Feb 22, 2008 at 2:58 PM, Roger wrote: > On Fri, Feb 22, 2008 at 9:17 AM, Hari Sekhon > wrote: > > > Roger wrote: > > > I have hundreds of hosts, each of which needs an npre.cfg file to > > > reflect the true "fdisk -l" and "df -h" output of each box. > > > > > > > > > Anyone have any scripts that they've used? I'm in a bind, otherwise > > > I'd think about writing my own... > > If this is to get a disk check depending on what disks are available, > > look here for a tip: > > > > > > http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg11936.html > > > I'm having a problem getting this sort of thing to work > > on monitored server (with nrpe) i have the following line in nrpe.cfg > > > command[check_disks_proc_mount]=/usr/lib/nagios/plugins/check_disks_proc_mount > > In my check_disk_proc_mount script (which runs ok on its own), I have > something similar to > > ./check_disk -w 15% -c 20% $(for x in $(/proc/mounts | awk '{print $2}'); > do echo -n " -p $x "; done) > > I run this from the command line, and I get my expected "DISK OK" return > value. > > However, I get "NRPE: Unable to read output" when I run the following > command from the plugins directory from my Nagios server > > ./check_nrpe -H (ipOfMonitoredBox) -c check_disks_proc_mount > > What do I need to do for this to work across NRPE like it does when I'm > shelled in the box? > ah, perhaps it's the case that my script isn't returning a nagios-friendly exit code? -------------- 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 ed.anderson at NWEA.org Sat Feb 23 00:29:13 2008 From: ed.anderson at NWEA.org (Ed Anderson) Date: Fri, 22 Feb 2008 15:29:13 -0800 Subject: Intermittent issues with check_nt and/or NSClient In-Reply-To: <56F8CBCA82D02D4B894B69C804906D1A8D5C77@usnjpar1blex04.us.ad.irmc.com> References: <1D47D77A70708D49A3D4A816CE6C69F605650FA5@exchbe1.Americas.nwea.pvt> <56F8CBCA82D02D4B894B69C804906D1A8D5C77@usnjpar1blex04.us.ad.irmc.com> Message-ID: <1D47D77A70708D49A3D4A816CE6C69F605650FA6@exchbe1.Americas.nwea.pvt> Thanks Karl. This was my suspicion, as one of the SQL Servers did show signs of high CPU utilization. The other SQL Server didn't seem to have high CPU usage, but it could be that we are logging into the server soon after the CPU settles down. From: Yost, Karl [mailto:Karl.Yost at iqor.com] Sent: Friday, February 22, 2008 3:19 PM To: Ed Anderson; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Intermittent issues with check_nt and/or NSClient I tend to get these when the Windows box his at a high cpu utilization, other times just cycling the service has fixed it when it wasn't the CPU, 98% of the time I have found it to be CPU. Thanks, Karl Yost IQOR karl.yost at iqor.com Vice President, Technology Phone: 614.284.3985 From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Ed Anderson Sent: Friday, February 22, 2008 5:48 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Intermittent issues with check_nt and/or NSClient I'm hoping that someone has run into this before. I'm having intermittent issues with check_nt that produces any of the following error messages: Could not fetch information from server or Connection reset by peer or No data was received from host This only happens with 2 remote servers (so far), both of which are Windows 2k3 EE / SQL 2k5 database servers. The symptoms last for about 13-15 minutes, enough time for the notifications to be sent out, then snaps back to OK statuses. I'm using NSClient on all of my Windows server, and the check_nt plugin to watch things such as disk utilization, services, CPU, etc. Here are some samples of the check_nt commands I'm using: $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -l $ARG1 $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$ $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ Something else to note...these Nagios service checks have been in place for quite some time, and it's just recently started acting up. I'd say within the last couple weeks. Any ideas? Is this as simple as increasing the timeout for check_nt, or does this mean I have some other underlying issues I need to address? I'm thinking 10 seconds should be plenty of time to run the service checks as the servers are all within the same location. Nagios version = 2.10 check_nt version = v1590 NSClient version = ?? not sure how to find it. Edward Anderson Information Services| BI Administrator/Report Developer ed.anderson at nwea.org | cell: 971.221.7523 | office: 503.624.1951 Ext. 4121 NWEA Partnering to help all kids learn 5885 SW Meadows Road, Suite 200 Lake Oswego, OR 97035-3256 Fax: 503.639.7873 -------------- 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 Karl.Yost at iqor.com Sat Feb 23 00:49:33 2008 From: Karl.Yost at iqor.com (Yost, Karl) Date: Fri, 22 Feb 2008 18:49:33 -0500 Subject: Intermittent issues with check_nt and/or NSClient References: <1D47D77A70708D49A3D4A816CE6C69F605650FA5@exchbe1.Americas.nwea.pvt> <56F8CBCA82D02D4B894B69C804906D1A8D5C77@usnjpar1blex04.us.ad.irmc.com> <1D47D77A70708D49A3D4A816CE6C69F605650FA6@exchbe1.Americas.nwea.pvt> Message-ID: <56F8CBCA82D02D4B894B69C804906D1A8D5C7A@usnjpar1blex04.us.ad.irmc.com> I have had some mild success getting around those by using various SNMP checks to replace some of the nsclinet/check_nt checks but nothing full proof yet. Thanks, Karl Yost IQOR karl.yost at iqor.com Vice President, Technology Phone: 614.284.3985 From: Ed Anderson [mailto:ed.anderson at NWEA.org] Sent: Friday, February 22, 2008 6:29 PM To: Yost, Karl; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Intermittent issues with check_nt and/or NSClient Thanks Karl. This was my suspicion, as one of the SQL Servers did show signs of high CPU utilization. The other SQL Server didn't seem to have high CPU usage, but it could be that we are logging into the server soon after the CPU settles down. From: Yost, Karl [mailto:Karl.Yost at iqor.com] Sent: Friday, February 22, 2008 3:19 PM To: Ed Anderson; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Intermittent issues with check_nt and/or NSClient I tend to get these when the Windows box his at a high cpu utilization, other times just cycling the service has fixed it when it wasn't the CPU, 98% of the time I have found it to be CPU. Thanks, Karl Yost IQOR karl.yost at iqor.com Vice President, Technology Phone: 614.284.3985 From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Ed Anderson Sent: Friday, February 22, 2008 5:48 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Intermittent issues with check_nt and/or NSClient I'm hoping that someone has run into this before. I'm having intermittent issues with check_nt that produces any of the following error messages: Could not fetch information from server or Connection reset by peer or No data was received from host This only happens with 2 remote servers (so far), both of which are Windows 2k3 EE / SQL 2k5 database servers. The symptoms last for about 13-15 minutes, enough time for the notifications to be sent out, then snaps back to OK statuses. I'm using NSClient on all of my Windows server, and the check_nt plugin to watch things such as disk utilization, services, CPU, etc. Here are some samples of the check_nt commands I'm using: $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -l $ARG1 $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$ $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ Something else to note...these Nagios service checks have been in place for quite some time, and it's just recently started acting up. I'd say within the last couple weeks. Any ideas? Is this as simple as increasing the timeout for check_nt, or does this mean I have some other underlying issues I need to address? I'm thinking 10 seconds should be plenty of time to run the service checks as the servers are all within the same location. Nagios version = 2.10 check_nt version = v1590 NSClient version = ?? not sure how to find it. Edward Anderson Information Services| BI Administrator/Report Developer ed.anderson at nwea.org | cell: 971.221.7523 | office: 503.624.1951 Ext. 4121 NWEA Partnering to help all kids learn 5885 SW Meadows Road, Suite 200 Lake Oswego, OR 97035-3256 Fax: 503.639.7873 -------------- 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 Stanley.HOPCROFT at deewr.gov.au Sat Feb 23 03:19:29 2008 From: Stanley.HOPCROFT at deewr.gov.au (Stanley.HOPCROFT at deewr.gov.au) Date: Sat, 23 Feb 2008 13:19:29 +1100 Subject: OT - fault tolerant default router for Nagios host. [SEC=UNCLASSIFIED] Message-ID: Dear Folks, I am writing to request comments on a proposal to reduce the risk of loss of Network visibility/spurious alerts etc caused by the failure of the Nagios host's default gateway. When the Nagios host is connected via multiple links, it is still necessary to ensure that data flow either both links or that somehow traffic is diverted to the other links. Solutions I have rejected include 1 Link teaming/bonding - immature in Linux 2 HSRP/VRRP - don't want to change network structure to suit Nagios and I can't afford fibre links from Nag to a core switch in the 'other' data centre. Otherwise this is a fine solution 3 Load sharing - half the traffic will be dropped if a link fails Here is what I think is the best fit: an application layer (non kernel) fault tolerant router. This could be implemented by 1 a Nag service check of the reachability of the default router 2 an event handler (run by sudo) that replaces the default router if the check returns CRITICAL HARD. Your comments are very welcome. Thank you, Yours sincerely. 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 JHorowitz at looksmart.net Sat Feb 23 03:30:27 2008 From: JHorowitz at looksmart.net (Jonah Horowitz) Date: Fri, 22 Feb 2008 18:30:27 -0800 Subject: OT - fault tolerant default router for Nagios host.[SEC=UNCLASSIFIED] References: Message-ID: <3123F9D3D56CDF499431864372968D2F03AC10D5@SFEX2K3-EVS1.looksmart_sf.ad.looksmart.com> At my last company we used the Linux bonding driver for several of our HA servers. It's a little complicated to set up, but once configured it ran like a gear. We used the failover mode and connected our servers to multiple switches. I plan on implementing the same thing at my current company once the network is ready for it. Jonah Horowitz . Monitoring Manager . jhorowitz at looksmart.net W: 415-348-7694 . F: 415-348-7033 . M: 415-513-7202 LookSmart - Premium and Performance Advertising Solutions 625 Second Street, San Francisco, CA 94107 From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Stanley.HOPCROFT at deewr.gov.au Sent: Friday, February 22, 2008 6:19 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] OT - fault tolerant default router for Nagios host.[SEC=UNCLASSIFIED] Dear Folks, I am writing to request comments on a proposal to reduce the risk of loss of Network visibility/spurious alerts etc caused by the failure of the Nagios host's default gateway. When the Nagios host is connected via multiple links, it is still necessary to ensure that data flow either both links or that somehow traffic is diverted to the other links. Solutions I have rejected include 1 Link teaming/bonding - immature in Linux 2 HSRP/VRRP - don't want to change network structure to suit Nagios and I can't afford fibre links from Nag to a core switch in the 'other' data centre. Otherwise this is a fine solution 3 Load sharing - half the traffic will be dropped if a link fails Here is what I think is the best fit: an application layer (non kernel) fault tolerant router. This could be implemented by 1 a Nag service check of the reachability of the default router 2 an event handler (run by sudo) that replaces the default router if the check returns CRITICAL HARD. Your comments are very welcome. Thank you, Yours sincerely. Classification: UNCLASSIFIED -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3090 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 marc at ena.com Sat Feb 23 05:07:08 2008 From: marc at ena.com (Marc Powell) Date: Fri, 22 Feb 2008 22:07:08 -0600 Subject: OT - fault tolerant default router for Nagios host. [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <104D3069-1396-45E7-BBF3-A80C9A578B9F@ena.com> On Feb 22, 2008, at 8:19 PM, wrote: > > Dear Folks, > > I am writing to request comments on a proposal to reduce the risk of > loss of Network visibility/spurious alerts etc caused by the failure > of the Nagios host's default gateway. > > When the Nagios host is connected via multiple links, it is still > necessary to ensure that data flow either both links or that somehow > traffic is diverted to the other links. > > Solutions I have rejected include > > 1 Link teaming/bonding - immature in Linux > Don't dismiss this out-of-hand. This is used extensively in our Communications Provider grade hosted VOIP systems, with 99.99% guaranteed uptime, and it's worked like a champ through all our testing. It's used in failover mode to provide for hot-standby systems. > Here is what I think is the best fit: an application layer (non > kernel) fault tolerant router. > > This could be implemented by > > 1 a Nag service check of the reachability of the default router > > 2 an event handler (run by sudo) that replaces the default router if > the check returns CRITICAL HARD. > Straightforward and no immediately obvious issues with it. You could use the same event handler to fall back when it recovered. -- 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 hvdkooij at vanderkooij.org Sat Feb 23 09:14:22 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sat, 23 Feb 2008 09:14:22 +0100 Subject: OT - fault tolerant default router for Nagios host. [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <47BFD5DE.10609@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stanley.HOPCROFT at deewr.gov.au wrote: | | Dear Folks, | | I am writing to request comments on a proposal to reduce the risk of | loss of Network visibility/spurious alerts etc caused by the failure of | the Nagios host's default gateway. Hmmm. It is my rather simple view that if monitoring is deemed vital it should rely on redundant paths. Wether you do that with VRRP or some routing protocol is not that important. Then there remains the issue of how Nagios can establish if it still has connectivity. I would create a dummy host for this and use passive checks instead so you can pretty much write your own code to write the status. If you use VRRP you can simply ping thr VRRP address but if you use OSPF for example you need to your OSPF status to see if you still have communication abilities. Perhaps the OSPF plugin might even work for that. But I would priopably write my own code to write a passive check result. I have written something similar for an SMTP loopback test. It fires a test message tracks each step and in the end writes the last known state as a passive check. I used sec to do the correlation required between events for that but that is propably fully outside the scope of this message. 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) iD4DBQFHv9XcBvzDRVjxmYERAvqQAJi1P0LhPld0PGOx3rJiE4wjUmDZAKCsdiLz +5d5H64nuqTkc1sjMGm16Q== =w47u -----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 wghoward at optonline.net Sat Feb 23 17:39:05 2008 From: wghoward at optonline.net (William Howard) Date: Sat, 23 Feb 2008 11:39:05 -0500 Subject: Nagios 3.0rc2 - Method to enumerate multiple interfaces/OIDs? Message-ID: <47C04C29.6090905@optonline.net> We have about 150 client sites that we would like to be able to monitor via SNMP. The client sites have multiple WAN interfaces on a router (2-6) for bandwidth and redundancy. The SNMP interface of the device allows checking of statistics on each interface (about 12-18 items per interface). * What we would like to do is setup each site as its own host and then monitor: * Ping for each interface (already working in nagios) * Each interfaces set of snmp information (working but cumbersome) * Mrtg -- (that will come next) Currently, I have defined each snmp service separately as a template (register 0) and then as I define each host, I have to copy/paste each group of snmp checks for as many interfaces as there are to be monitored. My question is -- is there a way to enumerate the interfaces either through SNMP (there is an OID that tells how many interfaces are defined on the router) or through a script? (like snmpwalk?) Ultimately, it would be easier if nagios could determine the number of defined interfaces and enumerate the OIDs that we have defined and want to monitor. If not -- if there was a way to define interfaces in groups that allowed the interfaces to be quickly defined for each host. I have tried the nagios documentation on service groups/host groups/etc but it is still cumbersome. It also doesn't let me see each host and its associated interfaces as a single group unless I define each/every one for that host. Anyone run into this and/or can lend some friendly advice -- It would be greatly appreciated. *Will Howard* wghoward at optonline.net -------------- 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 Sat Feb 23 17:49:20 2008 From: pitchfork at ederdrom.de (Joerg Linge) Date: Sat, 23 Feb 2008 17:49:20 +0100 Subject: Nagios 3.0rc2 - Method to enumerate multiple interfaces/OIDs? In-Reply-To: <47C04C29.6090905@optonline.net> References: <47C04C29.6090905@optonline.net> Message-ID: <47C04E90.7050109@ederdrom.de> William Howard schrieb: > We have about 150 client sites that we would like to be able to monitor > via SNMP. The client sites have multiple WAN interfaces on a router > (2-6) for bandwidth and redundancy. The SNMP interface of the device > allows checking of statistics on each interface (about 12-18 items per > interface). > > * What we would like to do is setup each site as its own host and > then monitor: > * Ping for each interface (already working in nagios) > * Each interfaces set of snmp information (working but cumbersome) > * Mrtg -- (that will come next) > > > Currently, I have defined each snmp service separately as a template > (register 0) and then as I define each host, I have to copy/paste each > group of snmp checks for as many interfaces as there are to be monitored. > > My question is -- is there a way to enumerate the interfaces either > through SNMP (there is an OID that tells how many interfaces are defined > on the router) or through a script? (like snmpwalk?) Ultimately, it > would be easier if nagios could determine the number of defined > interfaces and enumerate the OIDs that we have defined and want to > monitor. If not -- if there was a way to define interfaces in groups > that allowed the interfaces to be quickly defined for each host. > > I have tried the nagios documentation on service groups/host groups/etc > but it is still cumbersome. It also doesn't let me see each host and > its associated interfaces as a single group unless I define each/every > one for that host. Hi William, have a look on check_multi as your already using nagios 3.x http://my-plugin.de/wiki/projects/check_multi/start The graphing can be done by PNP http://www.pnp4nagios.org/pnp/ Cheers 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 Roger at NagiosWiki.com Sun Feb 24 17:26:15 2008 From: Roger at NagiosWiki.com (Roger) Date: Sun, 24 Feb 2008 08:26:15 -0800 Subject: ideas on virtualization for traveling Nagios lab? Message-ID: <2b7af7c40802240826k422089c2m9abf56834480c133@mail.gmail.com> Not sure if this is the best place to ask this, but I'm hoping that you guys might be able to answer this as you tend to know Nagios' load in a training sort of environment (20 virtual servers @ less than about 50 checks per box) under various types of hardware. I'm building a sort of traveling training server that will run as many virtual Nagios servers as possible (for various LUGs in my area), and I'm wondering what the lightest, most efficient virtualization solution given the small load of a training sort of environment. Right now, I'm just using VMware Server (the free version) on CentOS, and it works great. I connect via the VMWare console and go. The "problem" with this is that (a) I've got a really cool VMware machine at work, (b) I can't always take this cool machine with me (well, I could, but that might be more trouble than it's worth), and (c) I might need to slam out something on someone else's (crappy?) hardware on the fly. Because of these three reasons, I'm willing to invest some time into finding something "better" (quick, light, etc) that might support way more virtual servers than what VMware might support. I'm looking in the direction of OpenVZ, and maybe someone here can tell me if it worked for them when they put Nagios on the guest OS (not sure why it wouldn't, but thought I'd check on the list and see if anyone had any feedback). -------------- 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 24 21:57:34 2008 From: Roger at NagiosWiki.com (Roger) Date: Sun, 24 Feb 2008 12:57:34 -0800 Subject: Fwd: plugin for iostat readings? In-Reply-To: <2b7af7c40802240759kf85e72ci1165430b0e5a3ce8@mail.gmail.com> References: <2b7af7c40802240756m2f7e3163tddf23a974b90801b@mail.gmail.com> <2b7af7c40802240759kf85e72ci1165430b0e5a3ce8@mail.gmail.com> Message-ID: <2b7af7c40802241257l550381adpd4eadd94f04972a@mail.gmail.com> UPDATE ON MY QUESTION On 2/24/08, Roger wrote: > > I'm looking for a solid *proven* plugin (that I can run via NRPE) that > will give me a good idea of disk i/o on *nix servers, particularly AIX ones. > > I'm thinking that maybe there is something out there gives me a nice > sampling of something like the following: > > iostat -As (s = system throughput report) > > and/or > > iostat -AQ (Q = io requests to each disk queue) > > Any ideas? If not, then I'll have to figure out a way to write my own. > But I'm hoping to find something else I might build on top of. > Shortly after writing this, I found this plugin http://www.ofn.dk/files/software/check_iostat Anyone have any experience with this? I will give it a go and report back... ****************** UPDATE: I configured my Perl environment (i.e. installed Perl modules from cpan, etc), and now when implement this from the commad line, I get something like this ./check_iostat.pl IOSTAT OK - user 2.01 nice 0.00 sys 3.46 iowait 2.38 idle 92.15 | iowait= 2.38%;; idle=92.15%;; user=2.01%;; nice=0.00%;; sys=3.46%;; this doesn't have /dev/ info that I'd expect to get from iostat, such as sda e.g. avg-cpu: %user %nice %sys %iowait %idle 2.01 0.00 3.46 2.38 92.15 Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda 11.22 1.24 657.43 3555644 1883264680 sda1 0.00 0.00 0.00 1058 264 sda2 82.29 1.24 657.43 3552855 1883260808 sda3 0.00 0.00 0.00 571 0 dm-0 3.76 0.70 29.42 2000490 84266064 dm-1 0.00 0.00 0.00 994 1600 dm-2 0.00 0.00 0.00 4930 2504 dm-3 0.31 0.00 2.45 5826 7009024 dm-4 3.95 0.25 31.44 723226 90062328 dm-5 74.28 0.29 594.12 816842 1701922896 What might I be missing? -------------- 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 25 00:26:40 2008 From: marc at ena.com (Marc Powell) Date: Sun, 24 Feb 2008 17:26:40 -0600 Subject: Fwd: plugin for iostat readings? In-Reply-To: <2b7af7c40802241257l550381adpd4eadd94f04972a@mail.gmail.com> References: <2b7af7c40802240756m2f7e3163tddf23a974b90801b@mail.gmail.com> <2b7af7c40802240759kf85e72ci1165430b0e5a3ce8@mail.gmail.com> <2b7af7c40802241257l550381adpd4eadd94f04972a@mail.gmail.com> Message-ID: On Feb 24, 2008, at 2:57 PM, Roger wrote: > UPDATE ON MY QUESTION > > On 2/24/08, Roger wrote: > > Shortly after writing this, I found this plugin > > http://www.ofn.dk/files/software/check_iostat > UPDATE: > > I configured my Perl environment (i.e. installed Perl modules from > cpan, etc), and now when implement this from the commad line, I get > something like this > > ./check_iostat.pl > IOSTAT OK - user 2.01 nice 0.00 sys 3.46 iowait 2.38 idle 92.15 | > iowait=2.38%;; idle=92.15%;; user=2.01%;; nice=0.00%;; sys=3.46%;; > > this doesn't have /dev/ info that I'd expect to get from iostat, > such as sda > What might I be missing? Reading the plugin, it's only running and parsing 'iostat -c' to process the cpu utilization report, not the device utilization report. my $output = `$iostat -c`; -- 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 sholikar at yahoo.com Mon Feb 25 06:23:11 2008 From: sholikar at yahoo.com (sachin holikar) Date: Sun, 24 Feb 2008 21:23:11 -0800 (PST) Subject: Fwd: help needed In-Reply-To: References: Message-ID: <777117.69571.qm@web53205.mail.re2.yahoo.com> Hi, Just thought that I missed out 1 point here. When I press View Config Tab , its not that I get this error straightaway. We do get a page with a drop down box from where we need to select proper option say Systems,Services etc. And when we select it and press continue tab..very next screen we get this error. Still no help !! Marc Powell wrote: > -----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: Friday, February 22, 2008 8:55 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Fwd: help needed > > > > nagios-users-bounces at lists.sourceforge.net wrote on 02/22/2008 12:14:56 > AM: > > > > > Hi, > > > > Thanks all for the replies. But hard luck. Ultimately I have enabled > > every single option by putting * against it. Still "View Config" > > seems to be not working for me. > > > > nagios_check_command=/usr/local/NAGIOS/libexec/check_nagios /usr/ > > local/NAGIOS/var/status.dat 5 '/usr/local/NAGIOS//bin/nagios' > > OP: 'NAGIOS' is unusual. Do you mean 'nagios'? > > use_authentication=0 > I would change all of that: > > use_authentication=1 > any issue with the http auth and go from there. I believe, but could be > wrong, since you have use_authentication set to 0 that it is not parsing > anything having to do with authorization afterwards. You are correct. -- 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 --------------------------------- 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 melanie_pfefer at yahoo.co.uk Mon Feb 25 09:50:02 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Mon, 25 Feb 2008 08:50:02 +0000 (GMT) Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: <884740.49595.qm@web26203.mail.ukl.yahoo.com> Hello Thanks indeed. I have one windows 2000 server among the windows servers. should I simply install snmp on this machine (just as windows 2003?) or do I need net-snmp? Meanwhile, this host is part of a hostgroup. I wanted to disable the disk check for this host only but I got this: Sorry, but Nagios is currently not checking for external commands, so your command will not be committed! Read the documentation for information on how to enable external commands... I tried to change this from nagios.cfg: check_external_commands=1 (was 0) but nagios failed to start. Any idea how to disable this check for this host only? This is what I had in the logs: [1203927618] Error: Could not create external command file '/usr/local/nagios2/var/rw/nagios.cmd' as named pipe: (2) -> No such file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. [1203927618] Bailing out due to errors encountered while trying to initialize the external command file... (PID=11896) thanks --- mark.potter at academy.com wrote: > Melanie Pfefer wrote on > 02/22/2008 09:16:51 > AM: > > > Hello Mark, all, > > Yes true but what to put instead of the > hostname(TROY) > > in? > > check_snmp_windows_disk!TROY!95!98!^[CDE]:! > > in case I want to put the hostgroup_name > > > > thanks > You would use hostgroup_name in the service > definition and this line: > > check_snmp_windows_disk!$HOSTADDRESS$!95!98!^[CDE]: > > You can use $HOSTNAME$ but I wouldn't as DNS issues > will then cause your > checks to fail. __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.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 mwheldon at googlemail.com Mon Feb 25 10:25:17 2008 From: mwheldon at googlemail.com (Martin Wheldon) Date: Mon, 25 Feb 2008 09:25:17 +0000 Subject: OT - fault tolerant default router for Nagios host. [SEC=UNCLASSIFIED] In-Reply-To: <47BFD5DE.10609@vanderkooij.org> References: <47BFD5DE.10609@vanderkooij.org> Message-ID: On 2/23/08, Hugo van der Kooij wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Stanley.HOPCROFT at deewr.gov.au wrote: > | > | Dear Folks, > | > | I am writing to request comments on a proposal to reduce the risk of > | loss of Network visibility/spurious alerts etc caused by the failure of > | the Nagios host's default gateway. > > Hmmm. It is my rather simple view that if monitoring is deemed vital it > should rely on redundant paths. Wether you do that with VRRP or some > routing protocol is not that important. > > Then there remains the issue of how Nagios can establish if it still has > connectivity. I would create a dummy host for this and use passive > checks instead so you can pretty much write your own code to write the > status. > > If you use VRRP you can simply ping thr VRRP address but if you use OSPF > for example you need to your OSPF status to see if you still have > communication abilities. Perhaps the OSPF plugin might even work for > that. But I would priopably write my own code to write a passive check > result. > > I have written something similar for an SMTP loopback test. It fires a > test message tracks each step and in the end writes the last known state > as a passive check. I used sec to do the correlation required between > events for that but that is propably fully outside the scope of this > message. > > 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) > > iD4DBQFHv9XcBvzDRVjxmYERAvqQAJi1P0LhPld0PGOx3rJiE4wjUmDZAKCsdiLz > +5d5H64nuqTkc1sjMGm16Q== > =w47u > -----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 > Hi, It is my opinion that you shouldn't dismiss Link teaming/bonding I implemented it at my last work place in active/passive mode 18 months ago and it worked a charm. Saved our bacon when we lost a core switch and would failover completly reliable in all our tests. Martin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 25 10:36:37 2008 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Mon, 25 Feb 2008 10:36:37 +0100 Subject: Antwort: Re: Fwd: plugin for iostat readings? In-Reply-To: References: Message-ID: nagios-users-bounces at lists.sourceforge.net schrieb am 25.02.2008 00:26:40: > > Shortly after writing this, I found this plugin > > > > http://www.ofn.dk/files/software/check_iostat > > > UPDATE: > > > > I configured my Perl environment (i.e. installed Perl modules from > > cpan, etc), and now when implement this from the commad line, I get > > something like this > > > > ./check_iostat.pl > > IOSTAT OK - user 2.01 nice 0.00 sys 3.46 iowait 2.38 idle 92.15 | > > iowait=2.38%;; idle=92.15%;; user=2.01%;; nice=0.00%;; sys=3.46%;; > > > > this doesn't have /dev/ info that I'd expect to get from iostat, > > such as sda > > > What might I be missing? > > Reading the plugin, it's only running and parsing 'iostat -c' to > process the cpu utilization report, not the device utilization report. > > my $output = `$iostat -c`; To my knowledge, there is no such plugin available at the moment. As I already wrote, I am currently working on one though ;) On a sidenote: Forget about running it via nrpe, this would be flawed by design. Since iostat only reports bus usage in realtime and has no means of displaying averages, it would mean you would have the usage of your bus for the time of 1 second every minute (at best). Doesn't help at all. Trust me, I excessively tried things when messing with iostat parsing on our high load oracle servers. ;) You need to call iostat with multiple checks - the longer the better - but then it means you would have to run iostat for like 30 seconds or so -> plugin runtime is 30 seconds too then! That means that check would have a high delay/latency, which is overall a bad idea. My solution so far is to run the plugin via cron and report output via nsca, this gave me the best results. Sadly my plugin is currently not in a state to be released, since it is yet too far narrowed down to monitor our special oracle environment. I still need to make it more configurable and such, but I expect to be able to release it in the next 1-2 weeks - depending on how much time I have spare to work on it. 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 gcoochey at sapphire.gi Mon Feb 25 11:06:59 2008 From: gcoochey at sapphire.gi (Giles Coochey) Date: Mon, 25 Feb 2008 11:06:59 +0100 Subject: Generic check of recent rrd value Message-ID: <9D30659ABCA7FB428CF91E386C3A5744BD9670@hermes.sapphire-int.gi> Hi, I've been looking for a generic check_rrd plugin. I've seen the check_mrtg, checkmrtgtraf in the official Nagios plugins and also seen various plugins on the NagiosExchange website, but none seems to be capable of what I want. Essentially I have a set of rrd's which have Holt-Winters forcasting and prediction enabled. This includes a FAILURES rra which returns a value of "1" when the returned result of the measured value is outside the confidence band of the Holt-Winters algorithm. I think this would be especially useful for detecting aberrant behaviour such a DDoS attacks, and I would love to have Nagios alert on it. The closest that might be able to be used as a template would be the CHECK_RRD_DISK plugin, as it's written in bash and I can probably work to eventually understand what it's doing and amend it for my uses. Before I spend time on that however, has anyone come across a generic check_rrd plugin that will support querying the HW RRAs? Thanks Giles ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From santosh.balan at linuxmail.org Mon Feb 25 12:10:55 2008 From: santosh.balan at linuxmail.org (Santosh Balan) Date: Mon, 25 Feb 2008 19:10:55 +0800 Subject: [linux] Jboss - Nagios Help required Message-ID: <20080225111055.7491ECBE77@ws5-11.us4.outblaze.com> Hi Friends, I am using the check_jbossjmx nagios plugin to check jboss running on to of my servers. However, when I execute it from the host server it is giving me the correct output but when I try to execute the same command on command prompt of the monitoring nagios server it is giving me a wrong output. Command run on the Jboss server Server 1 Command # ./check_jbossjmx1 APP02.jjmum.medd.gov.in 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50 Output received is JMX ATTRIBUTE OK - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:0 Server 2 Command # ./check_jbossjmx1 APP01.jjmum.medd.gov.in 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50 Output received JMX ATTRIBUTE OK - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:0 Command run from the monitoring server for server 1: # ./check_nrpe -H APP01.jjmum.medd.gov.in -c check_jbossjmx1 -a 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50 Output received is: JMX ATTRIBUTE CRITICAL - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount: for server 2 # ./check_nrpe -H APP02.jjmum.medd.gov.in -c check_jbossjmx1 -a 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50 Output received is: Unrecognized JBoss Version: InUseConnectionCount Can any one check why is this error and two different outputs for the same command and help me in resolving this issue. Thanks in advance Regards Santosh Balan 9819419509 = -- Powered by Outblaze ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Karl.Yost at iqor.com Mon Feb 25 15:10:59 2008 From: Karl.Yost at iqor.com (Yost, Karl) Date: Mon, 25 Feb 2008 09:10:59 -0500 Subject: SNMP/Windows disk usage References: <884740.49595.qm@web26203.mail.ukl.yahoo.com> Message-ID: <56F8CBCA82D02D4B894B69C804906D1A8D5D16@usnjpar1blex04.us.ad.irmc.com> 1. You do not need net-snmp for the win2k servers, just install it like you did snmp for 2k3. 2. You need to manually create an external command file in the location specified in the error. The easiest way is to return to the dir where your compiled nagios and run 'make install-commandmode' -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer Sent: Monday, February 25, 2008 3:50 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] SNMP/Windows disk usage Hello Thanks indeed. I have one windows 2000 server among the windows servers. should I simply install snmp on this machine (just as windows 2003?) or do I need net-snmp? Meanwhile, this host is part of a hostgroup. I wanted to disable the disk check for this host only but I got this: Sorry, but Nagios is currently not checking for external commands, so your command will not be committed! Read the documentation for information on how to enable external commands... I tried to change this from nagios.cfg: check_external_commands=1 (was 0) but nagios failed to start. Any idea how to disable this check for this host only? This is what I had in the logs: [1203927618] Error: Could not create external command file '/usr/local/nagios2/var/rw/nagios.cmd' as named pipe: (2) -> No such file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. [1203927618] Bailing out due to errors encountered while trying to initialize the external command file... (PID=11896) thanks --- mark.potter at academy.com wrote: > Melanie Pfefer wrote on > 02/22/2008 09:16:51 > AM: > > > Hello Mark, all, > > Yes true but what to put instead of the > hostname(TROY) > > in? > > check_snmp_windows_disk!TROY!95!98!^[CDE]:! > > in case I want to put the hostgroup_name > > > > thanks > You would use hostgroup_name in the service > definition and this line: > > check_snmp_windows_disk!$HOSTADDRESS$!95!98!^[CDE]: > > You can use $HOSTNAME$ but I wouldn't as DNS issues > will then cause your > checks to fail. __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.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 marc at ena.com Mon Feb 25 16:14:50 2008 From: marc at ena.com (Marc Powell) Date: Mon, 25 Feb 2008 09:14:50 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <56F8CBCA82D02D4B894B69C804906D1A8D5D16@usnjpar1blex04.us.ad.irmc.com> References: <56F8CBCA82D02D4B894B69C804906D1A8D5D16@usnjpar1blex04.us.ad.irmc.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Yost, Karl > Sent: Monday, February 25, 2008 8:11 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] SNMP/Windows disk usage > 2. You need to manually create an external command file in the location > specified in the error. The easiest way is to return to the dir where > your compiled nagios and run 'make install-commandmode' For clarification and the archives, you must not create the file itself. It's not a regular file and Nagios will take care of creating it. You must create the directory that it lives in though, with read/write permissions for the Nagios user. The above-mentioned 'make install-commandmode' is easiest way. -- 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 Michael_Stevens at affymetrix.com Mon Feb 25 17:33:20 2008 From: Michael_Stevens at affymetrix.com (Stevens, Michael) Date: Mon, 25 Feb 2008 08:33:20 -0800 Subject: Host stuck in scheduled downtime Message-ID: <2EB5E682DC612D4CA067A4890785D91101042A5E@EXCH04.affymetrix.com> Greetings, I am running Nagios 3.0rc2 on a Solaris 10 server. I recently scheduled downtime for a host, which never expired. I can recreate this problem with the following steps: 1. Bring down a host. 2. Let Nagios notice the down. 3. Set a variable downtime from the cgi of, say, 30 minutes. In the above scenario the downtime will not go away 30 minutes after the host first transitions to down. I have waited over 24 hours, and the host never leaves downtime. The only way to clear the downtime is to restart Nagios. If I set the downtime before I actually do any work on the host, then downtime clears properly 30 minutes after the first down. Is anyone else seeing this problem? Does anyone have any ideas on how to debug it? -- Mike ------------------------------------------------------------ This transmission is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. You are hereby notified that any use, dissemination, distribution or duplication of this transmission by someone other than the intended addressee or its designated agent is strictly prohibited. If you have received this transmission in error, please notify the sender immediately by reply to this transmission and delete it from your computer. Thank You. Affymetrix, 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 Roger at NagiosWiki.com Mon Feb 25 20:45:24 2008 From: Roger at NagiosWiki.com (Roger) Date: Mon, 25 Feb 2008 11:45:24 -0800 Subject: autogenerating NRPE handlers for nrpe.cfg In-Reply-To: <2b7af7c40802221458w35359fbescf01127d7bebac1f@mail.gmail.com> References: <2b7af7c40802220901k716b5ae1t68456e6f43681d94@mail.gmail.com> <47BF039A.8010903@googlemail.com> <2b7af7c40802221458w35359fbescf01127d7bebac1f@mail.gmail.com> Message-ID: <2b7af7c40802251145m5308e94r2651e9720ed0a57a@mail.gmail.com> For what it's worth, I finally got this to work Here is a quick wiki entry I wrote on the subject for those new to Nagios http://nagioswiki.com/wiki/index.php/Checking_/proc/mounts_on_remote_server -------------- 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 ryangravener at gmail.com Mon Feb 25 23:23:08 2008 From: ryangravener at gmail.com (Ryan Gravener) Date: Mon, 25 Feb 2008 17:23:08 -0500 Subject: JMX plugin Message-ID: I have modified this plugin: http://www.nagiosexchange.org/Misc.54.0.html?&tx_netnagext_pi1%5Bp_view%5D=808 a little bit. Added authentication and changed the output format. The plugin executes from the command line fine, but on the nagios server I get: Heap UNKNOWN 02-25-2008 22:08:22 0d 2h 12m 8s 4/4 NRPE: Unable to read output on the machine I execute the command described in nrpe.cfg command[check_heap]=/usr/lib/nagios/plugins/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:9999/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 731847066 -c 1045495808 -username joe -password doe which outputs: JMX OK - HeapMemoryUsage.used is 78707376,committed=1063321600;init=1073741824;max=1063321600;used=78707376 I think the output is legal, and my settings are ok. But perhaps the command arguments are not passing correctly since a shell script is calling the java jar: #!/bin/sh # # Nagios plugin to monitor Java JMX (http://java.sun.com/jmx)attributes. # RDIR=`dirname $0` java -cp $RDIR/jmxquery.jar jmxquery.JMXQuery $@ Thanks, -- Ryan Gravener http://ryangravener.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 mark.frost1 at pepsi.com Mon Feb 25 23:35:13 2008 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Mon, 25 Feb 2008 17:35:13 -0500 Subject: check_procs with -a argument In-Reply-To: References: Message-ID: Thanks, Marc. I'm doing this test on HPUX 11.23 (IA64). I originally tested with check_procs 1.4.5, but to see if things would change/improve, I tried with 1.4.11. So interestingly, when I do 'check_procs -v -v -v' I see only 401 S 25791 1079 1062 0 158 20 e00000019523e280 111 e00000013c2de000 ? 0:00 ksh proc#=174 uid=25791 vsz=0 rss=0 pid=1079 ppid=1062 pcpu=0.00 stat=S etime= prog=ksh args=ksh 401 S 25791 2353 2209 0 158 20 e00000018bf5e4c0 111 e00000013cf3e000 ? 0:00 ksh proc#=280 uid=25791 vsz=0 rss=0 pid=2353 ppid=2209 pcpu=0.00 stat=S etime= prog=ksh args=ksh For the 2 processes I'm trying to match. So nothing like what I see with 'ps'. I'm guessing then that since it thinks the args for each command is onlyi "ksh" I'm kind of screwed here. I was hoping to not have to whip up a quicky custom perl script to run 'ps' just for this. Mark >-----Original Message----- >From: nagios-users-bounces at lists.sourceforge.net >[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf >Of Marc Powell >Sent: Thursday, February 21, 2008 6:15 PM >To: Nagios Users Mailinglist >Subject: Re: [Nagios-users] check_procs with -a argument > > > >> -----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: Thursday, February 21, 2008 4:48 PM >> To: Nagios Users Mailinglist >> Subject: [Nagios-users] check_procs with -a argument >> >> >> I must admit I'm a little confused about using the >check_procs plugin. >> The help shows that you can use the -a argument to match against args >in >> the command as follows: >> >> -a, --argument-array=STRING >> Only scan for processes with args that contain STRING. >> > > >> check_procs -C ksh -a runnex.sh >> check_procs -C ksh -a "runnex.sh" >> check_procs -C ksh -a "OFH1" >> check_procs -C ksh -a "/opt/zib/fit/asn_nex/OFH1/scripts/runnex.sh >> /opt/java1.4/jre /opt/zib/fit/asn_nex/OFH1/bin/" >> >> all I get in response is >> >> PROCS OK: 0 processes with args 'runnex', command name 'ksh' >> >> or variants of that. >> >> What am I missing here? Am I not listing all or part of arguments to >> ksh? > >The -a is a substring search so I would expect it to be working. My >guess is that your ps command isn't returning the args you think it is. >Try running check_procs with '-v -v -v' to see the ps command that it's >using and the output it is parsing from ps. > >Plugins version and how installed as well as OS version might >be useful. >I suspect that you're not using a recent version as the output is >transposed. You should try with the latest release if you're using an >older 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 > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shuff at hmdc.harvard.edu Mon Feb 25 23:51:43 2008 From: shuff at hmdc.harvard.edu (Steve Huff) Date: Mon, 25 Feb 2008 17:51:43 -0500 Subject: verify CIFS/SMB protocol negotiation? Message-ID: <1E0AA050-BF0E-4B54-BE37-95D8C028C937@hmdc.harvard.edu> Hello folks! I'm monitoring several Samba servers (SuSE OES) that suffer from a debilitating problem: periodically their authentication cache stops working, and as a result none of the services that depend on that authentication cache, including Samba, respond to requests. I'm currently using the check_disk_smb plugin to verify that a test user can establish a CIFS connection (and also to monitor disk usage, but that's secondary). Unfortunately, when the abovementioned problem occurs, check_disk_smb fails not CRITICAL, but UNKNOWN; this is because the request times out instead of being rejected, since the server is still listening on the port, but the SMB negotiation never completes. I thought I would try to add an additional layer of testing by using check_tcp's ability to send a string and expect a string in return; unfortunately, it looks like SMB doesn't talk using human-readable strings (or at least it looked that way to me). check_tcp always succeeds, even when check_disk_smb will time out and fail. Anybody else run into a similar problem? Any suggestions for another way to implement the extra later of testing, or any other ideas? thanks, -Steve -- Steve Huff - Systems Administrator, Harvard-MIT Data Center - shuff at hmdc.harvard.edu ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 26 01:20:11 2008 From: Roger at NagiosWiki.com (Roger) Date: Mon, 25 Feb 2008 16:20:11 -0800 Subject: auditing Nagios configs Message-ID: <2b7af7c40802251620l2fd5deeep615cad800ec75ce3@mail.gmail.com> Does anyone have any tools or tips on auditing Nagios configs when you're consolidating boxes? (It sure would be nice to have a tool that "ate" configs and then showed you which hosts were missing from each one, particularly when there are different versions of Nagios in different boxes, 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 Tue Feb 26 01:38:29 2008 From: Roger at NagiosWiki.com (Roger) Date: Mon, 25 Feb 2008 16:38:29 -0800 Subject: check_nt_proc_count with NSClient++ ? Message-ID: <2b7af7c40802251638w6eec0df7h56c0aa12d018736f@mail.gmail.com> Has anyone used the following script with NSClient++, instead of NC_net? http://nagiosexchange.altinity.org/nagiosexchange/check_proc_count_nt/check_proc_count_nt -------------- 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 Tue Feb 26 02:19:44 2008 From: throck at duke.edu (Tom Throckmorton) Date: Mon, 25 Feb 2008 20:19:44 -0500 Subject: verify CIFS/SMB protocol negotiation? In-Reply-To: <1E0AA050-BF0E-4B54-BE37-95D8C028C937@hmdc.harvard.edu> References: <1E0AA050-BF0E-4B54-BE37-95D8C028C937@hmdc.harvard.edu> Message-ID: <20080226011943.GA26876@duke.edu> On Feb 25 17:51, Steve Huff wrote: > Hello folks! > > I'm monitoring several Samba servers (SuSE OES) that suffer from a > debilitating problem: periodically their authentication cache stops > working, and as a result none of the services that depend on that > authentication cache, including Samba, respond to requests. > > I'm currently using the check_disk_smb plugin to verify that a test > user can establish a CIFS connection (and also to monitor disk usage, > but that's secondary). Unfortunately, when the abovementioned > problem occurs, check_disk_smb fails not CRITICAL, but UNKNOWN; this > is because the request times out instead of being rejected, since the > server is still listening on the port, but the SMB negotiation never > completes. Hi Steve, You could modify check_disk_smb so that it outputs CRITICAL instead of UNKNOWN on a timeout - looks pretty straightforward to do so. Alternately, you could configure those services to notify on UNKNOWN. > I thought I would try to add an additional layer of testing by using > check_tcp's ability to send a string and expect a string in return; > unfortunately, it looks like SMB doesn't talk using human-readable > strings (or at least it looked that way to me). check_tcp always > succeeds, even when check_disk_smb will time out and fail. > > Anybody else run into a similar problem? Any suggestions for another > way to implement the extra later of testing, or any other ideas? Anything in your smb.log when the service dies? Are the processes zombied? hth, -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 mail at oliwel.de Tue Feb 26 07:02:15 2008 From: mail at oliwel.de (Oliver Welter) Date: Tue, 26 Feb 2008 07:02:15 +0100 Subject: JMX plugin In-Reply-To: References: Message-ID: <47C3AB67.7030702@oliwel.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Rya,n > which outputs: > > JMX OK - HeapMemoryUsage.used is > 78707376,committed=1063321600;init=1073741824;max=1063321600;used=78707376 > IIRC, your output must start with the status keyword, so you have to remove the "JMX" in front of the ok. Another common pitfall are insufficient rights - have you tried running the script with the rights of the nrpe user? Oliver - -- Protect your environment - close windows and adopt a penguin! PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF 8168 CAB7 B0DD 3985 1721 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHw6tnyrew3TmFFyERArwPAJ9DK6PIrD6McnIduWKHa9Z6mw3HHwCdHP7E AdLGMSSAHG9MSoARHPN8CyY= =S9BL -----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 michael at medin.name Tue Feb 26 08:44:23 2008 From: michael at medin.name (Michael Medin) Date: Tue, 26 Feb 2008 06:44:23 -0100 (GMT+1) Subject: check_nt_proc_count with NSClient++ ? In-Reply-To: <2b7af7c40802251638w6eec0df7h56c0aa12d018736f@mail.gmail.com> References: <2b7af7c40802251638w6eec0df7h56c0aa12d018736f@mail.gmail.com> Message-ID: <21985.193.180.216.132.1204011863.squirrel@ssl.nakednuns.org> Hello, A bit curious as to why you would want to: check_nrpe ... -c checkProcState -a MaxCritCount=50 svchost.exe=started (replace 50 and svchost.exe with your values of choice) would I think do what you want it to. But to answer your question nsclient++ will only return each process once so that script will not work (I think). If you want I might be talked into adding support for NC_net, but I tend to favor NRPE myself as it is "more flexible"... // MickeM > Has anyone used the following script with NSClient++, instead of NC_net? > > http://nagiosexchange.altinity.org/nagiosexchange/check_proc_count_nt/check_proc_count_nt > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 david at netsafe.cz Tue Feb 26 10:21:16 2008 From: david at netsafe.cz (DD) Date: Tue, 26 Feb 2008 10:21:16 +0100 Subject: Host retry_interval Message-ID: <064601c87858$f0ccade0$8c00000a@ddnb> It seems that retry interval in my configuration for host checks is not working. I'm using Nagios3rc2. Here is definition of host: define host{ host_name malm.proxy.xxx.xxx alias malm address 195.xxx.xxx.xxx hostgroups PROXY check_command check_host_alive max_check_attempts 3 check_interval 5 retry_interval 5 check_period 24x7 process_perf_data 1 contact_groups admins, duty notification_interval 10 notification_period 24x7 notification_options d,u,r } But when i disable icmp on that hosts, so host is unreachable via icmp, in log file is this: [1204015545] HOST ALERT: malm.proxy.verza.net;DOWN;SOFT;1;PING CRITICAL - Packet loss = 100% [1204015565] HOST ALERT: malm.proxy.verza.net;DOWN;SOFT;2;PING CRITICAL - Packet loss = 100% [1204015615] HOST ALERT: malm.proxy.verza.net;DOWN;HARD;3;PING CRITICAL - Packet loss = 100% So delay between first and 2nd check is 20 secs and between 2nd and 3rd is 50secs, but i expected it to be 5 minutes in both cases since retry_interval is setup to 5 (and interval length is 60). There are defined about 5 services on that host. But i think that service checks should be suppressed until host it up again. Is this some bug or i have some missconfiguration there ? Thx, DD ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Feb 26 10:22:42 2008 From: pom at tpg.ch (PO Michel) Date: Tue, 26 Feb 2008 10:22:42 +0100 (CET) Subject: Service and multiple hostgroups Message-ID: <20080226092242.69D5E580057@desire.netways.de> Hi list I would like to define a Nagios service for hosts who belong to multiple hostgroups only (i.e. to check the HP Net Teaming only for hosts who are member of both hostgroups "HP Proliant Servers" and "Windows Servers"). Is there a way to do that ? Many thanks in advance, - PO Michel (misterpo) ----------------------- 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 Ludovic.Cesar at fedasil.be Tue Feb 26 11:14:03 2008 From: Ludovic.Cesar at fedasil.be (Ludovic Cesar) Date: Tue, 26 Feb 2008 11:14:03 +0100 Subject: Scheduling Queue Message-ID: Hi everybody, I search how to modify the "Scheduling Queue" for when i restart or reload my nagios the "Scheduling Queue" before the restart has recover and it can continue the same order. (if it's possible) Sorry for my poor english ;-) -------------------------- Ludovic C?sar -------------- 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 26 12:50:10 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 26 Feb 2008 11:50:10 +0000 Subject: autogenerating NRPE handlers for nrpe.cfg In-Reply-To: <2b7af7c40802221458w35359fbescf01127d7bebac1f@mail.gmail.com> References: <2b7af7c40802220901k716b5ae1t68456e6f43681d94@mail.gmail.com> <47BF039A.8010903@googlemail.com> <2b7af7c40802221458w35359fbescf01127d7bebac1f@mail.gmail.com> Message-ID: <47C3FCF2.5020102@googlemail.com> Roger wrote: > On Fri, Feb 22, 2008 at 9:17 AM, Hari Sekhon > wrote: > > Roger wrote: > > I have hundreds of hosts, each of which needs an npre.cfg file to > > reflect the true "fdisk -l" and "df -h" output of each box. > > > > > > Anyone have any scripts that they've used? I'm in a bind, otherwise > > I'd think about writing my own... > If this is to get a disk check depending on what disks are available, > look here for a tip: > > http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg11936.html > > > I'm having a problem getting this sort of thing to work > > on monitored server (with nrpe) i have the following line in nrpe.cfg > > command[check_disks_proc_mount]=/usr/lib/nagios/plugins/check_disks_proc_mount > > In my check_disk_proc_mount script (which runs ok on its own), I have > something similar to > > ./check_disk -w 15% -c 20% $(for x in $(/proc/mounts | awk '{print > $2}'); do echo -n " -p $x "; done) > > I run this from the command line, and I get my expected "DISK OK" > return value. > > However, I get "NRPE: Unable to read output" when I run the following > command from the plugins directory from my Nagios server > > ./check_nrpe -H (ipOfMonitoredBox) -c check_disks_proc_mount > > What do I need to do for this to work across NRPE like it does when > I'm shelled in the box? there is an error in that shell script, the bit $(/proc/mounts | awk '{print $2}') is wrong. You might just change it to $(cat /proc/mounts | awk '{print $2}') or $(awk '{print $2}' < /proc/mounts) but I wouldn't recommend it, you should limit the check to real filesystems like ext2/ext3/reiserfs/xfs etc not things like sysfs, udev etc.. Try playing with this on the command line until you get it right, you may want to check the bash docs or ask in freenode's #bash if you're not strong in bash though (warning: don't ask in #bash until you've looked through docs or you'll get flamed if it's a simple problem to solve and it shows you haven't read the docs and tried sufficiently) Also, try looking at my example again in the original link I sent you which does exactly what you want, all you need to do is choose the filesystem types you want to check. -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 marc at ena.com Tue Feb 26 14:02:08 2008 From: marc at ena.com (Marc Powell) Date: Tue, 26 Feb 2008 07:02:08 -0600 Subject: Scheduling Queue In-Reply-To: References: Message-ID: <28381279-DECC-448C-9CBD-9B279EAA887D@ena.com> On Feb 26, 2008, at 4:14 AM, Ludovic Cesar wrote: > > Hi everybody, > > > I search how to modify the "Scheduling Queue" for when i restart or > reload my nagios the "Scheduling Queue" before the restart has > recover and it can continue the same order. (if it's possible) See the use_retained_scheduling_info and related options at http://nagios.sourceforge.net/docs/2_0/configmain.html#retain_state_information -- 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 Ludovic.Cesar at fedasil.be Tue Feb 26 14:13:27 2008 From: Ludovic.Cesar at fedasil.be (Ludovic Cesar) Date: Tue, 26 Feb 2008 14:13:27 +0100 Subject: Scheduling Queue In-Reply-To: <28381279-DECC-448C-9CBD-9B279EAA887D@ena.com> References: <28381279-DECC-448C-9CBD-9B279EAA887D@ena.com> Message-ID: Thanks for this information, i have search a lot but ... not correctly ;-) ---------------- Ludovic C?sar Marc Powell Envoy? par : nagios-users-bounces at lists.sourceforge.net 26/02/2008 14:02 A Nagios Users Mailinglist cc Objet Re: [Nagios-users] Scheduling Queue On Feb 26, 2008, at 4:14 AM, Ludovic Cesar wrote: > > Hi everybody, > > > I search how to modify the "Scheduling Queue" for when i restart or > reload my nagios the "Scheduling Queue" before the restart has > recover and it can continue the same order. (if it's possible) See the use_retained_scheduling_info and related options at http://nagios.sourceforge.net/docs/2_0/configmain.html#retain_state_information -- 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 mark.potter at academy.com Tue Feb 26 15:41:14 2008 From: mark.potter at academy.com (Mark L Potter) Date: Tue, 26 Feb 2008 08:41:14 -0600 Subject: auditing Nagios configs In-Reply-To: <2b7af7c40802251620l2fd5deeep615cad800ec75ce3@mail.gmail.com> References: <2b7af7c40802251620l2fd5deeep615cad800ec75ce3@mail.gmail.com> Message-ID: <1204036874.6279.16.camel@IT-15500-LNXUB> On Mon, 2008-02-25 at 16:20 -0800, Roger wrote: > Does anyone have any tools or tips on auditing Nagios configs when > you're consolidating boxes? > > I would be pretty easy to do with a little sed and awk or grep and cut script. If you want to describe your config a little more I might could throw something together for you. I would need to know if you are using single file configs or if you are using multiple files and if those files are all in the same dir and so on. I think it would be under 20 lines total to get what you want. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Feb 26 16:01:04 2008 From: bjlockie at lockie.ca (James) Date: Tue, 26 Feb 2008 10:01:04 -0500 (EST) Subject: don't sort hostgroup Message-ID: <9783.24.215.0.20.1204038064.squirrel@webmail.lockie.ca> How do I NOT sort a hostgroup? I am using Nagios-2.10 I have a hostroup A C B D that displays A B C D I want it to display the order it is defined it. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Feb 26 16:50:52 2008 From: knobdy at gmail.com (Brian Loe) Date: Tue, 26 Feb 2008 09:50:52 -0600 Subject: auditing Nagios configs In-Reply-To: <1204036874.6279.16.camel@IT-15500-LNXUB> References: <2b7af7c40802251620l2fd5deeep615cad800ec75ce3@mail.gmail.com> <1204036874.6279.16.camel@IT-15500-LNXUB> Message-ID: <3c4611bc0802260750p775608c0ye93ce64f27e87231@mail.gmail.com> On Tue, Feb 26, 2008 at 8:41 AM, Mark L Potter wrote: > > On Mon, 2008-02-25 at 16:20 -0800, Roger wrote: > > Does anyone have any tools or tips on auditing Nagios configs when > > you're consolidating boxes? > > > > > I would be pretty easy to do with a little sed and awk or grep and cut > script. If you want to describe your config a little more I might could > throw something together for you. I would need to know if you are using > single file configs or if you are using multiple files and if those > files are all in the same dir and so on. I think it would be under 20 > lines total to get what you want. > Please share with the list if you do this! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 26 18:33:55 2008 From: marc at ena.com (Marc Powell) Date: Tue, 26 Feb 2008 11:33:55 -0600 Subject: don't sort hostgroup In-Reply-To: <9783.24.215.0.20.1204038064.squirrel@webmail.lockie.ca> References: <9783.24.215.0.20.1204038064.squirrel@webmail.lockie.ca> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of James > Sent: Tuesday, February 26, 2008 9:01 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] don't sort hostgroup > > How do I NOT sort a hostgroup? > I am using Nagios-2.10 > I have a hostroup A C B D that displays A B C D > I want it to display the order it is defined it. You have no control over this through configuration. You might be able to modify this behavior through xodtemplate_sort_hosts() in xdata/xodtemplate.c. That seems to be where the default host sorting is performed globally. -- 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 hpsekhon at googlemail.com Tue Feb 26 19:08:32 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Tue, 26 Feb 2008 18:08:32 +0000 Subject: JMX plugin In-Reply-To: <47C3AB67.7030702@oliwel.de> References: <47C3AB67.7030702@oliwel.de> Message-ID: <47C455A0.6060503@googlemail.com> Oliver Welter wrote: >> which outputs: >> >> JMX OK - HeapMemoryUsage.used is >> 78707376,committed=1063321600;init=1073741824;max=1063321600;used=78707376 >> > IIRC, your output must start with the status keyword, so you have to > remove the "JMX" in front of the ok Really? I never got that from the Nagios development guidelines, perhaps SERVICE STATUS: Information text is slightly ambiguous as it could mean "SERVICENAME then STATUS then Information text" or just "STATUS then Information text". I've personally always preferred the former where you print the check name, I think it makes things clearer and I've noticed that lots of the plugins from the standard distribution follow this. To the OP and back on topic, I don't know anything about your plugin but have you tested that this Java program is using the right Exit codes? You should also make sure that all output goes to stdout and not stderr since nagios does not catches stderr. Oliver is right, you should check the user that you are running it as, one common mistake is to run a program as root from the command line and then wonder why it doesn't work as the nagios user. Usually when you get Unknown and no output at the same time with nrpe, it's usually a user issue or a failure to execute issue due to wrong path or requiring more privs or something hanging like a sudo call where you hadn't granted nopasswd so it prompted, hung and timed out. You should also check out http://nagiosplug.sourceforge.net/developer-guidelines.html for the development guidelines. -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.calcote at gmail.com Tue Feb 26 19:09:00 2008 From: john.calcote at gmail.com (John Calcote) Date: Tue, 26 Feb 2008 11:09:00 -0700 Subject: dnx patch for nagios 3.0rc2 works for ngaios 3.0rc3 Message-ID: <3ee91eb90802261009o78c6ec28j4c3329a2eaabe5ee@mail.gmail.com> To whom it may concern, The dnx patch for nagios 3.0rc2 (found in the dnx 0.15 package on sf.net) can be successfully applied to nagios 3.0rc3. (Ethan, have you had a chance to consider these changes yet?) Thanks, John Calcote DNX maintainer http://dnx.sourceforge.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/ From Shawn.Bigley at nscc.ca Tue Feb 26 19:20:42 2008 From: Shawn.Bigley at nscc.ca (Bigley,Shawn) Date: Tue, 26 Feb 2008 14:20:42 -0400 Subject: Sorry, but you are not authorized to commit the specified command. Message-ID: Howdy Folks... Got a weird one. On one server I am getting an alert and when I try to acknowledge it I get the following; Sorry, but you are not authorized to commit the specified command. Read the section of the documentation that deals with authentication and authorization in the CGIs for more information. Return from whence you came All other servers that we are monitoring can be acknowledged so I know the account is working fine. Server A gives the error, Server B lets me acknowledge. Any ideas as to what is causing it? Shawn -------------- 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 Shawn.Bigley at nscc.ca Tue Feb 26 20:10:28 2008 From: Shawn.Bigley at nscc.ca (Bigley,Shawn) Date: Tue, 26 Feb 2008 15:10:28 -0400 Subject: Sorry, but you are not authorized to commit the specified command. In-Reply-To: References: Message-ID: More info... Are the contacts for the two servers the same? Yes. Post the host configs for one working server and the broken one for use to take a look at. Both host are using the same config file Are the operating systems both the same? Yes, Windows Server 2003 What version of Nagios and the plugins are you running? Nagios 2.9 And one other things a restart of the affect host usually fixes the problem for a while... Shawn From: Valdinger, Stephen (DOV, MSX) [mailto:svalding at doverchem.com] Sent: Tuesday, February 26, 2008 2:40 PM To: Bigley,Shawn; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Sorry,but you are not authorized to commit the specified command. Are the contacts for the two servers the same? Post the host configs for one working server and the broken one for use to take a look at. Are the operating systems both the same? Is SELinux enabled on one of the boxen? What version of Nagios and the plugins are you running? Please post up to the list this information so we can help you troubleshoot further. In the meantime browse http://nagios.sourceforge.net/docs/2_0/cgiauth.html to see if your problem can be answered in the documentation (I am sure that it can be) Stephen Valdinger MIS Helpdesk Coordinator 330-365-3622 stephen.valdinger at doverchem.com Why do we tell computers to shut down and people to shut up? From: Bigley,Shawn [mailto:Shawn.Bigley at nscc.ca] Sent: Tuesday, February 26, 2008 1:21 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Sorry,but you are not authorized to commit the specified command. Howdy Folks... Got a weird one. On one server I am getting an alert and when I try to acknowledge it I get the following; Sorry, but you are not authorized to commit the specified command. Read the section of the documentation that deals with authentication and authorization in the CGIs for more information. Return from whence you came All other servers that we are monitoring can be acknowledged so I know the account is working fine. Server A gives the error, Server B lets me acknowledge. Any ideas as to what is causing it? Shawn -------------- 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 26 20:13:29 2008 From: marc at ena.com (Marc Powell) Date: Tue, 26 Feb 2008 13:13:29 -0600 Subject: JMX plugin In-Reply-To: <47C455A0.6060503@googlemail.com> References: <47C455A0.6060503@googlemail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon > Sent: Tuesday, February 26, 2008 12:09 PM > To: Oliver Welter > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] JMX plugin > > Oliver Welter wrote: > >> which outputs: > >> > >> JMX OK - HeapMemoryUsage.used is > >> > 78707376,committed=1063321600;init=1073741824;max=1063321600;used=787073 76 > >> > > IIRC, your output must start with the status keyword, so you have to > > remove the "JMX" in front of the ok > Really? I never got that from the Nagios development guidelines, perhaps > > SERVICE STATUS: Information text > > is slightly ambiguous as it could mean "SERVICENAME then STATUS then > Information text" or just "STATUS then Information text". The plugin output text is completely arbitrary. Nagios only really cares about the exit code and that there's only one line of plugin output, whatever it is. -- 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 orbis at pictus.org Tue Feb 26 21:45:16 2008 From: orbis at pictus.org (Rostislav Opocensky) Date: Tue, 26 Feb 2008 21:45:16 +0100 Subject: Macro expansion in hostextinfo->notes_url Message-ID: <47C47A5C.9040809@pictus.org> Hello, does anybody know why $HOSTNAME$ in hostextinfo->notes_url expands to host name, while $HOSTGROUPNAME$ expands to nothing? With Nagios 2.10, I am using notes_url in hostextinfo to create an icon displayed next to host name. The icon is clickable and provides convenient access to device configuration stored in CVS and available via cvsweb. The following snippet works well: define hostextinfo { host_name ^sw-.* notes_url /cgi-bin/cvsweb.cgi/XXX/configs/$HOSTNAME$?rev=. } XXX denotes site name. It is the same as the name of Nagios hostgroup the host is in. So the following would be an elegant way to define notes_url for gateways on all sites: define hostextinfo { host_name ^gw-.* notes_url /cgi-bin/cvsweb.cgi/$HOSTGROUPNAME$/configs/$HOSTNAME$?rev=. } However, the resulting URL looks like .../cgi-bin/cvsweb.cgi//configs/... Is it a bug or feature? ;-) Thanks, Rosta -- Rostislav Opocensky http://orbis.pictus.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 marc at ena.com Tue Feb 26 22:17:18 2008 From: marc at ena.com (Marc Powell) Date: Tue, 26 Feb 2008 15:17:18 -0600 Subject: Macro expansion in hostextinfo->notes_url In-Reply-To: <47C47A5C.9040809@pictus.org> References: <47C47A5C.9040809@pictus.org> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Rostislav Opocensky > Sent: Tuesday, February 26, 2008 2:45 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Macro expansion in hostextinfo->notes_url > > Hello, > > does anybody know why $HOSTNAME$ in hostextinfo->notes_url expands to > host name, while $HOSTGROUPNAME$ expands to nothing? > > With Nagios 2.10, I am using notes_url in hostextinfo to create an Have you seen documentation that said it should work? Macro expansion for notes_url is relatively new. Currently only $HOSTNAME$ and $HOSTADDRESS$ are supported. Nagios-3 appears to address this extensively in that all appropriate macros appear to be available for substitution (from reading the source). -- 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 Michael_Stevens at affymetrix.com Wed Feb 27 01:02:22 2008 From: Michael_Stevens at affymetrix.com (Stevens, Michael) Date: Tue, 26 Feb 2008 16:02:22 -0800 Subject: Host stuck in scheduled downtime In-Reply-To: <2EB5E682DC612D4CA067A4890785D91101042A5E@EXCH04.affymetrix.com> References: <2EB5E682DC612D4CA067A4890785D91101042A5E@EXCH04.affymetrix.com> Message-ID: <2EB5E682DC612D4CA067A4890785D91101042A6E@EXCH04.affymetrix.com> Although the changelog for rc3 did not suggest that this host stuck in downtime issue was going to be fixed, I went ahead and installed 3.0rc3. Following the steps below still results in a host stuck in scheduled downtime. Although you won't see the steps to create this problem every day, this seems a fairly serious issue to me. Once the host gets 'stuck', email is no longer sent about any problems Nagios sees for the effected host. -- Mike > -----Original Message----- > From: Stevens, Michael > Sent: Monday, February 25, 2008 8:33 AM > To: nagios-users at lists.sourceforge.net > Subject: Host stuck in scheduled downtime > > > Greetings, > > I am running Nagios 3.0rc2 on a Solaris 10 server. I recently scheduled > downtime for a host, which never expired. I can recreate this problem > with the following steps: > > 1. Bring down a host. > 2. Let Nagios notice the down. > 3. Set a variable downtime from the cgi of, say, 30 minutes. > > In the above scenario the downtime will not go away 30 minutes after the > host first transitions to down. I have waited over 24 hours, and the host > never leaves downtime. The only way to clear the downtime is to restart > Nagios. > > If I set the downtime before I actually do any work on the host, then > downtime clears properly 30 minutes after the first down. > > Is anyone else seeing this problem? Does anyone have any ideas on how to > debug it? > > -- > Mike > ------------------------------------------------------------ This transmission is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. You are hereby notified that any use, dissemination, distribution or duplication of this transmission by someone other than the intended addressee or its designated agent is strictly prohibited. If you have received this transmission in error, please notify the sender immediately by reply to this transmission and delete it from your computer. Thank You. Affymetrix, 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 esben at cs.aau.dk Wed Feb 27 02:37:27 2008 From: esben at cs.aau.dk (Esben Bach) Date: Wed, 27 Feb 2008 09:37:27 +0800 Subject: Fwd: plugin for iostat readings? In-Reply-To: References: <2b7af7c40802240756m2f7e3163tddf23a974b90801b@mail.gmail.com> <2b7af7c40802240759kf85e72ci1165430b0e5a3ce8@mail.gmail.com> <2b7af7c40802241257l550381adpd4eadd94f04972a@mail.gmail.com> Message-ID: <47C4BED7.3030700@cs.aau.dk> I wrote the original plugin (based on some old code i found on the internet which was broken), and as stated it only parses the output from iostat -c. It was written for the iostat shipped with RHEL 4 - and i later found out that for some reason iostat behaves differently on i.e. SLED10. The intent of the plugin was to determine general IO wait time not per device stuff. Basically its used to give us a history of the IO wait more than a "warning" mechanism. I just included the other parameters of iostat -c for completeness. It should however be fairly easy to implement commandline switches for specific devices (or all devices) and parse differently based on this information. However i have no idea on what basis to determine if the read/wrtn numbers becomes too high (since i generally do not know what their EXACT meaning is). I might consider rewriting the plugin to include these improvements, if you haven't found another solution. However i am not promising anything! -- Esben Marc Powell wrote: > On Feb 24, 2008, at 2:57 PM, Roger wrote: > >> UPDATE ON MY QUESTION >> >> On 2/24/08, Roger wrote: >> > >> Shortly after writing this, I found this plugin >> >> http://www.ofn.dk/files/software/check_iostat > >> UPDATE: >> >> I configured my Perl environment (i.e. installed Perl modules from >> cpan, etc), and now when implement this from the commad line, I get >> something like this >> >> ./check_iostat.pl >> IOSTAT OK - user 2.01 nice 0.00 sys 3.46 iowait 2.38 idle 92.15 | >> iowait=2.38%;; idle=92.15%;; user=2.01%;; nice=0.00%;; sys=3.46%;; >> >> this doesn't have /dev/ info that I'd expect to get from iostat, >> such as sda > >> What might I be missing? > > Reading the plugin, it's only running and parsing 'iostat -c' to > process the cpu utilization report, not the device utilization report. > > my $output = `$iostat -c`; > > -- > 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 hvdkooij at vanderkooij.org Wed Feb 27 07:15:58 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Wed, 27 Feb 2008 07:15:58 +0100 Subject: Host stuck in scheduled downtime In-Reply-To: <2EB5E682DC612D4CA067A4890785D91101042A6E@EXCH04.affymetrix.com> References: <2EB5E682DC612D4CA067A4890785D91101042A5E@EXCH04.affymetrix.com> <2EB5E682DC612D4CA067A4890785D91101042A6E@EXCH04.affymetrix.com> Message-ID: <47C5001E.4030802@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stevens, Michael wrote: | Although the changelog for rc3 did not suggest that this host stuck in | downtime issue was going to be fixed, I went ahead and installed 3.0rc3. | Following the steps below still results in a host stuck in scheduled | downtime. | | Although you won't see the steps to create this problem every day, this | seems a fairly serious issue to me. Once the host gets 'stuck', email | is no longer sent about any problems Nagios sees for the effected host. The order in which you did perform the test is: ~ 1. Host goes down ~ 2. Schedule variable down time ~ 3. Bring host back up Does this also occur if you do it the way it was intended? ~ 1. Schedule variable down time ~ 2. Bring host down ~ 3. Bring hust back up It is my perception that a scheduled downtime event is still waiting for the host to go down. After the host goes down you should just acknowledge the down host to stop notifications nd not use a scheduled down time because it obviously was not scheduled (from the perspective of Nagios). 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) iD8DBQFHxQAcBvzDRVjxmYERAp4xAJ0UlagUcBlrl7GNPKwx3A5KTFsvjgCePMGi csD7BrbUnRpwjVcGRLNbaks= =Jhv4 -----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 Wed Feb 27 07:21:03 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Wed, 27 Feb 2008 07:21:03 +0100 Subject: Sorry, but you are not authorized to commit the specified command. In-Reply-To: References: Message-ID: <47C5014F.5010903@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bigley,Shawn wrote: | Post the host configs for one working server and the broken one for use | to take a look at. | | Both host are using the same config file So? They could both be wrong. If you seek help but do not wish show the config then seek private and paid help. 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) iD8DBQFHxQFNBvzDRVjxmYERAjmWAJwMd99FfpV8+O9kSNXNs4hi0HTzowCgkq7K bAehbp+TZyToP4ADz71bLc4= =VAhm -----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 linuxmail at 4lin.net Wed Feb 27 09:11:35 2008 From: linuxmail at 4lin.net (Denny Schierz) Date: Wed, 27 Feb 2008 09:11:35 +0100 Subject: Getting ndoutils 1.4b7compiled under freeBSD 6.3 with mysql support Message-ID: <47C51B37.8080509@4lin.net> hi, i really have problems to get ndoutils compiled under freeBSD 6.3 with mysql support. MySQL headers are under /usr/local/include/mysql and libs are /usr/local/lib/mysql. ./configure --with-mysql-lib=/usr/local --with-mysql-inc=/usr/local/include does not work. (mysql.h not found, lmysqlclient ... no ...) i found a patched tar archive for with 1.4b3 but ... so, what i have to do? cu denny -- Stoppt den ?berwachungswahn - Stoppt den Sch?uble Katalog: http://www.nopsis.de -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP 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 hpsekhon at googlemail.com Wed Feb 27 10:45:30 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 27 Feb 2008 09:45:30 +0000 Subject: Plugin Output Standardization (was JMX plugin thread) In-Reply-To: References: Message-ID: <47C5313A.4040606@googlemail.com> Marc Powell wrote: > The plugin output text is completely arbitrary. Nagios only really cares > about the exit code and that there's only one line of plugin output, > whatever it is Yes quite right, but standardization of output is nice for coherence and to give a more professional unified feel. Do you have any preference between the two? There seems to unfortunately be a mix between the two styles. Perhaps the official development guidelines could be adjusted to steel people towards one standard output format on this? I'd vote for the "SERVICENAME SERVICESTATUS: Informational text" format like "DISK OK: / is 50% full" ... -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 gbhatnag at gmail.com Wed Feb 27 11:59:02 2008 From: gbhatnag at gmail.com (Bhat nag) Date: Wed, 27 Feb 2008 16:29:02 +0530 Subject: (no subject) Message-ID: <774c6250802270259m47f7c77yf6fe343d644d013e@mail.gmail.com> Dear All, Can anyone help in confguting nrpe on HP-UX ver:B11.11 I am using the nagios version 3.0rc2 Thanks in advance -------------- 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 Wed Feb 27 12:03:41 2008 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 27 Feb 2008 12:03:41 +0100 Subject: (no subject) In-Reply-To: <774c6250802270259m47f7c77yf6fe343d644d013e@mail.gmail.com> References: <774c6250802270259m47f7c77yf6fe343d644d013e@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744BD977B@hermes.sapphire-int.gi> Bhat, Can we suggest that you try following the instructions found under http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf And then return to us with a specific query as to any problem that you may encounter? Otherwise, your request is very vague and is more likened to a request for Nagios consultancy, which you might find as a paid service on Sourceforge or www.nagios.com Best Regards, Giles ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Bhat nag Sent: 27 February 2008 11:59 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] (no subject) Dear All, Can anyone help in confguting nrpe on HP-UX ver:B11.11 I am using the nagios version 3.0rc2 Thanks in advance -------------- 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 gbhatnag at gmail.com Wed Feb 27 13:26:36 2008 From: gbhatnag at gmail.com (Bhat nag) Date: Wed, 27 Feb 2008 17:56:36 +0530 Subject: (no subject) In-Reply-To: <774c6250802270259m47f7c77yf6fe343d644d013e@mail.gmail.com> References: <774c6250802270259m47f7c77yf6fe343d644d013e@mail.gmail.com> Message-ID: <774c6250802270426u70477e25r6b19bd63c9c983c2@mail.gmail.com> Thanks Giles, I followed the instruction as given in the doc http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf. Accordingly I have started the deamon using the command #opt/nrpe/bin/nrpe -c /opt/nrpe/nrpe.cfg -d and checked its listinig or not using the command #netstat -a|grep nrpe tcp 0 0 *.nrpe *.* LISTEN After that I am used the command to check the nrpe, but I am getting the error as root @ isosrvr : /opt/nrpe/bin >./check_nrpe -H localhost -n CHECK_NRPE: Response packet had invalid CRC32. I am not understanding that where i went wrong. Please help Best Regds G Bhat On Wed, Feb 27, 2008 at 4:29 PM, Bhat nag wrote: > Dear All, > > Can anyone help in confguting nrpe on HP-UX ver:B11.11 > I am using the nagios version 3.0rc2 > > > 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 > -------------- 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 27 13:46:48 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 27 Feb 2008 12:46:48 +0000 Subject: (no subject) In-Reply-To: <774c6250802270426u70477e25r6b19bd63c9c983c2@mail.gmail.com> References: <774c6250802270259m47f7c77yf6fe343d644d013e@mail.gmail.com> <774c6250802270426u70477e25r6b19bd63c9c983c2@mail.gmail.com> Message-ID: <47C55BB8.90802@googlemail.com> Bhat nag wrote: > After that I am used the command to check the nrpe, but I am > getting the error as > > root @ isosrvr : /opt/nrpe/bin >./check_nrpe -H localhost -n > CHECK_NRPE: Response packet had invalid CRC32. I have found that you cannot use localhost when using nrpe, try the hostname instead. -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 o.klein at comdivision.com Wed Feb 27 13:51:22 2008 From: o.klein at comdivision.com (Oliver Klein) Date: Wed, 27 Feb 2008 13:51:22 +0100 Subject: check disk_write? Message-ID: <53D7193AB78CCB4A9C10126A43DBDA6B0101EF7A@danielle.ger.cdip.net> Hi I have a problem with monitoring a mountpoint / disk on one of our servers, this server collect the traffic in our network. For a few days the server crashed and after reboot the filesystem was mounted read only and so no traffic data could be written on the disk. That?s very bad and know i?m looking for a solution to monitor the disk to prevent data lost. But I have no idea how to realize that?? Anyone can help me? Best regards Oliver Klein -------------- 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 kyle.odonnell at gmail.com Wed Feb 27 13:58:41 2008 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Wed, 27 Feb 2008 07:58:41 -0500 Subject: Plugin Output Standardization (was JMX plugin thread) In-Reply-To: <47C5313A.4040606@googlemail.com> References: <47C5313A.4040606@googlemail.com> Message-ID: <2274b9c30802270458r431e91c3k64383aa8c1235418@mail.gmail.com> My $0.02: plug-in output isn't completely arbitrary if you plan on processing performance data. considering that a single defined command can be turned into multiple services (assuming you use $ARG$ variables) I don't think printing the servicename would be helpful. The servicename is already available in both the web and notification output too. -Kyle On 2/27/08, Hari Sekhon wrote: > Marc Powell wrote: > > The plugin output text is completely arbitrary. Nagios only really cares > > about the exit code and that there's only one line of plugin output, > > whatever it is > Yes quite right, but standardization of output is nice for coherence and > to give a more professional unified feel. > > Do you have any preference between the two? There seems to unfortunately > be a mix between the two styles. > > Perhaps the official development guidelines could be adjusted to steel > people towards one standard output format on this? > > I'd vote for the "SERVICENAME SERVICESTATUS: Informational text" format > like "DISK OK: / is 50% full" ... > > -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 marc at ena.com Wed Feb 27 14:09:59 2008 From: marc at ena.com (Marc Powell) Date: Wed, 27 Feb 2008 07:09:59 -0600 Subject: check disk_write? In-Reply-To: <53D7193AB78CCB4A9C10126A43DBDA6B0101EF7A@danielle.ger.cdip.net> References: <53D7193AB78CCB4A9C10126A43DBDA6B0101EF7A@danielle.ger.cdip.net> Message-ID: <3701AE56-314D-4F54-A9DB-8535EF994264@ena.com> On Feb 27, 2008, at 6:51 AM, Oliver Klein wrote: > Hi > > I have a problem with monitoring a mountpoint / disk on one of our > servers, this server collect the traffic in our network. For a few > days the server crashed and after reboot the filesystem was mounted > read only and so no traffic data could be written on the disk. That > ?s very bad and know i?m looking for a solution to monitor the disk > to prevent data lost. But I have no idea how to realize that?? > Anyone can help me? > http://www.nagiosexchange.org/Linux.55.0.html? &tx_netnagext_pi1[p_view]=1014 looks like it'll suit your needs. -- 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 holger at CIS.FU-Berlin.DE Wed Feb 27 14:14:28 2008 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Wed, 27 Feb 2008 14:14:28 +0100 Subject: Plugin Output Standardization In-Reply-To: <2274b9c30802270458r431e91c3k64383aa8c1235418@mail.gmail.com> References: <47C5313A.4040606@googlemail.com> <2274b9c30802270458r431e91c3k64383aa8c1235418@mail.gmail.com> Message-ID: <20080227131428.GN41914931@CIS.FU-Berlin.DE> * kyle.odonnell at gmail.com [2008-02-27 07:58]: > I don't think printing the servicename would be helpful. The > servicename is already available in both the web and notification > output too. I agree, see the thread I started on this topic some time ago in nagiosplug-devel@: http://thread.gmane.org/gmane.network.nagios.plugins.devel/5155 While I'd also omit the status from the output, others would rather keep that or prefer to also keep the service name. So, we thought the best solution would be to make the output format configurable at build time, which I've implemented[*] but not yet committed. Holger [*] http://article.gmane.org/gmane.network.nagios.plugins.devel/5179 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 27 14:17:48 2008 From: marc at ena.com (Marc Powell) Date: Wed, 27 Feb 2008 07:17:48 -0600 Subject: Plugin Output Standardization (was JMX plugin thread) In-Reply-To: <2274b9c30802270458r431e91c3k64383aa8c1235418@mail.gmail.com> References: <47C5313A.4040606@googlemail.com> <2274b9c30802270458r431e91c3k64383aa8c1235418@mail.gmail.com> Message-ID: On Feb 27, 2008, at 6:58 AM, kyle.odonnell at gmail.com wrote: > My $0.02: > > plug-in output isn't completely arbitrary if you plan on processing > performance data. Sure, and there are other caveats as well but they weren't germane to the original context that I replied to. > considering that a single defined command can be turned into multiple > services (assuming you use $ARG$ variables) I don't think printing the > servicename would be helpful. The servicename is already available in > both the web and notification output too. The service_description and service the plugin is checking can be completely different. Both are useful information. -- 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 27 14:20:50 2008 From: marc at ena.com (Marc Powell) Date: Wed, 27 Feb 2008 07:20:50 -0600 Subject: Plugin Output Standardization (was JMX plugin thread) In-Reply-To: <47C5313A.4040606@googlemail.com> References: <47C5313A.4040606@googlemail.com> Message-ID: <78167438-7D1C-4F9B-9F91-06F19C34D737@ena.com> On Feb 27, 2008, at 3:45 AM, Hari Sekhon wrote: > Marc Powell wrote: >> The plugin output text is completely arbitrary. Nagios only really >> cares >> about the exit code and that there's only one line of plugin output, >> whatever it is > Yes quite right, but standardization of output is nice for coherence > and > to give a more professional unified feel. Yup, that's why guidelines exist. > Do you have any preference between the two? There seems to > unfortunately > be a mix between the two styles. > I'd vote for the "SERVICENAME SERVICESTATUS: Informational text" > format > like "DISK OK: / is 50% full" ... I use this format in plugins I write. -- 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 gbhatnag at gmail.com Wed Feb 27 14:40:20 2008 From: gbhatnag at gmail.com (Bhat nag) Date: Wed, 27 Feb 2008 19:10:20 +0530 Subject: (no subject) In-Reply-To: <47C55BB8.90802@googlemail.com> References: <774c6250802270259m47f7c77yf6fe343d644d013e@mail.gmail.com> <774c6250802270426u70477e25r6b19bd63c9c983c2@mail.gmail.com> <47C55BB8.90802@googlemail.com> Message-ID: <774c6250802270540p43de5b93n1d331016c94be982@mail.gmail.com> Hi, I tried with both the option using hostname as well as ip address. Still I am getting the same error. Regds G Bhat On Wed, Feb 27, 2008 at 6:16 PM, Hari Sekhon wrote: > Bhat nag wrote: > > After that I am used the command to check the nrpe, but I am > > getting the error as > > > > root @ isosrvr : /opt/nrpe/bin >./check_nrpe -H localhost -n > > CHECK_NRPE: Response packet had invalid CRC32. > I have found that you cannot use localhost when using nrpe, try the > hostname instead. > > -h > > -- > Hari Sekhon > > -------------- 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 27 14:44:26 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 27 Feb 2008 13:44:26 +0000 Subject: Plugin Output Standardization (was JMX plugin thread) In-Reply-To: <78167438-7D1C-4F9B-9F91-06F19C34D737@ena.com> References: <47C5313A.4040606@googlemail.com> <78167438-7D1C-4F9B-9F91-06F19C34D737@ena.com> Message-ID: <47C5693A.4070101@googlemail.com> Marc Powell wrote: >> Yes quite right, but standardization of output is nice for coherence >> and >> to give a more professional unified feel. >> > > Yup, that's why guidelines exist. > > >> Do you have any preference between the two? There seems to >> unfortunately >> be a mix between the two styles. >> > > >> I'd vote for the "SERVICENAME SERVICESTATUS: Informational text" >> format >> like "DISK OK: / is 50% full" ... >> > > I use this format in plugins I write I'm glad to hear that, I too write my plugins this way. I prefer this format as it's very clear and most of the plugins that I use from the std distribution seem to do this. I was thinking that a switch on each plugin to change the prefix on the output depending on your preferences might be the best thing to satisfy all, that way you can adjust all plugins to match one way or the other. You could use this to specify "" to change it to have no prefix if needed. -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 gcoochey at sapphire.gi Wed Feb 27 14:45:20 2008 From: gcoochey at sapphire.gi (Giles Coochey) Date: Wed, 27 Feb 2008 14:45:20 +0100 Subject: (no subject) In-Reply-To: <774c6250802270540p43de5b93n1d331016c94be982@mail.gmail.com> References: <774c6250802270259m47f7c77yf6fe343d644d013e@mail.gmail.com><774c6250802270426u70477e25r6b19bd63c9c983c2@mail.gmail.com><47C55BB8.90802@googlemail.com> <774c6250802270540p43de5b93n1d331016c94be982@mail.gmail.com> Message-ID: <9D30659ABCA7FB428CF91E386C3A5744BD97A2@hermes.sapphire-int.gi> G, When I installed NRPE recently I used the xinetd installation, whereas it looks like you're utilising the nrpe in daemon mode. Therefore I may not be of as much help here, but I would check things such as SeLinux configuration (try putting it in warn mode and see whether you still get this error) and iptables configuration on the box. When I performed this test, I actually only did it from the Nagios monitoring hosts (as that was indicative of my requirements), you might want to check that test as well. Thanks Giles ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Bhat nag Sent: 27 February 2008 14:40 To: Hari Sekhon Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] (no subject) Hi, I tried with both the option using hostname as well as ip address. Still I am getting the same error. Regds G Bhat On Wed, Feb 27, 2008 at 6:16 PM, Hari Sekhon wrote: Bhat nag wrote: > After that I am used the command to check the nrpe, but I am > getting the error as > > root @ isosrvr : /opt/nrpe/bin >./check_nrpe -H localhost -n > CHECK_NRPE: Response packet had invalid CRC32. I have found that you cannot use localhost when using nrpe, try the hostname instead. -h -- Hari Sekhon -------------- 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 ton.voon at altinity.com Wed Feb 27 15:13:20 2008 From: ton.voon at altinity.com (Ton Voon) Date: Wed, 27 Feb 2008 14:13:20 +0000 Subject: Getting ndoutils 1.4b7compiled under freeBSD 6.3 with mysql support In-Reply-To: <47C51B37.8080509@4lin.net> References: <47C51B37.8080509@4lin.net> Message-ID: <93B233B6-734B-4392-B283-C8922A3D34B3@altinity.com> On 27 Feb 2008, at 08:11, Denny Schierz wrote: > i really have problems to get ndoutils compiled under freeBSD 6.3 with > mysql support. MySQL headers are under /usr/local/include/mysql and > libs > are /usr/local/lib/mysql. > > ./configure --with-mysql-lib=/usr/local --with-mysql-inc=/usr/local/ > include > > does not work. (mysql.h not found, lmysqlclient ... no ...) > > i found a patched tar archive for with 1.4b3 but ... I assume you are referring to our patched 1.4b3: http://altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html Could you try that and see if it does detect mysql correctly? Ethan appears to have committed our suggested patch for mysql detection, but is only in CVS at the moment and not released as a new version yet. Ton http://www.altinity.com UK: +44 (0)870 787 9243 US: +1 866 879 9184 Fax: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From o.klein at comdivision.com Wed Feb 27 15:20:56 2008 From: o.klein at comdivision.com (Oliver Klein) Date: Wed, 27 Feb 2008 15:20:56 +0100 Subject: check disk_write? In-Reply-To: <3701AE56-314D-4F54-A9DB-8535EF994264@ena.com> References: <53D7193AB78CCB4A9C10126A43DBDA6B0101EF7A@danielle.ger.cdip.net> <3701AE56-314D-4F54-A9DB-8535EF994264@ena.com> Message-ID: <53D7193AB78CCB4A9C10126A43DBDA6B0101EF7B@danielle.ger.cdip.net> Hi perfect this is exactly what i?m looking for but I load the script on the remote server and define command I the nrpe.cfg on the remote host. On the nagios server I define the disk_checkrw in commands.cfg and also in the host.cfg . # 'check_diskrw' commands.cfg definition define command{ command_name check_diskrw command_line $USER1$/check_diskrw } # command definition in nrpe.cfg command[check_diskrw]=/usr/local/nagios/libexec/check_diskrw I use the the command on console it wrote "OK" in the nagios webinterface I got "write error on" What I had missing? maybe I have to touch a file? sorry but i?m a little bit confused today. Best regards Oliver Klein -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Wednesday, February 27, 2008 2:10 PM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] check disk_write? On Feb 27, 2008, at 6:51 AM, Oliver Klein wrote: > Hi > > I have a problem with monitoring a mountpoint / disk on one of our > servers, this server collect the traffic in our network. For a few > days the server crashed and after reboot the filesystem was mounted > read only and so no traffic data could be written on the disk. That > ?s very bad and know i?m looking for a solution to monitor the disk > to prevent data lost. But I have no idea how to realize that?? > Anyone can help me? > http://www.nagiosexchange.org/Linux.55.0.html? &tx_netnagext_pi1[p_view]=1014 looks like it'll suit your needs. -- 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 hpsekhon at googlemail.com Wed Feb 27 15:55:42 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 27 Feb 2008 14:55:42 +0000 Subject: check disk_write? In-Reply-To: <53D7193AB78CCB4A9C10126A43DBDA6B0101EF7B@danielle.ger.cdip.net> References: <53D7193AB78CCB4A9C10126A43DBDA6B0101EF7A@danielle.ger.cdip.net> <3701AE56-314D-4F54-A9DB-8535EF994264@ena.com> <53D7193AB78CCB4A9C10126A43DBDA6B0101EF7B@danielle.ger.cdip.net> Message-ID: <47C579EE.9060007@googlemail.com> Oliver Klein wrote: > Hi > > perfect this is exactly what i?m looking for but I load the script on the remote server and define command I the nrpe.cfg on the remote host. > On the nagios server I define the disk_checkrw in commands.cfg and also in the host.cfg . > > > # 'check_diskrw' commands.cfg definition > define command{ > command_name check_diskrw > command_line $USER1$/check_diskrw > } > > # command definition in nrpe.cfg > command[check_diskrw]=/usr/local/nagios/libexec/check_diskrw > > I use the the command on console it wrote "OK" in the nagios webinterface I got "write error on" > What I had missing? maybe I have to touch a file? sorry but i?m a little bit confused today. > You're probably trying it on the command line as root and nrpe is running it as a regular user that may not have permission to write that location.... Either that or your nrpe.cfg is wrong. -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 Roger at NagiosWiki.com Wed Feb 27 17:16:48 2008 From: Roger at NagiosWiki.com (Roger) Date: Wed, 27 Feb 2008 08:16:48 -0800 Subject: auditing Nagios configs In-Reply-To: <1204036874.6279.16.camel@IT-15500-LNXUB> References: <2b7af7c40802251620l2fd5deeep615cad800ec75ce3@mail.gmail.com> <1204036874.6279.16.camel@IT-15500-LNXUB> Message-ID: <2b7af7c40802270816t35cbb37cq9564225d53e5427@mail.gmail.com> On 2/26/08, Mark L Potter wrote: > > > On Mon, 2008-02-25 at 16:20 -0800, Roger wrote: > > Does anyone have any tools or tips on auditing Nagios configs when > > you're consolidating boxes? > > > > > I would be pretty easy to do with a little sed and awk or grep and cut > script. If you want to describe your config a little more I might could > throw something together for you. I would need to know if you are using > single file configs or if you are using multiple files and if those > files are all in the same dir and so on. I think it would be under 20 > lines total to get what you want. So, for example, say ou have servers 1, 2, 3. And they have services ABC, ABXYZ, and AWC respectively. Say I know server 1 and 3 should be the same in terms of service checks, so now I have to go and add services B to server 3 and service W to server 1 so that they both have ABCW as services. Right now, I'm doing all of this manually, and am looking for quick(er) ways to do so. Many environments grow organically and people just slam in checks without thinking about what other servers might need that same check, and then at the end of the day when one person has to make sense of it all, manually sifting through everything can get time consuming. -------------- 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 Itayemi.A at ng.celtel.com Wed Feb 27 17:26:52 2008 From: Itayemi.A at ng.celtel.com (Ayotunde Itayemi) Date: Wed, 27 Feb 2008 17:26:52 +0100 Subject: (no subject) Message-ID: <99487797D76C7841AEEDE4A1DCA86C7001BBB2B0@VNL-LA01EX04S.vmobile-nigeria.com> Hi, am I right in thinking that you are running your NRPE daemon under inetd's control? If yes, try running the NRPE daemon standalone. Then repeat your tests. Let's know if it works. For some reason I was never able to run NRPE on AIX under inetd successfully - I got something similar to the error you reported below. $ ps -ef | grep nrpe nagios 3027572 1 0 Feb 19 - 0:37 /aixmon/nrpe/bin/nrpe -d -c /aixmon/nrpe/etc/nrpe.cfg $ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Bhat nag Sent: Wednesday, February 27, 2008 2:40 PM To: Hari Sekhon Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] (no subject) Hi, I tried with both the option using hostname as well as ip address. Still I am getting the same error. Regds G Bhat On Wed, Feb 27, 2008 at 6:16 PM, Hari Sekhon wrote: Bhat nag wrote: > After that I am used the command to check the nrpe, but I am > getting the error as > > root @ isosrvr : /opt/nrpe/bin >./check_nrpe -H localhost -n > CHECK_NRPE: Response packet had invalid CRC32. I have found that you cannot use localhost when using nrpe, try the hostname instead. -h -- Hari Sekhon DISCLAIMER: This email and any attachments are confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If received in error, do not open, read, copy, disclose, use or store it in any way, or permit others to do so but please notify the sender immediately and delete the original email and attachments from your machine. If you are not the addressee or the intended recipient, any use, disclosure, copying, distribution or action taken in reliance of it, is prohibited and unlawful. The information, attachments, opinions or advice contained in this email are not necessarily the views or opinions of Celtel Nigeria Limited or its affiliates and without more, shall not commit Celtel Nigeria Limited or its affiliates. Celtel Nigeria Limited and its affiliates do not accept liability for claims, losses, or damages caused by the inaccuracy, incorrectness, or lack of integrity of this email or any 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 prashanthppp at gmail.com Wed Feb 27 17:39:36 2008 From: prashanthppp at gmail.com (pra$h Online!!!! !!) Date: Wed, 27 Feb 2008 17:39:36 +0100 Subject: Tunning Nagios Perfomance Message-ID: <49f8fec0802270839q3a5eb59bi7beb8cd65b4069de@mail.gmail.com> Hi, I have configured two Nagios Server, One is Primary(A) and Other is Secondary(B). In primary I have Configured 891 active host check and 8761 active service check and passive service check 1473. In secondary i have configured 271 active host check and 2853 active service check. Primary server performance is listed below : -------------------------------------------------------------------- : Time Frame Checks Completed <= 1 minute: 913 (10.7%) <= 5 minutes: 4852 (56.9%) <= 15 minutes: 8521 (100.0%) <= 1 hour: 8521 (100.0%) Since program start: 8521 (100.0%) Metric Min. Max. Average Check Execution Time: 0.04 sec 25.92 sec 0.354 sec Check Latency: 149.17 sec 202.23 sec 172.017 sec Percent State Change: 0.00% 37.04% 0.06% Passive Service Checks: Time Frame Checks Completed <= 1 minute: 228 (18.3%) <= 5 minutes: 829 (66.4%) <= 15 minutes: 1136 (91.0%) <= 1 hour: 1249 (100.0%) Since program start: 1249 (100.0%) Active Host Checks: Time Frame Checks Completed <= 1 minute: 8 (0.9%) <= 5 minutes: 39 (4.4%) <= 15 minutes: 63 (7.1%) <= 1 hour: 74 (8.3%) Since program start: 74 (8.3%) Secondary server performance ================================ Checks: Time Frame Checks Completed <= 1 minute: 379 (13.3%) <= 5 minutes: 2621 (91.9%) <= 15 minutes: 2853 (100.0%) <= 1 hour: 2853 (100.0%) Since program start: 2853 (100.0%) Metric Min. Max. Average Check Execution Time: 0.01 sec 60.02 sec 0.889 sec Check Latency: 0.00 sec 3.43 sec 0.440 sec Percent State Change: 0.00% 0.00% 0.00% Passive Service Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% Active Host Checks: Time Frame Checks Completed <= 1 minute: 5 (1.8%) <= 5 minutes: 15 (5.5%) <= 15 minutes: 16 (5.9%) <= 1 hour: 18 (6.6%) Since program start: 20 (7.4%) ================================================================ Can any body tell me how to reduce the latency of my primary server because if i restarted a nagios agent in client pc it is taking minimum 15 -20 minutes to come up the service to normal state and suggest me how to do the Load balance to get good performance for both servers. Thanks in Advance Regards Prashanth P nair. -------------- 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 emanners at fsu.edu Wed Feb 27 17:56:37 2008 From: emanners at fsu.edu (Edson Manners) Date: Wed, 27 Feb 2008 11:56:37 -0500 Subject: Nagios DB2 plugin problems Message-ID: <47C59645.3090101@fsu.edu> Hi, Has anyone on this list had any luck recently with the nagios DB2 plugins on these Nagios Exchange pages? http://www.nagiosexchange.org/DB2.156.0.html?&tx_netnagext_pi1[p_view]=373 http://www.nagiosexchange.org/DB2.156.0.html?&tx_netnagext_pi1%5bp_view%5d=373> I'm having trouble with what seems like the dbd-db2 (DBD::DB2) perl module install both from source and "perl -MCPAN -e 'install DBD::DB2'" on RHEL5. Has anyone else had a different or similar experience. I'm heading to a PERL forum to see if it is really a module issue also. Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3529 bytes Desc: S/MIME Cryptographic 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 christian.masopust at siemens.com Wed Feb 27 18:04:32 2008 From: christian.masopust at siemens.com (Masopust, Christian) Date: Wed, 27 Feb 2008 18:04:32 +0100 Subject: Very slow startup of Nagios when using NDO Message-ID: <60721B67EAF0994EAFFB561767B700140256567A@nets13ha.ww300.siemens.net> Hi all, my Nagios server's startup with activated NDO is very slow (appr. 2-3 minutes)! anyone else seeing this behaviour? possibility to speed it up (besides deactivating NDO :-)) christian ___________________________________________________________ Christian Masopust SIEMENS AG SIS PSE TMF Tel: +43 (0) 5 1707 26866 E-mail: christian.masopust at siemens.com Addr: Austria, 1210 Vienna, Siemensstra?e 90-92, B. 33, Rm. 243 Leader of the RUGA Firma: Siemens Aktiengesellschaft ?sterreich, Rechtsform: Aktiengesellschaft, Sitz: Wien, Firmenbuchnummer: FN 60562 m, Firmenbuchgericht: Handelsgericht Wien, DVR 0001708 ___________________________________________________________ -------------- 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 emanners at fsu.edu Wed Feb 27 19:09:01 2008 From: emanners at fsu.edu (Edson Manners) Date: Wed, 27 Feb 2008 13:09:01 -0500 Subject: Nagios DB2 plugin problems In-Reply-To: <47C59645.3090101@fsu.edu> References: <47C59645.3090101@fsu.edu> Message-ID: <47C5A73D.1020708@fsu.edu> UPDATE, The install required me to add a new entry for the lib directory (/opt/ibm/db2/V8.1/lib/) to ld.so.conf.d. The I had to update the cache for ldconfig by running 'ldconfig'. So it wasn't a nagios plugin issue at all. Hopefully IBM can get around to having better documentation in the future. I wonder why they hate noobs so much? Edson Manners wrote: > Hi, > Has anyone on this list had any luck recently with the nagios DB2 > plugins on these Nagios Exchange pages? > > http://www.nagiosexchange.org/DB2.156.0.html?&tx_netnagext_pi1[p_view]=373 > > http://www.nagiosexchange.org/DB2.156.0.html?&tx_netnagext_pi1%5bp_view%5d=373> > > > I'm having trouble with what seems like the dbd-db2 (DBD::DB2) perl > module install both from source and "perl -MCPAN -e 'install > DBD::DB2'" on RHEL5. > Has anyone else had a different or similar experience. I'm heading to > a PERL forum to see if it is really a module issue also. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3529 bytes Desc: S/MIME Cryptographic 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.calcote at gmail.com Wed Feb 27 23:03:25 2008 From: john.calcote at gmail.com (John Calcote) Date: Wed, 27 Feb 2008 15:03:25 -0700 Subject: dnx 0.15.1 released Message-ID: <3ee91eb90802271403t48dd6154v32964cb913f681d8@mail.gmail.com> This note is to announce the release of dnx 0.15.1 - a (very!) short bug fix release. I apologize for the short length of time since 0.15 was released, but I felt it was important to get these few very significant fixes into a new release as soon as possible. Here are the release notes: Version 0.15.1: =============== - Bug fixes - mostly related to daemon startup, shutdown and timing. - Updated INSTALL file to reflect dnx applicability to Nagios 3.0rc3. I very much appreciate the help I received from the community to get these issues taken care of. For more information and to download this release, please refer to the dnx web site at http://dnx.sourceforge.net and to the dnx sourceforge project site at http://www.sourceforge.net/projects/dnx. Thanks for your patience. 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/ From patrick.morris at hp.com Wed Feb 27 23:12:35 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Wed, 27 Feb 2008 14:12:35 -0800 Subject: Very slow startup of Nagios when using NDO In-Reply-To: <60721B67EAF0994EAFFB561767B700140256567A@nets13ha.ww300.siemens.net> References: <60721B67EAF0994EAFFB561767B700140256567A@nets13ha.ww300.siemens.net> Message-ID: <20080227221235.GB30836@bakgwai.americas.hpqcorp.net> On Wed, 27 Feb 2008, Masopust, Christian wrote: > my Nagios server's startup with activated NDO is very slow (appr. 2-3 minutes)! > > anyone else seeing this behaviour? possibility to speed it up (besides deactivating NDO :-)) Yes -- slow startups with ndoutils enabled are very common. Things to do to speed it up would include having the database on good, fast box, limiting the amount of history Nagios keeps in the databases, and making sure you have a recent version of ndoutils -- it's gotten faster than it used to be. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From linuxmail at 4lin.net Thu Feb 28 08:47:44 2008 From: linuxmail at 4lin.net (Denny Schierz) Date: Thu, 28 Feb 2008 08:47:44 +0100 Subject: Getting ndoutils 1.4b7compiled under freeBSD 6.3 with mysql support In-Reply-To: <93B233B6-734B-4392-B283-C8922A3D34B3@altinity.com> References: <47C51B37.8080509@4lin.net> <93B233B6-734B-4392-B283-C8922A3D34B3@altinity.com> Message-ID: <47C66720.4050101@4lin.net> Ton Voon schrieb: > > On 27 Feb 2008, at 08:11, Denny Schierz wrote: > >> i really have problems to get ndoutils compiled under freeBSD 6.3 with >> mysql support. MySQL headers are under /usr/local/include/mysql and libs >> are /usr/local/lib/mysql. >> >> ./configure --with-mysql-lib=/usr/local >> --with-mysql-inc=/usr/local/include >> >> does not work. (mysql.h not found, lmysqlclient ... no ...) >> >> i found a patched tar archive for with 1.4b3 but ... > > I assume you are referring to our patched 1.4b3: > http://altinity.blogs.com/dotorg/2007/04/better_mysqlcli.html > > Could you try that and see if it does detect mysql correctly? thanks for that:-) , compiling under freebsd is, ... a bit strange ... for me as linux user: ./configure --with-mysql-lib=/usr/local/mysql --with-mysql-inc=/usr/local/include/mysql was working. cu denny -- Stoppt den ?berwachungswahn - Stoppt den Sch?uble Katalog: http://www.nopsis.de -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP 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 MachielR at agilitytech.co.za Thu Feb 28 08:51:58 2008 From: MachielR at agilitytech.co.za (Machiel Richards) Date: Thu, 28 Feb 2008 09:51:58 +0200 Subject: user specific hosts Message-ID: <350DEB176C3F20459BE245610997FD7F02078F51@caretech.co.za> Hi everyone I am looking for some info but I am not sure whether this can be done. We are currently running Nagios 2.10 and are monitoring 52 hosts in our organization. We do however have some clients that is only interested in seeing their production systems and the rest of the groups' servers. Is there a way to set up a user and give it a specific set of hosts that it is allowed to see on Nagios. Say for instance we create user test and they log into Nagios with user test then they should only see the hosts that they are the owners of and not any other hosts? Regards *** Disclaimer *** The information contained in this e-mail is confidential and legally privileged and is intended solely for the addressee and to others who have the authority to receive it. Access to this e-mail by anyone else is unauthorized and as such, any disclosure, copying, distribution or any action taken or omitted in reliance on it is unlawful. If you have received this e-mail in error, please notify the sender immediately. The views expressed in this e-mail are the views of the individual sender and should in no way be construed as the views of the Company. The Company is not liable to ensure that outgoing e-mails are virus-free. The Company is not liable, should information or data, for whatever reason, be corrupted or fail to reach its intended addressee. The Company is not liable for any loss or damage of whatsoever nature and howsoever arising resulting from the opening or the use of the information in this e-mail, including its attachments and links. The sender of this e-mail is subject to and bound by the terms and conditions of Company?s Electronic Communications Usage Policy. -------------- 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 andurin at process-zero.de Thu Feb 28 09:13:54 2008 From: andurin at process-zero.de (=?ISO-8859-1?Q?Hendrik_B=E4cker?=) Date: Thu, 28 Feb 2008 09:13:54 +0100 Subject: user specific hosts In-Reply-To: <350DEB176C3F20459BE245610997FD7F02078F51@caretech.co.za> References: <350DEB176C3F20459BE245610997FD7F02078F51@caretech.co.za> Message-ID: <47C66D42.3050002@process-zero.de> Hi Machiel, Machiel Richards schrieb: > Hi everyone > > Say for instance we create user test and they log into > Nagios with user test then they should only see the hosts that they are > the owners of and not any other hosts? > Create a user 'test', define a nagios contact called 'test' put him into a contactgroup and put that contactgroup to the specified host. For further information please (re-)read: http://nagios.sourceforge.net/docs/2_0/cgiauth.html Regards Hendrik -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2185 bytes Desc: S/MIME Cryptographic 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 linuxmail at 4lin.net Thu Feb 28 11:08:09 2008 From: linuxmail at 4lin.net (Denny Schierz) Date: Thu, 28 Feb 2008 11:08:09 +0100 Subject: DB2v8 check from Nagios3 freebsd Installation Message-ID: <47C68809.5030807@4lin.net> hi, we have Nagios 3rc2 on our freebsd 6.2 and we want to check the DB2 v8 server, which runs under RHL. I red now the (the old) howto from IBM "Installing the DB2 UniversalDatabase Plug-in for te Nagios System Monitor" ftp://ftp.software.ibm.com/software/data/pubs/papers/nagios.pdf After a sort overview, it seems, that i have a problem, cause the client does not run under freebsd. So, how can i check the DB2 without installing Nagios on a Linux server? cu denny -- Stoppt den ?berwachungswahn - Stoppt den Sch?uble Katalog: http://www.nopsis.de -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP 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 hpsekhon at googlemail.com Thu Feb 28 11:21:05 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 28 Feb 2008 10:21:05 +0000 Subject: DB2v8 check from Nagios3 freebsd Installation In-Reply-To: <47C68809.5030807@4lin.net> References: <47C68809.5030807@4lin.net> Message-ID: <47C68B11.3040608@googlemail.com> Denny Schierz wrote: > hi, > > we have Nagios 3rc2 on our freebsd 6.2 and we want to check the DB2 v8 > server, which runs under RHL. > > I red now the (the old) howto from IBM "Installing the DB2 > UniversalDatabase Plug-in for te Nagios System Monitor" > > ftp://ftp.software.ibm.com/software/data/pubs/papers/nagios.pdf > > After a sort overview, it seems, that i have a problem, cause the client > does not run under freebsd. So, how can i check the DB2 without > installing Nagios on a Linux server? > > cu denny > Use one of the Nagios remote execution methods to have the plugin run on a linux box and feed the result to the Nagios server on FreeBSD. NRPE, NSCA or check_by_ssh are the first things to look at. This way nagios stays on the FreeBSD server and the plugin runs on a Linux box. -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 linuxmail at 4lin.net Thu Feb 28 11:50:52 2008 From: linuxmail at 4lin.net (Denny Schierz) Date: Thu, 28 Feb 2008 11:50:52 +0100 Subject: DB2v8 check from Nagios3 freebsd Installation In-Reply-To: <47C68B11.3040608@googlemail.com> References: <47C68809.5030807@4lin.net> <47C68B11.3040608@googlemail.com> Message-ID: <47C6920C.10503@4lin.net> hi, Hari Sekhon schrieb: > Use one of the Nagios remote execution methods to have the plugin run on > a linux box and feed the result to the Nagios server on FreeBSD. > NRPE, NSCA or check_by_ssh are the first things to look at. that was my idea first, but the plugin, described in the howto, doesn't runs alone, like check_ssh does etc. You have to go to the nagios page and take a look. So, its just useless for us. any suggestions? cu deny -- Stoppt den ?berwachungswahn - Stoppt den Sch?uble Katalog: http://www.nopsis.de -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 253 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP 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 Gavin.Williams at card.co.uk Thu Feb 28 12:41:06 2008 From: Gavin.Williams at card.co.uk (Gavin Williams) Date: Thu, 28 Feb 2008 11:41:06 -0000 Subject: Nagios Perfdata Message-ID: Hi there, I'm having some issues with Nagios 2.10 and Perfdata... Namely, i cant get any perfdata saved out. The relevant lines in nagios.cfg look like this: process_performance_data=1 service_perfdata_file=/opt/nagios/centreon/var/service_perf.log service_perfdata_file_template="$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$" service_perfdata_file_mode=2 However even after severel restarts it doesnt generate any perfdata... I'm at a loss as to what to look at... Any ideas? Cheers Gavin W ________________________________________________________________________ Please consider the environment - do you really need to print this email? ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System - http://www.messagelabs.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 andurin at process-zero.de Thu Feb 28 12:48:25 2008 From: andurin at process-zero.de (=?ISO-8859-1?Q?Hendrik_B=E4cker?=) Date: Thu, 28 Feb 2008 12:48:25 +0100 Subject: Nagios Perfdata In-Reply-To: References: Message-ID: <47C69F89.9080303@process-zero.de> Hi Gavin, Gavin Williams schrieb: > Hi there, > > The relevant lines in nagios.cfg look like this: > > process_performance_data=1 > > service_perfdata_file=/opt/nagios/centreon/var/service_perf.log > > service_perfdata_file_template="$LASTSERVICECHECK$" "$HOSTNAME$" > "$SERVICEDESC$" "$SERVICEOUTPUT$" "$SERVICESTATE$" "$SERVICEPERFDATA$" > > service_perfdata_file_mode=2 > Should it not be file_mode= (a or w) What are your service definitions like? Maybe you disabled the performance data processing there? Cheers Hendrik -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2185 bytes Desc: S/MIME Cryptographic 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 ugob at lubik.ca Thu Feb 28 13:21:52 2008 From: ugob at lubik.ca (Ugo Bellavance) Date: Thu, 28 Feb 2008 07:21:52 -0500 Subject: Retention? Message-ID: Hi, I have 2 nagios servers, and one is showing an unwanted behavior. When I restart it, it kind of resets the state of the services. Therefore, if I disable a test using an external command, when I reload or restart the nagios process, this 'disable' is ignored. relevant nagios.cfg entries: retain_state_information=1 state_retention_file=/var/log/nagios/status.dat use_retained_program_state=1 Where should I start looking? Regards, ugo ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akennedy at cyberlinkint.com Thu Feb 28 15:17:52 2008 From: akennedy at cyberlinkint.com (Adam Kennedy) Date: Thu, 28 Feb 2008 09:17:52 -0500 Subject: Retention? In-Reply-To: References: Message-ID: <47C6C290.2090701@cyberlinkint.com> State retention data is written to the retention file at the interval specified by retention_update_interval The default is to write it every hour. This is also dependent on how you are restarting nagios. Killing off the process with -9 won't allow nagios to write it's data. I would also check the permissions of the retention file to verify nagios can write to it. Does that file have any data in it? Ugo Bellavance wrote: > Hi, > > I have 2 nagios servers, and one is showing an unwanted behavior. > When I restart it, it kind of resets the state of the services. > Therefore, if I disable a test using an external command, when I reload > or restart the nagios process, this 'disable' is ignored. > > relevant nagios.cfg entries: > > retain_state_information=1 > state_retention_file=/var/log/nagios/status.dat > use_retained_program_state=1 > > Where should I start looking? > > Regards, > > ugo > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Adam Kennedy Senior Network Administrator Cyberlink Technologies, Inc. Phone: 888-293-3693 x4352 Fax: 574-855-5761 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 28 15:36:23 2008 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Thu, 28 Feb 2008 15:36:23 +0100 Subject: Possible bug in 3.0rc3 Message-ID: <20080228143623.GA16048@eric.schwarzvogel.de> Hi! I think I may have found a bug in the latest rc. I'm not sure if it's my own fault, so I'll aks here, first. Apparently, this line: service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ in my nagios.cfg is ignored. I can change it to whatevere I want, Nagios always uses the template as specified in xdata/xpddefault.h I've tried fixing it there and recompiling and voila, it works. While this proves that I'm not overwriting my own setting somewhere in my config, it does not constitute a proper fix, of course. Any ideas/comments/me-toos? Regards, Tobias -- printk(KERN_ERR "i82092aa: Oops, you did something we didn't think of.\n"); linux-2.6.19/drivers/pcmcia/i82092.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 jeffrey.hill at dccusa.com Thu Feb 28 15:50:08 2008 From: jeffrey.hill at dccusa.com (Hill Jeffrey) Date: Thu, 28 Feb 2008 08:50:08 -0600 Subject: Check_Disk Issues Message-ID: <5471A93206932E479EE7620FE335696D0A3372E3@exchange01.corp.dccusa.com> In the commands.cfg file. define command{ command_name check_disk command_line $USER1$/check_disk -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p $ARG3$ } In the services.cfg file. define service{ host_name X service_description check_disk check_command check_disk!80%!90%!* max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups systems-admins } In the web interface I am getting Current Status: CRITICAL Status Information: (Return code of 127 is out of bounds - plugin may be missing) I have checked the libexec and the check_disk command is in /usr/local/nagios/libexec. I have also got it to error with a different error which is Current Status: UNKNOWN Status Information: Unknown argument I have restarted with no errors, and have checked and found no errors involved with check_disk not being installed, or it would not let me restart the Nagios service. Any ideas on what I am doing wrong? Thanks, Jeff -------------- 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 28 15:52:12 2008 From: marc at ena.com (Marc Powell) Date: Thu, 28 Feb 2008 08:52:12 -0600 Subject: Retention? 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 Ugo Bellavance > Sent: Thursday, February 28, 2008 6:22 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Retention? > > Hi, > > I have 2 nagios servers, and one is showing an unwanted behavior. > When I restart it, it kind of resets the state of the services. > Therefore, if I disable a test using an external command, when I reload > or restart the nagios process, this 'disable' is ignored. > > relevant nagios.cfg entries: > > retain_state_information=1 > state_retention_file=/var/log/nagios/status.dat > use_retained_program_state=1 > > Where should I start looking? You need to set the values of retain_status_information and retain_nonstatus_information in your service definitions. http://nagios.sourceforge.net/docs/2_0/xodtemplate.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 kyle.odonnell at gmail.com Thu Feb 28 15:54:05 2008 From: kyle.odonnell at gmail.com (kyle.odonnell at gmail.com) Date: Thu, 28 Feb 2008 09:54:05 -0500 Subject: Check_Disk Issues In-Reply-To: <5471A93206932E479EE7620FE335696D0A3372E3@exchange01.corp.dccusa.com> References: <5471A93206932E479EE7620FE335696D0A3372E3@exchange01.corp.dccusa.com> Message-ID: <2274b9c30802280654w56969292q563bc8d9f040d9bb@mail.gmail.com> there is no -H hostaddress option for check_disk it is a local check. if you want to check filesystems remotely use nrpe or ssh. On 2/28/08, Hill Jeffrey wrote: > In the commands.cfg file. > define command{ > command_name check_disk > command_line $USER1$/check_disk -H $HOSTADDRESS$ -w $ARG1$ -c > $ARG2$ -p $ARG3$ > } > In the services.cfg file. > define service{ > host_name X > service_description check_disk > check_command check_disk!80%!90%!* > max_check_attempts 5 > normal_check_interval 5 > retry_check_interval 3 > check_period 24x7 > notification_interval 30 > notification_period 24x7 > notification_options w,c,r > contact_groups systems-admins > } > > In the web interface I am getting > Current Status: CRITICAL > Status Information: (Return code of 127 is out of bounds - plugin may be > missing) > > I have checked the libexec and the check_disk command is in > /usr/local/nagios/libexec. I have also got it to error with a different > error which is Current Status: > UNKNOWN > > Status Information: > Unknown argument > > I have restarted with no errors, and have checked and found no errors > involved with check_disk not being installed, or it would not let me > restart the Nagios service. > > Any ideas on what I am doing wrong? > > > > > Thanks, > > Jeff > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yassirovich2000 at gmail.com Thu Feb 28 16:00:26 2008 From: yassirovich2000 at gmail.com (Yassir lhahi) Date: Thu, 28 Feb 2008 15:00:26 +0000 Subject: Notification by mail Message-ID: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> Hello i've installed nagios3 in a suse10 distribution every thing is allright but the only problem is the mail notification:( i expalin my architecture) nagios is in server1 postfix well configured in server2 how can i link between the both servers inorder to send the mails PLease help me as soon as possible this is a very big problem for me Thks in advance Yassir -------------- 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 28 16:06:34 2008 From: marc at ena.com (Marc Powell) Date: Thu, 28 Feb 2008 09:06:34 -0600 Subject: Check_Disk Issues In-Reply-To: <5471A93206932E479EE7620FE335696D0A3372E3@exchange01.corp.dccusa.com> References: <5471A93206932E479EE7620FE335696D0A3372E3@exchange01.corp.dccusa.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Hill Jeffrey > Sent: Thursday, February 28, 2008 8:50 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check_Disk Issues > > In the commands.cfg file. > define command{ > command_name check_disk > command_line $USER1$/check_disk -H $HOSTADDRESS$ -w $ARG1$ -c > $ARG2$ -p $ARG3$ > } check_disk doesn't connect to remote machines or understand a -H parameter. > In the web interface I am getting > Current Status: CRITICAL > Status Information: (Return code of 127 is out of bounds - plugin may be > missing) 127 means the plugin isn't in the location Nagios is told it lives in. Is the value of $USER1$ set to /usr/local/nagios/libexec in resource.cfg? Is resource.cfg included as a resource_file in nagios.cfg? > I have checked the libexec and the check_disk command is in > /usr/local/nagios/libexec. I have also got it to error with a different > error which is Current Status: > UNKNOWN > > Status Information: > Unknown argument I suspect you corrected the above $USER1$ error but now you're seeing the effects of using '-H $HOSTADDRESS$'. When run from the command line -- $ ./check_disk -H 99.99.99.99 -w 10% -c 5% -p * ./check_disk: invalid option -- H Unknown argument Usage: check_disk -w limit -c limit [-p path | -x device] [-t timeout][-m] [-e] [-W limit] [-K limit] [-v] [-q] You can always find the parameters a standard plugin understands by running the plugin with '--help'. You should continue to test from the command line until you get the parameters right (hint: -p * isn't going to work as you think it is; you might not even need it). > I have restarted with no errors, and have checked and found no errors > involved with check_disk not being installed, or it would not let me > restart the Nagios service. Nagios does not verify that the plugins you specify actually exist. If they do not, you see the 127 return code as above when it tries to use it. -- 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 akennedy at cyberlinkint.com Thu Feb 28 16:08:31 2008 From: akennedy at cyberlinkint.com (Adam Kennedy) Date: Thu, 28 Feb 2008 10:08:31 -0500 Subject: Notification by mail In-Reply-To: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> References: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> Message-ID: <47C6CE6F.2010308@cyberlinkint.com> Yassir lhahi wrote: > Hello > i've installed nagios3 in a suse10 distribution every thing is allright > but the only problem is the mail notification:( i expalin my architecture) > nagios is in server1 > postfix well configured in server2 > how can i link between the both servers inorder to send the mails > PLease help me as soon as possible this is a very big problem for me > Thks in advance > Yassir If you have the nail package installed on the nagios box for sending messages then you can edit /etc/nail.rc to have this line somewhere: set smtp=mail.yourdomain.com Obviously change mail.yourdomain.com to be whatever FQDN/IP your mail server is. Then you can let nagios send messages through /usr/bin/mail -- Adam Kennedy Senior Network Administrator Cyberlink Technologies, Inc. Phone: 888-293-3693 x4352 Fax: 574-855-5761 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akennedy at cyberlinkint.com Thu Feb 28 16:11:23 2008 From: akennedy at cyberlinkint.com (Adam Kennedy) Date: Thu, 28 Feb 2008 10:11:23 -0500 Subject: Notification by mail In-Reply-To: <47C6CE6F.2010308@cyberlinkint.com> References: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> <47C6CE6F.2010308@cyberlinkint.com> Message-ID: <47C6CF1B.2070503@cyberlinkint.com> Adam Kennedy wrote: > Yassir lhahi wrote: >> Hello >> i've installed nagios3 in a suse10 distribution every thing is allright >> but the only problem is the mail notification:( i expalin my architecture) >> nagios is in server1 >> postfix well configured in server2 >> how can i link between the both servers inorder to send the mails >> PLease help me as soon as possible this is a very big problem for me >> Thks in advance >> Yassir > > If you have the nail package installed on the nagios box for sending > messages then you can edit /etc/nail.rc to have this line somewhere: > set smtp=mail.yourdomain.com > > Obviously change mail.yourdomain.com to be whatever FQDN/IP your mail > server is. Then you can let nagios send messages through /usr/bin/mail > Correction to my previous email. Suse10 calls this package "mailx". The file to edit is /etc/mail.rc on that distribution. Hope that helps. -- Adam Kennedy Senior Network Administrator Cyberlink Technologies, Inc. Phone: 888-293-3693 x4352 Fax: 574-855-5761 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Feb 28 16:13:15 2008 From: lflacayo at cps.k12.il.us (Luis Fernando Lacayo) Date: Thu, 28 Feb 2008 09:13:15 -0600 Subject: Question on services configuration. In-Reply-To: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> References: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> Message-ID: <1204211595.31176.26.camel@UNIX-TEAM-LACAYO> Good Day everyone, I have been struggling with a configuration issue. I trying to configure a service to check an samba share. I am using the check_disk_smb plug-in, I have several shares and I have been able to successfully configure all but one. The problem is that the password has an "!". When I try the command from the command line it works fine, but not within Nagios, because the ! is a field delimiter within the service configuration. I have tried using $! and putting the password in single and double quotes. I am not able to change the password because the share is used by many manual and automated processes. any help will be greatly appreciated. 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 aaron.segura at cabelas.com Thu Feb 28 16:21:28 2008 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Thu, 28 Feb 2008 08:21:28 -0700 Subject: Question on services configuration. In-Reply-To: <1204211595.31176.26.camel@UNIX-TEAM-LACAYO> References: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> <1204211595.31176.26.camel@UNIX-TEAM-LACAYO> Message-ID: <1204212088.31747.123.camel@sidhqmis4grdv91> On Thu, 2008-02-28 at 09:13 -0600, Luis Fernando Lacayo wrote: > Good Day everyone, > > I have been struggling with a configuration issue. I trying to configure > a service to check an samba share. I am using the check_disk_smb > plug-in, I have several shares and I have been able to successfully > configure all but one. The problem is that the password has an "!". > When I try the command from the command line it works fine, but not > within Nagios, because the ! is a field delimiter within the service > configuration. I have tried using $! and putting the password in single > and double quotes. I am not able to change the password because the > share is used by many manual and automated processes. > > any help will be greatly appreciated. > > Luis I think I remember reading the solution is to use two exclamation points: !! ...however, I can't find that reference right now... ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 28 16:42:02 2008 From: marc at ena.com (Marc Powell) Date: Thu, 28 Feb 2008 09:42:02 -0600 Subject: Question on services configuration. In-Reply-To: <1204211595.31176.26.camel@UNIX-TEAM-LACAYO> References: <1204211595.31176.26.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: Thursday, February 28, 2008 9:13 AM > To: nagios-users > Subject: [Nagios-users] Question on services configuration. > > Good Day everyone, > > I have been struggling with a configuration issue. I trying to configure > a service to check an samba share. I am using the check_disk_smb > plug-in, I have several shares and I have been able to successfully > configure all but one. The problem is that the password has an "!". > When I try the command from the command line it works fine, but not > within Nagios, because the ! is a field delimiter within the service > configuration. I have tried using $! and putting the password in single > and double quotes. I am not able to change the password because the > share is used by many manual and automated processes. Newly added feature in Nagios-3 -- "Escaped command arguments - You can now pass bang (!) characters in your command arguments by escaping them with a backslash (\). If you need to include backslashes in your command arguments, they should also be escaped with a backslash." In nagios-2 I believe you'll need to create a dedicated command{} definition with that hard-coded in the command_line. -- 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 Thu Feb 28 16:51:05 2008 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Thu, 28 Feb 2008 08:51:05 -0700 Subject: Question on services configuration. In-Reply-To: <1204212088.31747.123.camel@sidhqmis4grdv91> References: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> <1204211595.31176.26.camel@UNIX-TEAM-LACAYO> <1204212088.31747.123.camel@sidhqmis4grdv91> Message-ID: <1204213865.31747.133.camel@sidhqmis4grdv91> On Thu, 2008-02-28 at 08:21 -0700, Aaron M. Segura wrote: > On Thu, 2008-02-28 at 09:13 -0600, Luis Fernando Lacayo wrote: > > Good Day everyone, > > > > I have been struggling with a configuration issue. I trying to configure > > a service to check an samba share. I am using the check_disk_smb > > plug-in, I have several shares and I have been able to successfully > > configure all but one. The problem is that the password has an "!". > > When I try the command from the command line it works fine, but not > > within Nagios, because the ! is a field delimiter within the service > > configuration. I have tried using $! and putting the password in single > > and double quotes. I am not able to change the password because the > > share is used by many manual and automated processes. > > > > any help will be greatly appreciated. > > > > Luis > > I think I remember reading the solution is to use two exclamation > points: !! > > ...however, I can't find that reference right now... > Fool! This is the solution for Dollar Signs, not Exclamation Points! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akennedy at cyberlinktek.com Thu Feb 28 16:53:34 2008 From: akennedy at cyberlinktek.com (Adam Kennedy) Date: Thu, 28 Feb 2008 10:53:34 -0500 Subject: Question on services configuration. In-Reply-To: <1204213865.31747.133.camel@sidhqmis4grdv91> References: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> <1204211595.31176.26.camel@UNIX-TEAM-LACAYO> <1204212088.31747.123.camel@sidhqmis4grdv91> <1204213865.31747.133.camel@sidhqmis4grdv91> Message-ID: <47C6D8FE.1070003@cyberlinktek.com> Aaron M. Segura wrote: > On Thu, 2008-02-28 at 08:21 -0700, Aaron M. Segura wrote: >> On Thu, 2008-02-28 at 09:13 -0600, Luis Fernando Lacayo wrote: >>> Good Day everyone, >>> >>> I have been struggling with a configuration issue. I trying to configure >>> a service to check an samba share. I am using the check_disk_smb >>> plug-in, I have several shares and I have been able to successfully >>> configure all but one. The problem is that the password has an "!". >>> When I try the command from the command line it works fine, but not >>> within Nagios, because the ! is a field delimiter within the service >>> configuration. I have tried using $! and putting the password in single >>> and double quotes. I am not able to change the password because the >>> share is used by many manual and automated processes. >>> >>> any help will be greatly appreciated. >>> >>> Luis >> I think I remember reading the solution is to use two exclamation >> points: !! >> >> ...however, I can't find that reference right now... >> > > Fool! This is the solution for Dollar Signs, not Exclamation Points! Have you tried a backslash? \! -- Adam Kennedy Senior Network Administrator Cyberlink Technologies, Inc. Phone: 888-293-3693 x4352 Fax: 574-855-5761 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Feb 28 16:59:46 2008 From: ojan at gfi.fr (Olivier JAN) Date: Thu, 28 Feb 2008 16:59:46 +0100 Subject: question regarding notification logic Message-ID: <20080228165946.pm3rgzr20wc4oow0@intra.expertise-online.net> Hi list, I have services checks scheduled every 4 hours but want to have a notification interval of 1 hour. It seems that it can't be done in Nagios because of the notification logic. Nagios sends notification only after a check. Also a check that is made once a day bu customers want to be re-notify every 1 hour as a reminder that the problem is not solve. As anyone achieves sucessfully a scenario like the ones above ? Thanks Olivier Jan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Feb 28 17:05:44 2008 From: lflacayo at cps.k12.il.us (Luis Fernando Lacayo) Date: Thu, 28 Feb 2008 10:05:44 -0600 Subject: Question on services configuration. In-Reply-To: <47C6D8FE.1070003@cyberlinktek.com> References: <9034ce050802280700l581390ffl940ea9d7876c385f@mail.gmail.com> <1204211595.31176.26.camel@UNIX-TEAM-LACAYO> <1204212088.31747.123.camel@sidhqmis4grdv91> <1204213865.31747.133.camel@sidhqmis4grdv91> <47C6D8FE.1070003@cyberlinktek.com> Message-ID: <1204214744.31176.33.camel@UNIX-TEAM-LACAYO> HI all, This is the greatest support ever. I have not tried \!, but will try it a bit later, I keep locking the account with the different configurations. I will let you know. so far I have tried "impact!", 'impact!', impact$!, impact!!, "impact!!", 'impact$!' and so far nothing. Thanks Luis On Thu, 2008-02-28 at 10:53 -0500, Adam Kennedy wrote: > Aaron M. Segura wrote: > > On Thu, 2008-02-28 at 08:21 -0700, Aaron M. Segura wrote: > >> On Thu, 2008-02-28 at 09:13 -0600, Luis Fernando Lacayo wrote: > >>> Good Day everyone, > >>> > >>> I have been struggling with a configuration issue. I trying to configure > >>> a service to check an samba share. I am using the check_disk_smb > >>> plug-in, I have several shares and I have been able to successfully > >>> configure all but one. The problem is that the password has an "!". > >>> When I try the command from the command line it works fine, but not > >>> within Nagios, because the ! is a field delimiter within the service > >>> configuration. I have tried using $! and putting the password in single > >>> and double quotes. I am not able to change the password because the > >>> share is used by many manual and automated processes. > >>> > >>> any help will be greatly appreciated. > >>> > >>> Luis > >> I think I remember reading the solution is to use two exclamation > >> points: !! > >> > >> ...however, I can't find that reference right now... > >> > > > > Fool! This is the solution for Dollar Signs, not Exclamation Points! > > Have you tried a backslash? \! > -- 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 melanie_pfefer at yahoo.co.uk Thu Feb 28 18:07:50 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Thu, 28 Feb 2008 17:07:50 +0000 (GMT) Subject: SNMP/Windows disk usage In-Reply-To: References: Message-ID: <238579.95449.qm@web26203.mail.ukl.yahoo.com> Hello and thanks bunches When some machines are overloaded, the snmp alert is sent. How to increase the alert period so that I do not receive this alert frequently. thanks. --- Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Yost, > Karl > > Sent: Monday, February 25, 2008 8:11 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] SNMP/Windows disk > usage > > > > 2. You need to manually create an external command > file in the > location > > specified in the error. The easiest way is to > return to the dir where > > your compiled nagios and run 'make > install-commandmode' > > For clarification and the archives, you must not > create the file itself. > It's not a regular file and Nagios will take care of > creating it. You > must create the directory that it lives in though, > with read/write > permissions for the Nagios user. The above-mentioned > 'make > install-commandmode' is easiest way. > > -- > 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 > __________________________________________________________ Sent from Yahoo! Mail. A Smarter Inbox. http://uk.docs.yahoo.com/nowyoucan.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 Itayemi.A at ng.celtel.com Thu Feb 28 16:57:30 2008 From: Itayemi.A at ng.celtel.com (Ayotunde Itayemi) Date: Thu, 28 Feb 2008 16:57:30 +0100 Subject: Extending Nagios to consume an SMS webservice Message-ID: <99487797D76C7841AEEDE4A1DCA86C7001BBB7A4@VNL-LA01EX04S.vmobile-nigeria.com> Hi All, I am trying to get Nagios to send SMS through an SMS webservice running on a Windows server. I can send a message through curl for example so I know it works ok. For the moment, I just want to be able to send an SMS when a host is no longer available/reachable. I have been experimenting but it's not working properly (or sometimes not at all) I suddenly got one notification by email over a one day period but no SMS at all. Ultimately, I want to send both an email notification and an SMS at the same time. Once I get it figured out, I would like to do the same for defined services. My modified 'notify-host-by-email' command is as follows: # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/local/nagios/etc/celtelconfig/send-mail-sms-alerts.sh } The sendsmsalerts.sh script is as follows: #!/bin/sh # called by notify-host-by-email read INPARAM MESSAGE="appCode=Nagios&fromNumer=NAGIOS&toNumber=2348013556519&shortMes sage=$INPARAM" curl -d $MESSAGE http://sms-server/smswebservice/smsservice.asmx/SendMessage a sample working curl message is of the form: curl -d "appCode=Nagios&fromNumer=NAGIOS&toNumber=2348013556519&shortMessage=Nag ios Calling at 1:41PM" http://sms-server/smswebservice/smsservice.asmx/SendMessage DISCLAIMER: This email and any attachments are confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If received in error, do not open, read, copy, disclose, use or store it in any way, or permit others to do so but please notify the sender immediately and delete the original email and attachments from your machine. If you are not the addressee or the intended recipient, any use, disclosure, copying, distribution or action taken in reliance of it, is prohibited and unlawful. The information, attachments, opinions or advice contained in this email are not necessarily the views or opinions of Celtel Nigeria Limited or its affiliates and without more, shall not commit Celtel Nigeria Limited or its affiliates. Celtel Nigeria Limited and its affiliates do not accept liability for claims, losses, or damages caused by the inaccuracy, incorrectness, or lack of integrity of this email or any 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 alexdehaini at gmail.com Thu Feb 28 18:21:15 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Thu, 28 Feb 2008 17:21:15 +0000 Subject: Extending Nagios to consume an SMS webservice In-Reply-To: <99487797D76C7841AEEDE4A1DCA86C7001BBB7A4@VNL-LA01EX04S.vmobile-nigeria.com> References: <99487797D76C7841AEEDE4A1DCA86C7001BBB7A4@VNL-LA01EX04S.vmobile-nigeria.com> Message-ID: <4b008f7d0802280921w4f4a79b9o90c3f989d18c343@mail.gmail.com> Can your script do email to SMS? On Thu, Feb 28, 2008 at 3:57 PM, Ayotunde Itayemi wrote: > Hi All, > > I am trying to get Nagios to send SMS through an SMS webservice running on > a Windows server. > > I can send a message through curl for example so I know it works ok. > > For the moment, I just want to be able to send an SMS when a host is no > longer available/reachable. > > > > I have been experimenting but it's not working properly (or sometimes not > at all) > > I suddenly got one notification by email over a one day period but no SMS > at all. > > > > Ultimately, I want to send both an email notification and an SMS at the > same time. Once I get it figured out, I would like to do the same for > defined services. > > > > My modified 'notify-host-by-email' command is as follows: > > > > # 'notify-host-by-email' command definition > > define command{ > > command_name notify-host-by-email > > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /usr/local/nagios/etc/celtelconfig/send- > mail-sms-alerts.sh > > } > > > > > > The sendsmsalerts.sh script is as follows: > > > > #!/bin/sh > > # called by notify-host-by-email > > read INPARAM > > > MESSAGE="appCode=Nagios&fromNumer=NAGIOS&toNumber=2348013556519&shortMessage=$INPARAM" > > curl -d $MESSAGE > http://sms-server/smswebservice/smsservice.asmx/SendMessage > > > > > > a sample working curl message is of the form: > > curl -d > "appCode=Nagios&fromNumer=NAGIOS&toNumber=2348013556519&shortMessage=Nagios > Calling at 1:41PM" > http://sms-server/smswebservice/smsservice.asmx/SendMessage > DISCLAIMER: This email and any attachments are confidential and > privileged. It is intended solely for the addressee. Access to this email by > anyone else is unauthorized. If received in error, do not open, read, copy, > disclose, use or store it in any way, or permit others to do so but please > notify the sender immediately and delete the original email and attachments > from your machine. If you are not the addressee or the intended recipient, > any use, disclosure, copying, distribution or action taken in reliance of > it, is prohibited and unlawful. The information, attachments, opinions or > advice contained in this email are not necessarily the views or opinions of > Celtel Nigeria Limited or its affiliates and without more, shall not commit > Celtel Nigeria Limited or its affiliates. Celtel Nigeria Limited and its > affiliates do not accept liability for claims, losses, or damages caused by > the inaccuracy, incorrectness, or lack of integrity of this email or any > attachments. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- 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 bseklecki-ZGY8ohtN/8ps9yRxtKd7d6sO+fmYU+KU at public.gmane.org Thu Feb 28 20:45:33 2008 From: bseklecki-ZGY8ohtN/8ps9yRxtKd7d6sO+fmYU+KU at public.gmane.org (Brian A. Seklecki) Date: Thu, 28 Feb 2008 14:45:33 -0500 Subject: Checking MediaWiki Health with Nagios? In-Reply-To: <8f551a650801122117g7f720421maf02c496f5b7defd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> References: <1200198461.6804.16.camel@new-host> <8f551a650801122117g7f720421maf02c496f5b7defd@mail.gmail.com> Message-ID: <1204227933.4167.62.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> On Sat, 2008-01-12 at 23:17 -0600, Gabriel Millerd wrote: > On Jan 12, 2008 10:27 PM, Brian A. Seklecki (Mobile) > > > > Does anyone have a MW addon or Nagios Check (maybe utilizes the SOAP XML Gabriel et al.: > > API) that queries the application-level health of MediaWiki. I've finally found time to write a small nagios plugin. Here's an example screen shot. It just consumes api.php using SimpleXML's PHP5 bindings. http://people.collaborativefusion.com/~seklecki/images/cf_mediaWiki_NagHC_ex0.png I'll clean it up and post it to nagiosexchange.org just as soon as I have a moment to clean up the code. I may need some advice on getting SimpleXML's simplexml_load_file() in combination with PHP's URI black magic to work with Mediawiki api.php authentication cookies. The underlying library may or may not support cookies (curl/wget/openssl). ~BAS > I would hit Special:Statistics, perhaps grabbing the "The job queue > length is (\d+)." for giggles or similar. > -- Brian A. Seklecki Collaborative Fusion, Inc. IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. From lavalamp at spiritual-machines.org Thu Feb 28 20:46:00 2008 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Thu, 28 Feb 2008 14:46:00 -0500 Subject: [Mediawiki-l] Checking MediaWiki Health with Nagios? In-Reply-To: <8f551a650801122117g7f720421maf02c496f5b7defd@mail.gmail.com> References: <1200198461.6804.16.camel@new-host> <8f551a650801122117g7f720421maf02c496f5b7defd@mail.gmail.com> Message-ID: <1204227960.4167.63.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> On Sat, 2008-01-12 at 23:17 -0600, Gabriel Millerd wrote: > On Jan 12, 2008 10:27 PM, Brian A. Seklecki (Mobile) > > > > Does anyone have a MW addon or Nagios Check (maybe utilizes the SOAP XML Gabriel et al.: > > API) that queries the application-level health of MediaWiki. I've finally found time to write a small nagios plugin. Here's an example screen shot. It just consumes api.php using SimpleXML's PHP5 bindings. http://people.collaborativefusion.com/~seklecki/images/cf_mediaWiki_NagHC_ex0.png I'll clean it up and post it to nagiosexchange.org just as soon as I have a moment to clean up the code. I may need some advice on getting SimpleXML's simplexml_load_file() in combination with PHP's URI black magic to work with Mediawiki api.php authentication cookies. The underlying library may or may not support cookies (curl/wget/openssl). ~BAS > I would hit Special:Statistics, perhaps grabbing the "The job queue > length is (\d+)." for giggles or similar. > -- Brian A. Seklecki Collaborative Fusion, 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 marc at ena.com Thu Feb 28 20:57:42 2008 From: marc at ena.com (Marc Powell) Date: Thu, 28 Feb 2008 13:57:42 -0600 Subject: SNMP/Windows disk usage In-Reply-To: <238579.95449.qm@web26203.mail.ukl.yahoo.com> References: <238579.95449.qm@web26203.mail.ukl.yahoo.com> Message-ID: > -----Original Message----- > From: Melanie Pfefer [mailto:melanie_pfefer at yahoo.co.uk] > Sent: Thursday, February 28, 2008 11:08 AM > To: Marc Powell; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] SNMP/Windows disk usage > > Hello and thanks bunches > > When some machines are overloaded, the snmp alert is > sent. How to increase the alert period so that I do > not receive this alert frequently. Clarify your question please. "The service isn't down long enough before I receive a notification" - Increase max_check_attempts. "The service is hard down and I've received a notification. I want to increase the time before a re-notification will be sent" - Increase notification_interval or look at escalations. "Other..." - ? -- 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 diego.gentoo at gmail.com Fri Feb 29 11:51:05 2008 From: diego.gentoo at gmail.com (Diego Giurgola) Date: Fri, 29 Feb 2008 11:51:05 +0100 Subject: check_http and differents ports Message-ID: <877b18bb0802290251q3fe4410es296a4b4fd812b6ba@mail.gmail.com> Hi all. I have a problem with check_http. I'd like to monitor my apache server, which is running on 10080 port. When I try to use the script from shell, it works wonderfully: [root at gentoonagios]# /usr/lib/nagios/plugins/check_http -I localhost -p 10080 HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds |time=0,003844s;;;0,000000 size=306B;;;0 But, when I setup the nagios services.cfg file and get nagios on, it refuses to work, and it says me "Connection refused". So, what is the clue? Thanks a lot for your time. -- Diego Giurgola Contatti Cellulare: 328/1481314 Skype: diego.giurgola Profilo LinkedIn: http://www.linkedin.com/in/diegogiurgola -------------- 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 Fri Feb 29 12:15:42 2008 From: klausman at schwarzvogel.de (Tobias Klausmann) Date: Fri, 29 Feb 2008 12:15:42 +0100 Subject: Heads up: Comments might bite you; was Re: Possible bug in 3.0rc3 In-Reply-To: <20080228143623.GA16048@eric.schwarzvogel.de> References: <20080228143623.GA16048@eric.schwarzvogel.de> Message-ID: <20080229111542.GA23064@eric.schwarzvogel.de> Hi! Actually, this was both my and Nagios' fault. You see, faced with a config block like this: # foo=bar\ foo=baz Nagios will see... nothing. The trailing \ in the first line joins up the second and then both disappear since it's now one long comment. Logic-wise I'd say it's 50/50 bug/feature. I personally think that a # should have precedence over \-at-eol. Usability-wise it's definitely a bug and I've said as much on -devel. Still, a nasty trap to fall into. Beware when you next edit your configs. Regards, Tobias PS: It seems this behaviour was introduced somewhere between b7 and rc3, probably when adding line continuation support. -- "Have you any idea how successful censorship is on TV? Don't know the answer? Hm. Successful, isn't it?" -Max Headroom ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 29 12:17:47 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 29 Feb 2008 11:17:47 +0000 Subject: check_http and differents ports In-Reply-To: <877b18bb0802290251q3fe4410es296a4b4fd812b6ba@mail.gmail.com> References: <877b18bb0802290251q3fe4410es296a4b4fd812b6ba@mail.gmail.com> Message-ID: <47C7E9DB.5080206@googlemail.com> Diego Giurgola wrote: > Hi all. I have a problem with check_http. I'd like to monitor my > apache server, which is running on 10080 port. When I try to use the > script from shell, it works wonderfully: > > [root at gentoonagios]# /usr/lib/nagios/plugins/check_http -I localhost > -p 10080 > HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds > |time=0,003844s;;;0,000000 size=306B;;;0 > > But, when I setup the nagios services.cfg file and get nagios on, it > refuses to work, and it says me "Connection refused". > So, what is the clue? your nagios configuration is probably wrong, double check your checkcommands.cfg and your services.cfg where you are calling the command. If you are specifying in services.cfg checkcommand check_http!-p 100080 then you will need the command to have an $ARG1$ variable after it in checkcommands.cfg. -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 29 12:19:04 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 29 Feb 2008 11:19:04 +0000 Subject: check_http and differents ports In-Reply-To: <47C7E9DB.5080206@googlemail.com> References: <877b18bb0802290251q3fe4410es296a4b4fd812b6ba@mail.gmail.com> <47C7E9DB.5080206@googlemail.com> Message-ID: <47C7EA28.50403@googlemail.com> Hari Sekhon wrote: > Diego Giurgola wrote: >> Hi all. I have a problem with check_http. I'd like to monitor my >> apache server, which is running on 10080 port. When I try to use the >> script from shell, it works wonderfully: >> >> [root at gentoonagios]# /usr/lib/nagios/plugins/check_http -I localhost >> -p 10080 >> HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds >> |time=0,003844s;;;0,000000 size=306B;;;0 >> >> But, when I setup the nagios services.cfg file and get nagios on, it >> refuses to work, and it says me "Connection refused". >> So, what is the clue? > your nagios configuration is probably wrong, double check your > checkcommands.cfg and your services.cfg where you are calling the > command. > > If you are specifying in services.cfg > > checkcommand check_http!-p 100080 > > then you will need the command to have an $ARG1$ variable after it in > checkcommands.cfg. > > > -h > err, correction, that's supposed to be check_command in services.cfg and you'll need a corresponding $ARG1$ on the line command_line in checkcommands.cfg. -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 tom.welsh at bt.com Fri Feb 29 12:19:15 2008 From: tom.welsh at bt.com (tom.welsh at bt.com) Date: Fri, 29 Feb 2008 11:19:15 -0000 Subject: check_http and differents ports In-Reply-To: <877b18bb0802290251q3fe4410es296a4b4fd812b6ba@mail.gmail.com> References: <877b18bb0802290251q3fe4410es296a4b4fd812b6ba@mail.gmail.com> Message-ID: <6546343904687E41B19D8E5A26AB9F53025DAF9B@E03MVB2-UKBR.domain1.systemhost.net> First off Don't try checks as root. Root can do what ever it wants. Re run your check on the command line logged in as the nagios user. Let us know what you get as a result. HOST:/usr/local/nagios/libexec # su - nagios nagios at HOST:~> id uid=1001(nagios) gid=100(users) groups=100(users),1001(nagcmd) HOST: /usr/lib/nagios/plugins/check_http -I localhost -p 10080 -v -v Note im using verbose mode so we can see what going on. Also send excerpts from your log files showing what's going on Regards Tom ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Diego Giurgola Sent: 29 February 2008 10:51 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_http and differents ports Hi all. I have a problem with check_http. I'd like to monitor my apache server, which is running on 10080 port. When I try to use the script from shell, it works wonderfully: [root at gentoonagios]# /usr/lib/nagios/plugins/check_http -I localhost -p 10080 HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds |time=0,003844s;;;0,000000 size=306B;;;0 But, when I setup the nagios services.cfg file and get nagios on, it refuses to work, and it says me "Connection refused". So, what is the clue? Thanks a lot for your time. -- Diego Giurgola Contatti Cellulare: 328/1481314 Skype: diego.giurgola Profilo LinkedIn: http://www.linkedin.com/in/diegogiurgola -------------- 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 29 13:51:24 2008 From: marc at ena.com (Marc Powell) Date: Fri, 29 Feb 2008 06:51:24 -0600 Subject: check_http and differents ports In-Reply-To: <877b18bb0802290251q3fe4410es296a4b4fd812b6ba@mail.gmail.com> References: <877b18bb0802290251q3fe4410es296a4b4fd812b6ba@mail.gmail.com> Message-ID: <960300C2-29D2-42CC-A76F-6E19E571BA5C@ena.com> On Feb 29, 2008, at 4:51 AM, Diego Giurgola wrote: > Hi all. I have a problem with check_http. I'd like to monitor my > apache server, which is running on 10080 port. When I try to use the > script from shell, it works wonderfully: > > [root at gentoonagios]# /usr/lib/nagios/plugins/check_http -I localhost > -p 10080 > HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds | > time=0,003844s;;;0,000000 size=306B;;;0 > > But, when I setup the nagios services.cfg file and get nagios on, it > refuses to work, and it says me "Connection refused". > So, what is the clue? I agree with Hari. Most likely you're not checking what you believe you're checking. Without the service{} and command{} definitions to look at we can't really be more specific than that. -- 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 d.digrego at gmail.com Fri Feb 29 14:01:08 2008 From: d.digrego at gmail.com (Domenico Dig) Date: Fri, 29 Feb 2008 14:01:08 +0100 Subject: check_hd problem Message-ID: Hi all I'm having a problem with check_hd( the same problem with check_winmem). With nagios server (debian & nagios 2.5) I try to check hd on windows 2003, where i have installed snmp ( I have tested it with snmpwalk and it works, all mibs are shown) but manually with: nagios:/# /usr/lib/nagios/plugins/check_hd 10.1.1.8 public 10 10 c Critical : no response while trouth web interface I see the follow error **ePN failed to compile /usr/lib/nagios/plugins/check_hd: "Global symbol "$PROGNAME" requires explicit package name at (eval 3) line 21, using this: define command{ command_name check_hd command_line $USER1$/check_hd $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$ } Could someone give me some helps? -------------- 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 spamtrap at knobisoft.de Fri Feb 29 14:26:29 2008 From: spamtrap at knobisoft.de (Martin Knoblauch) Date: Fri, 29 Feb 2008 05:26:29 -0800 (PST) Subject: Some questions on Escalations Message-ID: <338701.79610.qm@web32601.mail.mud.yahoo.com> Hi, maybe someone can help me on "escalations". I looked at the documentation and as I understand it, a host/service escalation will just send the same notification that would be sent anyway to a potentially different set of people. Is this basically correct? Actually I would like to do two different things: a) when a service is in "Warning" state for more than X minutes, I would like to escalate the state to "Critical". Can that be done in NAGIOS? Would it be useful to add? b) in case of an escalation, I would like to send a completetly different message as in a normal notification. In addition I also would like to execute a special event-handler. Another question: is there a MACRO that tells me that a service is in "escalation"? That would likely help a lot to do b) Cheers Martin ------------------------------------------------------ Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 29 14:28:34 2008 From: marc at ena.com (Marc Powell) Date: Fri, 29 Feb 2008 07:28:34 -0600 Subject: check_hd problem {Disarmed} {Fraud?} In-Reply-To: References: Message-ID: On Feb 29, 2008, at 7:01 AM, Domenico Dig wrote: > Hi all > I'm having a problem with check_hd( the same problem with > check_winmem). > > With nagios server (debian & nagios 2.5) I try to check hd on > windows 2003, where i have installed snmp ( > I have tested it with snmpwalk and it works, all mibs are shown) but > manually with: > > nagios:/# /usr/lib/nagios/plugins/check_hd 10.1.1.8 public 10 10 c > Critical : no response FSS: Don't run plugins as root, nagios doesn't. > while trouth web interface I see the follow error > > **ePN failed to compile /usr/lib/nagios/plugins/check_hd: "Global > symbol "$PROGNAME" requires explicit package name at (eval 3) line 21, Nagios has been compiled with embedded perl support but this plugin isn't made to work with it. http://nagios.sourceforge.net/docs/2_0/embeddedperl.html . Either recompile without embedded perl, modify the plugin to 'fix' it or use the workaround below. > using this: > define command{ > > command_name check_hd > > command_line $USER1$/check_hd $HOSTADDRESS$ public $ARG1$ $ARG2$ > $ARG3$ > > } > Using the following command_line will bypass use of the ePN for this plugin specifically -- command_line /your/path/to/perl $USER1$/check_hd $HOSTADDRESS$ public $ARG1$ $ARG2$ $ARG3$ -- 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 Edwin.Zoeller at ama-assn.org Fri Feb 29 15:10:19 2008 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Fri, 29 Feb 2008 08:10:19 -0600 Subject: Redhat check_file _size script Message-ID: Can anyone who has or is using scripts for Redhat explain to me what size options for min and max the script is asking for? Thanks for the help. Ed -------------- 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 Fri Feb 29 16:51:28 2008 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Fri, 29 Feb 2008 15:51:28 +0000 (GMT) Subject: alerts still received each hour In-Reply-To: References: Message-ID: <749046.43470.qm@web26213.mail.ukl.yahoo.com> hello again I added this to escalation.cfg define hostescalation{ host_name zeus contact_groups admins first_notification 1 last_notification 3 notification_interval 180 } Hosts.cfg define host{ use general-server host_name zeus alias zeus address 172.21.192.17 notification_interval 180 } I am still receiving an alert every 1 hour could you please advise? thanks. ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.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 marc at ena.com Fri Feb 29 17:31:52 2008 From: marc at ena.com (Marc Powell) Date: Fri, 29 Feb 2008 10:31:52 -0600 Subject: Redhat check_file _size script 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 Edwin Zoeller > Sent: Friday, February 29, 2008 8:10 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Redhat check_file _size script > > Can anyone who has or is using scripts for Redhat explain to me what size > options for min and max the script is asking for? Thanks for the help. I'd like to help but there are at least 4 check_file_size plugins that I can find. Some measure in megs, some measure in bytes. Where did you get yours? If you don't know, take a look at the script, it may be easy to see what command it's using to determine the size. -- 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 Jeff.Chapin at t8design.com Fri Feb 29 18:18:58 2008 From: Jeff.Chapin at t8design.com (Jeff Chapin) Date: Fri, 29 Feb 2008 11:18:58 -0600 Subject: Ethernet based sensors Message-ID: <9A53DDE1FE082F4D952FDF20AC87E21F64C928@exchange2.t8design.com> Hello, I am in the market for Nagios compatible environmental sensors, mainly concerned with temperature, but humidity, etc would be a plus. We are looking to buy 1-5 of them, and I was wondering if people have any good (or bad) experience with these things, and have any recommendations. Only real requirement is Nagios friendly. Thanks, Jeff JEFF CHAPIN SYSTEMS ADMINISTRATOR T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 2552 bytes Desc: image001.jpg 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 christophe.suire at adelux.fr Fri Feb 29 18:31:45 2008 From: christophe.suire at adelux.fr (Christophe SUIRE) Date: Fri, 29 Feb 2008 18:31:45 +0100 Subject: Ethernet based sensors In-Reply-To: <9A53DDE1FE082F4D952FDF20AC87E21F64C928@exchange2.t8design.com> References: <9A53DDE1FE082F4D952FDF20AC87E21F64C928@exchange2.t8design.com> Message-ID: <3FD62D64-E440-483E-B73A-B4733421948E@adelux.fr> Hi, Ingrasys have good products ... works well with SNMP in Nagios http://www.ingrasys.com/product/insentry/pd_insentry_1.htm -- Christophe Suire Le 29 f?vr. 08 ? 18:18, Jeff Chapin a ?crit : > Hello, > I am in the market for Nagios compatible environmental sensors, > mainly concerned with temperature, but humidity, etc would be a > plus. We are looking to buy 1-5 of them, and I was wondering if > people have any good (or bad) experience with these things, and have > any recommendations. > > Only real requirement is Nagios friendly. > > Thanks, > Jeff > > > JEFF CHAPIN > SYSTEMS ADMINISTRATOR > T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 > > This e-mail, including attachments, is covered by the Electronic > Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, > and may be legally privileged. If you are not the intended > recipient, you are hereby notified that any retention, > dissemination, distribution, or copying of this communication is > strictly prohibited. Please reply to the sender that you have > received the message in error, and then please delete it. 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 Fri Feb 29 18:42:33 2008 From: marc at ena.com (Marc Powell) Date: Fri, 29 Feb 2008 11:42:33 -0600 Subject: Ethernet based sensors In-Reply-To: <9A53DDE1FE082F4D952FDF20AC87E21F64C928@exchange2.t8design.com> References: <9A53DDE1FE082F4D952FDF20AC87E21F64C928@exchange2.t8design.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Jeff Chapin > Sent: Friday, February 29, 2008 11:19 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Ethernet based sensors > > Hello, > > I am in the market for Nagios compatible environmental sensors, mainly > concerned with temperature, but humidity, etc would be a plus. We are > looking to buy 1-5 of them, and I was wondering if people have any good > (or bad) experience with these things, and have any recommendations. > > > > Only real requirement is Nagios friendly. Ethan supports this one and you get a discount as a nagios user -- http://www.nagios.org/products/environmental/esensors/em01b.php -- 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 RLAdams at AdamsInfoServ.Com Fri Feb 29 18:44:32 2008 From: RLAdams at AdamsInfoServ.Com (Russell Adams) Date: Fri, 29 Feb 2008 11:44:32 -0600 Subject: Ethernet based sensors In-Reply-To: <9A53DDE1FE082F4D952FDF20AC87E21F64C928@exchange2.t8design.com> References: <9A53DDE1FE082F4D952FDF20AC87E21F64C928@exchange2.t8design.com> Message-ID: <20080229174432.GC7397@odin.demosthenes.org> See this thread: http://sourceforge.net/mailarchive/message.php?msg_id=Pine.LNX.4.64.0711280946090.24823%40kernel.panic.unc.edu On Fri, Feb 29, 2008 at 11:18:58AM -0600, Jeff Chapin wrote: > Hello, > > I am in the market for Nagios compatible environmental sensors, mainly > concerned with temperature, but humidity, etc would be a plus. We are > looking to buy 1-5 of them, and I was wondering if people have any good > (or bad) experience with these things, and have any recommendations. > > > > Only real requirement is Nagios friendly. > > > > Thanks, > > Jeff > > > > > > JEFF CHAPIN > SYSTEMS ADMINISTRATOR > > T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 > > > This e-mail, including attachments, is covered by the Electronic > Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and > may be legally privileged. If you are not the intended recipient, you > are hereby notified that any retention, dissemination, distribution, or > copying of this communication is strictly prohibited. Please reply to > the sender that you have received the message in error, and then please > delete it. 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 ------------------------------------------------------------------ Russell Adams RLAdams at AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ugob at lubik.ca Fri Feb 29 21:01:05 2008 From: ugob at lubik.ca (Ugo Bellavance) Date: Fri, 29 Feb 2008 15:01:05 -0500 Subject: nrpe oddity Message-ID: Hi, I'm trying to use a nagios plugin to monitor sendmail instances. When I run the plugin locally, using user nagios, I get the right result: nagios at server1:/var/log> /usr/local/nagios/libexec/check_sendmail_instances --sender [OK sender] However, if I run it via nrpe, I get another result. -sh-3.00$ /usr/lib/nagios/plugins/check_nrpe -c check_sendmail_out -H gandalf.selection-services.net [CRIT sender not running] The target host is a Suse system. I don't see this problem on Centos systems. I did a chown nagios:nagios on the check_sendmail Here are the nrpe logs on the Suse system (debug enabled): Feb 29 17:37:45 server1 nrpe[10971]: Running command: /usr/local/nagios/libexec/check_sendmail_instances --sender Feb 29 17:37:45 server1 nrpe[10971]: Command completed with return code 2 and output: [CRIT sender not running] Feb 29 17:37:45 server1 nrpe[10971]: Return Code: 2, Output: [CRIT sender not running] Any ideas of what could be doing that? Thanks, Ugo ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ugob at lubik.ca Fri Feb 29 21:21:00 2008 From: ugob at lubik.ca (Ugo Bellavance) Date: Fri, 29 Feb 2008 15:21:00 -0500 Subject: Retention? In-Reply-To: References: Message-ID: Marc Powell wrote: > > You need to set the values of retain_status_information and > retain_nonstatus_information in your service definitions. > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service define host{ name std_host_templ alias Standard Host Template check_command check_host_alive max_check_attempts 5 check_interval 5 active_checks_enabled 1 passive_checks_enabled 0 check_period none event_handler_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups fsl-support notification_interval 30 notification_period 24x7 notifications_enabled 0 register 0 } All my hosts have "use std_host_templ" in their definitions. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ugob at lubik.ca Fri Feb 29 21:23:19 2008 From: ugob at lubik.ca (Ugo Bellavance) Date: Fri, 29 Feb 2008 15:23:19 -0500 Subject: Retention? In-Reply-To: <47C6C290.2090701@cyberlinkint.com> References: <47C6C290.2090701@cyberlinkint.com> Message-ID: Adam Kennedy wrote: > State retention data is written to the retention file at the interval > specified by retention_update_interval > The default is to write it every hour. [root at nagios nagios]# grep retention nagios.cfg state_retention_file=/var/log/nagios/status.dat retention_update_interval=60 > This is also dependent on how you are restarting nagios. Killing off the > process with -9 won't allow nagios to write it's data. I'm using the init scripts, using reload or restart. No -9 there. > I would also check the permissions of the retention file to verify > nagios can write to it. Does that file have any data in it? Yes, full of data. Timestamp shows that it is updated: [root at nagios nagios]# ll /var/log/nagios/status.dat -rw-rw-r-- 1 nagios nagios 167055 Feb 29 15:22 /var/log/nagios/status.dat (it is 15:22 right now) Ugo ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 29 22:15:15 2008 From: marc at ena.com (Marc Powell) Date: Fri, 29 Feb 2008 15:15:15 -0600 Subject: Retention? 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 Ugo Bellavance > Sent: Friday, February 29, 2008 2:21 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Retention? > > Marc Powell wrote: > > > > You need to set the values of retain_status_information and > > retain_nonstatus_information in your service definitions. > > > > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service > > define host{ > name std_host_templ > alias Standard Host Template > All my hosts have > > "use std_host_templ" > > in their definitions. That's great but weren't you asking about services? The template above doesn't have any effect on the service retentions. -- 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