From bjornar.bjorgum.larsen at ementor.no Wed Dec 3 08:09:05 2003 From: bjornar.bjorgum.larsen at ementor.no (=?iso-8859-1?Q?Bj=F8rnar_Bj=F8rgum_Larsen?=) Date: Wed Dec 3 08:09:05 2003 Subject: FW: [Nagiosplug-devel] perfdata routines Message-ID: Sorry, sent to wrong list nagios-devel at first try. > Ton Voon wrote: (...) > > I think the standard perfdata should store as much info > > as possible. > > The "convert to a graph tool" can make the decision to > > reduce down to integers. I agree. Imagine responses that are usually well below 0.5, like ping responses in milliseconds. Wouldn't we have to rewrite the ping check (or some filter) to multiply the values by 10, 100 or 1000 before entering them in the integer-only RRDs (and then convert it back before displaying, because nobody wants to see ping response averages in micro- or nanoseconds)? Karl DeBisschop wrote: (...) > Maybe the best answer is to use ints in most cases - leaving > the basics of the current perfdata macro as they are. But to > add a perfdataf function that makes floats for output. If there's not some significant performance or disk space gain, I'd say go for floats everywhere, as that seems like a simpler solution than splitting up in two functions. (...) > So lets work it out in the > next week or so, and hopefully the result will not entail big > changes relative to 1.4.0alpha1 Godspeed! :) Bj?rnar From noreply at sourceforge.net Wed Dec 3 09:49:00 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 3 09:49:00 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-853437 ] check_flexlm uses lmstat, should use lmutil Message-ID: Support Requests item #853437, was opened at 2003-12-03 12:48 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=853437&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nico Kadel-Garcia (nkadel) Assigned to: Nobody/Anonymous (nobody) Summary: check_flexlm uses lmstat, should use lmutil Initial Comment: On RedHat 9, with nagios-1.1 and nagios-plugins- 1.4.0alpha1 and the head of the CVS tree, check_flexlm is using the old utility "lmstat". The FlexLM software now uses "lmutil lmstat". The configure.in and check_flexlm should be updated to match this new usage. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=853437&group_id=29880 From noreply at sourceforge.net Wed Dec 3 09:53:00 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 3 09:53:00 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-853440 ] check_flexlm misreports "down" servers Message-ID: Support Requests item #853440, was opened at 2003-12-03 12:52 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=853440&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nico Kadel-Garcia (nkadel) Assigned to: Nobody/Anonymous (nobody) Summary: check_flexlm misreports "down" servers Initial Comment: There are two failure modes for FlexLM servers that are not reported correctly with recent versions of FlexLM. 1: If there is only one license server and it is down, and uses a fairly old FlexLM license, the "lmutil lmstat" command never completes. 2: If there is a quorum style license where 3 license servers should be running and one is unpingable, it is reported as "not responding" and not counted correctly. I've got patches for this behavior, but they're merged with quite a bit of re-write for this tool, so I'm not sure how to best submit them. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=853440&group_id=29880 From noreply at sourceforge.net Wed Dec 3 10:16:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 3 10:16:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-853461 ] check_flexlm always reports OK Message-ID: Support Requests item #853461, was opened at 2003-12-03 13: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=853461&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nico Kadel-Garcia (nkadel) Assigned to: Nobody/Anonymous (nobody) Summary: check_flexlm always reports OK Initial Comment: Under nagios 1.1, nagios-plugins-1.4.0alpha1 on RedHat 9. the return result of the check_flexlm has no effect on nagios results. Turning off a license server entirely shows no failure in Nagios, with or without the patches I've been working on to more correctly report down servers. Here's the output of the old check_flexlm: ./check_flexlm -F /usr/local/flexlm/licenses/license.dat License Servers NOT running:lmgrd is not running: Cannot connect to license server (-15,570 |flexlm::up:0;down:1 The new one that I've modified to better report quorum license servers also has the same result. But it just doesn't show up in Nagios as being down at all, and I don't understand the details of Nagios handling of the "$ERRORS" enough to debug it myself without investing a bunch of time. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=853461&group_id=29880 From andre.bergei at ementor.no Wed Dec 3 22:48:04 2003 From: andre.bergei at ementor.no (Andre Bergei) Date: Wed Dec 3 22:48:04 2003 Subject: [Nagiosplug-devel] Performance data in 1.4 alpha? Message-ID: <3C8515D9676BF9479F7EF3545B63AA22537A60@100NOOSLMSG001.common.alpharoot.net> Hi group. I'm trying to find out if the nagios plugins support performance data, and from a post at the devel list it says that the 1.4 branch will have support; http://sourceforge.net/mailarchive/message.php?msg_id=5440700 I've just compiled the nagios-plugins-1.4.0alpha1.tar.gz and tried out the check_ping and check_snmp plugins, but the $PERFDATA$ macro is still empty. I have the "process_performance_data" option enabled in my services template. Can anyone confirm if the alpha release (non cvs version) plugins got support for performance? /andr? From andre.bergei at ementor.no Thu Dec 4 00:34:04 2003 From: andre.bergei at ementor.no (Andre Bergei) Date: Thu Dec 4 00:34:04 2003 Subject: [Nagiosplug-devel] Question for the devs. Message-ID: <3C8515D9676BF9479F7EF3545B63AA22537A62@100NOOSLMSG001.common.alpharoot.net> Hi group. I've just been in contact with Vladislav Bogdanov, the author of check_snmpp and snmpp deamon, regarding support For performance support, but he was busy for now and could not look into it. I know this plugin is not a part of the sourceforge project, but maybe some of the coders with knowledge Of the original check_snmp plugin could update the check_snmpp source to support performance? For us with realy big nagios systems with lots of snmp checks, the proxy deamon is great stuff, it would just rock if It got performace support also. Just tought i'd better ask. Cheers /andr? From noreply at sourceforge.net Thu Dec 4 08:21:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 4 08:21:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-854131 ] check_http not following redirects properly Message-ID: Patches item #854131, was opened at 2003-12-04 11:20 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=854131&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: John Sivak (jsivak) Assigned to: Nobody/Anonymous (nobody) Summary: check_http not following redirects properly Initial Comment: With the lastest snapshot, check_http.c (revision #1.54) is not following relative URL redirects from an IIS server properly. If the original URL is: http://foo.com/jtest1/ and this redirects to: themes/corp/login.asp?u=1 the current plugin will "assemble" the URL as: http://foo.com:80themes/corp The remainder of the the relative url is chopped at the last '/' and the server_url doesn't appear to be used at all. In looking at the code, it appears that the url and server_url where just "appended" in the wrong order.. Attached is the output from cvs diff -u check_http.c after applying the fix. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880 From noreply at sourceforge.net Thu Dec 4 08:47:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 4 08:47:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-854131 ] check_http not following redirects properly Message-ID: Patches item #854131, was opened at 2003-12-04 16:20 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: John Sivak (jsivak) >Assigned to: Ton Voon (tonvoon) Summary: check_http not following redirects properly Initial Comment: With the lastest snapshot, check_http.c (revision #1.54) is not following relative URL redirects from an IIS server properly. If the original URL is: http://foo.com/jtest1/ and this redirects to: themes/corp/login.asp?u=1 the current plugin will "assemble" the URL as: http://foo.com:80themes/corp The remainder of the the relative url is chopped at the last '/' and the server_url doesn't appear to be used at all. In looking at the code, it appears that the url and server_url where just "appended" in the wrong order.. Attached is the output from cvs diff -u check_http.c after applying the fix. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-04 16:46 Message: Logged In: YES user_id=664364 John, I'm very interested in this. Can you post the patch please? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880 From noreply at sourceforge.net Thu Dec 4 13:22:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 4 13:22:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854339 ] current HEAD doesn't build Message-ID: Bugs item #854339, was opened at 2003-12-04 13:21 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=854339&group_id=29880 Category: None Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Ian Holsman (webperf) Assigned to: Nobody/Anonymous (nobody) Summary: current HEAD doesn't build Initial Comment: when you try to include mysql support.. changing my_connect to static in netutils.c fixes this. (mysql also has a my_connect) Index: netutils.c ===================================== ============================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.c,v retrieving revision 1.14 diff -u -r1.14 netutils.c --- netutils.c 8 Aug 2003 16:49:32 -0000 1.14 +++ netutils.c 4 Dec 2003 21:19:04 -0000 @@ -37,6 +37,7 @@ int was_refused = FALSE; int address_family = AF_UNSPEC; +static int my_connect (const char *address, int port, int *sd, int proto); /* handles socket timeouts */ void socket_timeout_alarm_handler (int sig) @@ -246,7 +247,7 @@ /* opens a tcp or udp connection to a remote host */ -int +static int my_connect (const char *host_name, int port, int *sd, int proto) { struct addrinfo hints; Index: netutils.h ===================================== ============================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.h,v retrieving revision 1.7 diff -u -r1.7 netutils.h --- netutils.h 8 Aug 2003 16:49:32 -0000 1.7 +++ netutils.h 4 Dec 2003 21:19:04 -0000 @@ -47,7 +47,6 @@ int my_tcp_connect (const char *address, int port, int *sd); int my_udp_connect (const char *address, int port, int *sd); -int my_connect (const char *address, int port, int *sd, int proto); int is_host (const char *); int is_addr (const char *); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854339&group_id=29880 From noreply at sourceforge.net Thu Dec 4 21:45:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 4 21:45:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-854538 ] check_nt - add check USEDDISKSPACE against remaining Mb Message-ID: Patches item #854538, was opened at 2003-12-05 15:44 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=854538&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Greg Vickers (daehenoc) Assigned to: Nobody/Anonymous (nobody) Summary: check_nt - add check USEDDISKSPACE against remaining Mb Initial Comment: Please find attached my patch for version 1.7.2.3 of check_nt.c. This patch adds the ability to check disk space based on the amount of Mb left on a partition. I wrote this because 1% of a 100Gb partition is still a lot of space! :D The command line option is -m or --mb. The logic behind the checks is reversed against the percentage checks: the percentage method checks against the amount of disk space used; the Mb method checks against the amount of free space left. Technical stuff: I used Mb values rather than Gb values because of the use of the unsigned long type for the percentage values, which are used extensively through out check_nt.c. So rather than rewrite a lot of check_nt.c so you could specify, say, -w 1.2 (Gb), I decided to use Mb value on the command line. (Debugging revealed that when a float value is converted into an unsigned long, you would get a negative value in that unsigned long - not good when checking remaining disk space!) Thanks, Greg Vickers ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854538&group_id=29880 From noreply at sourceforge.net Fri Dec 5 07:57:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Dec 5 07:57:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854817 ] check_swap 1.4beta1 on AIX: crit,warn args swapped Message-ID: Bugs item #854817, was opened at 2003-12-05 15:56 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=854817&group_id=29880 Category: Argument proccessing Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: (ghelleks) Assigned to: Nobody/Anonymous (nobody) Summary: check_swap 1.4beta1 on AIX: crit,warn args swapped Initial Comment: on AIX 3.4, using nagios-plugins-1.4beta1 tarball: check_swap -a -w 50% -c 75% Yields: Warning percentage should be more than critical percentage on Solaris and Linux, the command works as expected. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 From noreply at sourceforge.net Fri Dec 5 08:33:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Dec 5 08:33:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854817 ] check_swap 1.4beta1 on AIX: crit,warn args swapped Message-ID: Bugs item #854817, was opened at 2003-12-05 15:56 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 Category: Argument proccessing Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: (ghelleks) >Assigned to: Ton Voon (tonvoon) Summary: check_swap 1.4beta1 on AIX: crit,warn args swapped Initial Comment: on AIX 3.4, using nagios-plugins-1.4beta1 tarball: check_swap -a -w 50% -c 75% Yields: Warning percentage should be more than critical percentage on Solaris and Linux, the command works as expected. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-05 16:32 Message: Logged In: YES user_id=664364 I've just tried this on Solaris and I get "Warning percentage should be more than critical percentage". Have you done a make clean on Solaris and Linux? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 From noreply at sourceforge.net Fri Dec 5 08:44:00 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Dec 5 08:44:00 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854339 ] current HEAD doesn't build Message-ID: Bugs item #854339, was opened at 2003-12-04 21:21 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854339&group_id=29880 Category: None Group: CVS >Status: Closed Resolution: None Priority: 5 Submitted By: Ian Holsman (webperf) >Assigned to: Ton Voon (tonvoon) Summary: current HEAD doesn't build Initial Comment: when you try to include mysql support.. changing my_connect to static in netutils.c fixes this. (mysql also has a my_connect) Index: netutils.c ===================================== ============================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.c,v retrieving revision 1.14 diff -u -r1.14 netutils.c --- netutils.c 8 Aug 2003 16:49:32 -0000 1.14 +++ netutils.c 4 Dec 2003 21:19:04 -0000 @@ -37,6 +37,7 @@ int was_refused = FALSE; int address_family = AF_UNSPEC; +static int my_connect (const char *address, int port, int *sd, int proto); /* handles socket timeouts */ void socket_timeout_alarm_handler (int sig) @@ -246,7 +247,7 @@ /* opens a tcp or udp connection to a remote host */ -int +static int my_connect (const char *host_name, int port, int *sd, int proto) { struct addrinfo hints; Index: netutils.h ===================================== ============================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/netutils.h,v retrieving revision 1.7 diff -u -r1.7 netutils.h --- netutils.h 8 Aug 2003 16:49:32 -0000 1.7 +++ netutils.h 4 Dec 2003 21:19:04 -0000 @@ -47,7 +47,6 @@ int my_tcp_connect (const char *address, int port, int *sd); int my_udp_connect (const char *address, int port, int *sd); -int my_connect (const char *address, int port, int *sd, int proto); int is_host (const char *); int is_addr (const char *); ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-05 16:43 Message: Logged In: YES user_id=664364 Ian, Thanks for the patch. Fixed in netutils.h v1.8 and netutils.c 1.15. Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854339&group_id=29880 From noreply at sourceforge.net Fri Dec 5 14:53:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Dec 5 14:53:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-854131 ] check_http not following redirects properly Message-ID: Patches item #854131, was opened at 2003-12-04 11:20 Message generated for change (Comment added) made by jsivak You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: John Sivak (jsivak) Assigned to: Ton Voon (tonvoon) Summary: check_http not following redirects properly Initial Comment: With the lastest snapshot, check_http.c (revision #1.54) is not following relative URL redirects from an IIS server properly. If the original URL is: http://foo.com/jtest1/ and this redirects to: themes/corp/login.asp?u=1 the current plugin will "assemble" the URL as: http://foo.com:80themes/corp The remainder of the the relative url is chopped at the last '/' and the server_url doesn't appear to be used at all. In looking at the code, it appears that the url and server_url where just "appended" in the wrong order.. Attached is the output from cvs diff -u check_http.c after applying the fix. ---------------------------------------------------------------------- >Comment By: John Sivak (jsivak) Date: 2003-12-05 17:52 Message: Logged In: YES user_id=679094 Wierd, I thought I attached the patch the first time.. I'll try it again.. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-04 11:46 Message: Logged In: YES user_id=664364 John, I'm very interested in this. Can you post the patch please? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880 From noreply at sourceforge.net Sun Dec 7 06:22:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sun Dec 7 06:22:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854817 ] check_swap 1.4beta1 on AIX: crit,warn args swapped Message-ID: Bugs item #854817, was opened at 2003-12-05 15:56 Message generated for change (Comment added) made by ghelleks You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 Category: Argument proccessing Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: (ghelleks) Assigned to: Ton Voon (tonvoon) Summary: check_swap 1.4beta1 on AIX: crit,warn args swapped Initial Comment: on AIX 3.4, using nagios-plugins-1.4beta1 tarball: check_swap -a -w 50% -c 75% Yields: Warning percentage should be more than critical percentage on Solaris and Linux, the command works as expected. ---------------------------------------------------------------------- >Comment By: (ghelleks) Date: 2003-12-07 14:21 Message: Logged In: YES user_id=18504 Mea culpa. The problem exists on Solaris as well. I imagine Linux will have the problem as well. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-05 16:32 Message: Logged In: YES user_id=664364 I've just tried this on Solaris and I get "Warning percentage should be more than critical percentage". Have you done a make clean on Solaris and Linux? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 From noreply at sourceforge.net Mon Dec 8 14:10:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Dec 8 14:10:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-831392 ] NetBotz specific device plugin Message-ID: New Plugins item #831392, was opened at 2003-10-27 16:23 Message generated for change (Settings changed) made by ellipses You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=831392&group_id=29880 Category: Network device plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jeremy Russell (ellipses) >Assigned to: Subhendu Ghosh (sghosh) Summary: NetBotz specific device plugin Initial Comment: A snmp plugin for use with the Netbotz devices. You need to download the MIB from the netbotz web site. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=831392&group_id=29880 From noreply at sourceforge.net Thu Dec 11 02:03:00 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 11 02:03:00 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-854131 ] check_http not following redirects properly Message-ID: Patches item #854131, was opened at 2003-12-04 16:20 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880 Category: Bugfix Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: John Sivak (jsivak) Assigned to: Ton Voon (tonvoon) Summary: check_http not following redirects properly Initial Comment: With the lastest snapshot, check_http.c (revision #1.54) is not following relative URL redirects from an IIS server properly. If the original URL is: http://foo.com/jtest1/ and this redirects to: themes/corp/login.asp?u=1 the current plugin will "assemble" the URL as: http://foo.com:80themes/corp The remainder of the the relative url is chopped at the last '/' and the server_url doesn't appear to be used at all. In looking at the code, it appears that the url and server_url where just "appended" in the wrong order.. Attached is the output from cvs diff -u check_http.c after applying the fix. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-11 10:02 Message: Logged In: YES user_id=664364 John, Thanks for the patch. Looks good. Applied to v1.55. Ton ---------------------------------------------------------------------- Comment By: John Sivak (jsivak) Date: 2003-12-05 22:52 Message: Logged In: YES user_id=679094 Wierd, I thought I attached the patch the first time.. I'll try it again.. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-04 16:46 Message: Logged In: YES user_id=664364 John, I'm very interested in this. Can you post the patch please? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854131&group_id=29880 From noreply at sourceforge.net Thu Dec 11 02:18:00 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 11 02:18:00 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854817 ] check_swap 1.4beta1 on AIX: crit,warn args swapped Message-ID: Bugs item #854817, was opened at 2003-12-05 15:56 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 Category: Argument proccessing Group: Release (specify) >Status: Pending Resolution: None >Priority: 2 Submitted By: (ghelleks) Assigned to: Ton Voon (tonvoon) Summary: check_swap 1.4beta1 on AIX: crit,warn args swapped Initial Comment: on AIX 3.4, using nagios-plugins-1.4beta1 tarball: check_swap -a -w 50% -c 75% Yields: Warning percentage should be more than critical percentage on Solaris and Linux, the command works as expected. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-11 10:17 Message: Logged In: YES user_id=664364 I don't think this is a problem; check_swap checks the amount of free space so critical must be lower than warning, hence the error message. Unless I am missing something? I will mark this call into pending state. ---------------------------------------------------------------------- Comment By: (ghelleks) Date: 2003-12-07 14:21 Message: Logged In: YES user_id=18504 Mea culpa. The problem exists on Solaris as well. I imagine Linux will have the problem as well. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-05 16:32 Message: Logged In: YES user_id=664364 I've just tried this on Solaris and I get "Warning percentage should be more than critical percentage". Have you done a make clean on Solaris and Linux? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 From noreply at sourceforge.net Thu Dec 11 02:22:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 11 02:22:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-837535 ] check_procs - still counts itself with -a Message-ID: Bugs item #837535, was opened at 2003-11-06 22:04 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=837535&group_id=29880 Category: Parsing problem Group: CVS >Status: Closed Resolution: None Priority: 5 Submitted By: Ben Whaley (bwhaley) Assigned to: Ton Voon (tonvoon) Summary: check_procs - still counts itself with -a Initial Comment: This is a continuation of the bug [ 820125 ] check_procs arg-array check matches itself @ sol8 The CVS fix for this problem was: /* Ignore self */ if (strcmp (procprog, progname) == 0) { continue; } However, this is comparing progname to procprog. procprog will be whatever the program was called as (i.e. /tmp/nagios-plugins-1.3. 1/plugins/check_proc, /usr/local/nagios/libexec/check_proc, whatever) while progname will _always_ be simply check_proc. To fix this, I did the following: /* Changed this to "char *progname = "" *; */ const char *progname = "check_procs"; const char *revision = "$Revision: 1.22 $"; const char *copyright = "2000-2003"; const char *email = "nagiosplug-devel at lists.sourceforge.net"; .... in main(): int result = STATE_UNKNOWN; /* Added this */ progname = argv[0]; setlocale (LC_ALL, ""); .... Also, is there something going on with the version numbers? With the 1.3.1 release of nagios-plugins, check_procs --version says 1. 9.2.1. The CVS version, however, is 1.22. Thanks, Ben ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-11 10:21 Message: Logged In: YES user_id=664364 Closing this call as no problem found. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-11-07 16:20 Message: Logged In: YES user_id=664364 Ben, I'll leave the call open for now. You can close it if you find the problem is fixed. If you get stuck with compiling from CVS, please raise a new bug report and we can investigate. Ton ---------------------------------------------------------------------- Comment By: Ben Whaley (bwhaley) Date: 2003-11-07 15:44 Message: Logged In: YES user_id=277968 I think I've made a mistake.. I built 1.3.1 and ran into the problem. I then downloaded the CVS version, ran into some configure problems, and in all the confusion I think I ended up using the check_procs from 1.3.1. Please accept my apologies. I am having problems building from CVS but I'm sure you are correct. Thank you for the (very) timely response. Keep up the good work. Regards, Ben ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-11-07 08:53 Message: Logged In: YES user_id=664364 Ben, Thanks for the report. Easy question first: version 1.22 is CVS version, 1.9.2.1 is the branch for 1.3.1 fixes. For the main issue, I can't see a problem. Trying v1.22 on a Solairis 8 box (compiled on a Solaris 2.6) seems okay: $ ./check_procs -v -v -v -c 1: -a inetd CMD: /usr/bin/ps -Ao 's uid ppid vsz rss pcpu comm args' 0 0 0 0 0 0.00 T sched sched 0 0 824 272 0 0.10 S init /etc/init - [snip] 0 0 2672 1936 1 0.00 S vold /usr/sbin/vold 0 0 2536 2040 1 0.00 S inetd /usr/sbin/inetd -s -t 1 0 3632 1448 1 0.00 S keyserv /usr/sbin/keyserv 1 0 3568 2992 1 0.00 S nis_cachemgr /usr/sbin/nis_cachemgr [snip] 1 1000 172472 32520 1 0.00 S oracleGTXFRST1 oracleGTXFRST1 (LOCAL=NO) 1 10301 1688 1128 17376 0.10 S check_procs ./check_procs -v -v -v -c 1: -a inetd 1 1000 134768 24624 1 0.00 S oracleSTOFRST1 oracleSTOFRST1 (LOCAL=NO) [snip] PROCS OK: 1 process with args 'inetd' The number in the first column is the count. As you can see, it is counting the process /usr/sbin/inetd, but has ignored the check_procs. I take your point re: sometimes procprog has a full path returned. There is a bit of code that removes the path: /* Some ps return full pathname for command. This removes path */ temp_string = strtok ((char *)procprog, "/"); while (temp_string) { strcpy(procprog, temp_string); temp_string = strtok (NULL, "/"); } What command are you running to cause the problem? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=837535&group_id=29880 From noreply at sourceforge.net Thu Dec 11 02:23:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 11 02:23:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-820125 ] check_procs arg-array check matches itself @ sol8 Message-ID: Bugs item #820125, was opened at 2003-10-08 19:08 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=820125&group_id=29880 Category: Parsing problem Group: Release (specify) >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Greg Haygood (shrykedude) Assigned to: Ton Voon (tonvoon) Summary: check_procs arg-array check matches itself @ sol8 Initial Comment: On Solaris8, using nagios-plugins-1.3.1, when calling check_procs with -a to look for argument strings, the plugin is including the check_procs call as a match (this is from a check_procs modified only to enable the DEBUG1 output of the process list) [root] $ ./check_procs -c 1: -a inetd > /tmp/check [root] $ grep inetd /tmp/check CHECKING: 0 0 1 S /usr/sbin/inetd /usr/sbin/inetd -s CHECKING: 1 0 14603 S ./check_procs ./check_procs -c 1: -a inetd OK - 2 processes running with args inetd [root] $ the call to itself should be excluded from the reported list. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-11 10:22 Message: Logged In: YES user_id=664364 Closing this call as this problem is fixed. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-10-09 08:15 Message: Logged In: YES user_id=664364 Greg, Thanks for the bug report. This should be fixed in the CVS HEAD version of check_procs, due to be the upcoming release 1.4. Can you give that a try from http://nagiosplug.sourceforge.net/snapshot/? Ton ---------------------------------------------------------------------- Comment By: Greg Haygood (shrykedude) Date: 2003-10-08 19:26 Message: Logged In: YES user_id=61279 After succeeding on my RH8 box, I found that the code *is* trying to strip the match to itself. But the solaris8 ps_cmd is returning the procprog with the called path: CHECKING: 1 0 14603 S ./check_procs(?=check_procs) ./check_procs -c 1: -a inetd where ./check_procs(?=check_procs) is (pseudo)defined as $procprog(?=$progname) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=820125&group_id=29880 From noreply at sourceforge.net Thu Dec 11 09:02:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 11 09:02:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-853461 ] check_flexlm always reports OK Message-ID: Support Requests item #853461, was opened at 2003-12-03 13:15 Message generated for change (Comment added) made by nkadel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=853461&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nico Kadel-Garcia (nkadel) Assigned to: Nobody/Anonymous (nobody) Summary: check_flexlm always reports OK Initial Comment: Under nagios 1.1, nagios-plugins-1.4.0alpha1 on RedHat 9. the return result of the check_flexlm has no effect on nagios results. Turning off a license server entirely shows no failure in Nagios, with or without the patches I've been working on to more correctly report down servers. Here's the output of the old check_flexlm: ./check_flexlm -F /usr/local/flexlm/licenses/license.dat License Servers NOT running:lmgrd is not running: Cannot connect to license server (-15,570 |flexlm::up:0;down:1 The new one that I've modified to better report quorum license servers also has the same result. But it just doesn't show up in Nagios as being down at all, and I don't understand the details of Nagios handling of the "$ERRORS" enough to debug it myself without investing a bunch of time. ---------------------------------------------------------------------- >Comment By: Nico Kadel-Garcia (nkadel) Date: 2003-12-11 10:33 Message: Logged In: YES user_id=923047 This should have been put in as a bug report, not a feature request. My apologies. It turns out that if you have a '%' on the end of the filename in for the check_flexlm service test in services.cfg, the check_flexlm.pl does not detect or parse it or the flexlm error messages correctly. The '%' gets interpreted at various points by the Perl parser itself, which leads to the confusion. I'm working on some other new features, such as testing for the existence of the license file in the check_flexlm.pl itself and more correctly parsing lines that have multiple ':' characters in them, and will submit it when done. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=853461&group_id=29880 From noreply at sourceforge.net Thu Dec 11 10:03:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 11 10:03:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-853461 ] check_flexlm always reports OK Message-ID: Support Requests item #853461, was opened at 2003-12-03 13:15 Message generated for change (Comment added) made by nkadel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=853461&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nico Kadel-Garcia (nkadel) Assigned to: Nobody/Anonymous (nobody) Summary: check_flexlm always reports OK Initial Comment: Under nagios 1.1, nagios-plugins-1.4.0alpha1 on RedHat 9. the return result of the check_flexlm has no effect on nagios results. Turning off a license server entirely shows no failure in Nagios, with or without the patches I've been working on to more correctly report down servers. Here's the output of the old check_flexlm: ./check_flexlm -F /usr/local/flexlm/licenses/license.dat License Servers NOT running:lmgrd is not running: Cannot connect to license server (-15,570 |flexlm::up:0;down:1 The new one that I've modified to better report quorum license servers also has the same result. But it just doesn't show up in Nagios as being down at all, and I don't understand the details of Nagios handling of the "$ERRORS" enough to debug it myself without investing a bunch of time. ---------------------------------------------------------------------- >Comment By: Nico Kadel-Garcia (nkadel) Date: 2003-12-11 10:52 Message: Logged In: YES user_id=923047 I'm sorry, this should have been submitted by me as a bug. In any case, the problem is a mis-parsing by the check_flexlm.pl script of services.cfg entries that have a '%' in filename (there was a typo there), and the results not showing up in the check_flexlm.pl output due to Perl style mis-handling of that character. I'm modifying my copy of it to actually check for the existence of an openable license file before passing off the arguments to the lmstat command, which should deal with the problem. ---------------------------------------------------------------------- Comment By: Nico Kadel-Garcia (nkadel) Date: 2003-12-11 10:33 Message: Logged In: YES user_id=923047 This should have been put in as a bug report, not a feature request. My apologies. It turns out that if you have a '%' on the end of the filename in for the check_flexlm service test in services.cfg, the check_flexlm.pl does not detect or parse it or the flexlm error messages correctly. The '%' gets interpreted at various points by the Perl parser itself, which leads to the confusion. I'm working on some other new features, such as testing for the existence of the license file in the check_flexlm.pl itself and more correctly parsing lines that have multiple ':' characters in them, and will submit it when done. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=853461&group_id=29880 From j.e.vanbaal at uvt.nl Fri Dec 12 01:48:02 2003 From: j.e.vanbaal at uvt.nl (Joost van Baal) Date: Fri Dec 12 01:48:02 2003 Subject: [Nagiosplug-devel] RPM for NRPE 1.9 available Message-ID: <20031212094743.GB16436@banach.uvt.nl> Hi, I've build an RPM for NRPE 1.9. It's available from http://www.non-gnu.uvt.nl/pub/nrpe/redhat/ ; both the source RPM and with binary RPMs for Red Hat Linux 7.3 and Red Hat Advanced Server 2.1. (I'll likely build binaries for other Red Hat versions soon.) Could a link to http://www.non-gnu.uvt.nl/pub/nrpe/redhat/ get added to the NRPE section at http://www.nagios.org/download/extras.php ? Thanks, Bye, Joost -- Joost van Baal http://abramowitz.uvt.nl/ Tilburg University j.e.vanbaal at uvt.nl The Netherlands -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: From eross at prospeed.net Sun Dec 14 08:49:03 2003 From: eross at prospeed.net (Andrew Eross) Date: Sun Dec 14 08:49:03 2003 Subject: [Nagiosplug-devel] check_smtp bugs Message-ID: <020201c3c262$17e4f3d0$0c00a8c0@chasma.com> Hey guys, I was just poking around through some of the plugins code to see how they worked and noticed that the check_smtp plugin seems to have a large number of memory leaks. It does a bunch of alloc'ing (asprintf, malloc) .. but there isn't a single free() in the entire bit of code .. just thought I'd let ya'll know Thanks, Andrew Eross Chasma, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl at debisschop.net Sun Dec 14 12:54:00 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Sun Dec 14 12:54:00 2003 Subject: [Nagiosplug-devel] check_smtp bugs In-Reply-To: <020201c3c262$17e4f3d0$0c00a8c0@chasma.com> References: <020201c3c262$17e4f3d0$0c00a8c0@chasma.com> Message-ID: <3FDCCD82.8070802@debisschop.net> Andrew Eross wrote: > Hey guys, > > I was just poking around through some of the plugins code to see how they worked and noticed that the check_smtp plugin seems to have a large number of memory leaks. It does a bunch of alloc'ing (asprintf, malloc) .. but there isn't a single free() in the entire bit of code .. just thought I'd let ya'll know This is sort of true. Since it is run and closed, the 'leaks' don't matter as much (if at all). If you put a repeat loop in the plugin, you'd be dead soon. This is very clearly on my radar screen, and I suspect I'm not the only developer aware of the issue. But since they are exec'd for a once-through run but nagios, it does not matter. Not that I'm proud of it, but it really dies not matter. Nonetheless it will also be fixed, there's really no reason it should be that way. Thanks for the cooment, and rest assured that it will be fixed. While I welcome differing forpoints, I think you can alos rest assured that you will not find that is causes problems for you. It is a very differenct situation than in the case of a persistent object like, for example, the emebeeded perl context, where even a small leak will cause you trouble. -- Karl From noreply at sourceforge.net Sun Dec 14 13:32:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sun Dec 14 13:32:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-642352 ] accept environ for check_by_ssh / others Message-ID: Feature Requests item #642352, was opened at 2002-11-23 05:12 Message generated for change (Comment added) made by s_kitching You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=642352&group_id=29880 Category: None Group: Next Release (example) Status: Open Priority: 5 Submitted By: John Marquart (vaix) Assigned to: Nobody/Anonymous (nobody) Summary: accept environ for check_by_ssh / others Initial Comment: I came to realize that due to the use of spopen and the execve call, that the check_by_ssh script will ignore environmental variables. I think it would be very usefull to potentially allow environmental variables / a method for defining certain variables. For me, this came up, because I am using a kerberized (or more properly a gssapi hacked) ssh. I would like the ability to use the KRB5CCNAME environment variable so that I can define a credentials cache for nagios to use - and handle all check_by_ssh checks via gssapi authentication. I imagine that there are other hacks/uses of ssh which also depend on the env variables to be correctly set. Has anyone else come across problems w/ plugins that use the spopen function not being able to properly set environmental variables? Any solutions? ---------------------------------------------------------------------- Comment By: Simon Kitching (s_kitching) Date: 2003-12-15 10:31 Message: Logged In: YES user_id=747680 I've been bitten by this one too. I need to monitor a host that can only be accessed via ssh via a SOCKS proxy. In order to enable socks proxying, LD_PRELOAD and LD_LIBRARY_PATH are modified to cause the custom socks networking library to be loaded instead of the standard system one. But because check_by_ssh clears the environment before invoking ssh, the child ssh process can't connect. I would like to see an extra option on the check_by_ssh commandline to pass environment settings (eg "-u" for "unsafe"?). This would of course mean altering spopen(...) to have an extra param indicating whether the child process should have a "clean" environment or inherit the parent's environment. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=642352&group_id=29880 From noreply at sourceforge.net Sun Dec 14 14:19:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sun Dec 14 14:19:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-642352 ] accept environ for check_by_ssh / others Message-ID: Feature Requests item #642352, was opened at 2002-11-22 11:12 Message generated for change (Comment added) made by kdebisschop You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=642352&group_id=29880 Category: None Group: Next Release (example) Status: Open Priority: 5 Submitted By: John Marquart (vaix) Assigned to: Nobody/Anonymous (nobody) Summary: accept environ for check_by_ssh / others Initial Comment: I came to realize that due to the use of spopen and the execve call, that the check_by_ssh script will ignore environmental variables. I think it would be very usefull to potentially allow environmental variables / a method for defining certain variables. For me, this came up, because I am using a kerberized (or more properly a gssapi hacked) ssh. I would like the ability to use the KRB5CCNAME environment variable so that I can define a credentials cache for nagios to use - and handle all check_by_ssh checks via gssapi authentication. I imagine that there are other hacks/uses of ssh which also depend on the env variables to be correctly set. Has anyone else come across problems w/ plugins that use the spopen function not being able to properly set environmental variables? Any solutions? ---------------------------------------------------------------------- >Comment By: Karl DeBisschop (kdebisschop) Date: 2003-12-14 17:18 Message: Logged In: YES user_id=1671 Nothing conrete to add at the moment except to say that your comments have been heard. There is a sense in these comments that spopen is deficient in not being able to handle ENV vars. I do want to comment that the restriction is by design. And by design that goes back to the early days of nagios. Essentially, there is alway some security risk to allowing ENV variables to get passed through. Not that you would do it, but in practice not all sysadmins are aware that they can be a vector for security breaches. So we decided to default to disallowing their propagation (in fact, it was easiest to pass them -- security in that respect was a concious act). That being said, I see their use too. I will think on this, and see what we can com up with that balances the two concerns a little better. ---------------------------------------------------------------------- Comment By: Simon Kitching (s_kitching) Date: 2003-12-14 16:31 Message: Logged In: YES user_id=747680 I've been bitten by this one too. I need to monitor a host that can only be accessed via ssh via a SOCKS proxy. In order to enable socks proxying, LD_PRELOAD and LD_LIBRARY_PATH are modified to cause the custom socks networking library to be loaded instead of the standard system one. But because check_by_ssh clears the environment before invoking ssh, the child ssh process can't connect. I would like to see an extra option on the check_by_ssh commandline to pass environment settings (eg "-u" for "unsafe"?). This would of course mean altering spopen(...) to have an extra param indicating whether the child process should have a "clean" environment or inherit the parent's environment. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=642352&group_id=29880 From David.Sullivan at barnet.ac.uk Sun Dec 14 20:09:03 2003 From: David.Sullivan at barnet.ac.uk (David Sullivan) Date: Sun Dec 14 20:09:03 2003 Subject: [Nagiosplug-devel] Patch for check_ntp when checking against cisco ios ntp servers Message-ID: In it's current form check_ntp assumes it's talking to a unix ntp server and expects the following output from ntpq: *192.168.1.1 .GPS. 1 u 12 256 377 14.50 0.016 2.17 Whereas the cisco ios NTP implementation returns the following: *192.168.1.1 .GPS. 1 - 392 1024 377 22.31 -4.749 2.29 The following patch modifies the regexp to recognise - for field 5 as well as l u m or b returned by "normal" ntp servers. 277c277 < if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { --- > if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([\-lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { 302c302 < $c =~ /^(#)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/; --- > $c =~ /^(#)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([\-lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/; Regards David Sullivan IT Services Barnet College ============================================================== This communication may contain privileged or confidential information which is for the exclusive use of the intended recipient. If you are not the intended recipient, please note that you may not distribute or use this communication or the information it contains. If this e-mail has reached you in error, please delete it and any attachment. Internet communications are not secure and Barnet College does not accept legal responsibility for the content of this message. Any views or opinions expressed are those of the author and not necessarily those of Barnet College. Please note that Barnet College reserves the right to monitor the source/destinations of all incoming or outgoing e-mail communications. ============================================================== From chammond at cox.net Sun Dec 14 20:09:04 2003 From: chammond at cox.net (chammond at cox.net) Date: Sun Dec 14 20:09:04 2003 Subject: [Nagiosplug-devel] Plugin Message-ID: <20031204140744.RKWO2297.lakemtao02.cox.net@smtp.east.cox.net> Has anyone created a plugin that supports a marjority of the printer mib? I have been tasked with monitoring these new network attached copiers and multifunction machines from the likes of HP, Canon and Aficio. I need info like page counts and if the machine is reporting it needs maintenance. Has anyone created anything like that? Thanks Chris From c.eduardo at estacio.br Sun Dec 14 20:09:05 2003 From: c.eduardo at estacio.br (Eddy) Date: Sun Dec 14 20:09:05 2003 Subject: [Nagiosplug-devel] Error plugins Message-ID: <09fb01c3be9c$a3a6a950$31150a0a@estacio.domain> Hello i have this message in my compilant nagios: Its A BUG??? /var/plug/nagios-plugins-1.4.0alpha1/=> make No suffix list. make all-recursive No suffix list. Making all in intl /var/plug/nagios-plugins-1.4.0alpha1/intl Making all in lib /var/plug/nagios-plugins-1.4.0alpha1/lib Making all in plugins /var/plug/nagios-plugins-1.4.0alpha1/plugins if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I . -I. -I.. -I.. -I../lib -I../intl -I/usr/local/include/include -g -O2 -MT check_disk.o -MD -MP -MF ".deps/check_disk.Tpo" \ -c -o check_disk.o `test -f 'check_disk.c' || echo './'`check_disk.c; \ then mv -f ".deps/check_disk.Tpo" ".deps/check_disk.Po"; \ else rm -f ".deps/check_disk.Tpo"; exit 1; \ fi In file included from common.h:74, from check_disk.c:24: /usr/include/sys/socket.h:439: parse error before "sendfile" /usr/include/sys/socket.h:440: parse error before "bsize_t" /usr/include/sys/socket.h:441: parse error before "sendpath" /usr/include/sys/socket.h:442: parse error before "bsize_t" *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. ===== is a bug of nagios ????? Cordialmente, Carlos Eduardo Dionizio Analista de Suporte - UNIX Universidade Est?cio de S? Diretoria de Tecnologia da Informa??o -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at readingroom.com Sun Dec 14 20:09:06 2003 From: david at readingroom.com (David Anderson) Date: Sun Dec 14 20:09:06 2003 Subject: [Nagiosplug-devel] Feature request Message-ID: <200312101115.02896.david@readingroom.com> Hello, Thanks for all your hard work. There's a useful feature that I'd like to request. (I can't do C, so can't do it myself!) I've downloaded the 1.4.0alpha1 code to check that the feature doesn't exist yet. It would be useful for the check_procs plugin to check maximum process age. e.g. I'd like to check if there are any 'exim' processes over a certain age. (This is the sign for me of something going wrong - normally a problem contacting the virus scanner). For the moment I'll have to hack up a Perl script, but presumably this would be useful to more folk than me so it might be good to have it in the main distribution. David From noreply at sourceforge.net Tue Dec 16 03:26:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 16 03:26:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-860916 ] Connection refused Message-ID: Support Requests item #860916, was opened at 2003-12-16 11:25 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=860916&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Alwyn Cherrington (cherrytree) Assigned to: Nobody/Anonymous (nobody) Summary: Connection refused Initial Comment: http://www.debisschop.net/src/nagios/ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=860916&group_id=29880 From noreply at sourceforge.net Tue Dec 16 05:57:00 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Dec 16 05:57:00 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-860993 ] update: contrib / fetchlog-0.95 Message-ID: Patches item #860993, was opened at 2003-12-16 14:56 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=860993&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Alexander Haderer (afrika) Assigned to: Nobody/Anonymous (nobody) Summary: update: contrib / fetchlog-0.95 Initial Comment: hello, I am the maintainer of the fetchlog utility which is part of nagios-plugins / contrib. I updated fetchlog to version 0.95. So two files need an an update: 1. contrib/README.TXT the file mentioned there now is fetchlog-0.95.tar.gz 2. contrib/tarballs/fetchlog-0.95.tar.gz the file must be replaced by a newer version. Do you want me to mail the source.tar.gz to the list (22k) or do you want to download the new version by yourself from: http://fetchlog.sourceforge.net Do you want a unified diff to change the version number in the README.TXT? with best regards, Alexander ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=860993&group_id=29880 From noreply at sourceforge.net Wed Dec 17 06:41:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 17 06:41:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-860916 ] Connection refused Message-ID: Support Requests item #860916, was opened at 2003-12-16 11:25 Message generated for change (Settings changed) made by cherrytree You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=860916&group_id=29880 Category: None Group: None >Status: Deleted Priority: 5 Submitted By: Alwyn Cherrington (cherrytree) Assigned to: Nobody/Anonymous (nobody) Summary: Connection refused Initial Comment: http://www.debisschop.net/src/nagios/ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=860916&group_id=29880 From sghosh at sghosh.org Wed Dec 17 09:39:03 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed Dec 17 09:39:03 2003 Subject: [Nagiosplug-devel] Patch for check_ntp when checking against cisco ios ntp servers In-Reply-To: Message-ID: On Thu, 4 Dec 2003, David Sullivan wrote: > In it's current form check_ntp assumes it's talking to a unix ntp server and expects the > following output from ntpq: > > *192.168.1.1 .GPS. 1 u 12 256 377 14.50 0.016 2.17 > > Whereas the cisco ios NTP implementation returns the following: > > *192.168.1.1 .GPS. 1 - 392 1024 377 22.31 -4.749 2.29 > > The following patch modifies the regexp to recognise - for field 5 as well as l u m or b > returned by "normal" ntp servers. > > 277c277 > < if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { > --- > > if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([\-lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { > 302c302 > < $c =~ /^(#)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/; > --- > > $c =~ /^(#)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([\-lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/; > Thanks for the correction, should have escaped the - in the regex... -- -sg From sghosh at sghosh.org Wed Dec 17 09:41:00 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed Dec 17 09:41:00 2003 Subject: [Nagiosplug-devel] Plugin In-Reply-To: <20031204140744.RKWO2297.lakemtao02.cox.net@smtp.east.cox.net> Message-ID: On Thu, 4 Dec 2003 chammond at cox.net wrote: > Has anyone created a plugin that supports a marjority of the printer > mib? I have been tasked with monitoring these new network attached > copiers and multifunction machines from the likes of HP, Canon and > Aficio. I need info like page counts and if the machine is reporting it > needs maintenance. Has anyone created anything like that? > starting point - doesn't have page counts... http://sourceforge.net/tracker/index.php?func=detail&aid=736655&group_id=29880&atid=541465 -- -sg From noreply at sourceforge.net Wed Dec 17 12:36:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 17 12:36:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854817 ] check_swap 1.4beta1 on AIX: crit,warn args swapped Message-ID: Bugs item #854817, was opened at 2003-12-05 15:56 Message generated for change (Comment added) made by ghelleks You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 Category: Argument proccessing Group: Release (specify) >Status: Open Resolution: None Priority: 2 Submitted By: (ghelleks) Assigned to: Ton Voon (tonvoon) Summary: check_swap 1.4beta1 on AIX: crit,warn args swapped Initial Comment: on AIX 3.4, using nagios-plugins-1.4beta1 tarball: check_swap -a -w 50% -c 75% Yields: Warning percentage should be more than critical percentage on Solaris and Linux, the command works as expected. ---------------------------------------------------------------------- >Comment By: (ghelleks) Date: 2003-12-17 20:35 Message: Logged In: YES user_id=18504 I thought so too, but the same command under version 1.3 of check_swap on Solaris executes just fine. Syntax change? Bug? ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-11 10:17 Message: Logged In: YES user_id=664364 I don't think this is a problem; check_swap checks the amount of free space so critical must be lower than warning, hence the error message. Unless I am missing something? I will mark this call into pending state. ---------------------------------------------------------------------- Comment By: (ghelleks) Date: 2003-12-07 14:21 Message: Logged In: YES user_id=18504 Mea culpa. The problem exists on Solaris as well. I imagine Linux will have the problem as well. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-05 16:32 Message: Logged In: YES user_id=664364 I've just tried this on Solaris and I get "Warning percentage should be more than critical percentage". Have you done a make clean on Solaris and Linux? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 From noreply at sourceforge.net Thu Dec 18 00:27:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 18 00:27:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854817 ] check_swap 1.4beta1 on AIX: crit,warn args swapped Message-ID: Bugs item #854817, was opened at 2003-12-05 15:56 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 Category: Argument proccessing Group: Release (specify) Status: Open Resolution: None >Priority: 7 Submitted By: (ghelleks) Assigned to: Ton Voon (tonvoon) Summary: check_swap 1.4beta1 on AIX: crit,warn args swapped Initial Comment: on AIX 3.4, using nagios-plugins-1.4beta1 tarball: check_swap -a -w 50% -c 75% Yields: Warning percentage should be more than critical percentage on Solaris and Linux, the command works as expected. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-18 08:26 Message: Logged In: YES user_id=664364 Ahh, I finally understand. There was a change to check_swap to make it more consistent. The old 1.3 release help says this: --- -w, --warning=INTEGER Exit with WARNING status if less than INTEGER bytes of swap space are free -w, --warning=PERCENT% Exit with WARNING status if more than PERCENT of swap space has been used --- Note the switch between checking against free swap for absolute numbers, but against used for %. So the new 1.4 release considers the thresholds the same way. This also makes it more consistent with check_disk. I've also noticed that the help file for check_swap is wrong, so I'll update that now. You are right in pointing this out. Will get some text put together about the significant changes between 1.3 and 1.4, including syntax breakages like this. I'll leave this open for now. P.S. What is your full name? I can then add it to our list of people to thank. ---------------------------------------------------------------------- Comment By: (ghelleks) Date: 2003-12-17 20:35 Message: Logged In: YES user_id=18504 I thought so too, but the same command under version 1.3 of check_swap on Solaris executes just fine. Syntax change? Bug? ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-11 10:17 Message: Logged In: YES user_id=664364 I don't think this is a problem; check_swap checks the amount of free space so critical must be lower than warning, hence the error message. Unless I am missing something? I will mark this call into pending state. ---------------------------------------------------------------------- Comment By: (ghelleks) Date: 2003-12-07 14:21 Message: Logged In: YES user_id=18504 Mea culpa. The problem exists on Solaris as well. I imagine Linux will have the problem as well. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-05 16:32 Message: Logged In: YES user_id=664364 I've just tried this on Solaris and I get "Warning percentage should be more than critical percentage". Have you done a make clean on Solaris and Linux? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 From Ton.Voon at egg.com Thu Dec 18 08:51:04 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu Dec 18 08:51:04 2003 Subject: [Nagiosplug-devel] New file: CHANGES Message-ID: Hi! I've added a new file to CVS: CHANGES. I was thinking this should be used to list the major changes between releases, either major functionality or changes that will break current releases. This is its initial content: --- This file documents the major additions and syntax changes between releases. 1.4 IPv6 support in check_ping, check_by_ssh, check_http, check_ldap, check_smtp, check_tcp Internationalisation support Performance data added (not all plugins yet) check_vsz and check_rss deprecated - functionality moved into check_procs check_swap % thresholds changed to measure amount free, instead of amount used check_disk syntax changes for -p --- Ton 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 sekimura at iij-mc.co.jp Sun Dec 21 08:06:27 2003 From: sekimura at iij-mc.co.jp (Masayoshi Sekimura) Date: Sun Dec 21 08:06:27 2003 Subject: [Nagiosplug-devel] patch for plugin/check_real.c Message-ID: <20031219.152613.78706294.sekimura@iij-mc.co.jp> Hi nagiosplug-devel, Here is a patch for plugin/check_real.c. - "OPTIONS * RTSP/1.0" is useful when talk with NetCache It has no harm when direcoty connect with RealServer or QTSS. - \r\n patch for the DESCRIBE rtsp method. best regards, -sekimura -------------- next part -------------- --- check_real.c.orig Tue Jun 10 13:56:47 2003 +++ check_real.c Fri Dec 19 14:49:25 2003 @@ -97,7 +97,7 @@ /* Part I - Server Check */ /* send the OPTIONS request */ - sprintf (buffer, "OPTIONS rtsp://%s:%d RTSP/1.0\r\n", host_name, server_port); + sprintf (buffer, "OPTIONS * RTSP/1.0\r\n"); result = send (sd, buffer, strlen (buffer), 0); /* send the header sync */ @@ -167,16 +167,16 @@ /* Part I - Server Check */ /* send the OPTIONS request */ - sprintf (buffer, "DESCRIBE rtsp://%s:%d%s RTSP/1.0\n", host_name, + sprintf (buffer, "DESCRIBE rtsp://%s:%d%s RTSP/1.0\r\n", host_name, server_port, server_url); result = send (sd, buffer, strlen (buffer), 0); /* send the header sync */ - sprintf (buffer, "CSeq: 2\n"); + sprintf (buffer, "CSeq: 2\r\n"); result = send (sd, buffer, strlen (buffer), 0); /* send a newline so the server knows we're done with the request */ - sprintf (buffer, "\n"); + sprintf (buffer, "\r\n"); result = send (sd, buffer, strlen (buffer), 0); /* watch for the REAL connection string */ From greis at grinco.de Sun Dec 21 08:06:29 2003 From: greis at grinco.de (Olaf Greis) Date: Sun Dec 21 08:06:29 2003 Subject: [Nagiosplug-devel] check_password Message-ID: <1071920542.5691.7.camel@dumbledore.wizard.grinco.de> hi, i'm using nagios in an environment where password aging is required, and where expired passwords sometimes create a lot of mess (esp. root) so i tried to pull together a nagios-plugin to check the passwords for expiration as well. any comments on this are welcome merry & happy Olaf -------------- next part -------------- A non-text attachment was scrubbed... Name: check_password.c Type: text/x-c Size: 7397 bytes Desc: not available URL: From j.e.vanbaal at uvt.nl Tue Dec 23 06:23:06 2003 From: j.e.vanbaal at uvt.nl (Joost van Baal) Date: Tue Dec 23 06:23:06 2003 Subject: [Nagiosplug-devel] Solaris package, including package sources, for NRPE 1.9 available Message-ID: <20031223142154.GT27011@banach.uvt.nl> Hi, I've build a Solaris package for NRPE 1.9. It's available from http://www.non-gnu.uvt.nl/pub/nrpe/solaris/ ; both the sources for the package and a binary package for Solaris 8. (I'll likely build binaries for other Solaris versions soon.) Could a link to http://www.non-gnu.uvt.nl/pub/nrpe/solaris/ get added to the NRPE section at http://www.nagios.org/download/extras.php ? Thanks, Bye, Joost -- Joost van Baal http://abramowitz.uvt.nl/ Tilburg University j.e.vanbaal at uvt.nl The Netherlands -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: From noreply at sourceforge.net Wed Dec 24 00:54:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Dec 24 00:54:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-854817 ] check_swap 1.4beta1 on AIX: crit,warn args swapped Message-ID: Bugs item #854817, was opened at 2003-12-05 15:56 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 Category: Argument proccessing Group: Release (specify) >Status: Closed >Resolution: Fixed Priority: 7 Submitted By: (ghelleks) Assigned to: Ton Voon (tonvoon) Summary: check_swap 1.4beta1 on AIX: crit,warn args swapped Initial Comment: on AIX 3.4, using nagios-plugins-1.4beta1 tarball: check_swap -a -w 50% -c 75% Yields: Warning percentage should be more than critical percentage on Solaris and Linux, the command works as expected. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-12-24 08:53 Message: Logged In: YES user_id=664364 Updated help text for check_swap in v1.15. Have created a CHANGES file to list major differences between releases. Credited Gunnar Hellekson - thanks. Closing this call. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-18 08:26 Message: Logged In: YES user_id=664364 Ahh, I finally understand. There was a change to check_swap to make it more consistent. The old 1.3 release help says this: --- -w, --warning=INTEGER Exit with WARNING status if less than INTEGER bytes of swap space are free -w, --warning=PERCENT% Exit with WARNING status if more than PERCENT of swap space has been used --- Note the switch between checking against free swap for absolute numbers, but against used for %. So the new 1.4 release considers the thresholds the same way. This also makes it more consistent with check_disk. I've also noticed that the help file for check_swap is wrong, so I'll update that now. You are right in pointing this out. Will get some text put together about the significant changes between 1.3 and 1.4, including syntax breakages like this. I'll leave this open for now. P.S. What is your full name? I can then add it to our list of people to thank. ---------------------------------------------------------------------- Comment By: (ghelleks) Date: 2003-12-17 20:35 Message: Logged In: YES user_id=18504 I thought so too, but the same command under version 1.3 of check_swap on Solaris executes just fine. Syntax change? Bug? ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-11 10:17 Message: Logged In: YES user_id=664364 I don't think this is a problem; check_swap checks the amount of free space so critical must be lower than warning, hence the error message. Unless I am missing something? I will mark this call into pending state. ---------------------------------------------------------------------- Comment By: (ghelleks) Date: 2003-12-07 14:21 Message: Logged In: YES user_id=18504 Mea culpa. The problem exists on Solaris as well. I imagine Linux will have the problem as well. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-12-05 16:32 Message: Logged In: YES user_id=664364 I've just tried this on Solaris and I get "Warning percentage should be more than critical percentage". Have you done a make clean on Solaris and Linux? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=854817&group_id=29880 From noreply at sourceforge.net Thu Dec 25 07:51:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 25 07:51:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-847821 ] check_smart - monitor sanity of SMART enabled harddisks Message-ID: New Plugins item #847821, was opened at 2003-11-23 21:51 Message generated for change (Comment added) made by rkarlsba You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=847821&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Iosif Fettich (ifettich) Assigned to: Nobody/Anonymous (nobody) Summary: check_smart - monitor sanity of SMART enabled harddisks Initial Comment: # # check_smart [-l] -d /dev/hda # # Nagios host script to check sanity of a harddisk using smartctl # # no warranty, use at your own risk, etc. # # In order tho let nagios read /dev/hda, you'll want to add the line # nagios hostname = NOPASSWD: /usr/sbin/smartctl -d /dev/hda # to your sudoers, using visudo. # # smartctl is part of smartmontools, # Home page is http://smartmontools.sourceforge.net/ # # feel free to change/adapt/hack it in _any_ way you wish. # ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-12-25 16:50 Message: Logged In: YES user_id=145309 I didn't see any license notices here. Will this be GPLed? If so, please add the licence to the code :) roy ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=847821&group_id=29880 From noreply at sourceforge.net Thu Dec 25 08:25:16 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Dec 25 08:25:16 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-847821 ] check_smart - monitor sanity of SMART enabled harddisks Message-ID: New Plugins item #847821, was opened at 2003-11-23 21:51 Message generated for change (Comment added) made by rkarlsba You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=847821&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Iosif Fettich (ifettich) Assigned to: Nobody/Anonymous (nobody) Summary: check_smart - monitor sanity of SMART enabled harddisks Initial Comment: # # check_smart [-l] -d /dev/hda # # Nagios host script to check sanity of a harddisk using smartctl # # no warranty, use at your own risk, etc. # # In order tho let nagios read /dev/hda, you'll want to add the line # nagios hostname = NOPASSWD: /usr/sbin/smartctl -d /dev/hda # to your sudoers, using visudo. # # smartctl is part of smartmontools, # Home page is http://smartmontools.sourceforge.net/ # # feel free to change/adapt/hack it in _any_ way you wish. # ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-12-25 17:24 Message: Logged In: YES user_id=145309 On debian, I had to change the sudo line to nagios hostname = asdf NOPASSWD: /usr/sbin/smartctl it didn't work with smartctl -d ... roy ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-12-25 16:50 Message: Logged In: YES user_id=145309 I didn't see any license notices here. Will this be GPLed? If so, please add the licence to the code :) roy ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=847821&group_id=29880 From noreply at sourceforge.net Sat Dec 27 15:58:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat Dec 27 15:58:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-866485 ] Overflow in check_swap Message-ID: Bugs item #866485, was opened at 2003-12-28 00:56 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=866485&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Johannes Formann (jformann) Assigned to: Nobody/Anonymous (nobody) Summary: Overflow in check_swap Initial Comment: When running check_swap on server with more than 4 GB swap (in this case with about 16 GB) it will report a false percentage as beeing used: /opt/master/nagios/libexec/check_swap -w 30% -c 70% WARNING - Swap used: 32% (1412804608 out of 4294967295) # free total used free shared buffers cached Mem: 4011044 4001688 9356 0 23168 3668088 -/+ buffers/cache: 310432 3700612 Swap: 16097500 1379860 14717640 I've checked this from 1.3 over 1.3.1 up to 1.4a1 I think the vars must be changed from long to long long. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=866485&group_id=29880