From Ton.Voon at egg.com Tue Apr 1 01:12:04 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue Apr 1 01:12:04 2003 Subject: [Nagiosplug-devel] New plugins, autoconf & pre-built binaries Message-ID: <53104E20A25CD411B556009027E50636064D5505@pnnemp02.pn.egg.com> Assuming we have a souped-up check_procs, what would the syntax be? My proposal: check_procs --check=vsz -w 10 -c 5 [filters] where filters are options from: -s state, -p ppid, -u user, -a argument, -C command (default: all processes) and --check can be procs (default), vsz, rss, cpu My only concern is that -w and -c would be treated differently depending on the --check option used (eg cpu would probably be percentage, procs would be ints, vsz would be bytes). I think separating it into links to the same check_procs makes it a bit clearer that they are different threshold values, but this is not a strong preference. Thoughts? > -----Original Message----- > From: Subhendu Ghosh [SMTP:sghosh at sghosh.org] > Sent: Monday, March 31, 2003 7:13 PM > To: NagiosPlug Devel > Subject: RE: [Nagiosplug-devel] New plugins, autoconf & pre-built > binaries > > Preference for a souped-up version is portability doesn't create too many > problems in coding. > > -sg > > On 31 Mar 2003, Karl DeBisschop wrote: > > > On Mon, 2003-03-31 at 05:00, Voon, Ton wrote: > > > check_cpu is actually a cpu check on processes, not the overall load > on a > > > system. Maybe a rename to check_procs_cpu? If so, there is a check_vsz > to > > > check the virtual size of processes - maybe this should change to > > > check_procs_vsz for consistency? > > > > > > I also notice that the configure.in holds checks for an RSS_COMMAND, > but > > > there is no check_rss. Is this worthwhile to do? (I'm thinking a > symlink of > > > check_vsz, but with slightly different processing, ala check_tcp / > check_ftp > > > / check_telnet) > > > > Actually, I'd prefer to see them all rolled up into on souped up version > > of check_procs. Is that feasible? Do other people consider a single > > program the better option? > > > > To me, since we test status, owner, etc in check_procs, cpu usage is > > just more of the same. > > > > Problem would be making it portable, of course. > > > > -- > > Karl > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. From jeremy+nagios at undergrid.net Tue Apr 1 06:29:20 2003 From: jeremy+nagios at undergrid.net (Jeremy T. Bouse) Date: Tue Apr 1 06:29:20 2003 Subject: [Nagiosplug-devel] New plugins, autoconf & pre-built binaries In-Reply-To: <53104E20A25CD411B556009027E50636064D5505@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D5505@pnnemp02.pn.egg.com> Message-ID: <20030401142605.GA32548@UnderGrid.net> What about doing it like check_tcp and family? Let the plugin determine what check it is doing by the name of the executable... Just create symlinks so a symlink check_procs_vsz would be the VSZ check... Jeremy On Tue, Apr 01, 2003 at 10:11:00AM +0100, Voon, Ton wrote: > Assuming we have a souped-up check_procs, what would the syntax be? > > My proposal: > > check_procs --check=vsz -w 10 -c 5 [filters] > > where filters are options from: > -s state, -p ppid, -u user, -a argument, -C command (default: all > processes) > > and --check can be > procs (default), vsz, rss, cpu > > My only concern is that -w and -c would be treated differently depending on > the --check option used (eg cpu would probably be percentage, procs would be > ints, vsz would be bytes). I think separating it into links to the same > check_procs makes it a bit clearer that they are different threshold values, > but this is not a strong preference. > > Thoughts? > > > -----Original Message----- > > From: Subhendu Ghosh [SMTP:sghosh at sghosh.org] > > Sent: Monday, March 31, 2003 7:13 PM > > To: NagiosPlug Devel > > Subject: RE: [Nagiosplug-devel] New plugins, autoconf & pre-built > > binaries > > > > Preference for a souped-up version is portability doesn't create too many > > problems in coding. > > > > -sg > > > > On 31 Mar 2003, Karl DeBisschop wrote: > > > > > On Mon, 2003-03-31 at 05:00, Voon, Ton wrote: > > > > check_cpu is actually a cpu check on processes, not the overall load > > on a > > > > system. Maybe a rename to check_procs_cpu? If so, there is a check_vsz > > to > > > > check the virtual size of processes - maybe this should change to > > > > check_procs_vsz for consistency? > > > > > > > > I also notice that the configure.in holds checks for an RSS_COMMAND, > > but > > > > there is no check_rss. Is this worthwhile to do? (I'm thinking a > > symlink of > > > > check_vsz, but with slightly different processing, ala check_tcp / > > check_ftp > > > > / check_telnet) > > > > > > Actually, I'd prefer to see them all rolled up into on souped up version > > > of check_procs. Is that feasible? Do other people consider a single > > > program the better option? > > > > > > To me, since we test status, owner, etc in check_procs, cpu usage is > > > just more of the same. > > > > > > Problem would be making it portable, of course. > > > > > > -- > > > Karl > > > > > This private and confidential e-mail has been sent to you by Egg. > The Egg group of companies includes Egg Banking plc > (registered no. 2999842), Egg Financial Products Ltd (registered > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which > carries out investment business on behalf of Egg and is regulated > by the Financial Services Authority. > Registered in England and Wales. Registered offices: 1 Waterhouse Square, > 138-142 Holborn, London EC1N 2NA. > If you are not the intended recipient of this e-mail and have > received it in error, please notify the sender by replying with > 'received in error' as the subject and then delete it from your > mailbox. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Apr 1 14:26:34 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Tue Apr 1 14:26:34 2003 Subject: [Nagiosplug-devel] New plugins, autoconf & pre-built binaries In-Reply-To: <20030401142605.GA32548@UnderGrid.net> References: <53104E20A25CD411B556009027E50636064D5505@pnnemp02.pn.egg.com> <20030401142605.GA32548@UnderGrid.net> Message-ID: <1049235586.1314.15.camel@miles.debisschop.net> On Tue, 2003-04-01 at 09:26, Jeremy T. Bouse wrote: > What about doing it like check_tcp and family? Let the plugin determine > what check it is doing by the name of the executable... Just create symlinks so > a symlink check_procs_vsz would be the VSZ check... I think it is more powerful to have one check_procs that can run any number of filters. So you can have checks like 'warn if more than one of Joe Dbadmin procs has a vsz exceeding a limit' Or whatever combination suits the needs of the install. Actually, in implementing all the checks al a series of filters, it woul be nice to be able to specify both AND and OR. The check_vsz is just a special case in this framework. -- Karl > Jeremy > > On Tue, Apr 01, 2003 at 10:11:00AM +0100, Voon, Ton wrote: > > Assuming we have a souped-up check_procs, what would the syntax be? > > > > My proposal: > > > > check_procs --check=vsz -w 10 -c 5 [filters] > > > > where filters are options from: > > -s state, -p ppid, -u user, -a argument, -C command (default: all > > processes) > > > > and --check can be > > procs (default), vsz, rss, cpu > > > > My only concern is that -w and -c would be treated differently depending on > > the --check option used (eg cpu would probably be percentage, procs would be > > ints, vsz would be bytes). I think separating it into links to the same > > check_procs makes it a bit clearer that they are different threshold values, > > but this is not a strong preference. > > > > Thoughts? > > > > > -----Original Message----- > > > From: Subhendu Ghosh [SMTP:sghosh at sghosh.org] > > > Sent: Monday, March 31, 2003 7:13 PM > > > To: NagiosPlug Devel > > > Subject: RE: [Nagiosplug-devel] New plugins, autoconf & pre-built > > > binaries > > > > > > Preference for a souped-up version is portability doesn't create too many > > > problems in coding. > > > > > > -sg > > > > > > On 31 Mar 2003, Karl DeBisschop wrote: > > > > > > > On Mon, 2003-03-31 at 05:00, Voon, Ton wrote: > > > > > check_cpu is actually a cpu check on processes, not the overall load > > > on a > > > > > system. Maybe a rename to check_procs_cpu? If so, there is a check_vsz > > > to > > > > > check the virtual size of processes - maybe this should change to > > > > > check_procs_vsz for consistency? > > > > > > > > > > I also notice that the configure.in holds checks for an RSS_COMMAND, > > > but > > > > > there is no check_rss. Is this worthwhile to do? (I'm thinking a > > > symlink of > > > > > check_vsz, but with slightly different processing, ala check_tcp / > > > check_ftp > > > > > / check_telnet) > > > > > > > > Actually, I'd prefer to see them all rolled up into on souped up version > > > > of check_procs. Is that feasible? Do other people consider a single > > > > program the better option? > > > > > > > > To me, since we test status, owner, etc in check_procs, cpu usage is > > > > just more of the same. > > > > > > > > Problem would be making it portable, of course. > > > > > > > > -- > > > > Karl > > > > > > > > > This private and confidential e-mail has been sent to you by Egg. > > The Egg group of companies includes Egg Banking plc > > (registered no. 2999842), Egg Financial Products Ltd (registered > > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which > > carries out investment business on behalf of Egg and is regulated > > by the Financial Services Authority. > > Registered in England and Wales. Registered offices: 1 Waterhouse Square, > > 138-142 Holborn, London EC1N 2NA. > > If you are not the intended recipient of this e-mail and have > > received it in error, please notify the sender by replying with > > 'received in error' as the subject and then delete it from your > > mailbox. > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ValueWeb: > > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > No other company gives more support or power for your dedicated server > > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > _______________________________________________ > > Nagiosplug-devel mailing list > > Nagiosplug-devel at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > > ::: Please include plugins 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: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null From tonvoon at mac.com Tue Apr 1 14:52:53 2003 From: tonvoon at mac.com (Ton Voon) Date: Tue Apr 1 14:52:53 2003 Subject: [Nagiosplug-devel] New plugins, autoconf & pre-built binaries In-Reply-To: <1049235586.1314.15.camel@miles.debisschop.net> Message-ID: <979E569A-6493-11D7-ABDD-000A27E41300@mac.com> On Tuesday, April 1, 2003, at 11:19 pm, Karl DeBisschop wrote: > On Tue, 2003-04-01 at 09:26, Jeremy T. Bouse wrote: >> What about doing it like check_tcp and family? Let the plugin >> determine >> what check it is doing by the name of the executable... Just create >> symlinks so >> a symlink check_procs_vsz would be the VSZ check... > > I think it is more powerful to have one check_procs that can run any > number of filters. > > So you can have checks like 'warn if more than one of Joe Dbadmin procs > has a vsz exceeding a limit' > > Or whatever combination suits the needs of the install. > > Actually, in implementing all the checks al a series of filters, it > woul > be nice to be able to specify both AND and OR. > > The check_vsz is just a special case in this framework. > Good idea re: AND and OR option in filters. I see where you are going with this (run a huge ps command and then run a db-like query on results), but what would the syntax look like? From karl at debisschop.net Tue Apr 1 16:34:34 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Tue Apr 1 16:34:34 2003 Subject: [Nagiosplug-devel] New plugins, autoconf & pre-built binaries In-Reply-To: <979E569A-6493-11D7-ABDD-000A27E41300@mac.com> References: <979E569A-6493-11D7-ABDD-000A27E41300@mac.com> Message-ID: <1049243557.1308.21.camel@miles.debisschop.net> On Tue, 2003-04-01 at 17:45, Ton Voon wrote: > On Tuesday, April 1, 2003, at 11:19 pm, Karl DeBisschop wrote: > > > On Tue, 2003-04-01 at 09:26, Jeremy T. Bouse wrote: > >> What about doing it like check_tcp and family? Let the plugin > >> determine > >> what check it is doing by the name of the executable... Just create > >> symlinks so > >> a symlink check_procs_vsz would be the VSZ check... > > > > I think it is more powerful to have one check_procs that can run any > > number of filters. > > > > So you can have checks like 'warn if more than one of Joe Dbadmin procs > > has a vsz exceeding a limit' > > > > Or whatever combination suits the needs of the install. > > > > Actually, in implementing all the checks al a series of filters, it > > woul > > be nice to be able to specify both AND and OR. > > > > The check_vsz is just a special case in this framework. > > > Good idea re: AND and OR option in filters. > > I see where you are going with this (run a huge ps command and then run > a db-like query on results), but what would the syntax look like? I dn't really know, but I do think getting the syntax 'right' may be fully as hard as the coding. I have in mind right now a syntax sort of like POSIC 'test' check_procs --test (VSZ -gt 100 -o SIZE -gt 100) -a STATE -eq Z -a UID -eq 500 -w 5: -c 10: But that's only what comes to mind at the moment. I suspect there are better solutions that I'm not imaginative enough to think of. -- Karl From noreply at sourceforge.net Wed Apr 2 02:44:45 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Apr 2 02:44:45 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-713815 ] Checks LPT status on Axis print server boxes. Message-ID: New Plugins item #713815, was opened at 2003-04-02 10:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=713815&group_id=29880 Category: Network device plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tom De Blende (tomdeblende) Assigned to: Nobody/Anonymous (nobody) Summary: Checks LPT status on Axis print server boxes. Initial Comment: This plugin is written in Bash and checks the status of LPT ports on Axis print server boxes. Has been tested successfully on Axis 540, 560, ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=713815&group_id=29880 From noreply at sourceforge.net Wed Apr 2 02:49:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Apr 2 02:49:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-713815 ] Checks LPT status on Axis print server boxes. Message-ID: New Plugins item #713815, was opened at 2003-04-02 10:57 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=713815&group_id=29880 Category: Network device plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tom De Blende (tomdeblende) >Assigned to: Stanley Hopcroft (stanleyhopcroft) Summary: Checks LPT status on Axis print server boxes. Initial Comment: This plugin is written in Bash and checks the status of LPT ports on Axis print server boxes. Has been tested successfully on Axis 540, 560, ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=713815&group_id=29880 From karl at debisschop.net Wed Apr 2 04:41:07 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Wed Apr 2 04:41:07 2003 Subject: [Nagiosplug-devel] extarneous lines in configure.in In-Reply-To: References: Message-ID: <1049287049.1308.64.camel@miles.debisschop.net> On Mon, 2003-03-31 at 22:43, Subhendu Ghosh wrote: > BTW - about the docs - there is a doc dir currently with the > devel-guidelines, it just doesn't get installed anywhere. - should we > patch side.html to have a pointer to a developer dir under the nagios/html > install dir? While I do want to organize and use the doc directory, I oersonally don't want to patch side.html -- I would rather try and keep dependencies to Nagios small. Obviously, the two projects are tightly linked. If an API change we needed to support Nagios, we'd do it without hesitation. Conversely, if there were a clear need to change Nagios to make the plgins work, I have no doubt that our opinions on that need would be given great weight. But to create dependencies where none exist now? That (to me) would only seem to complicate the release process. What might make sense along those lines, however, is for Nagios to provide a directory into which we could dump some docs. I'm thinking of how (on RedHat) the mod_ssl and php docs are more or less just dumped into /var/www/html/manual. (Although that also requires patching HTML, IIRC, which I would like to avoid). BTW, the doc dir is presently not distributed because it was originally envisioned as a place for building docs for the soureforge web site, IIRC. But back to the main topic... What was the main topic? We wanted to put some html docs someplace, right? I've forgotten what it was we wanted to document. Now I remember - how does a plugin move from contrib to core, right? I don't care too much if the docs are HTML or text. But if they are text, they should go into a directory docs/txt, I would think. If they are html, I would assume they should go into docs/html. In some perfect world, I'd prefer to write the docs as docbook XML (have you seen the XXE xml editor?). But for now, I think html is OK. But if so, could we try to write to strict xhtml? (docbook/xml docs would go in docs/xml, I guess, and we could write make rules to create html) If you want to write in XXE, I can do the transforms. -- Karl From sghosh at sghosh.org Wed Apr 2 05:49:47 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed Apr 2 05:49:47 2003 Subject: [Nagiosplug-devel] extarneous lines in configure.in In-Reply-To: <1049287049.1308.64.camel@miles.debisschop.net> Message-ID: On 2 Apr 2003, Karl DeBisschop wrote: > > What might make sense along those lines, however, is for Nagios to > provide a directory into which we could dump some docs. I'm thinking of > how (on RedHat) the mod_ssl and php docs are more or less just dumped > into /var/www/html/manual. (Although that also requires patching HTML, > IIRC, which I would like to avoid). This would be fine. perhaps the documentation link from side.html could point to a top level doc index file with a pointer to the regular nagios docs and a pointer to plugins dir for other docs. The plugin install could then just drop the docs in named dir. (would probably require a config option for non std dir) > > BTW, the doc dir is presently not distributed because it was originally > envisioned as a place for building docs for the soureforge web site, > IIRC. But back to the main topic... > > What was the main topic? > > We wanted to put some html docs someplace, right? I've forgotten what it > was we wanted to document. > > Now I remember - how does a plugin move from contrib to core, right? In addition as we add more docs to the plugins - plan was to extract those docs and publish them (similar to perldoc man pages) perhaps in html. > > I don't care too much if the docs are HTML or text. But if they are > text, they should go into a directory docs/txt, I would think. If they > are html, I would assume they should go into docs/html. > > In some perfect world, I'd prefer to write the docs as docbook XML (have > you seen the XXE xml editor?). But for now, I think html is OK. But if > so, could we try to write to strict xhtml? haven't tried it yet.. -- -sg From Ton.Voon at egg.com Thu Apr 3 01:50:23 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu Apr 3 01:50:23 2003 Subject: [Nagiosplug-devel] New check_procs design (was: New plugins, autoconf & pre-built bi naries) Message-ID: <53104E20A25CD411B556009027E50636064D5529@pnnemp02.pn.egg.com> I find that if I can see what the syntax will be, I can almost see the code in my head. My head is a wierd place, but it's home :-) One limitation of your example is: what about critical for vsz > 10K, but warn if vsz > 5K? Your example would normalize everything down to number of processes. I can see two ways round: 1) a --metric flag so that the metric returned is # of processes, %cpu, vsz, etc 2) threshold metric based on calling program name (check_procs returns processes, check_procs_cpu returns %cpu) Any other ideas? I guess output would also be different based on the metric, so the general output is: {CRITICAL|WARNING|OK}: {process names that fail thresholds (value of metric used)} As for the actual work, I can do the configure.in stuff and merging the current OR filters, but I don't think I can handle the new-style filters. Besides, my baby is due next week so I can't see much time ahead... Ton > -----Original Message----- > From: Karl DeBisschop [SMTP:karl at debisschop.net] > Sent: Wednesday, April 02, 2003 1:33 AM > To: NagiosPlug Devel > Subject: Re: [Nagiosplug-devel] New plugins, autoconf & pre-built > binaries > > On Tue, 2003-04-01 at 17:45, Ton Voon wrote: > > Good idea re: AND and OR option in filters. > > > > I see where you are going with this (run a huge ps command and then run > > a db-like query on results), but what would the syntax look like? > > I dn't really know, but I do think getting the syntax 'right' may be > fully as hard as the coding. > > I have in mind right now a syntax sort of like POSIC 'test' > > check_procs --test (VSZ -gt 100 -o SIZE -gt 100) -a STATE -eq Z -a UID > -eq 500 -w 5: -c 10: > > But that's only what comes to mind at the moment. I suspect there are > better solutions that I'm not imaginative enough to think of. > > -- > Karl > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. From guenther.mair at energis.it Thu Apr 3 03:54:57 2003 From: guenther.mair at energis.it (guenther.mair at energis.it) Date: Thu Apr 3 03:54:57 2003 Subject: [Nagiosplug-devel] Netsaint/Nagios plugin for checking Compaq Array Controllers Message-ID: Hi there...... this is what I email Ethan yesterday. Maybe you find it useful - is there anyone doing work on newer Array Controller series? Or something like HP/Compaq's "Health Driver"? Cheers, G?nther G?nther Mair Internet Engineer ENERGIS Italia GmbH Pfarrhofstrasse 60/A I-39100 Bozen (BZ) Tel.: +39 0471 254000 Fax: +39 0471 251617 Email: guenther.mair at energis.it Web: http://www.energis.it ----- Weitergeleitet von G?nther Mair/Datef am 03.04.2003 13:45 ----- "Ethan Galstad" An: guenther.mair at energis.it Thema: Re: Netsaint/Nagios plugin for checking Compaq Array Controllers 03.04.2003 04:28 Hi Guenther - Could you forward this on to the nagiosplug-devel mailing list (or submit it via the plugins homepage)? I don't do much plugin development anymore, so if you submit it to them it'll get included. Thanks! On 2 Apr 2003 at 13:54, guenther.mair at energis.it wrote: > > Hi Ethan! > Hi Spark! > > This could be quite usefull for people who, as I do, don't like snmp > installed. It should compile as is, it's only requirements are a the > presence of a linux-kernel source-tree beyond /usr/src and a working gcc. > > Together with check_nrpe it may well be used on remote hosts. > > Spark, have you got some idea where I could find samples on how to access > newer Compaq Array Controllers? I asked Compaq/HP directly but they won't > give out information, anywhere there seems to be someone active on this. > > Have a try, > > > > Gunny > > > G?nther Mair > Internet Engineer > > ENERGIS Italia GmbH > Pfarrhofstrasse 60/A > I-39100 Bozen (BZ) > Tel.: +39 0471 254000 > Fax: +39 0471 251617 > Email: guenther.mair at energis.it > Web: http://www.energis.it > > (See attached file: check_cpqarray.c) Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org From karl at debisschop.net Thu Apr 3 03:54:59 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Thu Apr 3 03:54:59 2003 Subject: [Nagiosplug-devel] New check_procs design (was: New plugins, autoconf & pre-built bi naries) In-Reply-To: <53104E20A25CD411B556009027E50636064D5529@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D5529@pnnemp02.pn.egg.com> Message-ID: <1049370651.2188.24.camel@miles.debisschop.net> On Thu, 2003-04-03 at 04:48, Voon, Ton wrote: > I find that if I can see what the syntax will be, I can almost see the code > in my head. My head is a wierd place, but it's home :-) > > One limitation of your example is: what about critical for vsz > 10K, but > warn if vsz > 5K? Your example would normalize everything down to number of > processes. Put quite clearly, I knew something was awkward, and you've nailed it. Thanks. (BTW -- you could run two checks: check_procs -w 1: -c 1: --test "VSZ -gt 10000" check_procs -w 1: -c 20: --test "VSZ -gt 5000" but that's pretty klugy) > I can see two ways round: > 1) a --metric flag so that the metric returned is # of processes, %cpu, vsz, > etc > 2) threshold metric based on calling program name (check_procs returns > processes, check_procs_cpu returns %cpu) I prefer a --metric flag and a single name for the plugin > I guess output would also be different based on the metric, so the general > output is: > {CRITICAL|WARNING|OK}: {process names that fail thresholds (value of metric > used)} or "%s %s: ", metric, state_text This extends current sysntax if one metric is PROCS. List of process names that fail does not make sense to me if using --metric PROCS (if there's 100 processes anf the limit is 50, which 50 caused it to fail?). But the list may be a good feature to enable with a -v switch (I have started using levels of verbosity, so one '-v' could triger this detail, and two would be required to make multiline debugging info). It also makes sense for this to be verbose because I want to try and assure that non-verbose invacations cannot overfill the 360? characters of the input buffer in nagios. This type of listing could easily do that. > As for the actual work, I can do the configure.in stuff and merging the > current OR filters, but I don't think I can handle the new-style filters. My vote is merge with filters. (would you be adding the --metric?). Then one of us (me unless someone else jumps) will extend to add new-style filters. We have some time, as there is not release date set. > Besides, my baby is due next week so I can't see much time ahead... After the 1st, I found I still had some time, With the 2nd, I had quite a bit of time during paternity leave, but not much after that. I have not had free time at all since the 3rd came. -- Karl > Ton > > > -----Original Message----- > > From: Karl DeBisschop [SMTP:karl at debisschop.net] > > Sent: Wednesday, April 02, 2003 1:33 AM > > To: NagiosPlug Devel > > Subject: Re: [Nagiosplug-devel] New plugins, autoconf & pre-built > > binaries > > > > On Tue, 2003-04-01 at 17:45, Ton Voon wrote: > > > Good idea re: AND and OR option in filters. > > > > > > I see where you are going with this (run a huge ps command and then run > > > a db-like query on results), but what would the syntax look like? > > > > I dn't really know, but I do think getting the syntax 'right' may be > > fully as hard as the coding. > > > > I have in mind right now a syntax sort of like POSIC 'test' > > > > check_procs --test (VSZ -gt 100 -o SIZE -gt 100) -a STATE -eq Z -a UID > > -eq 500 -w 5: -c 10: > > > > But that's only what comes to mind at the moment. I suspect there are > > better solutions that I'm not imaginative enough to think of. > > > > -- > > Karl > > > > > This private and confidential e-mail has been sent to you by Egg. > The Egg group of companies includes Egg Banking plc > (registered no. 2999842), Egg Financial Products Ltd (registered > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which > carries out investment business on behalf of Egg and is regulated > by the Financial Services Authority. > Registered in England and Wales. Registered offices: 1 Waterhouse Square, > 138-142 Holborn, London EC1N 2NA. > If you are not the intended recipient of this e-mail and have > received it in error, please notify the sender by replying with > 'received in error' as the subject and then delete it from your > mailbox. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null From noreply at sourceforge.net Thu Apr 3 06:05:13 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Apr 3 06:05:13 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-714625 ] plugin for checking Compaq Smart Array Controllers Message-ID: New Plugins item #714625, was opened at 2003-04-03 14:16 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=714625&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Guenther Mair (gunnyst) Assigned to: Nobody/Anonymous (nobody) Summary: plugin for checking Compaq Smart Array Controllers Initial Comment: this plugin checks status from various older Compaq Smart Array Controllers - most of them still in use today most of this work is based on the source from cpqarrad- 1.3 by Hugo Trippaers it will be most usefull togehter with check_nrpe I'm looking for someone with knowledge about newer Smart Array Controllers and eventually some details about HP/Compaq's "health driver" - this would be a real fine thing to have integrated without "blind" snmp binaries ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=714625&group_id=29880 From noreply at sourceforge.net Thu Apr 3 06:05:43 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Apr 3 06:05:43 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-714625 ] new plugin: checking Compaq Smart Array Controllers Message-ID: New Plugins item #714625, was opened at 2003-04-03 14:16 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=714625&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Guenther Mair (gunnyst) Assigned to: Nobody/Anonymous (nobody) >Summary: new plugin: checking Compaq Smart Array Controllers Initial Comment: this plugin checks status from various older Compaq Smart Array Controllers - most of them still in use today most of this work is based on the source from cpqarrad- 1.3 by Hugo Trippaers it will be most usefull togehter with check_nrpe I'm looking for someone with knowledge about newer Smart Array Controllers and eventually some details about HP/Compaq's "health driver" - this would be a real fine thing to have integrated without "blind" snmp binaries ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=714625&group_id=29880 From Ton.Voon at egg.com Thu Apr 3 06:06:59 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu Apr 3 06:06:59 2003 Subject: [Nagiosplug-devel] Netsaint/Nagios plugin for checking Compaq Array Controllers Message-ID: <53104E20A25CD411B556009027E50636064D5534@pnnemp02.pn.egg.com> Gunther, Sounds interesting. Can you please submit it as a new plugin at http://sourceforge.net/tracker/?atid=541465&group_id=29880&func=browse and we'll look into adding it into the distribution. Ton > -----Original Message----- > From: guenther.mair at energis.it [SMTP:guenther.mair at energis.it] > Sent: Thursday, April 03, 2003 12:37 PM > To: nagiosplug-devel at lists.sourceforge.net > Subject: [Nagiosplug-devel] Netsaint/Nagios plugin for checking > Compaq Array Controllers > > Hi there...... > > this is what I email Ethan yesterday. Maybe you find it useful - is there > anyone doing work on newer Array Controller series? Or something like > HP/Compaq's "Health Driver"? > > Cheers, > > > G?nther > > > > G?nther Mair > Internet Engineer > > ENERGIS Italia GmbH > Pfarrhofstrasse 60/A > I-39100 Bozen (BZ) > Tel.: +39 0471 254000 > Fax: +39 0471 251617 > Email: guenther.mair at energis.it > Web: http://www.energis.it > ----- Weitergeleitet von G?nther Mair/Datef am 03.04.2003 13:45 ----- > > > "Ethan > > Galstad" An: guenther.mair at energis.it > > > s.org> Thema: Re: Netsaint/Nagios > plugin for checking Compaq Array Controllers > > > 03.04.2003 > > 04:28 > > > > > > > > > Hi Guenther - > > Could you forward this on to the nagiosplug-devel mailing list (or > submit it via the plugins homepage)? I don't do much plugin > development anymore, so if you submit it to them it'll get included. > Thanks! > > > On 2 Apr 2003 at 13:54, guenther.mair at energis.it wrote: > > > > > Hi Ethan! > > Hi Spark! > > > > This could be quite usefull for people who, as I do, don't like snmp > > installed. It should compile as is, it's only requirements are a the > > presence of a linux-kernel source-tree beyond /usr/src and a working > gcc. > > > > Together with check_nrpe it may well be used on remote hosts. > > > > Spark, have you got some idea where I could find samples on how to > access > > newer Compaq Array Controllers? I asked Compaq/HP directly but they > won't > > give out information, anywhere there seems to be someone active on this. > > > > Have a try, > > > > > > > > Gunny > > > > > > G?nther Mair > > Internet Engineer > > > > ENERGIS Italia GmbH > > Pfarrhofstrasse 60/A > > I-39100 Bozen (BZ) > > Tel.: +39 0471 254000 > > Fax: +39 0471 251617 > > Email: guenther.mair at energis.it > > Web: http://www.energis.it > > > > (See attached file: check_cpqarray.c) > > > > Ethan Galstad, > Nagios Developer > --- > Email: nagios at nagios.org > Website: http://www.nagios.org > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. From Ton.Voon at egg.com Thu Apr 3 06:13:57 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu Apr 3 06:13:57 2003 Subject: [Nagiosplug-devel] New check_procs design Message-ID: <53104E20A25CD411B556009027E50636064D5539@pnnemp02.pn.egg.com> OK. I'll start the check_procs with --metric, ps with options for vsz, rss & cpu, removal of check_vsz and verbose messaging. > -----Original Message----- > From: Karl DeBisschop [SMTP:karl at debisschop.net] > Sent: Thursday, April 03, 2003 12:51 PM > To: Voon, Ton > Cc: NagiosPlug Devel > Subject: Re: [Nagiosplug-devel] New check_procs design (was: New > plugins, autoconf & pre-built bi naries) > > On Thu, 2003-04-03 at 04:48, Voon, Ton wrote: > > I find that if I can see what the syntax will be, I can almost see the > code > > in my head. My head is a wierd place, but it's home :-) > > > > One limitation of your example is: what about critical for vsz > 10K, > but > > warn if vsz > 5K? Your example would normalize everything down to number > of > > processes. > > Put quite clearly, I knew something was awkward, and you've nailed it. > Thanks. > > (BTW -- you could run two checks: > check_procs -w 1: -c 1: --test "VSZ -gt 10000" > check_procs -w 1: -c 20: --test "VSZ -gt 5000" > but that's pretty klugy) > > > I can see two ways round: > > 1) a --metric flag so that the metric returned is # of processes, %cpu, > vsz, > > etc > > 2) threshold metric based on calling program name (check_procs returns > > processes, check_procs_cpu returns %cpu) > > I prefer a --metric flag and a single name for the plugin > > > I guess output would also be different based on the metric, so the > general > > output is: > > {CRITICAL|WARNING|OK}: {process names that fail thresholds (value of > metric > > used)} > > or "%s %s: ", metric, state_text > > This extends current sysntax if one metric is PROCS. > > List of process names that fail does not make sense to me if using > --metric PROCS (if there's 100 processes anf the limit is 50, which 50 > caused it to fail?). > > But the list may be a good feature to enable with a -v switch (I have > started using levels of verbosity, so one '-v' could triger this detail, > and two would be required to make multiline debugging info). It also > makes sense for this to be verbose because I want to try and assure that > non-verbose invacations cannot overfill the 360? characters of the input > buffer in nagios. This type of listing could easily do that. > > > As for the actual work, I can do the configure.in stuff and merging the > > current OR filters, but I don't think I can handle the new-style > filters. > > My vote is merge with filters. (would you be adding the --metric?). Then > one of us (me unless someone else jumps) will extend to add new-style > filters. We have some time, as there is not release date set. > > > Besides, my baby is due next week so I can't see much time ahead... > > After the 1st, I found I still had some time, With the 2nd, I had quite > a bit of time during paternity leave, but not much after that. I have > not had free time at all since the 3rd came. > > -- > Karl This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. From noreply at sourceforge.net Thu Apr 3 06:27:23 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Apr 3 06:27:23 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-642164 ] request for check_proxy Message-ID: Feature Requests item #642164, was opened at 2002-11-22 02:45 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=642164&group_id=29880 Category: None Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: request for check_proxy Initial Comment: A way to use check_http (or equivalent in check_proxy) to request an url through a proxy, with proxy authentication support. ---------------------------------------------------------------------- >Comment By: Subhendu Ghosh (sghosh) Date: 2003-04-03 09:38 Message: Logged In: YES user_id=46572 duplicate of [614206] ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-01-30 12:12 Message: Logged In: YES user_id=664364 Moving to a feature request ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=642164&group_id=29880 From noreply at sourceforge.net Thu Apr 3 06:27:40 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Apr 3 06:27:40 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-614206 ] add proxy authentication in check_http Message-ID: Feature Requests item #614206, was opened at 2002-09-25 01:14 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=614206&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Subhendu Ghosh (sghosh) Summary: add proxy authentication in check_http Initial Comment: Hi, We are behind a proxy server that requires authentication. We have to type username/password to access the internet and because of that limitation its not possible to use check_http. It would be great if you can add proxy authentication option in the check_http. Thanks, ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=614206&group_id=29880 From noreply at sourceforge.net Thu Apr 3 06:28:27 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Apr 3 06:28:27 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-701055 ] Contributed check module (check_ifstatus_errors) Message-ID: Feature Requests item #701055, was opened at 2003-03-10 14:22 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=701055&group_id=29880 Category: None Group: Next Release (example) Status: Open Priority: 5 Submitted By: Mike McHenry (mmchenry) >Assigned to: Subhendu Ghosh (sghosh) Summary: Contributed check module (check_ifstatus_errors) Initial Comment: This module is based off the latest check_ifstatus plugin but checks for interface errors instead of interface availability. It has been tested against 20 different Cisco devices and 3 different Cabletron devices and should work with most vendors that support standard SNMP OIDS. This check plugin was based off work done by Greg King but I can't get a response from him so I am just submitting it myself. Please make sure to give him credit for this code, thanks! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=701055&group_id=29880 From drobole at broadpark.no Sat Apr 5 20:13:10 2003 From: drobole at broadpark.no (Dag) Date: Sat Apr 5 20:13:10 2003 Subject: [Nagiosplug-devel] New Nagios plugin (check_logins - version 0.1) Message-ID: <3E8FB8A1.5030001@broadpark.no> Hi nagiosplug-devel! I am a Norwegian student, currently working for a project called skolelinux [ http://www.skolelinux.no ]. In this context I have made a plugin that monitor how many simultanous login sessions a user has from different hosts. This plugin might be implemented in the skolelinux distribution in the future. The plugin is contained in a tarball attached to this mail. Here is the version output from the plugin: ./check_logins (nagios-plugins 200303300107) 0.1 I have only tested this plugin on debian linux: (Linux drob2 2.4.20 #1 SMP Sat Jan 4 23:06:36 CET 2003 i686 unknown) Dag Robole [ http://home.oslo.nith.no/~robdag ] -------------- next part -------------- A non-text attachment was scrubbed... Name: check_logins-0.1.tar.gz Type: application/gzip Size: 3718 bytes Desc: not available URL: From Ton.Voon at egg.com Mon Apr 7 01:57:03 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Mon Apr 7 01:57:03 2003 Subject: [Nagiosplug-devel] New Nagios plugin (check_logins - version 0.1) Message-ID: <53104E20A25CD411B556009027E50636064D5552@pnnemp02.pn.egg.com> Dag, Sounds interesting! Can you please post this on Sourceforge at http://sourceforge.net/tracker/?atid=541465&group_id=29880&func=browse so we can track it. Thanks, Ton > -----Original Message----- > From: Dag [SMTP:drobole at broadpark.no] > Sent: Sunday, April 06, 2003 6:18 AM > To: nagiosplug-devel at lists.sourceforge.net > Subject: [Nagiosplug-devel] New Nagios plugin (check_logins - version > 0.1) > > Hi nagiosplug-devel! > > I am a Norwegian student, currently working for a project called > skolelinux [ http://www.skolelinux.no ]. > In this context I have made a plugin that monitor how many > simultanous login sessions a user has from different hosts. > This plugin might be implemented in the skolelinux distribution > in the future. > > The plugin is contained in a tarball attached to this mail. > > Here is the version output from the plugin: > ./check_logins (nagios-plugins 200303300107) 0.1 > > I have only tested this plugin on debian linux: > (Linux drob2 2.4.20 #1 SMP Sat Jan 4 23:06:36 CET 2003 i686 unknown) > > Dag Robole > [ http://home.oslo.nith.no/~robdag ] << File: check_logins-0.1.tar.gz >> This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. From noreply at sourceforge.net Mon Apr 7 02:40:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 02:40:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-716652 ] check_insight Message-ID: New Plugins item #716652, was opened at 2003-04-07 11:55 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716652&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Markstaller (makki1) Assigned to: Nobody/Anonymous (nobody) Summary: check_insight Initial Comment: checks the status/health of Compaq servers by polling the Insight Agents with SNMP. Works with current Foundation agents 5.5 Just submitting it as with the compaq array plugin it was asked to check server health which this does. It's based on the sponge plugin check_insight. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716652&group_id=29880 From noreply at sourceforge.net Mon Apr 7 03:01:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 03:01:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-716652 ] check_insight Message-ID: New Plugins item #716652, was opened at 2003-04-07 10:55 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716652&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Markstaller (makki1) Assigned to: Nobody/Anonymous (nobody) Summary: check_insight Initial Comment: checks the status/health of Compaq servers by polling the Insight Agents with SNMP. Works with current Foundation agents 5.5 Just submitting it as with the compaq array plugin it was asked to check server health which this does. It's based on the sponge plugin check_insight. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-04-07 11:16 Message: Logged In: YES user_id=664364 Michael, Thanks for this. You don't appear to have attached the new file though! As this works through SNMP, is it possible to patch check_snmp instead? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716652&group_id=29880 From noreply at sourceforge.net Mon Apr 7 04:21:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 04:21:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-716652 ] check_insight Message-ID: New Plugins item #716652, was opened at 2003-04-07 11:55 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716652&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Markstaller (makki1) Assigned to: Nobody/Anonymous (nobody) Summary: check_insight Initial Comment: checks the status/health of Compaq servers by polling the Insight Agents with SNMP. Works with current Foundation agents 5.5 Just submitting it as with the compaq array plugin it was asked to check server health which this does. It's based on the sponge plugin check_insight. ---------------------------------------------------------------------- >Comment By: Michael Markstaller (makki1) Date: 2003-04-07 13:35 Message: Logged In: YES user_id=751401 Sorry, I just realized this is already included with nagios-plugins-1.3.0 in the contrib folder by copying my list-email from Nov 2002 as check_compaq_insight.pl But maybe you want to replace it with this "cleaner" file sometime; also seems I forgot to check the "attach file" checkbox, doesn't seem to be my day ;) regarding check_snmp, I have no idea of C programming at all, I'm quite happy to do some quick shots with perl ;) Anyway, now it should attach.. Michael ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-04-07 12:16 Message: Logged In: YES user_id=664364 Michael, Thanks for this. You don't appear to have attached the new file though! As this works through SNMP, is it possible to patch check_snmp instead? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716652&group_id=29880 From noreply at sourceforge.net Mon Apr 7 06:57:08 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 06:57:08 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-716652 ] check_insight Message-ID: New Plugins item #716652, was opened at 2003-04-07 05:55 Message generated for change (Comment added) made by sghosh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716652&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Markstaller (makki1) >Assigned to: Subhendu Ghosh (sghosh) Summary: check_insight Initial Comment: checks the status/health of Compaq servers by polling the Insight Agents with SNMP. Works with current Foundation agents 5.5 Just submitting it as with the compaq array plugin it was asked to check server health which this does. It's based on the sponge plugin check_insight. ---------------------------------------------------------------------- >Comment By: Subhendu Ghosh (sghosh) Date: 2003-04-07 10:11 Message: Logged In: YES user_id=46572 Yes - it is in the contrib - I'll update the version. Changes in the plugin name were made to allow for easier identification. -sg ---------------------------------------------------------------------- Comment By: Michael Markstaller (makki1) Date: 2003-04-07 07:35 Message: Logged In: YES user_id=751401 Sorry, I just realized this is already included with nagios-plugins-1.3.0 in the contrib folder by copying my list-email from Nov 2002 as check_compaq_insight.pl But maybe you want to replace it with this "cleaner" file sometime; also seems I forgot to check the "attach file" checkbox, doesn't seem to be my day ;) regarding check_snmp, I have no idea of C programming at all, I'm quite happy to do some quick shots with perl ;) Anyway, now it should attach.. Michael ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-04-07 06:16 Message: Logged In: YES user_id=664364 Michael, Thanks for this. You don't appear to have attached the new file though! As this works through SNMP, is it possible to patch check_snmp instead? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716652&group_id=29880 From noreply at sourceforge.net Mon Apr 7 07:06:30 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 07:06:30 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-692207 ] New plugin: check_hpres Message-ID: New Plugins item #692207, was opened at 2003-02-24 07:39 Message generated for change (Comment added) made by sghosh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=692207&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mikael Olofsson (oet) >Assigned to: Subhendu Ghosh (sghosh) Summary: New plugin: check_hpres Initial Comment: This plugin uses snmp to check resources on HP-printers (I have only tested with LaserJet 8100N). It check fuser, drum and transfer kits and also toner. example from our services.cfg define service { host_name teti service_description Toner black check_command check_hpjdres!1 use generic-service max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 check_period workhours notification_interval 960 notification_period workhours notification_options c,r contact_groups printer-admins } Cheers Oet ---------------------------------------------------------------------- >Comment By: Subhendu Ghosh (sghosh) Date: 2003-04-07 10:22 Message: Logged In: YES user_id=46572 Will merge this into a bigger check_snmp_printer. Also needs more error checking as some printers do not report max capacity or supplies level. (Xerox in particular) -sg ---------------------------------------------------------------------- Comment By: Mikael Olofsson (oet) Date: 2003-02-24 08:18 Message: Logged In: YES user_id=130720 The printer I tried this plugin on was an HP ColorJet 4550 /Oet ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=692207&group_id=29880 From noreply at sourceforge.net Mon Apr 7 10:13:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 10:13:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-716861 ] New Nagios plugin (check_logins 0.3) Message-ID: New Plugins item #716861, was opened at 2003-04-07 17:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716861&group_id=29880 Category: C plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: dag rob?le (corebob) Assigned to: Nobody/Anonymous (nobody) Summary: New Nagios plugin (check_logins 0.3) Initial Comment: I am a Norwegian student, currently working for a project called skolelinux [http://www.skolelinux.no] In this context I have made a plugin that monitor how many simultanous login sessions a user has from different hosts. This plugin might be implemented in the skolelinux distribution in the future. The plugin is contained in a tarball attached to this mail. Here is the version output from the plugin: ./check_logins (nagios-plugins 200303300107) 0.3 I have only tested this plugin on debian linux: (Linux drob2 2.4.20 #1 SMP Sat Jan 4 23:06:36 CET 2003 i686 unknown) If I do any upgrades of this plugin, it can be downloaded here: [http://home.oslo.nith.no/~robdag] Dag Robole ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716861&group_id=29880 From tonvoon at mac.com Mon Apr 7 16:49:07 2003 From: tonvoon at mac.com (Ton Voon) Date: Mon Apr 7 16:49:07 2003 Subject: [Nagiosplug-devel] New souped-up check_procs Message-ID: <25466238-6953-11D7-B37F-000A27E41300@mac.com> I've finally updated check_procs so that it does vsz, rss and cpu checks. It works well as it currently is, although there is a plan to enhance the filter options so you can do SQL-like queries. You can use a --metric option so that the metric returned is either number of processes, vsz, rss or cpu. Should be easy to add any other metrics in future. I've removed check_vsz. I've added in some examples in --help to explain some common usages. A potential problem is that I've had to guess a lot of the ps options in configure.in. I've tested it on: Linux 2.4 (Redhat 7.3 x86) - ok Linux 2.4 (Debian 2.2 x86) - ok Linux 2.2 (Debian 3.0 Alpha) - error about Unknown HZ value, but looks like a system problem Linux 2.4 (Debian 3.0 Sparc) - ok Solaris 8 (Sparc) - ok Mac OS 10.2 - ok If you can try out on any other OS, that would be great. Finally, used -v for verbose and can specify multiple -v for extra verbosity. I've gone with the philosophy of: verbose level 0 - minimal output (eg thresholds and summary) verbose level 1 - extra output, only one line for Nagios (eg list processes that fail) verbose level 2 - config debug output (eg ps command used) verbose level 3 - loads of debug Let me know if you think there needs to be extra categories. Ton From noreply at sourceforge.net Mon Apr 7 17:00:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 17:00:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-680892 ] New plugin: check_cpu (by Dave Viner) Message-ID: New Plugins item #680892, was opened at 2003-02-05 13:54 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=680892&group_id=29880 Category: System monitor Group: None >Status: Closed Resolution: None Priority: 2 Submitted By: Ton Voon (tonvoon) Assigned to: Ton Voon (tonvoon) Summary: New plugin: check_cpu (by Dave Viner) Initial Comment: This is a new plugin, written by Dave Winer, to check cpu usage on processes. Priority lowered as it is new functionality. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-04-08 01:14 Message: Logged In: YES user_id=664364 The functionality of this plugin has been merged into check_procs v1.14, which is in CVS HEAD. Closing this call. ---------------------------------------------------------------------- Comment By: Cristian (psxsnake) Date: 2003-03-15 10:40 Message: Logged In: YES user_id=669107 how can I use that plugins? ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-02-05 17:24 Message: Logged In: YES user_id=664364 Apologies for my very poor fingers. Credit goes to Dave Viner. ---------------------------------------------------------------------- Comment By: Dave Viner (dviner) Date: 2003-02-05 17:16 Message: Logged In: YES user_id=90427 altho i am flattered that you might think i'm dave winer (the xmlrpc maven), i'm actally Dave Viner (lowly programmer). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=680892&group_id=29880 From noreply at sourceforge.net Mon Apr 7 17:04:14 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 17:04:14 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-656170 ] New check_cpu nagios plugin submission Message-ID: New Plugins item #656170, was opened at 2002-12-19 07:15 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=656170&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 3 Submitted By: Jason Dixon (fuzzyping) >Assigned to: Ton Voon (tonvoon) Summary: New check_cpu nagios plugin submission Initial Comment: Here is a check_cpu (load averages) plugin that I wrote in perl. Feel free to use... or destroy. ;-) -J. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-04-08 01:19 Message: Logged In: YES user_id=664364 This plugin appears to be a combination of check_by_ssh and check_load, so doesn't appear to provide any new functionality. I'll close this call after 7 days if there are no new updates. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-01-30 16:48 Message: Logged In: YES user_id=664364 Thanks for the submission. New plugins are not a priority at the moment, but we are looking into it. Jason also says: These all use a standard pre-shared ssh key connection to connect and gather the relevant info. There will need to be a public ssh key for the local nagios user in the remote users' ~/.ssh/authorized_keys file, in addition to a copy of the public host key from the remote system in the local nagios user's ~/.ssh/known_hosts file. Very similar to check_by_ssh configuration. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=656170&group_id=29880 From noreply at sourceforge.net Mon Apr 7 17:07:14 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 17:07:14 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-635536 ] compilation problem solution for HP-UX! Message-ID: Patches item #635536, was opened at 2002-11-08 15:33 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=635536&group_id=29880 Category: Bugfix Group: None Status: Open >Resolution: Out of Date Priority: 5 Submitted By: Alexandre ARMENGAUD (armengaud) Assigned to: Ton Voon (tonvoon) Summary: compilation problem solution for HP-UX! Initial Comment: Like many people here I had troubles compiling nagios plugins on HP-UX. I wanted to solve it cleanly, so I took the last CVS version and tried to debug it. I found several problems, that I could solve in the "configure.in" file. There was a problem in the snprintf.c : I guess it's a bug in the original file from SAMBA, but I didn't dare touching it (there is a test on if not defined HAVE_C99_SNPRINTF that isn't defined anywhere). I added a test in configure.in for HP-UX to define it, and the "#undef HAVE_C99_SNPRINTF" in the acconfig.h There was also problem in the order of test of functions that made them fail (probably because of snprintf). I solved that by changing test order. I changed also the configuration to make swap_format work, but it's a little dirty because I didn't want to touch the C source, so I made used a shell command to have the good swapinfo format. All seems ok now, and I tested the same configuration files on Linux, and it's working. I join the diff file for this new configuration (files configure.in and acconfig.h) ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-04-08 01:22 Message: Logged In: YES user_id=664364 I think this patch is out of date as I think HP-UX builds are currently okay. If there are no updates after 7 days, I'll close this call. Ton ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-01-29 04:47 Message: Logged In: YES user_id=664364 Alexandre, Thanks for this patch. It looks very interesting, but I am having problems applying your fix to CVS. Can you send me a context or unified diff for the latest CVS version and I'll update it straight away for you to test. Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=635536&group_id=29880 From noreply at sourceforge.net Mon Apr 7 17:12:12 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 7 17:12:12 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-647623 ] check_http content Message-ID: Feature Requests item #647623, was opened at 2002-12-03 07:10 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=647623&group_id=29880 Category: None Group: None >Status: Closed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Ton Voon (tonvoon) Summary: check_http content Initial Comment: Hi All, I know that you can check to see if a certain string apears on a page using the check_http module and regex expressions, but when you have multiple databases that are in use, you never know which on will die and cause a problem. Writing a regex expression that caters for all cases can be a real pain. My solution is as follows : Allow two additional parameters --maxcontent and -- mincontent which specifies that the pages size returned from the web server should fall between these two ranges. That way if you start getting DB connectin problems etc .. it is easy to spot because that page size does not fall within the threshhold. Thanks Warrick FitzGerald ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-04-08 01:27 Message: Logged In: YES user_id=664364 Closing this call due to lack of updates. Ton ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-03-12 01:53 Message: Logged In: YES user_id=664364 We are trying to lower the number of outstanding problems and will close this call in a week's time if there have not been any updates. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-03-05 00:32 Message: Logged In: YES user_id=664364 check_http v1.25 has a --min option to check for minimum amount of content (although I think --mincontent might be a better name...). Is this sufficient? I guess you shouldn't get a failure situation where the content exceeds a maximum value? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=647623&group_id=29880 From sghosh at sghosh.org Tue Apr 8 06:07:04 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue Apr 8 06:07:04 2003 Subject: [Nagiosplug-devel] New souped-up check_procs In-Reply-To: <25466238-6953-11D7-B37F-000A27E41300@mac.com> Message-ID: Hi Ton Can you update command.cfg.in for the new check_procs... -sg On Tue, 8 Apr 2003, Ton Voon wrote: > I've finally updated check_procs so that it does vsz, rss and cpu > checks. It works well as it currently is, although there is a plan to > enhance the filter options so you can do SQL-like queries. > > You can use a --metric option so that the metric returned is either > number of processes, vsz, rss or cpu. Should be easy to add any other > metrics in future. I've removed check_vsz. I've added in some examples > in --help to explain some common usages. > > A potential problem is that I've had to guess a lot of the ps options > in configure.in. I've tested it on: > > Linux 2.4 (Redhat 7.3 x86) - ok > Linux 2.4 (Debian 2.2 x86) - ok > Linux 2.2 (Debian 3.0 Alpha) - error about Unknown HZ value, but looks > like a system problem > Linux 2.4 (Debian 3.0 Sparc) - ok > Solaris 8 (Sparc) - ok > Mac OS 10.2 - ok > > If you can try out on any other OS, that would be great. > > Finally, used -v for verbose and can specify multiple -v for extra > verbosity. I've gone with the philosophy of: > verbose level 0 - minimal output (eg thresholds and summary) > verbose level 1 - extra output, only one line for Nagios (eg list > processes that fail) > verbose level 2 - config debug output (eg ps command used) > verbose level 3 - loads of debug > > Let me know if you think there needs to be extra categories. > > Ton -- From Ton.Voon at egg.com Tue Apr 8 06:17:04 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue Apr 8 06:17:04 2003 Subject: [Nagiosplug-devel] New souped-up check_procs Message-ID: <53104E20A25CD411B556009027E50636064D5574@pnnemp02.pn.egg.com> Wasn't aware of this file. Will do later tonight. > -----Original Message----- > From: Subhendu Ghosh [SMTP:sghosh at sghosh.org] > Sent: Tuesday, April 08, 2003 2:05 PM > To: nagiosplug-devel at lists.sourceforge.net > Subject: Re: [Nagiosplug-devel] New souped-up check_procs > > Hi Ton > > Can you update command.cfg.in for the new check_procs... > > -sg > > On Tue, 8 Apr 2003, Ton Voon wrote: > > > I've finally updated check_procs so that it does vsz, rss and cpu > > checks. It works well as it currently is, although there is a plan to > > enhance the filter options so you can do SQL-like queries. > > > > You can use a --metric option so that the metric returned is either > > number of processes, vsz, rss or cpu. Should be easy to add any other > > metrics in future. I've removed check_vsz. I've added in some examples > > in --help to explain some common usages. > > > > A potential problem is that I've had to guess a lot of the ps options > > in configure.in. I've tested it on: > > > > Linux 2.4 (Redhat 7.3 x86) - ok > > Linux 2.4 (Debian 2.2 x86) - ok > > Linux 2.2 (Debian 3.0 Alpha) - error about Unknown HZ value, but looks > > like a system problem > > Linux 2.4 (Debian 3.0 Sparc) - ok > > Solaris 8 (Sparc) - ok > > Mac OS 10.2 - ok > > > > If you can try out on any other OS, that would be great. > > > > Finally, used -v for verbose and can specify multiple -v for extra > > verbosity. I've gone with the philosophy of: > > verbose level 0 - minimal output (eg thresholds and summary) > > verbose level 1 - extra output, only one line for Nagios (eg list > > processes that fail) > > verbose level 2 - config debug output (eg ps command used) > > verbose level 3 - loads of debug > > > > Let me know if you think there needs to be extra categories. > > > > Ton > > -- > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. From jsellens at generalconcepts.com Tue Apr 8 10:36:05 2003 From: jsellens at generalconcepts.com (John Sellens) Date: Tue Apr 8 10:36:05 2003 Subject: [Nagiosplug-devel] check_hpjd gets snmpget arguments wrong w/fix Message-ID: <200304081735.h38HZ8x14167@gc0.generalconcepts.com> check_hpjd invokes snmpget with (basically) snmpget hostname -c community which doesn't always work, and isn't correct - the -c option (if provided) should be before the hostname. (Some versions accept a community following the hostname but without -c.) Patch for obvious fix follows. Thanks! John jsellens at generalconcepts.com *** plugins/check_hpjd.c.old Tue Apr 8 13:19:01 2003 --- plugins/check_hpjd.c Tue Apr 8 13:28:56 2003 *************** *** 139,146 **** HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY); /* get the command to run */ ! sprintf (command_line, "%s -m : -v 1 %s -c %s %s", PATH_TO_SNMPGET, address, ! community, query_string); /* run the command */ child_process = spopen (command_line); --- 139,146 ---- HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY); /* get the command to run */ ! sprintf (command_line, "%s -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, ! community, address, query_string); /* run the command */ child_process = spopen (command_line); From sghosh at sghosh.org Tue Apr 8 13:23:03 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue Apr 8 13:23:03 2003 Subject: [Nagiosplug-devel] check_hpjd gets snmpget arguments wrong w/fix In-Reply-To: <200304081735.h38HZ8x14167@gc0.generalconcepts.com> Message-ID: Thanks - it was already reported - but I haven't gotten around to actually patching it. Sorry. patch 698384 -sg On Tue, 8 Apr 2003, John Sellens wrote: > check_hpjd invokes snmpget with (basically) > snmpget hostname -c community > which doesn't always work, and isn't correct - the -c option (if provided) > should be before the hostname. (Some versions accept a community following > the hostname but without -c.) > > Patch for obvious fix follows. Thanks! > > John > jsellens at generalconcepts.com > > > *** plugins/check_hpjd.c.old Tue Apr 8 13:19:01 2003 > --- plugins/check_hpjd.c Tue Apr 8 13:28:56 2003 > *************** > *** 139,146 **** > HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY); > > /* get the command to run */ > ! sprintf (command_line, "%s -m : -v 1 %s -c %s %s", PATH_TO_SNMPGET, address, > ! community, query_string); > > /* run the command */ > child_process = spopen (command_line); > --- 139,146 ---- > HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY); > > /* get the command to run */ > ! sprintf (command_line, "%s -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, > ! community, address, query_string); > > /* run the command */ > child_process = spopen (command_line); > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- From sghosh at sghosh.org Wed Apr 9 07:29:05 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed Apr 9 07:29:05 2003 Subject: [Nagiosplug-devel] Re: [Nagios-users] Monitoring Cisco Routers In-Reply-To: <3E93E124.6040307@mobilcom.de> Message-ID: On Wed, 9 Apr 2003, Jens Kruse wrote: > Hi -sg, > > Jens Kruse wrote: > >> Attached is check_cisco_env (from Guy) to monitor temp,voltage,fan,cpu. > > > > > > Thx, I'll test it tomorrow ... > > OK, I'd like to test it, but I can't get the exact OIDs for the PIX I'd > like to minitor ... > > I found a lot about it, but nothing which has to do with Environment > Variables, i.e. Temperature, Fans etc. > > Do you have a hint for me where/how to look? > > Regards, Jens > ftp://ftp.cisco.com pub/mibs/supportlists/product-id list of all mibs supported by product - look fro CISCO-ENV support -- -sg From noreply at sourceforge.net Wed Apr 9 08:37:15 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Apr 9 08:37:15 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-716861 ] New Nagios plugin (check_logins 0.3) Message-ID: New Plugins item #716861, was opened at 2003-04-07 17:27 Message generated for change (Comment added) made by corebob You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716861&group_id=29880 Category: C plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: dag rob?le (corebob) Assigned to: Nobody/Anonymous (nobody) Summary: New Nagios plugin (check_logins 0.3) Initial Comment: I am a Norwegian student, currently working for a project called skolelinux [http://www.skolelinux.no] In this context I have made a plugin that monitor how many simultanous login sessions a user has from different hosts. This plugin might be implemented in the skolelinux distribution in the future. The plugin is contained in a tarball attached to this mail. Here is the version output from the plugin: ./check_logins (nagios-plugins 200303300107) 0.3 I have only tested this plugin on debian linux: (Linux drob2 2.4.20 #1 SMP Sat Jan 4 23:06:36 CET 2003 i686 unknown) If I do any upgrades of this plugin, it can be downloaded here: [http://home.oslo.nith.no/~robdag] Dag Robole ---------------------------------------------------------------------- >Comment By: dag rob?le (corebob) Date: 2003-04-09 15:53 Message: Logged In: YES user_id=745816 Ooooops, not working yet... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716861&group_id=29880 From noreply at sourceforge.net Wed Apr 9 14:57:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Apr 9 14:57:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-716861 ] New Nagios plugin (check_logins 0.4) Message-ID: New Plugins item #716861, was opened at 2003-04-07 17:27 Message generated for change (Comment added) made by corebob You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716861&group_id=29880 Category: C plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: dag rob?le (corebob) Assigned to: Nobody/Anonymous (nobody) >Summary: New Nagios plugin (check_logins 0.4) Initial Comment: I am a Norwegian student, currently working for a project called skolelinux [http://www.skolelinux.no] In this context I have made a plugin that monitor how many simultanous login sessions a user has from different hosts. This plugin might be implemented in the skolelinux distribution in the future. The plugin is contained in a tarball attached to this mail. Here is the version output from the plugin: ./check_logins (nagios-plugins 200303300107) 0.3 I have only tested this plugin on debian linux: (Linux drob2 2.4.20 #1 SMP Sat Jan 4 23:06:36 CET 2003 i686 unknown) If I do any upgrades of this plugin, it can be downloaded here: [http://home.oslo.nith.no/~robdag] Dag Robole ---------------------------------------------------------------------- >Comment By: dag rob?le (corebob) Date: 2003-04-09 22:13 Message: Logged In: YES user_id=745816 version 0.4 back on track... ---------------------------------------------------------------------- Comment By: dag rob?le (corebob) Date: 2003-04-09 15:53 Message: Logged In: YES user_id=745816 Ooooops, not working yet... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=716861&group_id=29880 From canau at keka.KPNQwest.pt Thu Apr 10 09:52:07 2003 From: canau at keka.KPNQwest.pt (Carlos Canau) Date: Thu Apr 10 09:52:07 2003 Subject: [Nagiosplug-devel] check_mailq: extended to multiqueue and source and destinations Message-ID: <20030410165129.GB22430@ionia.eunet.pt> Dear all, I've extended check_mailq to support multiqueues on sendmail and to check the FROM's and TO's of the messages in the queue and to sound the alarm if they are too many. I've attached the code if somebody finds it interesting. regards, ## 8BITMIME ## # multi queue empty ##/var/spool/mqueue/q0/df is empty ##/var/spool/mqueue/q1/df is empty ##/var/spool/mqueue/q2/df is empty ##/var/spool/mqueue/q3/df is empty ##/var/spool/mqueue/q4/df is empty ##/var/spool/mqueue/q5/df is empty ##/var/spool/mqueue/q6/df is empty ##/var/spool/mqueue/q7/df is empty ##/var/spool/mqueue/q8/df is empty ##/var/spool/mqueue/q9/df is empty ##/var/spool/mqueue/qA/df is empty ##/var/spool/mqueue/qB/df is empty ##/var/spool/mqueue/qC/df is empty ##/var/spool/mqueue/qD/df is empty ##/var/spool/mqueue/qE/df is empty ##/var/spool/mqueue/qF/df is empty ## Total Requests: 0 # multi queue: 1 ##/var/spool/mqueue/q0/df is empty ##/var/spool/mqueue/q1/df is empty ##/var/spool/mqueue/q2/df is empty ## /var/spool/mqueue/q3/df (1 request) ##----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient------------ ##h32De2f23534* 48 Wed Apr 2 14:40 nocol ## nouser at EUnet.pt ## canau ##/var/spool/mqueue/q4/df is empty ##/var/spool/mqueue/q5/df is empty ##/var/spool/mqueue/q6/df is empty ##/var/spool/mqueue/q7/df is empty ##/var/spool/mqueue/q8/df is empty ##/var/spool/mqueue/q9/df is empty ##/var/spool/mqueue/qA/df is empty ##/var/spool/mqueue/qB/df is empty ##/var/spool/mqueue/qC/df is empty ##/var/spool/mqueue/qD/df is empty ##/var/spool/mqueue/qE/df is empty ##/var/spool/mqueue/qF/df is empty ## Total Requests: 1 $msg_q = 0 ; while () { if ( (/<.*@.*\.(\w+\.\w+)>/) || (/<.*@(\w+\.\w+)>/) ) { my $domain = $1; if (/^\w+/) { print "$utils::PATH_TO_MAILQ = srcdomain = $domain \n" if $verbose ; $srcdomains{$domain} ++; } ### else { ### see comment below. this code counts messages in queue like sendmail ### $dstdomains{$domain} ++; ### } next; } # # ... # sendmail considers a message with more than one destiny, say N, to the same MX # to have N messages in queue. # we will only consider one in this code if (( /\s\(reply:\sread\serror\sfrom\s.*\.(\w+\.\w+)\.$/ ) || ( /\s\(reply:\sread\serror\sfrom\s(\w+\.\w+)\.$/ ) || ( /\s\(timeout\swriting\smessage\sto\s.*\.(\w+\.\w+)\.:/ ) || ( /\s\(timeout\swriting\smessage\sto\s(\w+\.\w+)\.:/ ) || ( /\s\(host\smap:\slookup\s\(.*\.(\w+\.\w+)\):/ ) || ( /\s\(host\smap:\slookup\s\((\w+\.\w+)\):/ ) || ( /\s\(Deferred:\s.*\s.*\.(\w+\.\w+)\.\)/ ) || ( /\s\(Deferred:\s.*\s(\w+\.\w+)\.\)/ ) ) { print "$utils::PATH_TO_MAILQ = dstdomain = $1 \n" if $verbose ; $dstdomains{$1} ++; } if (/\s+\(I\/O\serror\)/) { print "$utils::PATH_TO_MAILQ = dstdomain = UNKNOWN \n" if $verbose ; $dstdomains{'UNKNOWN'} ++; } # ... # if (/mqueue/) { print "$utils::PATH_TO_MAILQ = $_ \n" if $verbose ; if (/ \((\d+) request/) { # # single queue: first line # multi queue: one for each queue. overwrite on multi queue below $msg_q = $1 ; } } elsif (/^\s+Total\sRequests:\s(\d+)$/) { print "$utils::PATH_TO_MAILQ = $_ \n" if $verbose ; # # multi queue: last line $msg_q = $1 ; } } if ($msg_q == 0) { $msg = "OK: mailq is empty"; $state = $ERRORS{'OK'}; } else { print "msg_q = $msg_q warn=$opt_w crit=$opt_c\n" if $verbose; if ($msg_q < $opt_w) { $msg = "OK: mailq ($msg_q) is below threshold ($opt_w/$opt_c)"; $state = $ERRORS{'OK'}; }elsif ($msg_q >= $opt_w && $msg_q < $opt_c) { $msg = "WARNING: mailq is $msg_q (threshold w = $opt_w)"; $state = $ERRORS{'WARNING'}; }else { $msg = "CRITICAL: mailq is $msg_q (threshold c = $opt_c)"; $state = $ERRORS{'CRITICAL'}; } my @srckeys = sort { $srcdomains{$b} <=> $srcdomains{$a} } keys %srcdomains; my $srcmaxkey = $srckeys[0]; print "src max is $srcmaxkey with $srcdomains{$srcmaxkey} messages\n" if $verbose; if ($srcdomains{$srcmaxkey} >= $opt_W && $srcdomains{$srcmaxkey} < $opt_C) { if ($state == $ERRORS{'OK'}) { $msg = "WARNING: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; $state = $ERRORS{'WARNING'}; } elsif (($state == $ERRORS{'WARNING'}) || ($state == $ERRORS{'CRITICAL'})){ $msg .= " -and- $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; } else { $msg = "WARNING: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; $state = $ERRORS{'WARNING'}; } } elsif ($srcdomains{$srcmaxkey} >= $opt_C) { if ($state == $ERRORS{'OK'}) { $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold C = $opt_C)"; $state = $ERRORS{'CRITICAL'}; } elsif ($state == $ERRORS{'WARNING'}) { $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold C = $opt_C) -and- " . $msg; $msg =~ s/WARNING: //; } elsif ($state == $ERRORS{'CRITICAL'}) { $msg .= " -and- $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; } else { $msg = "CRITICAL: $srcdomains{$srcmaxkey} messages in queue FROM $srcmaxkey (threshold W = $opt_W)"; $state = $ERRORS{'CRITICAL'}; } } else { if ($srcdomains{$srcmaxkey} > 0) { $msg .= " $srcdomains{$srcmaxkey} msgs. FROM $srcmaxkey is below threshold ($opt_W/$opt_C)"; } } my @dstkeys = sort { $dstdomains{$b} <=> $dstdomains{$a} } keys %dstdomains; my $dstmaxkey = $dstkeys[0]; print "dst max is $dstmaxkey with $dstdomains{$dstmaxkey} messages\n" if $verbose; if ($dstdomains{$dstmaxkey} >= $opt_W && $dstdomains{$dstmaxkey} < $opt_C) { if ($state == $ERRORS{'OK'}) { $msg = "WARNING: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; $state = $ERRORS{'WARNING'}; } elsif (($state == $ERRORS{'WARNING'}) || ($state == $ERRORS{'CRITICAL'})){ $msg .= " -and- $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; } else { $msg = "WARNING: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; $state = $ERRORS{'WARNING'}; } } elsif ($dstdomains{$dstmaxkey} >= $opt_C) { if ($state == $ERRORS{'OK'}) { $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold C = $opt_C)"; $state = $ERRORS{'CRITICAL'}; } elsif ($state == $ERRORS{'WARNING'}) { $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold C = $opt_C) -and- " . $msg; $msg =~ s/WARNING: //; } elsif ($state == $ERRORS{'CRITICAL'}) { $msg .= " -and- $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; } else { $msg = "CRITICAL: $dstdomains{$dstmaxkey} messages in queue TO $dstmaxkey (threshold W = $opt_W)"; $state = $ERRORS{'CRITICAL'}; } } else { if ($dstdomains{$dstmaxkey} > 0) { $msg .= " $dstdomains{$dstmaxkey} msgs. TO $dstmaxkey is below threshold ($opt_W/$opt_C)"; } } } close (MAILQ); # declare an error if we also get a non-zero return code from mailq # unless already set to critical if ( $? ) { print "stderr = $? : $! \n" if $verbose; $state = $state == $ERRORS{"CRITICAL"} ? $ERRORS{"CRITICAL"} : $ERRORS{"UNKNOWN"} ; print "MAILQ error: $!\n" if $verbose; } ## close mailq # Perfdata support print "$msg | mailq = $msg_q\n"; exit $state; ##################################### #### subs sub process_arguments(){ GetOptions ("V" => \$opt_V, "version" => \$opt_V, "v" => \$opt_v, "verbose" => \$opt_v, "h" => \$opt_h, "help" => \$opt_h, "w=i" => \$opt_w, "warning=i" => \$opt_w, # warning if above this number "c=i" => \$opt_c, "critical=i" => \$opt_c, # critical if above this number "W=i" => \$opt_W, "Warning=i" => \$opt_W, # warning if above this number "C=i" => \$opt_C, "Critical=i" => \$opt_C, # critical if above this number "t=i" => \$opt_t, "timeout=i" => \$opt_t ); if ($opt_V) { print_revision($PROGNAME,'$Revision: 1.1 $ '); exit $ERRORS{'OK'}; } if ($opt_h) { print_help(); exit $ERRORS{'OK'}; } if (defined $opt_v ){ $verbose = $opt_v; } unless (defined $opt_t) { $opt_t = $utils::TIMEOUT ; # default timeout } unless ( defined $opt_w && defined $opt_c ) { print_usage(); exit $ERRORS{'UNKNOWN'}; } unless ( defined $opt_W && defined $opt_W ) { print_usage(); exit $ERRORS{'UNKNOWN'}; } if ( $opt_w >= $opt_c) { print "Warning cannot be greater than Critical!\n"; exit $ERRORS{'UNKNOWN'}; } if ( $opt_W >= $opt_C) { print "Warning cannot be greater than Critical!\n"; exit $ERRORS{'UNKNOWN'}; } return $ERRORS{'OK'}; } sub print_usage () { print "Usage: $PROGNAME [-w ] [-c ] [-W ] [-C ] [-t ] [-v verbose]\n"; } sub print_help () { print_revision($PROGNAME,'$Revision: 1.1 $'); print "Copyright (c) 2002 Subhendu Ghosh\n"; print "\n"; print_usage(); print "\n"; print " Checks the number of messages in the mail queue\n"; print " Feedback/patches to support non-sendmail mailqueue welcome\n\n"; print "-w (--warning) = Min. number of messages in queue to generate warning\n"; print "-c (--critical) = Min. number of messages in queue to generate critical alert ( w < c )\n"; print "-W (--Warning) = Min. number of messages for same domain in queue to generate warning\n"; print "-C (--Critical) = Min. number of messages for same domain in queue to generate critical alert ( W < C )\n"; print "-t (--timeout) = Plugin timeout in seconds (default = $utils::TIMEOUT)\n"; print "-h (--help)\n"; print "-V (--version)\n"; print "-v (--verbose) = debugging output\n"; print "\n\n"; support(); } From Ton.Voon at egg.com Fri Apr 11 00:28:06 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Fri Apr 11 00:28:06 2003 Subject: [Nagiosplug-devel] check_mailq: extended to multiqueue and so urce and destinations Message-ID: <53104E20A25CD411B556009027E50636079A99E0@pnnemp02.pn.egg.com> Carlos, This looks like an interesting patch. Can you submit it on sourceforge so we can track it: http://sourceforge.net/tracker/?group_id=29880&atid=397599. Ton > -----Original Message----- > From: Carlos Canau [SMTP:canau at keka.KPNQwest.pt] > Sent: Thursday, April 10, 2003 5:51 PM > To: nagiosplug-devel at lists.sourceforge.net > Subject: [Nagiosplug-devel] check_mailq: extended to multiqueue and > source and destinations > > Dear all, > > I've extended check_mailq to support multiqueues on sendmail and to > check the FROM's and TO's of the messages in the queue and to sound > the alarm if they are too many. > > I've attached the code if somebody finds it interesting. > > regards, > << File: check_mailq_full.pl >> This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. From noreply at sourceforge.net Fri Apr 11 09:17:07 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Apr 11 09:17:07 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-719783 ] check_procs -a strstr result test wrong? Message-ID: Bugs item #719783, was opened at 2003-04-11 12:32 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=719783&group_id=29880 Category: Argument proccessing Group: None Status: Open Resolution: None Priority: 5 Submitted By: Laurent Vaslin (laurentv) Assigned to: Nobody/Anonymous (nobody) Summary: check_procs -a strstr result test wrong? Initial Comment: Hi, I'm using nagios-plugins-1.3.0 (stable release) on a solaris 8 sparc machine I'm monitoring perl processes running as show with command: ps -Ao 's uid ppid comm args' |grep perl S 0 1 /usr/bin/perl /usr/bin/perl /usr/local/script/test.pl S 0 1 /usr/bin/perl /usr/bin/perl /usr/local/script/prod.pl The command : check_procs -w 1: -c 1: -a /usr/local/script/prod.pl return CRITICAL - 0 processes running with args /usr/local/script/prod.pl My investigations leads me to the following file nagios-plugins-1.3.0/plugins/check_progs.c Ligne 138 (strstr (procargs, args) == procargs)) Shoudn't it be (strstr (procargs, args) != NULL)) then check_procs -w 1: -c 1: -a /usr/local/script/prod.pl return OK - 2 processes running with args /usr/local/script/prod.pl and check_procs -w 1: -c 1: -C /usr/bin/perl - a /usr/local/script/prod.pl return OK - 1 processes running with command name /usr/bin/perl, args /usr/local/script/prod.pl Am I correct ? Tks Laurent ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=719783&group_id=29880 From noreply at sourceforge.net Fri Apr 11 09:56:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Apr 11 09:56:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-698384 ] check_hpjd with net-snmp 5.0 - argument fix Message-ID: Patches item #698384, was opened at 2003-03-05 19:17 Message generated for change (Comment added) made by sghosh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=698384&group_id=29880 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Michael (mharo) Assigned to: Subhendu Ghosh (sghosh) Summary: check_hpjd with net-snmp 5.0 - argument fix Initial Comment: the argument order to snmpget need to be changed to support net-snmp 5.0. *** plugins/check_hpjd.c.orig Wed Mar 5 15:50:13 2003 --- plugins/check_hpjd.c Wed Mar 5 15:53:43 2003 *************** *** 139,146 **** HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY ); /* get the command to run */ ! sprintf (command_line, "%s -m : -v 1 %s -c %s % s", PATH_TO_SNMPGET, addr ess, ! community, query_string); /* run the command */ child_process = spopen (command_line); --- 139,146 ---- HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY ); /* get the command to run */ ! sprintf (command_line, "%s -m : -v 1 -c %s %s % s", PATH_TO_SNMPGET, ! community, address, query_string); /* run the command */ child_process = spopen (command_line); ---------------------------------------------------------------------- >Comment By: Subhendu Ghosh (sghosh) Date: 2003-04-11 13:11 Message: Logged In: YES user_id=46572 fixed in both r1_3_0 and HEAD branches ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=698384&group_id=29880 From noreply at sourceforge.net Fri Apr 11 15:14:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Apr 11 15:14:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-691412 ] check_ifstatus not displaying interface description Message-ID: Bugs item #691412, was opened at 2003-02-22 19:28 Message generated for change (Comment added) made by sghosh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=691412&group_id=29880 Category: None Group: Release (specify) >Status: Pending >Resolution: Accepted Priority: 5 Submitted By: Mike McHenry (mmchenry) Assigned to: Subhendu Ghosh (sghosh) Summary: check_ifstatus not displaying interface description Initial Comment: check_ifstatus no longer displays the interface descriptions. See attached patch for fix. ---------------------------------------------------------------------- >Comment By: Subhendu Ghosh (sghosh) Date: 2003-04-11 18:30 Message: Logged In: YES user_id=46572 Mike - added the ifAlias support - which matches LocIfDescr from Cisco. My earlier mapping to ifName was incorrect. ---------------------------------------------------------------------- Comment By: Subhendu Ghosh (sghosh) Date: 2003-02-23 12:44 Message: Logged In: YES user_id=46572 LocIfDescr is a cisco specific MIB. Without its use the plugin is more generally useful. ifName from ifXTable contains the same data as LocIfDescr if your IOS support rfc1573 (interfaces) try using the -I switch to enable ifMIB -sg ---------------------------------------------------------------------- Comment By: Mike McHenry (mmchenry) Date: 2003-02-22 19:33 Message: Logged In: YES user_id=718530 See updated patch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=691412&group_id=29880 From noreply at sourceforge.net Fri Apr 11 17:03:27 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Apr 11 17:03:27 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-719783 ] check_procs -a strstr result test wrong? Message-ID: Bugs item #719783, was opened at 2003-04-11 17:32 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=719783&group_id=29880 Category: Argument proccessing Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Laurent Vaslin (laurentv) >Assigned to: Ton Voon (tonvoon) Summary: check_procs -a strstr result test wrong? Initial Comment: Hi, I'm using nagios-plugins-1.3.0 (stable release) on a solaris 8 sparc machine I'm monitoring perl processes running as show with command: ps -Ao 's uid ppid comm args' |grep perl S 0 1 /usr/bin/perl /usr/bin/perl /usr/local/script/test.pl S 0 1 /usr/bin/perl /usr/bin/perl /usr/local/script/prod.pl The command : check_procs -w 1: -c 1: -a /usr/local/script/prod.pl return CRITICAL - 0 processes running with args /usr/local/script/prod.pl My investigations leads me to the following file nagios-plugins-1.3.0/plugins/check_progs.c Ligne 138 (strstr (procargs, args) == procargs)) Shoudn't it be (strstr (procargs, args) != NULL)) then check_procs -w 1: -c 1: -a /usr/local/script/prod.pl return OK - 2 processes running with args /usr/local/script/prod.pl and check_procs -w 1: -c 1: -C /usr/bin/perl - a /usr/local/script/prod.pl return OK - 1 processes running with command name /usr/bin/perl, args /usr/local/script/prod.pl Am I correct ? Tks Laurent ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-04-12 01:18 Message: Logged In: YES user_id=664364 Laurent, Thanks for the report. If you run: ./check_procs -a "/usr/bin/perl /usr/local/script/prod.pl" this should catch the process you expect. I take your point about the pattern matching. If you run: ./check_procs -a /usr/bin/perl this will pick up the 2 processes two even though it is not a full match. Based on this, I'll make the changes you wish and clarify the help. One other addition: ignore any processes with command=check_procs, otherwise will never get 0 processes as the check_procs call itself will always match the partial -a in its own argument list. Changes made to HEAD and r1_3_0 and closing this call. Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=719783&group_id=29880 From noreply at sourceforge.net Fri Apr 11 23:30:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Apr 11 23:30:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-720097 ] check_imap and check_pop Message-ID: Feature Requests item #720097, was opened at 2003-04-12 16:47 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=720097&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Andrew Pollock (apollock) Assigned to: Nobody/Anonymous (nobody) Summary: check_imap and check_pop Initial Comment: >From what I can determine, in version 1.3.0 of the Nagios plugins (at least in the RPM) check_pop and check_imap are symlinks to check_tcp, which appears to have some rudimentary smarts to look at how it was invoked so to display slightly different usage information. Can real check_imap and check_pop plugins come back in future, that also support checking via SSL? Do you accept plugins in Perl, or must they be in C? I'm happy to submit the Perl plugin I'll have to write. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=720097&group_id=29880 From noreply at sourceforge.net Sat Apr 12 00:44:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat Apr 12 00:44:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-720097 ] check_imap and check_pop Message-ID: Feature Requests item #720097, was opened at 2003-04-12 02:47 Message generated for change (Comment added) made by kdebisschop You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=720097&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Andrew Pollock (apollock) Assigned to: Nobody/Anonymous (nobody) Summary: check_imap and check_pop Initial Comment: >From what I can determine, in version 1.3.0 of the Nagios plugins (at least in the RPM) check_pop and check_imap are symlinks to check_tcp, which appears to have some rudimentary smarts to look at how it was invoked so to display slightly different usage information. Can real check_imap and check_pop plugins come back in future, that also support checking via SSL? Do you accept plugins in Perl, or must they be in C? I'm happy to submit the Perl plugin I'll have to write. ---------------------------------------------------------------------- >Comment By: Karl DeBisschop (kdebisschop) Date: 2003-04-12 03:59 Message: Logged In: YES user_id=1671 SSL code is part of check_tcp. You are possibly looking for check_simap and check_spop (Yes we do accept perl plugins) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=720097&group_id=29880 From noreply at sourceforge.net Sat Apr 12 21:31:15 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat Apr 12 21:31:15 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-710973 ] check_mailq fails to check the return code of system utility Message-ID: Bugs item #710973, was opened at 2003-03-27 15:11 Message generated for change (Comment added) made by sghosh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=710973&group_id=29880 Category: Parsing problem Group: CVS >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Subhendu Ghosh (sghosh) Assigned to: Subhendu Ghosh (sghosh) Summary: check_mailq fails to check the return code of system utility Initial Comment: Need to check whether mailq exited with a non-zero (bad) code before trying to parse and print out possibly non-existent data. -sg ---------------------------------------------------------------------- >Comment By: Subhendu Ghosh (sghosh) Date: 2003-04-13 00:47 Message: Logged In: YES user_id=46572 initialized values - added features. should be fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=710973&group_id=29880 From roy at karlsbakk.net Mon Apr 14 06:37:11 2003 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Mon Apr 14 06:37:11 2003 Subject: [Nagiosplug-devel] error building from cvs Message-ID: <200304141534.53436.roy@karlsbakk.net> utility:/usr/src/nagiosplug# aclocal -I lib utility:/usr/src/nagiosplug# autoconf aclocal.m4:898: error: m4_defn: undefined macro: _m4_divert_diversion autoconf/functions.m4:1486: AM_FUNC_STRTOD is expanded from... aclocal.m4:898: the top level autom4te: /usr/bin/m4 failed with exit status: 1 utility:/usr/src/nagiosplug# any ideas what this might be? -- Roy Sigurd Karlsbakk, Datavaktmester ProntoTV AS - http://www.pronto.tv/ Tel: +47 9801 3356 Computers are like air conditioners. They stop working when you open Windows. From cbriguet at exaprobe.com Mon Apr 14 09:45:07 2003 From: cbriguet at exaprobe.com (Christophe BRIGUET) Date: Mon Apr 14 09:45:07 2003 Subject: [Nagiosplug-devel] Prelude plugin for Nagios Message-ID: <1050338610.1236.350.camel@R600.exaprobe.net> Hello, we just put online some Exaprobe's contributions, in particular a output plugin to centralize monitoring alerts sent by Nagios on a IDMEF manager (Prelude). This plugin is available at http://www.exaprobe.com/labs/downloads/Nagios_Plugin/prelude-nagios-0.0.2.tar.gz A full paper about Nagios and security monitoring is available at http://www.exaprobe.com/labs/manage/index.html Comments are welcomed, off-list is preferable and we will post a summary. Thanks. -- Christophe BRIGUET (Technical Manager) GPG KeyID: 2DF3E1E8 Public Key : http://www.exaprobe.org/cbriguet.asc Key fingerprint: 61D7 EF8F 704F 3D62 018A ECBF 6F9A 28BE 2DF3 E1E8 From atpol at yahoo.com Wed Apr 16 00:48:05 2003 From: atpol at yahoo.com (Attilio Poleggi) Date: Wed Apr 16 00:48:05 2003 Subject: [Nagiosplug-devel] Compiling nagios-plugins-1.3.0 on HP-UX 11.00 Message-ID: <20030416074740.37170.qmail@web11605.mail.yahoo.com> In nagios-plugins-1.3.0/plugins/Makefile on HP-UX 11.0 variable AR is not defined = ar, so "make all" fails. Compilation works fine with regex.h OSF/1 1.2 regards Attilio Poleggi __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com From magnus at hacka.net Wed Apr 16 06:10:04 2003 From: magnus at hacka.net (Magnus Glantz) Date: Wed Apr 16 06:10:04 2003 Subject: [Nagiosplug-devel] check_real (nagios-plugins 1.3.0) 1.4 Message-ID: <001e01c30419$c9edbc40$973dd2d9@telia.com> Hiyas, didnt know where to send this exatly to.. I sending it in hope that it might be of help to someone. I noticed that after upgrading from check_real (nagios-plugins 1.3.0-beta2) 1.2 to check_real (nagios-plugins 1.3.0) 1.4, all my "regular" Real tests: ./check_real -H hostname Started to get: "RTSP/1.0 404 Not Found" When not looking for anything, this is an strange error message.. I noticed in the source for check_real that the server_url pointer had been changed to char *server_url = "/"; to prevent software failure. Now.. with this as 'default url' the plugin will look for "/" in the server. That was what was causing the error messages. The streaming servers I check demand that you give a valid URL and "/" is not one. I don't know if this is actually a good solution, it's a quick dirty hack that worked out good for me. Even though I never have experienced any problems.. beware.. the author writes about his change: ----------snip----------- 2003-01-28 kdebisschop at alert.infoplease.com * plugins/check_real.c: make sure host_name is set and remove NULL string inits that can lead to segfaults ----------snip----------- The system that I compiled on is Linux Redhat 7.2 (i386) with 2.4.18-27.7.x Kernel. I can't see any reason why this shouldnt work on most systems though. What to do; Change below syntax in check_real.c: --------------original source snip---------------- int server_port = PORT; char *server_address = ""; char *host_name = ""; char *server_url = "/"; char *server_expect = EXPECT; int warning_time = 0; int check_warning_time = FALSE; int critical_time = 0; int check_critical_time = FALSE; int verbose = FALSE; --------------snip---------------- TO --------------original source snip---------------- int server_port = PORT; char *server_address = ""; char *host_name = ""; char *server_url = NULL; char *server_expect = EXPECT; int warning_time = 0; int check_warning_time = FALSE; int critical_time = 0; int check_critical_time = FALSE; int verbose = FALSE; --------------snip---------------- AND --------------original source snip---------------- /* Part II - Check stream exists and is ok */ if (result == STATE_OK) { ---------------------snip------------------------------- TO /* Part II - Check stream exists and is ok */ if ((result == STATE_OK) && (server_url != NULL)) { And recompile. Cheers, //Magnus Glantz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stefan.Schindewolf at Infraserv.com Thu Apr 17 03:21:48 2003 From: Stefan.Schindewolf at Infraserv.com (Schindewolf, Stefan, Infraserv-Hoechst/DE) Date: Thu Apr 17 03:21:48 2003 Subject: [Nagiosplug-devel] NSClient "Malformed request or internal error. Check EventLog:Non e&2&1" Message-ID: <2B6CA561B67B72418738D8F3D7853DA3010DA126@20-exchange-1.infraserv.com> Hello. The problem occurs with NSCLIENT 1.07.1 I received the following error, that has been concerning several people on the list: The command line is something like: "/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v CPULOAD -l 1,85,95,5,75,85,15,55,75" The output is: "Malformed request or internal error. Check EventLog:None&2&1" The output of event log is: "Division by zero" We tracked it down to line 250 in uNSCLIENT.pas: REQ_CPUTOTAL: FindAnswer:= IntToStr(CPUBuffer.GetAverage(StrToIntDef(asArgv[2],60)*12)); It must be the GetAverage call because everything else could not raise this exception. We suppose CPUBuffer.GetAverage is a win32 api call !? Can we sue MS for that "division by zero" shit? On some hosts (running service pack 2) there is no problem. We tried to call the windows performance counters directly (""/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v COUNTER ...") but are only receiving either 100% or 0% CPULOAD, depending on our parameters. Has anyone a clue how to workaround it? Thanks in advance and best regards. > Stefan Schindewolf > > Infraserv GmbH & Co H?chst KG > Service Center Informationstechnologie > D710, D-65926 Frankfurt > Telefon: (069)305 - 43870 > Fax: (069)305 - 23549 > Mail: stefan.schindewolf at infraserv.com > > From Stefan.Schindewolf at Infraserv.com Thu Apr 17 05:39:05 2003 From: Stefan.Schindewolf at Infraserv.com (Schindewolf, Stefan, Infraserv-Hoechst/DE) Date: Thu Apr 17 05:39:05 2003 Subject: [Nagiosplug-devel] NSCLIENT "Malformed request or internal error. Check EventLog:Non e&2&1" Message-ID: <2B6CA561B67B72418738D8F3D7853DA3010DA127@20-exchange-1.infraserv.com> Hello. The problem occurs with NSCLIENT 1.07.1 I received the following error, that has been concerning several people on the list: The command line is something like: "/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v CPULOAD -l 1,85,95,5,75,85,15,55,75" The output is: "Malformed request or internal error. Check EventLog:None&2&1" The output of event log is: "Division by zero" We tracked it down to line 250 in uNSCLIENT.pas: REQ_CPUTOTAL: FindAnswer:= IntToStr(CPUBuffer.GetAverage(StrToIntDef(asArgv[2],60)*12)); It must be the GetAverage call because everything else could not raise this exception. We suppose CPUBuffer.GetAverage is a win32 api call !? Can we sue MS for that "division by zero" stuff? On some hosts (running service pack 2) there is no problem. We tried to call the windows performance counters directly (""/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v COUNTER ...") but are only receiving either 100% or 0% CPULOAD, depending on our parameters. Has anyone a clue how to workaround it? Thanks in advance and best regards. > Mit freundlichen Gr??en > > Stefan Schindewolf > > Infraserv GmbH & Co H?chst KG > Service Center Informationstechnologie > D710, D-65926 Frankfurt > Telefon: (069)305 - 43870 > Fax: (069)305 - 23549 > Mail: stefan.schindewolf at infraserv.com > > From Fabian.Pehla at Dregis.com Thu Apr 17 06:51:10 2003 From: Fabian.Pehla at Dregis.com (Pehla, Fabian) Date: Thu Apr 17 06:51:10 2003 Subject: [Nagiosplug-devel] RE: [Nagiosplug-help] check-http with client certificate authoriz ation Message-ID: <640A7EC6DCCAD511A5250008C75D52BD0375FC99@ffz00zm2.ffz00e.mail.dresdner.net> Hi, I've implemented a check_http Plugin which is - besides some other new features - able to use client certifictes for authentication. This plugin implements nearly all options which are supported by the original plugin from 1.3.0 release, but the implementation is quite different. It is based on OpenSSL functionality, so other SSL implementations won't work The "Error in recv()" you mentioned below just means that the server's request for a client certificate is not handled by the plugin from release 1.3.0. I assume your server requests a client certificate prior to asking for basic authentication, am I right? If you're interested I may make my Version of check_http available on sourceforge. Fabian -----Original Message----- From: Heckert, Torsten [mailto:torsten.heckert at sap.com] Sent: Thursday, April 17, 2003 3:30 PM To: 'nagiosplug-help at lists.sourceforge.net' Subject: [Nagiosplug-help] check-http with client certificate authorization Hi, I am currently evaluating to monitor some of our webservers using nagios. Some of them offer SingleSignOn by accepting clientside certificates. It is also possible to log on using basic authentication. When I access these servers check_http seems to crash: [server accepting SSO] > ./check_http -H sapneth1.wdf.sap.corp -S -v -a xxxxx:yyyyy SSL seeding: OK Error in recv() [same server using http] > ./check_http -H sapneth1.wdf.sap.corp -p 1080 -a xxxxx:yyyyy HTTP ok: HTTP/1.1 200 OK - 7.382 second response time |time= 7.382 [server without SSO using https] > ./check_http -H www001.sap-ag.de -S HTTP ok: HTTP/1.1 200 OK - 0.727 second response time |time= 0.727 Version: check_http (nagios-plugins 1.3.0) 1.24 Is there a possibibilty for a workaround or a different plugin that may solve this issue? Thanks in advance, Torsten ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Apr 17 07:23:22 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu Apr 17 07:23:22 2003 Subject: [Nagiosplug-devel] RE: [Nagiosplug-help] check-http with client certificate authoriz ation In-Reply-To: <640A7EC6DCCAD511A5250008C75D52BD0375FC99@ffz00zm2.ffz00e.mail.dresdner.net> Message-ID: check_http uses OpenSSL already. Can you see if the code can be made into a patch? If not post it on Sourceforge and a new plugin. -sg On Thu, 17 Apr 2003, Pehla, Fabian wrote: > Hi, > > I've implemented a check_http Plugin which is - besides some other new > features - able to use client certifictes for authentication. > > This plugin implements nearly all options which are supported by the > original plugin from 1.3.0 release, but the implementation is quite > different. It is based on OpenSSL functionality, so other SSL > implementations won't work > > The "Error in recv()" you mentioned below just means that the server's > request for a client certificate is not handled by the plugin from release > 1.3.0. I assume your server requests a client certificate prior to asking > for basic authentication, am I right? > > If you're interested I may make my Version of check_http available on > sourceforge. > > Fabian > > -----Original Message----- > From: Heckert, Torsten [mailto:torsten.heckert at sap.com] > Sent: Thursday, April 17, 2003 3:30 PM > To: 'nagiosplug-help at lists.sourceforge.net' > Subject: [Nagiosplug-help] check-http with client certificate > authorization > > > Hi, > > I am currently evaluating to monitor some of our webservers using nagios. > Some of them offer SingleSignOn by accepting clientside certificates. It is > also possible to log on using basic authentication. > > When I access these servers check_http seems to crash: > > [server accepting SSO] > > ./check_http -H sapneth1.wdf.sap.corp -S -v -a xxxxx:yyyyy > SSL seeding: OK > Error in recv() > > [same server using http] > > ./check_http -H sapneth1.wdf.sap.corp -p 1080 -a xxxxx:yyyyy > HTTP ok: HTTP/1.1 200 OK - 7.382 second response time |time= 7.382 > > [server without SSO using https] > > ./check_http -H www001.sap-ag.de -S > HTTP ok: HTTP/1.1 200 OK - 0.727 second response time |time= 0.727 > > Version: check_http (nagios-plugins 1.3.0) 1.24 > > Is there a possibibilty for a workaround or a different plugin that may > solve this issue? > > Thanks in advance, > Torsten > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagiosplug-help mailing list > Nagiosplug-help at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help > ::: Please include plugins 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:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- From torsten.heckert at sap.com Thu Apr 17 08:16:10 2003 From: torsten.heckert at sap.com (Heckert, Torsten) Date: Thu Apr 17 08:16:10 2003 Subject: [Nagiosplug-devel] RE: [Nagiosplug-help] check-http with client certificate authoriz ation Message-ID: <4B8422D300DD314CA8F52F2F4A7F26840A98DD8C@dewdfx12> Hi Fabian, > I've implemented a check_http Plugin which is - besides some other new > features - able to use client certifictes for authentication. > It is based on OpenSSL functionality, so other SSL implementations won't work sounds perfect! I already use OpenSSL and therefore it shouldn't be a problem on that side. > I assume your server requests a client certificate > prior to asking for basic authentication, am I right? hmm - it is a IIS. Don't know about, but it really seems like that. I just did a check using wfetch but it does not give further info on that issue. > If you're interested I may make my Version of check_http available on > sourceforge. Would be great! I would be very interested as most of my servers use SSO! Happy easter, Torsten From kdebisschop at alert.infoplease.com Fri Apr 18 06:41:12 2003 From: kdebisschop at alert.infoplease.com (Karl DeBisschop) Date: Fri Apr 18 06:41:12 2003 Subject: [Nagiosplug-devel] Re: Plugin translation in French In-Reply-To: <3E9FB0A4.5040800@ifsic.univ-rennes1.fr> References: <1049728426.16506.14.camel@nh--1614-2.nh.pearsoned.com> <3E9FB0A4.5040800@ifsic.univ-rennes1.fr> Message-ID: <1050673223.1031.21.camel@miles.debisschop.net> On Fri, 2003-04-18 at 04:00, Pierre-Antoine Angelini wrote: > Hi Karl > > here we are. Far after "next Monday", but, well, I thought that giving > you some extras days would be appreciated Thanks -- it was helpful. > So. Did you made your mind up ? Yes, I have. Pending agreement by the other developers. I would like to use the framework provided by GNU gettext. The result would be language files that we could farm out to translators for various languages. The work required on our part is basically to mark the various srings in the codes as 'translatable'. Then, basically, we get a list of sentences in english that the translators will maintain and feed back to the development site. This seems to me quite doable for 1.4 development. Of course, if anyone has experience with internationalization, we will accept help in many forms. That means your contribution would not start immediately. But I do think (unless there are major objections to the approach) that we could email a pilot .po file to you in a week or two. I have been reading/rereading 'info gettext', and might mark some code in the next couple of days. And again, thanks for keeping our feet to the fire on this issue. -- Karl > best regards > > PA Angelini > > Karl DeBisschop wrote: > > On Mon, 2003-04-07 at 10:56, Angelini Pierre-Antoine wrote: > > > >>Hi, Karl > >> > >>I come back to you, as we are about to release the first > >>french translation of Nagios. > > > > > > Thanks for keeping up on this. > > > > > >>Did you had time to think about the plugin ? Is there > >>anything you would like to be done (related to translation) ? > > > > > > Have not yet had the time I need. I will try and get myself educated > > this week. > > > > We are in a development cycle with respect to 1.4.x, so we have the > > freedom to make big changes to support this. So I'd like to try and make > > wahtever changes are needed to do it right. > > > > I just need to get my head around what those are/ > > > > > >>Please, let me know. > > > > > > Ping me again if I don't get back to you by next Monday. > > > > And thanks again -- I appreciate the offer and fully intend to take > > advantage of it. > > > > > >>Best regards > >> > >>PA Angelini > > -- Karl DeBisschop From sghosh at sghosh.org Fri Apr 18 08:00:06 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri Apr 18 08:00:06 2003 Subject: [Nagiosplug-devel] Re: Plugin translation in French In-Reply-To: <1050673223.1031.21.camel@miles.debisschop.net> Message-ID: GNU gettext is the way to go. The only caveat I would include is we need to make sure the Nagios UI passes $OUTPUT$ without change. (ie. doesn't apply gettext again) If we can leave $PERFDATA$ as is, that would be great. Some of the output may need to be reconsidered in light of gettext. We do have a lot of text with variables interspersed. Maybe a guideline to put all values after the text, and conatenate after gettext if there a multiple text value pairs would be helpful. Regarding the .po and other gettext files. It might be useful to keep them in a separate cvs module to allow more translators to check in/out. Also need a directory in the actual distribution. -sg On 18 Apr 2003, Karl DeBisschop wrote: > On Fri, 2003-04-18 at 04:00, Pierre-Antoine Angelini wrote: > > Hi Karl > > > > here we are. Far after "next Monday", but, well, I thought that giving > > you some extras days would be appreciated > > Thanks -- it was helpful. > > > So. Did you made your mind up ? > > Yes, I have. Pending agreement by the other developers. I would like to > use the framework provided by GNU gettext. The result would be language > files that we could farm out to translators for various languages. > > The work required on our part is basically to mark the various srings in > the codes as 'translatable'. > > Then, basically, we get a list of sentences in english that the > translators will maintain and feed back to the development site. > > This seems to me quite doable for 1.4 development. > > Of course, if anyone has experience with internationalization, we will > accept help in many forms. > > That means your contribution would not start immediately. But I do think > (unless there are major objections to the approach) that we could email > a pilot .po file to you in a week or two. > > I have been reading/rereading 'info gettext', and might mark some code > in the next couple of days. > > And again, thanks for keeping our feet to the fire on this issue. > > -- > Karl > > > best regards > > > > PA Angelini > > > > Karl DeBisschop wrote: > > > On Mon, 2003-04-07 at 10:56, Angelini Pierre-Antoine wrote: > > > > > >>Hi, Karl > > >> > > >>I come back to you, as we are about to release the first > > >>french translation of Nagios. > > > > > > > > > Thanks for keeping up on this. > > > > > > > > >>Did you had time to think about the plugin ? Is there > > >>anything you would like to be done (related to translation) ? > > > > > > > > > Have not yet had the time I need. I will try and get myself educated > > > this week. > > > > > > We are in a development cycle with respect to 1.4.x, so we have the > > > freedom to make big changes to support this. So I'd like to try and make > > > wahtever changes are needed to do it right. > > > > > > I just need to get my head around what those are/ > > > > > > > > >>Please, let me know. > > > > > > > > > Ping me again if I don't get back to you by next Monday. > > > > > > And thanks again -- I appreciate the offer and fully intend to take > > > advantage of it. > > > > > > > > >>Best regards > > >> > > >>PA Angelini > > > > -- From noreply at sourceforge.net Mon Apr 21 13:16:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 21 13:16:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-725238 ] invalid drive when using check_nt Message-ID: Support Requests item #725238, was opened at 2003-04-21 15:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=725238&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Shane Reutzel (smreutzel) Assigned to: Nobody/Anonymous (nobody) Summary: invalid drive when using check_nt Initial Comment: I am able to retrieve disk information about the C: drive of a remote NT machine using the check_nt script. But, If I try any of the other drives on that machine, I get the following error "Free disk space : Invalid drive". Is there something specific that I need to include in the syntax? Thanks, Shane ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=725238&group_id=29880 From Matthew.Quinney at hollandandholland.com Tue Apr 22 01:35:14 2003 From: Matthew.Quinney at hollandandholland.com (Matthew.Quinney at hollandandholland.com) Date: Tue Apr 22 01:35:14 2003 Subject: [Nagiosplug-devel] Re: [Nagios-users] NSCLIENT "Malformed request or internal error. Check EventLog:Non e&2&1" In-Reply-To: <2B6CA561B67B72418738D8F3D7853DA3010DA127@20-exchange-1.infraserv.com> Message-ID: Stefan, I too have that problem which seems to be very intermittent. If I reduce the number of checks or rasie the time between checks then it seems to get better. Unfortunately I am not much of a programmer to help - but if you should find a way around, please let me know !! Thanks Matthew "Schindewolf, Stefan, Infraserv-Hoechst/DE" Sent by: nagios-users-admin at lists.sourceforge.net 17/04/2003 13:37 To "'nagios-users at lists.sourceforge.net'" , "'nagiosplug-devel at lists.sourceforge.net'" , "'rubiyz1047 at swyz.com'" cc Subject [Nagios-users] NSCLIENT "Malformed request or internal error. Check EventLog:Non e&2&1" Hello. The problem occurs with NSCLIENT 1.07.1 I received the following error, that has been concerning several people on the list: The command line is something like: "/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v CPULOAD -l 1,85,95,5,75,85,15,55,75" The output is: "Malformed request or internal error. Check EventLog:None&2&1" The output of event log is: "Division by zero" We tracked it down to line 250 in uNSCLIENT.pas: REQ_CPUTOTAL: FindAnswer:= IntToStr(CPUBuffer.GetAverage(StrToIntDef(asArgv[2],60)*12)); It must be the GetAverage call because everything else could not raise this exception. We suppose CPUBuffer.GetAverage is a win32 api call !? Can we sue MS for that "division by zero" stuff? On some hosts (running service pack 2) there is no problem. We tried to call the windows performance counters directly (""/usr/local/nagios/libexec/check_nt -H $HOSTADDRESS$ -v COUNTER ...") but are only receiving either 100% or 0% CPULOAD, depending on our parameters. Has anyone a clue how to workaround it? Thanks in advance and best regards. > Mit freundlichen Gr??en > > Stefan Schindewolf > > Infraserv GmbH & Co H?chst KG > Service Center Informationstechnologie > D710, D-65926 Frankfurt > Telefon: (069)305 - 43870 > Fax: (069)305 - 23549 > Mail: stefan.schindewolf at infraserv.com > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 e-mail has been scanned for viruses by the uuNet Internet Managed Scanning Service - powered by MessageLabs. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Apr 22 18:50:28 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue Apr 22 18:50:28 2003 Subject: [Nagiosplug-devel] Re: [Nagios-devel] question about check_ping In-Reply-To: <1395082729.20030422152829@mcflysr.kurgan.ru> Message-ID: Actually a better posted on nagiosplug-devel - its a plugin after all. Would this feature be useful? -sg On Tue, 22 Apr 2003, martin mcflysr wrote: > Hello nagios-devel, > > > How can run check_ping from different outgoing IP address? > > In generic PING (in FreeBSD) this is option > > -S src_addr > Use the following IP address as the source address in outgoing > packets. On hosts with more than one IP address, this option can > be used to force the source address to be something other than > the IP address of the interface the probe packet is sent on. If > the IP address is not one of this machine's interface addresses, > an error is returned and nothing is sent. > > > > May be, this is a feature for new version of check_ping? :) > > > Thank you, > > -- From martin at mcflysr.kurgan.ru Tue Apr 22 23:38:15 2003 From: martin at mcflysr.kurgan.ru (martin mcflysr) Date: Tue Apr 22 23:38:15 2003 Subject: [Nagiosplug-devel] Re[2]: [Nagios-devel] question about check_ping In-Reply-To: References: Message-ID: <864988228.20030423103656@mcflysr.kurgan.ru> Hello Subhendu, Wednesday, April 23, 2003, 5:44:44 AM, you wrote: SG> Actually a better posted on nagiosplug-devel - its a plugin after all. SG> Would this feature be useful? Yes, of course. Example: +--------+ +------+ |unix box|iface1 10.0.0.1 |ROUTER|1.1.1.1 1.1.1.2 | |--------------- NETWORK | |======= ... ISP1 | | CLOUD | | | |iface2 10.0.0.2 | |2.2.2.1 2.2.2.2 | |--------------- | |======= ... ISP2 +--------+ +------+ Unix box have a two interfaces: 10.0.0.1, 10.0.0.2. Router have a two interfaces too: 1.1.1.1 and 2.2.2.1, connected to different ISP. Router have a such route policy, that packet from 10.0.0.1 sending out via router interface 1.1.1.1, and packet from 10.0.0.2 sending out via router interface 2.2.2.1. For exmaple, we need a check from unix box interface of ISP2 (2.2.2.2). we can take command # ping 2.2.2.2 then packets will be route via ISP1, .... external cloud ..., and ISP2. Also, we can take command # ping -S 10.0.0.2 2.2.2.2 In this case, packets will be routed via router interface 2.2.2.1. Now, in nagios, if we are want a check (by check_ping) interfaces some ISPs, that connected to our one router, we are can check this interfaces only via default interface. ufff. [sorry for poor english.] thank you. -- Best regards from future, HillDale martin mailto:martin at mcflysr.kurgan.ru From karl at debisschop.net Wed Apr 23 07:29:32 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Wed Apr 23 07:29:32 2003 Subject: [Nagiosplug-devel] Re[2]: [Nagios-devel] question about check_ping In-Reply-To: <864988228.20030423103656@mcflysr.kurgan.ru> References: <864988228.20030423103656@mcflysr.kurgan.ru> Message-ID: <1051097922.1161.2.camel@miles.debisschop.net> On Wed, 2003-04-23 at 02:36, martin mcflysr wrote: > Hello Subhendu, > > Wednesday, April 23, 2003, 5:44:44 AM, you wrote: > > SG> Actually a better posted on nagiosplug-devel - its a plugin after all. > > SG> Would this feature be useful? > Yes, of course. > > Example: > > > +--------+ +------+ > |unix box|iface1 10.0.0.1 |ROUTER|1.1.1.1 1.1.1.2 > | |--------------- NETWORK | |======= ... ISP1 > | | CLOUD | | > | |iface2 10.0.0.2 | |2.2.2.1 2.2.2.2 > | |--------------- | |======= ... ISP2 > +--------+ +------+ > > > Unix box have a two interfaces: 10.0.0.1, 10.0.0.2. > Router have a two interfaces too: 1.1.1.1 and 2.2.2.1, connected > to different ISP. > > Router have a such route policy, that packet from 10.0.0.1 sending out > via router interface 1.1.1.1, and packet from 10.0.0.2 sending out via > router interface 2.2.2.1. > > > For exmaple, we need a check from unix box interface of ISP2 > (2.2.2.2). we can take command > > # ping 2.2.2.2 > > then packets will be route via ISP1, .... external cloud ..., and ISP2. > > > Also, we can take command > > # ping -S 10.0.0.2 2.2.2.2 > > In this case, packets will be routed via router interface 2.2.2.1. > > > Now, in nagios, if we are want a check (by check_ping) interfaces some > ISPs, that connected to our one router, we are can check this > interfaces only via default interface. I can see the need. But then we have more ugly work trying to detect this option by autoconf. We've talked (mostly Jeremy and I) about a check_icmp that directly acesses the ICMP library functions. Maybe we put that kind of functionality in a new check_icmp? -- Karl From sghosh at sghosh.org Wed Apr 23 07:32:19 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed Apr 23 07:32:19 2003 Subject: [Nagiosplug-devel] Re[2]: [Nagios-devel] question about check_ping In-Reply-To: <1051097922.1161.2.camel@miles.debisschop.net> Message-ID: On 23 Apr 2003, Karl DeBisschop wrote: > On Wed, 2003-04-23 at 02:36, martin mcflysr wrote: > > Hello Subhendu, > > > > Wednesday, April 23, 2003, 5:44:44 AM, you wrote: > > > > SG> Actually a better posted on nagiosplug-devel - its a plugin after all. > > > > SG> Would this feature be useful? > > Yes, of course. > > > > Example: > > > > > > +--------+ +------+ > > |unix box|iface1 10.0.0.1 |ROUTER|1.1.1.1 1.1.1.2 > > | |--------------- NETWORK | |======= ... ISP1 > > | | CLOUD | | > > | |iface2 10.0.0.2 | |2.2.2.1 2.2.2.2 > > | |--------------- | |======= ... ISP2 > > +--------+ +------+ > > > > > > Unix box have a two interfaces: 10.0.0.1, 10.0.0.2. > > Router have a two interfaces too: 1.1.1.1 and 2.2.2.1, connected > > to different ISP. > > > > Router have a such route policy, that packet from 10.0.0.1 sending out > > via router interface 1.1.1.1, and packet from 10.0.0.2 sending out via > > router interface 2.2.2.1. > > > > > > For exmaple, we need a check from unix box interface of ISP2 > > (2.2.2.2). we can take command > > > > # ping 2.2.2.2 > > > > then packets will be route via ISP1, .... external cloud ..., and ISP2. > > > > > > Also, we can take command > > > > # ping -S 10.0.0.2 2.2.2.2 > > > > In this case, packets will be routed via router interface 2.2.2.1. > > > > > > Now, in nagios, if we are want a check (by check_ping) interfaces some > > ISPs, that connected to our one router, we are can check this > > interfaces only via default interface. > > I can see the need. > > But then we have more ugly work trying to detect this option by > autoconf. > > We've talked (mostly Jeremy and I) about a check_icmp that directly > acesses the ICMP library functions. Maybe we put that kind of > functionality in a new check_icmp? > check_icmp - would be fine (anything to limit the pain of discovering syntax ) -- -sg From Jeremy.Russell at chickasaw.net Wed Apr 23 07:43:53 2003 From: Jeremy.Russell at chickasaw.net (Jeremy Russell) Date: Wed Apr 23 07:43:53 2003 Subject: [Nagiosplug-devel] RE: [Nagios-users] NSClient Message-ID: <352B04312822444A962714393AED8A4D1138B5@ADAEVS01.int.chickasaw.net> Yes, we run NSClient on several 2k Servers with SP3, I havn't attempted to check counters but the builtins work fine. The only trouble I came across was when I tried to poll info from our Exchange Cluster Virtual Server. It would cause a wierd unrelated error that would take the exchange server down. But other than that it works like a charm. What is happening with yours exactly? -----Original Message----- From: Matthew.Quinney at hollandandholland.com [mailto:Matthew.Quinney at hollandandholland.com] Sent: Wednesday, April 23, 2003 8:28 AM To: Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; 'rubiyz1047 at swyz.com' Subject: [Nagios-users] NSClient Dear All, On the subject of Nsclient and monitoring Windows servers I was wondering if anybody has got Nsclient monitoring Windows 2000 SP3 performance monitors reliably. We are using Nagios V1.0 and Plugins 1.3.0. If anybody is then please let me know - then I can assume I am doing something wrong. I accept that you can install other SNMP counters etc, but I am trying to make network monitoring as easy as possible - with as fewer clients installed on servers. I have included a sample check command below. I'd be greateful of any help !! Thanks Matthew define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging file usage is %.2f %%" -w 70 -c 80 } -------------- next part -------------- An HTML attachment was scrubbed... URL: From Matthew.Quinney at hollandandholland.com Wed Apr 23 07:57:40 2003 From: Matthew.Quinney at hollandandholland.com (Matthew.Quinney at hollandandholland.com) Date: Wed Apr 23 07:57:40 2003 Subject: [Nagiosplug-devel] NSClient In-Reply-To: <2B6CA561B67B72418738D8F3D7853DA3010DA127@20-exchange-1.infraserv.com> Message-ID: Dear All, On the subject of Nsclient and monitoring Windows servers I was wondering if anybody has got Nsclient monitoring Windows 2000 SP3 performance monitors reliably. We are using Nagios V1.0 and Plugins 1.3.0. If anybody is then please let me know - then I can assume I am doing something wrong. I accept that you can install other SNMP counters etc, but I am trying to make network monitoring as easy as possible - with as fewer clients installed on servers. I have included a sample check command below. I'd be greateful of any help !! Thanks Matthew define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging file usage is %.2f %%" -w 70 -c 80 } -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandromergvaz at uol.com.br Wed Apr 23 08:15:09 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Wed Apr 23 08:15:09 2003 Subject: [Nagiosplug-devel] RES: [Nagios-users] NSClient In-Reply-To: Message-ID: Matthew: It has been discussed here that NSClient has serious problems regading the "-v COUNTER" option. Search the previous e-mails and you?ll see. And trying to monitor Exchange 5.5 mail queues through SNMP, I discovered that Microsoft SNMP implementation get that values from Performance Monitor counters. I say it because in one client, Exchange counters were corrupted and we tried to get them from SNMP instead of NSClient, and only when we rebuilt the perfmon counters the monitoring worked out. HTH, Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Matthew.Quinney at hollandandholland.com Enviada em: quarta-feira, 23 de abril de 2003 10:28 Para: Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; 'rubiyz1047 at swyz.com' Assunto: [Nagios-users] NSClient Dear All, On the subject of Nsclient and monitoring Windows servers I was wondering if anybody has got Nsclient monitoring Windows 2000 SP3 performance monitors reliably. We are using Nagios V1.0 and Plugins 1.3.0. If anybody is then please let me know - then I can assume I am doing something wrong. I accept that you can install other SNMP counters etc, but I am trying to make network monitoring as easy as possible - with as fewer clients installed on servers. I have included a sample check command below. I'd be greateful of any help !! Thanks Matthew define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging file usage is %.2f %%" -w 70 -c 80 } --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.474 / Virus Database: 272 - Release Date: 18/4/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.474 / Virus Database: 272 - Release Date: 18/4/2003 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbishop at ehvert.com Wed Apr 23 09:31:15 2003 From: dbishop at ehvert.com (Dean Bishop) Date: Wed Apr 23 09:31:15 2003 Subject: [Nagiosplug-devel] RE: [Nagios-users] NSClient Message-ID: <2E3E9736615DD311895D00105A9CADED014BCBE3@eentsvr40.ehvert.com> I have nsclient installed on about 50 servers. "reliable" might be a bit of a strong word. It is working for the most part but there are difficulties: Sometimes a reboot results in nsclient losing use of the port to another application A lot of memory (>4G) can be a problem. Some versions (1.7.0 or so) are dirty and leave a ton of messages in the event log ... that being said, aside from SNMP, it is the only way to get the information and the problems can be avoided/ignored/worked around. It would be great if someone had the time to clean it up and finish a great idea. Just my 2cents (keep the change), dean -----Original Message----- From: Matthew.Quinney at hollandandholland.com [mailto:Matthew.Quinney at hollandandholland.com] Sent: April 23, 2003 1:28 PM To: Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; 'rubiyz1047 at swyz.com' Subject: [Nagios-users] NSClient Dear All, On the subject of Nsclient and monitoring Windows servers I was wondering if anybody has got Nsclient monitoring Windows 2000 SP3 performance monitors reliably. We are using Nagios V1.0 and Plugins 1.3.0. If anybody is then please let me know - then I can assume I am doing something wrong. I accept that you can install other SNMP counters etc, but I am trying to make network monitoring as easy as possible - with as fewer clients installed on servers. I have included a sample check command below. I'd be greateful of any help !! Thanks Matthew define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging file usage is %.2f %%" -w 70 -c 80 } -------------- next part -------------- An HTML attachment was scrubbed... URL: From noreply at sourceforge.net Wed Apr 23 10:24:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Apr 23 10:24:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-726385 ] updated check_traffic plugin v0.91b Message-ID: New Plugins item #726385, was opened at 2003-04-23 17:23 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=726385&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mike Kazmier (mikekazmier) Assigned to: Nobody/Anonymous (nobody) Summary: updated check_traffic plugin v0.91b Initial Comment: I have patched the make_config script to correctly report interfaces from cisco routers and create the RRD files properly. Fixed other small bugs in script. Included a new script called set_perms which will set the permissions correctly to allow RRD file updates and creation of the graphs in a default nagios installation. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=726385&group_id=29880 From earl at switchmanagement.com Wed Apr 23 12:13:16 2003 From: earl at switchmanagement.com (Earl C. Ruby III) Date: Wed Apr 23 12:13:16 2003 Subject: [Nagiosplug-devel] check_disk inconsistency Message-ID: <200304231203.42934.earl@switchmanagement.com> I am trying to use check disk to send me a critical warning when I have both less than 5% free space AND less than 1GB free on a volume. If I use the command: check_disk -w 10%,1500000 -c 5%,1000000 This works on small partitions that have more than 5% free space AND less than 1GB free. In these cases the volume is shown as OK: # ./check_disk -w 10%,1500000 -c 5%,1000000 -p /dev/sda1 DISK OK [92204 kB (91%) free on /dev/sda1] If I reverse the order of the % and KB: # ./check_disk -w 1500000,10% -c 1000000,5% -p /dev/sda1 DISK CRITICAL [92204 kB (91%) free on /dev/sda1] Looking at the source code I see that the parameter parsing only works if you pass KB,% -- it only grabs the percentage if you pass %,KB. Also looking at the source code I see: int check_disk (usp, free_disk) { int result = STATE_UNKNOWN; /* check the percent used space against thresholds */ if (usp >= 0 && usp >= (100.0 - c_dfp)) result = STATE_CRITICAL; else if (c_df >= 0 && free_disk <= c_df) result = STATE_CRITICAL; else if (usp >= 0 && usp >= (100.0 - w_dfp)) result = STATE_WARNING; else if (w_df >= 0 && free_disk <= w_df) result = STATE_WARNING; else if (usp >= 0.0) result = STATE_OK; return result; } This results in an OR condition being applied to % free and KB free, which is not what you want for checking disks. For checking disks you want an AND condition, like so: int check_disk (usp, free_disk) { int result = STATE_UNKNOWN; /* check the percent used space against thresholds */ if (usp >= 0 && c_dfp >= 0 && c_df < 0 && usp >= (100.0 - c_dfp)) result = STATE_CRITICAL; else if (c_df >= 0 && c_dfp < 0 && free_disk <= c_df) result = STATE_CRITICAL; else if (usp >= 0 && c_dfp >= 0 && usp >= (100.0 - c_dfp) && c_df >= 0 && free_disk <= c_df) result = STATE_CRITICAL; else if (usp >= 0 && w_dfp >= 0 && w_df < 0 && usp >= (100.0 - w_dfp)) result = STATE_WARNING; else if (w_df >= 0 && w_dfp < 0 && free_disk <= w_df) result = STATE_WARNING; else if (usp >= 0 && w_dfp >= 0 && usp >= (100.0 - w_dfp) && w_df >= 0 && free_disk <= w_df) result = STATE_WARNING; else if (usp >= 0.0) result = STATE_OK; return result; } Then it would correctly apply AND conditions and give you applicable results for both very small and very large disk volumes. Unfortunately I'm having problems compiling the source for the plugins "as is" without any modifications. :-( -- Earl C. Ruby III Senior System Engineer / Developer Switch Management From earl at switchmanagement.com Wed Apr 23 12:13:20 2003 From: earl at switchmanagement.com (Earl C. Ruby III) Date: Wed Apr 23 12:13:20 2003 Subject: [Nagiosplug-devel] Compiling plugins Message-ID: <200304231213.08910.earl@switchmanagement.com> According to the docs for nagios-plugins-1.3.0: "Currently we are only supporting autoconf 2.13 and automake 1.4p5. Support for the latest autoconf and automake are in the works." Are there any preliminary configuration files available for this? I'm getting error messages from autoheader and I'd like to clear them up. I'm using autoconf 2.53 and automake 1.6.3. ---------------------------------------------------------------------------------------- # aclocal -I lib # autoconf # autoheader WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' WARNING: and `config.h.top', to define templates for `config.h.in' WARNING: is deprecated and discouraged. WARNING: Using the third argument of `AC_DEFINE' and WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without WARNING: `acconfig.h': WARNING: AC_DEFINE([NEED_MAIN], 1, WARNING: [Define if a function `main' is needed.]) WARNING: More sophisticated templates can also be produced, see the WARNING: documentation. autoheader: `plugins/config.h.in' is unchanged ---------------------------------------------------------------------------------------- -- Earl C. Ruby III Senior System Engineer / Developer Switch Management From sghosh at sghosh.org Wed Apr 23 13:30:11 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed Apr 23 13:30:11 2003 Subject: [Nagiosplug-devel] Compiling plugins In-Reply-To: <200304231213.08910.earl@switchmanagement.com> Message-ID: You cannot clear up all the warnings if using 2.53. But you can safely ignore those warnings. You can try the CVS HEAD and the autoconf 2.53 BTW: check_disk - can you post the patch on sourceforge. -sg On Wed, 23 Apr 2003, Earl C. Ruby III wrote: > According to the docs for nagios-plugins-1.3.0: "Currently we are only > supporting autoconf 2.13 and automake 1.4p5. Support for the latest autoconf > and automake are in the works." > > Are there any preliminary configuration files available for this? I'm getting > error messages from autoheader and I'd like to clear them up. I'm using > autoconf 2.53 and automake 1.6.3. > > ---------------------------------------------------------------------------------------- > > # aclocal -I lib > # autoconf > # autoheader > WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' > WARNING: and `config.h.top', to define templates for `config.h.in' > WARNING: is deprecated and discouraged. > > WARNING: Using the third argument of `AC_DEFINE' and > WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without > WARNING: `acconfig.h': > > WARNING: AC_DEFINE([NEED_MAIN], 1, > WARNING: [Define if a function `main' is needed.]) > > WARNING: More sophisticated templates can also be produced, see the > WARNING: documentation. > autoheader: `plugins/config.h.in' is unchanged > > ---------------------------------------------------------------------------------------- > > -- From noreply at sourceforge.net Wed Apr 23 15:15:10 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Apr 23 15:15:10 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-726552 ] Fixed check_disk to AND % and KB values Message-ID: Patches item #726552, was opened at 2003-04-23 15:14 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=726552&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Earl Ruby (eruby) Assigned to: Nobody/Anonymous (nobody) Summary: Fixed check_disk to AND % and KB values Initial Comment: Fixed the parameter parsing to work regardless of the order of the values -- now either "%,KB" or "KB,%" work for -w and -c parameters. When both % and KB are specified, the results of the tests are now logically AND-ed together, rather than OR-ed, so a disk check with -c 5%,1000000 specified would fail if a disk volume had BOTH less than 5% free space AND less than 1GB free. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=726552&group_id=29880 From rubiyz at swyz.com Wed Apr 23 22:05:05 2003 From: rubiyz at swyz.com (rubiyz) Date: Wed Apr 23 22:05:05 2003 Subject: [Nagiosplug-devel] RE: [Nagios-users] NSClient Message-ID: <3C7B285D6B551441A8930A455196C154268A@c00-ad-00.ocea.ch> GFI MailSecurity's HTML threat engine found HTML scripts in this email and has disabled them. Hi, Thanks for the feedback. I'm also fully aware than there are some painful issues with NSClient. As this tool is still very much used, I'll try to bring it to a new level of reliability, maybe using another technology... If someone can give me some help on the Unix plug in part, we could save some time in the development ... I'll do my best to get it very soon! Best regards, Yves -----Original Message----- From: Dean Bishop [mailto:dbishop at ehvert.com] Sent: mercredi, 23. avril 2003 18:31 To: 'Matthew.Quinney at hollandandholland.com'; Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; rubiyz Subject: RE: [Nagios-users] NSClient I have nsclient installed on about 50 servers. "reliable" might be a bit of a strong word. It is working for the most part but there are difficulties: Sometimes a reboot results in nsclient losing use of the port to another application A lot of memory (>4G) can be a problem. Some versions (1.7.0 or so) are dirty and leave a ton of messages in the event log ... that being said, aside from SNMP, it is the only way to get the information and the problems can be avoided/ignored/worked around. It would be great if someone had the time to clean it up and finish a great idea. Just my 2cents (keep the change), dean -----Original Message----- From: Matthew.Quinney at hollandandholland.com [mailto:Matthew.Quinney at hollandandholland.com] Sent: April 23, 2003 1:28 PM To: Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; 'rubiyz1047 at swyz.com' Subject: [Nagios-users] NSClient Dear All, On the subject of Nsclient and monitoring Windows servers I was wondering if anybody has got Nsclient monitoring Windows 2000 SP3 performance monitors reliably. We are using Nagios V1.0 and Plugins 1.3.0. If anybody is then please let me know - then I can assume I am doing something wrong. I accept that you can install other SNMP counters etc, but I am trying to make network monitoring as easy as possible - with as fewer clients installed on servers. I have included a sample check command below. I'd be greateful of any help !! Thanks Matthew define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging file usage is %.2f %%" -w 70 -c 80 } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From roy at karlsbakk.net Thu Apr 24 01:23:07 2003 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Thu Apr 24 01:23:07 2003 Subject: [Nagiosplug-devel] Nagios hanging with 100% cpu load Message-ID: <200304241022.09836.roy@karlsbakk.net> hi sometimes, hangios stops responding, using 100% cpu. When trying to strace -p , I get no output. It can keep hanging for hours when this happens. I need to restart it. I'm running nagios 1.0 is this a known bug? roy -- Roy Sigurd Karlsbakk, Datavaktmester ProntoTV AS - http://www.pronto.tv/ Tel: +47 9801 3356 Computers are like air conditioners. They stop working when you open Windows. From Matthew.Quinney at hollandandholland.com Thu Apr 24 08:14:12 2003 From: Matthew.Quinney at hollandandholland.com (Matthew.Quinney at hollandandholland.com) Date: Thu Apr 24 08:14:12 2003 Subject: [Nagiosplug-devel] RE: [Nagios-users] NSClient In-Reply-To: <3C7B285D6B551441A8930A455196C154268A@c00-ad-00.ocea.ch> Message-ID: Dear All, Thanks for all your feedback on this issue. Yves - I think that NSClient is a great product and is doing maybe 70% of what we actually need, but it would be great to go the full distance and get the performance counters working so we can measure paging file usage etc. Unfortunately I am not much of a UNIX coder, but would love to try and help in any way possible. Matt ____________________________________________ "rubiyz" 24/04/2003 06:03 To "Dean Bishop" , , "Schindewolf, Stefan, Infraserv-Hoechst/DE" cc , , , "rubiyz" Subject RE: [Nagios-users] NSClient GFI MailSecurity's HTML threat engine found HTML scripts in this email and has disabled them. Hi, Thanks for the feedback. I?m also fully aware than there are some painful issues with NSClient. As this tool is still very much used, I?ll try to bring it to a new level of reliability, maybe using another technology... If someone can give me some help on the Unix plug in part, we could save some time in the development ... I?ll do my best to get it very soon! Best regards, Yves -----Original Message----- From: Dean Bishop [mailto:dbishop at ehvert.com] Sent: mercredi, 23. avril 2003 18:31 To: 'Matthew.Quinney at hollandandholland.com'; Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; rubiyz Subject: RE: [Nagios-users] NSClient I have nsclient installed on about 50 servers. "reliable" might be a bit of a strong word. It is working for the most part but there are difficulties: Sometimes a reboot results in nsclient losing use of the port to another application A lot of memory (>4G) can be a problem. Some versions (1.7.0 or so) are dirty and leave a ton of messages in the event log ... that being said, aside from SNMP, it is the only way to get the information and the problems can be avoided/ignored/worked around. It would be great if someone had the time to clean it up and finish a great idea. Just my 2cents (keep the change), dean -----Original Message----- From: Matthew.Quinney at hollandandholland.com [mailto:Matthew.Quinney at hollandandholland.com] Sent: April 23, 2003 1:28 PM To: Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; 'rubiyz1047 at swyz.com' Subject: [Nagios-users] NSClient Dear All, On the subject of Nsclient and monitoring Windows servers I was wondering if anybody has got Nsclient monitoring Windows 2000 SP3 performance monitors reliably. We are using Nagios V1.0 and Plugins 1.3.0. If anybody is then please let me know - then I can assume I am doing something wrong. I accept that you can install other SNMP counters etc, but I am trying to make network monitoring as easy as possible - with as fewer clients installed on servers. I have included a sample check command below. I'd be greateful of any help !! Thanks Matthew define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging file usage is %.2f %%" -w 70 -c 80 } _____________________________________________________________________ This e-mail has been scanned for viruses by the uuNet Internet Managed Scanning Service - powered by MessageLabs. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbishop at ehvert.com Thu Apr 24 08:17:08 2003 From: dbishop at ehvert.com (Dean Bishop) Date: Thu Apr 24 08:17:08 2003 Subject: [Nagiosplug-devel] RE: [Nagios-users] NSClient Message-ID: <2E3E9736615DD311895D00105A9CADED014BCBEF@eentsvr40.ehvert.com> likewise i believe that nsclient is invaluable but incomplete. any assistance i can lend i would be happy to. do you have a todo list? dean -----Original Message----- From: Matthew.Quinney at hollandandholland.com To: rubiyz Cc: Dean Bishop; nagios-users at lists.sourceforge.net; nagios-users-admin at lists.sourceforge.net; nagiosplug-devel at lists.sourceforge.net; rubiyz; Schindewolf, Stefan, Infraserv-Hoechst/DE Sent: 4/24/2003 11:15 AM Subject: RE: [Nagios-users] NSClient Dear All, Thanks for all your feedback on this issue. Yves - I think that NSClient is a great product and is doing maybe 70% of what we actually need, but it would be great to go the full distance and get the performance counters working so we can measure paging file usage etc. Unfortunately I am not much of a UNIX coder, but would love to try and help in any way possible. Matt ____________________________________________ "rubiyz" 24/04/2003 06:03 To "Dean Bishop" , , "Schindewolf, Stefan, Infraserv-Hoechst/DE" cc , , , "rubiyz" Subject RE: [Nagios-users] NSClient GFI MailSecurity's HTML threat engine found HTML scripts in this email and has disabled them. Hi, Thanks for the feedback. I'm also fully aware than there are some painful issues with NSClient. As this tool is still very much used, I'll try to bring it to a new level of reliability, maybe using another technology... If someone can give me some help on the Unix plug in part, we could save some time in the development ... I'll do my best to get it very soon! Best regards, Yves -----Original Message----- From: Dean Bishop [mailto:dbishop at ehvert.com] Sent: mercredi, 23. avril 2003 18:31 To: 'Matthew.Quinney at hollandandholland.com'; Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; rubiyz Subject: RE: [Nagios-users] NSClient I have nsclient installed on about 50 servers. "reliable" might be a bit of a strong word. It is working for the most part but there are difficulties: Sometimes a reboot results in nsclient losing use of the port to another application A lot of memory (>4G) can be a problem. Some versions (1.7.0 or so) are dirty and leave a ton of messages in the event log ... that being said, aside from SNMP, it is the only way to get the information and the problems can be avoided/ignored/worked around. It would be great if someone had the time to clean it up and finish a great idea. Just my 2cents (keep the change), dean -----Original Message----- From: Matthew.Quinney at hollandandholland.com [mailto:Matthew.Quinney at hollandandholland.com] Sent: April 23, 2003 1:28 PM To: Schindewolf, Stefan, Infraserv-Hoechst/DE Cc: 'nagios-users at lists.sourceforge.net'; nagios-users-admin at lists.sourceforge.net; 'nagiosplug-devel at lists.sourceforge.net'; 'rubiyz1047 at swyz.com' Subject: [Nagios-users] NSClient Dear All, On the subject of Nsclient and monitoring Windows servers I was wondering if anybody has got Nsclient monitoring Windows 2000 SP3 performance monitors reliably. We are using Nagios V1.0 and Plugins 1.3.0. If anybody is then please let me know - then I can assume I am doing something wrong. I accept that you can install other SNMP counters etc, but I am trying to make network monitoring as easy as possible - with as fewer clients installed on servers. I have included a sample check command below. I'd be greateful of any help !! Thanks Matthew define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging file usage is %.2f %%" -w 70 -c 80 } _____________________________________________________________________ This e-mail has been scanned for viruses by the uuNet Internet Managed Scanning Service - powered by MessageLabs. From noreply at sourceforge.net Thu Apr 24 10:13:09 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Apr 24 10:13:09 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-727018 ] Newest release of the AIX plugin suite Message-ID: New Plugins item #727018, was opened at 2003-04-24 11:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=727018&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Lonny (melaqor) Assigned to: Nobody/Anonymous (nobody) Summary: Newest release of the AIX plugin suite Initial Comment: This archive is the latest plugin suite for AIX written by Lonny Selinger and Chris Rothecker. We've included methods for checking validation of Kerberos tickets for both root, and privileged user accounts as well as: a print queue checker (which attempts to bring downed queues back up), a paging space reporter, and a failed root logon attempts plugin. There can always be refinement and suggestions/issues are welcome. All of the plugins now have version, help and usage information but if something seems to be missing (a lot of the times we comment directly in the code), please let us know. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=727018&group_id=29880 From earl at switchmanagement.com Thu Apr 24 10:39:14 2003 From: earl at switchmanagement.com (Earl C. Ruby III) Date: Thu Apr 24 10:39:14 2003 Subject: [Nagiosplug-devel] Compiling plugins In-Reply-To: References: Message-ID: <200304241039.18573.earl@switchmanagement.com> I checked out the latest nagiosplug source from the SourceForge CVS repository and got this: # aclocal -I lib # autoconf # autoheader autoheader: `plugins/config.h.in' is created # automake configure.in: required file `./install-sh' not found configure.in: required file `./mkinstalldirs' not found configure.in: required file `./missing' not found configure.in:14: required file `./config.guess' not found configure.in:14: required file `./config.sub' not found lib/Makefile.am: required file `./depcomp' not found Are these files supposed to be created by autoconf/automake or are they supposed to be in the CVS repository? The files "install-sh", "mkinstalldirs", and "missing" are in the old source file nagios-plugins-1.3.0.tar.gz, but they're not in the CVS repository. The other three files are nowhere to be found. For developers who are compiling the plugins on their own machines from the CVS source tree, how do you do it? What versions of autoconf/automake are you using, and did you have to create other files that aren't in CVS in order to compile the nagiosplug code? As you can probably tell, I'm not that familiar with automake. Most of my programming in recent years has been in Perl/Oracle. I'll start digging into the automake docs today, since my employer has the enlightened attitude that we only use Open Source tools, and if I need to contribute time to Open Source projects in order to get my job here done I can do that. FWIW, I'm using Linux (SuSE 8.1 Pro distribution) with autoconf 2.53, automake 1.6.3, and gcc 3.2. -- Earl C. Ruby III Senior System Engineer / Developer Switch Management From sghosh at sghosh.org Thu Apr 24 14:45:20 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu Apr 24 14:45:20 2003 Subject: [Nagiosplug-devel] Compiling plugins In-Reply-To: <200304241039.18573.earl@switchmanagement.com> Message-ID: Take a look at tools/setup for initializing a cvs version. - the INSTALL doc is providing too much and not enough information. -sg On Thu, 24 Apr 2003, Earl C. Ruby III wrote: > I checked out the latest nagiosplug source from the SourceForge CVS repository > and got this: > > # aclocal -I lib > # autoconf > # autoheader > autoheader: `plugins/config.h.in' is created > # automake > configure.in: required file `./install-sh' not found > configure.in: required file `./mkinstalldirs' not found > configure.in: required file `./missing' not found > configure.in:14: required file `./config.guess' not found > configure.in:14: required file `./config.sub' not found > lib/Makefile.am: required file `./depcomp' not found > > Are these files supposed to be created by autoconf/automake or are they > supposed to be in the CVS repository? The files "install-sh", > "mkinstalldirs", and "missing" are in the old source file > nagios-plugins-1.3.0.tar.gz, but they're not in the CVS repository. > > The other three files are nowhere to be found. > > For developers who are compiling the plugins on their own machines from the > CVS source tree, how do you do it? What versions of autoconf/automake are you > using, and did you have to create other files that aren't in CVS in order to > compile the nagiosplug code? > > As you can probably tell, I'm not that familiar with automake. Most of my > programming in recent years has been in Perl/Oracle. I'll start digging into > the automake docs today, since my employer has the enlightened attitude that > we only use Open Source tools, and if I need to contribute time to Open > Source projects in order to get my job here done I can do that. > > FWIW, I'm using Linux (SuSE 8.1 Pro distribution) with autoconf 2.53, automake > 1.6.3, and gcc 3.2. > > > -- From rduta at syskey.com Thu Apr 24 17:04:04 2003 From: rduta at syskey.com (Radu Duta) Date: Thu Apr 24 17:04:04 2003 Subject: [Nagiosplug-devel] regarding RRD, MRTG, xpdfile_update_service_performance_data Message-ID: <20030424200319.A8889@garagenet.com> I have a question regarding the operation of xpdfile_update_service_performance_data. Is there any specific reason that the file is not opened and closed for each write? I wanted to use --with-file-perfdata to log, and have a process load the data from the file every say 10 minutes, and then roll/delete the file. If the file is never closed than it is impossible to roll the file without restarting nagios. As a matter of principle I prefer not to restart the nagios process just to roll logs. I don't think it's for performance, especially considering that checks are done by forks and adding one more 2-3 more function calls should be pretty modest. Maybe I'm approaching the problem the wrong way. I basically want to save the extra PING data such as latency and packet loss into a RRD database. I looked at the typical options and it seemed like --with-file-perfdata was the best; then I discovered the file is never closed and all my hopes were dashed for doing anything real-time short of some fancy tail logger. Is there a better way? maybe this should be part of the plugin? after all RTT and loss are specific to that one plugin. Though now that I think about it RTT is really a function of every network plugin, just not may of them take advantage of it. I settled on having MRTG query nagios/var/status.log since that was by far the easiest to integrate; but it's not the most elegant of solutions. any ideas/suggestions? anybody working on adding RRD support to nagios? seems like a pretty useful data to have and keep since it can directly pinpoint networking/systems problems. -- Radu Duta From ebollengier at sigma.fr Thu Apr 24 23:24:04 2003 From: ebollengier at sigma.fr (BOLLENGIER Eric) Date: Thu Apr 24 23:24:04 2003 Subject: [Nagiosplug-devel] regarding RRD, MRTG, xpdfile_update_service_performance_data In-Reply-To: <20030424200319.A8889@garagenet.com> References: <20030424200319.A8889@garagenet.com> Message-ID: <1051251794.1038.133.camel@plume.sigma.fr> Hi, > I wanted to use --with-file-perfdata to log, and have a process load the data from > the file every say 10 minutes, and then roll/delete the file. If the file is never closed > than it is impossible to roll the file without restarting nagios. You can do something like [root at nagios log]# > srvperf.log or on perl planet open(FP, ">$log") ; close(FP) ; > I don't think it's for performance, especially considering that checks are done by forks and > adding one more 2-3 more function calls should be pretty modest. Hier, i don't agree with you... if you have 2000 services... > Is there a better way? maybe this should be part of the plugin? after all RTT and loss are > specific to that one plugin. Though now that I think about it RTT is really a function of > every network plugin, just not may of them take advantage of it. I have a perl script which read nagios cfg, get xpdfile_service_perfdata_file and generate rrd command (use | var=val and support nsclient check_disk and check_cpu) > anybody working on adding RRD support to nagios? seems like a pretty useful data to have > and keep since it can directly pinpoint networking/systems problems. Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: gen_graph.pl Type: text/x-perl Size: 5201 bytes Desc: not available URL: From mohamed at netbadri.com Fri Apr 25 03:12:06 2003 From: mohamed at netbadri.com (Mohamed Badri) Date: Fri Apr 25 03:12:06 2003 Subject: [Nagiosplug-devel] long names in devices whith check_disk Message-ID: <1051265508.3ea909e46a3b4@webmail.netbadri.com> hello, I'm running nagios plugins on HpUx 11.11 but check_disk returns an error when used with devices names greater than something like 20 caracters. in this case check returns : ==== Unable to read output: /usr/bin/df -Pk /dev/vg00/lvdatanoheto /dev/vg00/lvdatanoheto ==== the problem is with df output command, result is on 3 lines instead of 2 for exemple : ==== [hpux:/tmp]df -Pk /dev/vg00/lvdatanoheto Filesystem 1024-blocks Used Available Capacity Mounted on /dev/vg00/lvdatanoheto 14945920 2108416 12837504 15% /datanoheto ==== I make some modification on the code, to make it work on long path names, So I just wanted to know if this problem was resolved in a new version or not, or if it is a known problem. thanx. From karl at debisschop.net Fri Apr 25 04:27:04 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Fri Apr 25 04:27:04 2003 Subject: [Nagiosplug-devel] long names in devices whith check_disk In-Reply-To: <1051265508.3ea909e46a3b4@webmail.netbadri.com> References: <1051265508.3ea909e46a3b4@webmail.netbadri.com> Message-ID: <1051269878.1010.21.camel@miles.debisschop.net> On Fri, 2003-04-25 at 06:11, Mohamed Badri wrote: > hello, > > I'm running nagios plugins on HpUx 11.11 but check_disk returns an error > when used with devices names greater than something like 20 caracters. > in this case check returns : > > ==== > Unable to read output: > /usr/bin/df -Pk /dev/vg00/lvdatanoheto > /dev/vg00/lvdatanoheto > ==== > > the problem is with df output command, result is on 3 lines instead of 2 > for exemple : > > ==== > [hpux:/tmp]df -Pk /dev/vg00/lvdatanoheto > Filesystem 1024-blocks Used Available Capacity Mounted on > /dev/vg00/lvdatanoheto > 14945920 2108416 12837504 15% /datanoheto > ==== > > I make some modification on the code, to make it work on long path names, > So I just wanted to know if this problem was resolved in a new version or not, > or if it is a known problem. Radical fix is in place in CVS. But it will not be backpatched to 1.3.x as it nearly a complete rewrite. We currently don't plan to fix this in 1.3.x, unless a small, simple patch is provided, something suitable for a maintennence release. -- Karl From roy at karlsbakk.net Fri Apr 25 05:10:10 2003 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Fri Apr 25 05:10:10 2003 Subject: [Nagiosplug-devel] nagios chopping off check command text Message-ID: <200304251409.11604.roy@karlsbakk.net> hi When I try sending the following error (1) (clipped from the event log), it cuts it off, leaving only the this (2) left. The clipped text is also used in the notification. any chance of getting the full text? I've tried several times, and it looks like there's a low buffer somehow 1 ---------------------------------------------------------------------------------------- [25-04-2003 14:00:37] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;display01;CP_FLYTOGET_LODALEN;1;Not ready yet. But might be. Don't know. Might be ok. Might be broken. Unable to tell. It's just Windows. Or unix. OS/2? I don't know. Total confusion. As if in a relation to Confuctus. I might be wrong, but is this a nagios error report? Possibly. But more likely, I'd say it's closer to a rather bored sysadmin write a long passive check text to nagios to see if Nagios has stopped chopping them off in mid sentence. Ok. That's all folks. 2 ---------------------------------------------------------------------------------------- Not ready yet. But might be. Don't know. Might be ok. Might be broken. Unable to tell. It's just Windows. Or unix. OS/2? I don't know. Total confusion. As if in a relation to Confuctus. I might be wrong, but is this a nagios error report? Possibly. But more likely, I'd say it's closer to a rather bored sysadmin write a long passive check text to na -- Roy Sigurd Karlsbakk, Datavaktmester ProntoTV AS - http://www.pronto.tv/ Tel: +47 9801 3356 Computers are like air conditioners. They stop working when you open Windows. From rduta at syskey.com Fri Apr 25 07:44:04 2003 From: rduta at syskey.com (Radu Duta) Date: Fri Apr 25 07:44:04 2003 Subject: [Nagiosplug-devel] regarding RRD, MRTG, xpdfile In-Reply-To: <1051251794.1038.133.camel@plume.sigma.fr>; from ebollengier@sigma.fr on Fri, Apr 25, 2003 at 08:23:14AM +0200 References: <20030424200319.A8889@garagenet.com> <1051251794.1038.133.camel@plume.sigma.fr> Message-ID: <20030425104321.A12358@garagenet.com> On Fri, Apr 25, 2003 at 08:23:14AM +0200, BOLLENGIER Eric wrote: > Hi, > > > I wanted to use --with-file-perfdata to log, and have a process load the data from > > the file every say 10 minutes, and then roll/delete the file. If the file is never closed > > than it is impossible to roll the file without restarting nagios. > > You can do something like > [root at nagios log]# > srvperf.log > > or on perl planet > > open(FP, ">$log") ; > close(FP) ; I don't get it. what do you mean? Seems like you are writing to a file? and then closing it? I was refering to: nagios.cfg:xpdfile_service_perfdata_file=/opt/nagios/var/hostperf.log With this configuration rolling the file /opt/nagios/var/hostperf.log implies: 1) mv /opt/nagios/var/hostperf.log /opt/nagios/var/hostperf.log.roll 2) /etc/rc.d/init.d/nagios restart > > I don't think it's for performance, especially considering that checks are done by forks and > > adding one more 2-3 more function calls should be pretty modest. > > Hier, i don't agree with you... if you have 2000 services... Here are some stats for a 551MHz Intell box: #include main() { FILE *xpdfile_host_perfdata_fp=NULL; char *xpdfile_host_perfdata_file="out.txt"; int i; for (i=0; i< 1000000; i++){ xpdfile_host_perfdata_fp = fopen (xpdfile_host_perfdata_file,"a"); fputs(".\n", xpdfile_host_perfdata_fp); fflush(xpdfile_host_perfdata_fp); fclose(xpdfile_host_perfdata_fp); } } # time ./a.out rduta at vax:~/projects/misc/C ./a.out 14.59s user 25.63s system 88% cpu 45.257 total so your 2000 services would be an added 0.1 seconds ( 2000 * (45.3/1000000) ) to the processing time. > > Is there a better way? maybe this should be part of the plugin? after all RTT and loss are > > specific to that one plugin. Though now that I think about it RTT is really a function of > > every network plugin, just not may of them take advantage of it. > > I have a perl script which read nagios cfg, get > xpdfile_service_perfdata_file and generate rrd command > (use | var=val and support nsclient check_disk and check_cpu) how do you roll the xpdfile_service_perfdata_file file? The file obviously grows, and pretty quickly, so at some point you have to roll it, or delete it if you have all of it into RRD right? I guess some people do this once a week/day/month, but then your rrd tables only get updated once a week/day/month, and you loose the benefit of realtime. > > anybody working on adding RRD support to nagios? seems like a pretty useful data to have > > and keep since it can directly pinpoint networking/systems problems. the thing to do really is to create a xpdrrd_service_perfdata module that writes straight to the rrdfile but the problem is that the return values from the plugin are not standardized ie fping returns data in a different format then ping. (sigh) -- Radu Duta From ebollengier at sigma.fr Fri Apr 25 08:01:19 2003 From: ebollengier at sigma.fr (BOLLENGIER Eric) Date: Fri Apr 25 08:01:19 2003 Subject: [Nagiosplug-devel] regarding RRD, MRTG, xpdfile In-Reply-To: <20030425104321.A12358@garagenet.com> References: <20030424200319.A8889@garagenet.com> <1051251794.1038.133.camel@plume.sigma.fr> <20030425104321.A12358@garagenet.com> Message-ID: <1051282817.17215.21.camel@plume.sigma.fr> > > > > You can do something like > > [root at nagios log]# > srvperf.log > I don't get it. what do you mean? Seems like you are writing to a file? and then closing it? see your system or shell lesson :) (in c close(open("file", "w")) ; > 1) mv /opt/nagios/var/hostperf.log /opt/nagios/var/hostperf.log.roll > 2) /etc/rc.d/init.d/nagios restart Try something like : cp /opt/nagios/var/hostperf.log /opt/nagios/var/hostperf.log.roll perl -e "open(FP, '>/opt/nagios/var/hostperf.log') ; close(FP) ;" or cp /opt/nagios/var/hostperf.log /opt/nagios/var/hostperf.log.roll > /opt/nagios/var/hostperf.log And you truncate it without change is descriptor... > > Hier, i don't agree with you... if you have 2000 services... > > Here are some stats for a 551MHz Intell box: I agree with you, it works pretty good with the truncate method, and you leave nagios alone. Regards From burkett at is.rice.edu Fri Apr 25 08:47:35 2003 From: burkett at is.rice.edu (Karl W. Burkett) Date: Fri Apr 25 08:47:35 2003 Subject: [Nagiosplug-devel] config.in question/issue Message-ID: <20030425154518.66E97418BE@is.rice.edu> Morning, I'm having a problem with Irix that I think stems from the way the check_swap section of config.in ( and consequently configure) is setup. I should say that version 1.29 of configure (included with beta2) does work by correctly avoiding check_swap. Now, for a little platform information: bash-2.05$ uname -a IRIX irix65 6.5 07151439 IP22 bash-2.05$ which swap /etc/swap Output from the swap command used in configure: bash-2.05$ swap -l lswap path dev pri swaplo blocks free maxswap vswap 1 /dev/swap 0,58 0 0 262144 229728 262144 0 Note that there are some buried tabs as well as a carriage return in the above. See below (vi w/ set list): lswap path ^I dev pri swaplo blocks free maxswap vswap$ 1 /dev/swap$ ^I^I 0,58 0 0 262144 229728 262144 0$ Now this clearly does not match any of the swap formats in the pertinent section of configure.in yet I do have a swap command that is easy to find. Now ideally, this format of the swap command should be added to the section and then SWAP_FORMAT can receive the correct value. I will readily admit that I don't have the knowledge or expertise to attempt figure out the correct string for this case and hope that some can easily put it together. But, I should also point out that the existence of a swap utility of an unknown format should not trigger a compile of check_swap.c, so I'm thinking that this section of the code needs to be reworked. Hope I've been a little help and not a hindrance. Thanks. -- ----------------------------------------------- Karl Burkett burkett at rice.edu Rice University 713.348.6256 Systems & LAN Management ----------------------------------------------- From sghosh at sghosh.org Fri Apr 25 17:29:11 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri Apr 25 17:29:11 2003 Subject: [Nagiosplug-devel] config.in question/issue In-Reply-To: <20030425154518.66E97418BE@is.rice.edu> Message-ID: Thanks for pointing it out (very clearly) The current setup with 'swap -l' must have worked with Irix 5.x :( Can you post a bug to this effect on SF. perhaps 'swap -l -n' will do the job. -sg On Fri, 25 Apr 2003, Karl W. Burkett wrote: > Morning, > > I'm having a problem with Irix that I think stems from the way the > check_swap section of config.in ( and consequently configure) is setup. > I should say that version 1.29 of configure (included with beta2) does > work by correctly avoiding check_swap. > > Now, for a little platform information: > > bash-2.05$ uname -a > IRIX irix65 6.5 07151439 IP22 > > bash-2.05$ which swap > /etc/swap > > Output from the swap command used in configure: > bash-2.05$ swap -l > lswap path dev pri swaplo blocks free maxswap vswap > > 1 /dev/swap > 0,58 0 0 262144 229728 262144 0 > > Note that there are some buried tabs as well as a carriage return in the > above. See below (vi w/ set list): > lswap path ^I dev pri swaplo blocks free maxswap > vswap$ > 1 /dev/swap$ > ^I^I 0,58 0 0 262144 229728 262144 0$ > > Now this clearly does not match any of the swap formats in the pertinent > section of configure.in yet I do have a swap command that is easy to > find. > > Now ideally, this format of the swap command should be added to the > section and then SWAP_FORMAT can receive the correct value. I will > readily admit that I don't have the knowledge or expertise to attempt > figure out the correct string for this case and hope that some can > easily put it together. But, I should also point out that the existence > of a swap utility of an unknown format should not trigger a compile of > check_swap.c, so I'm thinking that this section of the code needs to be > reworked. > > Hope I've been a little help and not a hindrance. > > Thanks. > > > > > -- > ----------------------------------------------- > Karl Burkett burkett at rice.edu > Rice University 713.348.6256 > Systems & > LAN Management > ----------------------------------------------- > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- From sghosh at sghosh.org Fri Apr 25 20:42:03 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri Apr 25 20:42:03 2003 Subject: [Nagiosplug-devel] long names in devices whith check_disk In-Reply-To: <1051265508.3ea909e46a3b4@webmail.netbadri.com> Message-ID: On Fri, 25 Apr 2003, Mohamed Badri wrote: > hello, > > I'm running nagios plugins on HpUx 11.11 but check_disk returns an error > when used with devices names greater than something like 20 caracters. > in this case check returns : > > ==== > Unable to read output: > /usr/bin/df -Pk /dev/vg00/lvdatanoheto > /dev/vg00/lvdatanoheto > ==== > > the problem is with df output command, result is on 3 lines instead of 2 > for exemple : > > ==== > [hpux:/tmp]df -Pk /dev/vg00/lvdatanoheto > Filesystem 1024-blocks Used Available Capacity Mounted on > /dev/vg00/lvdatanoheto > 14945920 2108416 12837504 15% /datanoheto > ==== > > I make some modification on the code, to make it work on long path names, > So I just wanted to know if this problem was resolved in a new version or not, > or if it is a known problem. > > thanx. > > This is a known problem - but no solution has been posted for rel 1.3 If you cna post a patch for this - that would help. check_disk is going through a complete rewrite for v1.4 and will not be using the df command. -- -sg From roy at karlsbakk.net Mon Apr 28 05:40:08 2003 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Mon Apr 28 05:40:08 2003 Subject: [Nagiosplug-devel] #nagios IRC channel Message-ID: <200304281439.00360.roy@karlsbakk.net> hi all some time ago I registered #nagios @ irc.freenode.net (former openprojects.net). If someone feels chatting abuot nagios is a good thing, please join ;-) roy -- Roy Sigurd Karlsbakk, Datavaktmester ProntoTV AS - http://www.pronto.tv/ Tel: +47 9801 3356 Computers are like air conditioners. They stop working when you open Windows. From noreply at sourceforge.net Mon Apr 28 06:41:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 28 06:41:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-728927 ] check_http-with-client-certificate and more... Message-ID: New Plugins item #728927, was opened at 2003-04-28 13:40 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=728927&group_id=29880 Category: C plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Fabian Pehla (fpehla) Assigned to: Nobody/Anonymous (nobody) Summary: check_http-with-client-certificate and more... Initial Comment: This plugin is a rewrite of the existing check_http.c and additionally implements the following features: * check server certificate against supplied hostname (Host: header) if any * check server certificate against local CA certificates (as browsers do) * authenticate with client certificate (and optional passphrase) * specify HTTP returncodes to return a status of WARNING or OK instead of CRITICAL (only global for 3xx or 4xx errors) * check only against HTTP status line and exit immediately if not matched This plugin code can be compiled as a replacement for the existing check_http.c. As discussed with Subhendu Ghosh it is meant to be integrated with the existing plugin code. In the meantime feel free to use and test the plugin... It is mainly tested with Solaris 2.6 and 8 and also with Red Hat Linux 6.x and 7.x. As I remember I have not yet compiled the plugin without OpenSSL, so this may not work. Feel free to post your feedback to the nagiosplug-devel list. Fabian ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=728927&group_id=29880 From noreply at sourceforge.net Mon Apr 28 20:41:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Apr 28 20:41:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-725238 ] invalid drive when using check_nt Message-ID: Support Requests item #725238, was opened at 2003-04-22 06:15 Message generated for change (Comment added) made by luke_steele You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=725238&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Shane Reutzel (smreutzel) Assigned to: Nobody/Anonymous (nobody) Summary: invalid drive when using check_nt Initial Comment: I am able to retrieve disk information about the C: drive of a remote NT machine using the check_nt script. But, If I try any of the other drives on that machine, I get the following error "Free disk space : Invalid drive". Is there something specific that I need to include in the syntax? Thanks, Shane ---------------------------------------------------------------------- Comment By: Luke Steele (luke_steele) Date: 2003-04-29 13:40 Message: Logged In: YES user_id=767368 service[server1] =Disk;0;24x7;3;3;1;admins;120;24x7;1;1;1;;check_nt_disk!c! 90!95! The 1st parameter is the drive letter, the second the lower threshold, the third the higher threshold Hope this helps ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=725238&group_id=29880 From noreply at sourceforge.net Wed Apr 30 16:32:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Apr 30 16:32:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-683235 ] check_snmp doesn't pass -t argument Message-ID: Bugs item #683235, was opened at 2003-02-09 03:05 Message generated for change (Comment added) made by stanleyhopcroft You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=683235&group_id=29880 Category: Argument proccessing Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Karl DeBisschop (kdebisschop) Summary: check_snmp doesn't pass -t argument Initial Comment: The check_snmp plugin doesn't pass the -t (timeout) argument to snmpget. ---------------------------------------------------------------------- >Comment By: Stanley Hopcroft (stanleyhopcroft) Date: 2003-04-30 23:31 Message: Logged In: YES user_id=395628 1.2.9-b2 plugins supported the -t option (meaning timeout). ---------------------------------------------------------------------- Comment By: Karl DeBisschop (kdebisschop) Date: 2003-02-09 12:05 Message: Logged In: YES user_id=1671 it's true that there is a timeout option to snmpcmd - but it doesn't mean the same thing as for the plugins. But the post is correct that snmtget's notion of timeout should be waht causes the return, so we can pick up the error message, rather than just closing the socket. For now, I am giong to set the number of attempts to socket timeout - 1, and force the timeout interval to one second (overriding any local defaults, which has it's own problems) Can anyone with an older install of ucd-snmp tell me how far back support fot the -t and -r options is supported? Opinions on whether I need to add tests in configure.in? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=683235&group_id=29880