From noreply at sourceforge.net Thu May 1 11:30:16 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 1 11:30:16 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-730931 ] add : more flexibility and S22 to check_nwstat Message-ID: Feature Requests item #730931, was opened at 2003-05-01 18:29 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=730931&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Alex (faucon) Assigned to: Nobody/Anonymous (nobody) Summary: add : more flexibility and S22 to check_nwstat Initial Comment: Hi all, The plug-in check_nwstat is somewhat limitted because you can only parse arguments from the list when you do a "check_nwstat --help". Why not letting parse all the variables available in MRTGEXT? For example... If I do... check_nwstat - H hostIP -v LOAD1 ...everything is fine but if I type... check_nwstat - H hostIP -v S22 the command line tell me "Could not parse arguments". S22 is time sync in MRTGEXT (witch I need). I can test the modifications if you want, and if you want not to add every little variables, just add S22 to the valid variables :) Thanks. Alex ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=730931&group_id=29880 From noreply at sourceforge.net Fri May 2 10:19:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 2 10:19:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-731467 ] check_udp returns exit code 0 everytime Message-ID: Bugs item #731467, was opened at 2003-05-02 10:13 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=731467&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Kevin O'Brien (irishpadres) Assigned to: Nobody/Anonymous (nobody) Summary: check_udp returns exit code 0 everytime Initial Comment: If I use the check_tcp symlinked version of check_udp I get and exit code of 0 every time I run the script. I can give it any host and and any port and it will always exit 0 with 0.0001 second response time. I've tried this on both a Linux and Solaris box with the same result. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=731467&group_id=29880 From noreply at sourceforge.net Fri May 2 12:36:57 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 2 12:36:57 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-731555 ] arbitrary headers in check_http Message-ID: Feature Requests item #731555, was opened at 2003-05-02 14:30 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=731555&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nicholas Riley (nriley) Assigned to: Nobody/Anonymous (nobody) Summary: arbitrary headers in check_http Initial Comment: For some servers I monitor, a normal HTTP request will not succeed; it's necessary to add a particular HTTP header to get it to work. I've modified my copy of check_http to send this header, but it would be easier if it provided an option similar to wget's --header, to send an arbitrary header. It would look something like this: check_http -I my.broken.server -h 'Foo: Bar' and check_http would send: GET / HTTP/1.0 Host: my.broken.server User-Agent: check_http... Foo: Bar This seems simple enough that I'm not sure it's worth the trouble to submit a patch, but if you want one, let me know. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 From noreply at sourceforge.net Fri May 2 13:30:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 2 13:30:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-731555 ] arbitrary headers in check_http Message-ID: Feature Requests item #731555, was opened at 2003-05-02 15:30 Message generated for change (Comment added) made by sghosh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nicholas Riley (nriley) Assigned to: Nobody/Anonymous (nobody) Summary: arbitrary headers in check_http Initial Comment: For some servers I monitor, a normal HTTP request will not succeed; it's necessary to add a particular HTTP header to get it to work. I've modified my copy of check_http to send this header, but it would be easier if it provided an option similar to wget's --header, to send an arbitrary header. It would look something like this: check_http -I my.broken.server -h 'Foo: Bar' and check_http would send: GET / HTTP/1.0 Host: my.broken.server User-Agent: check_http... Foo: Bar This seems simple enough that I'm not sure it's worth the trouble to submit a patch, but if you want one, let me know. ---------------------------------------------------------------------- >Comment By: Subhendu Ghosh (sghosh) Date: 2003-05-02 16:18 Message: Logged In: YES user_id=46572 patches always help speed up the process. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 From noreply at sourceforge.net Fri May 2 16:33:44 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 2 16:33:44 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-731555 ] arbitrary headers in check_http Message-ID: Feature Requests item #731555, was opened at 2003-05-02 14:30 Message generated for change (Comment added) made by nriley You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nicholas Riley (nriley) Assigned to: Nobody/Anonymous (nobody) Summary: arbitrary headers in check_http Initial Comment: For some servers I monitor, a normal HTTP request will not succeed; it's necessary to add a particular HTTP header to get it to work. I've modified my copy of check_http to send this header, but it would be easier if it provided an option similar to wget's --header, to send an arbitrary header. It would look something like this: check_http -I my.broken.server -h 'Foo: Bar' and check_http would send: GET / HTTP/1.0 Host: my.broken.server User-Agent: check_http... Foo: Bar This seems simple enough that I'm not sure it's worth the trouble to submit a patch, but if you want one, let me know. ---------------------------------------------------------------------- >Comment By: Nicholas Riley (nriley) Date: 2003-05-02 18:32 Message: Logged In: YES user_id=34933 OK, here you go. ---------------------------------------------------------------------- Comment By: Subhendu Ghosh (sghosh) Date: 2003-05-02 15:18 Message: Logged In: YES user_id=46572 patches always help speed up the process. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 From noreply at sourceforge.net Sat May 3 04:18:12 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 3 04:18:12 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-731555 ] arbitrary headers in check_http Message-ID: Feature Requests item #731555, was opened at 2003-05-02 15:30 Message generated for change (Comment added) made by kdebisschop You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nicholas Riley (nriley) Assigned to: Nobody/Anonymous (nobody) Summary: arbitrary headers in check_http Initial Comment: For some servers I monitor, a normal HTTP request will not succeed; it's necessary to add a particular HTTP header to get it to work. I've modified my copy of check_http to send this header, but it would be easier if it provided an option similar to wget's --header, to send an arbitrary header. It would look something like this: check_http -I my.broken.server -h 'Foo: Bar' and check_http would send: GET / HTTP/1.0 Host: my.broken.server User-Agent: check_http... Foo: Bar This seems simple enough that I'm not sure it's worth the trouble to submit a patch, but if you want one, let me know. ---------------------------------------------------------------------- >Comment By: Karl DeBisschop (kdebisschop) Date: 2003-05-03 07:15 Message: Logged In: YES user_id=1671 You can submit POST data, which would answer your example. You could also use check_tcp. Are you sure you can't do what you want with the existing code? ---------------------------------------------------------------------- Comment By: Nicholas Riley (nriley) Date: 2003-05-02 19:32 Message: Logged In: YES user_id=34933 OK, here you go. ---------------------------------------------------------------------- Comment By: Subhendu Ghosh (sghosh) Date: 2003-05-02 16:18 Message: Logged In: YES user_id=46572 patches always help speed up the process. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 From noreply at sourceforge.net Sat May 3 05:28:23 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 3 05:28:23 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-731820 ] New plugin: check_dead 1.0 Message-ID: New Plugins item #731820, was opened at 2003-05-03 12: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=731820&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: dag rob?le (corebob) Assigned to: Nobody/Anonymous (nobody) Summary: New plugin: check_dead 1.0 Initial Comment: This plugin uses fping to scan for dead hosts on a class C network. It reports the ip addresses of any dead hosts found. I find this plugin useful when I monitor thin clients on a LTSP based network. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=731820&group_id=29880 From noreply at sourceforge.net Sat May 3 05:33:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 3 05:33:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-731820 ] New plugin: check_dead 1.0 Message-ID: New Plugins item #731820, was opened at 2003-05-03 12:27 Message generated for change (Comment added) made by corebob You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=731820&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: dag rob?le (corebob) Assigned to: Nobody/Anonymous (nobody) Summary: New plugin: check_dead 1.0 Initial Comment: This plugin uses fping to scan for dead hosts on a class C network. It reports the ip addresses of any dead hosts found. I find this plugin useful when I monitor thin clients on a LTSP based network. ---------------------------------------------------------------------- >Comment By: dag rob?le (corebob) Date: 2003-05-03 12:32 Message: Logged In: YES user_id=745816 check_dead version output: check_dead (nagios-plugins 200305030007) 1.0 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=731820&group_id=29880 From noreply at sourceforge.net Sat May 3 11:27:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 3 11:27:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-731820 ] New plugin: check_dead 1.1 Message-ID: New Plugins item #731820, was opened at 2003-05-03 12:27 Message generated for change (Settings changed) made by corebob You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=731820&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: dag rob?le (corebob) Assigned to: Nobody/Anonymous (nobody) >Summary: New plugin: check_dead 1.1 Initial Comment: This plugin uses fping to scan for dead hosts on a class C network. It reports the ip addresses of any dead hosts found. I find this plugin useful when I monitor thin clients on a LTSP based network. ---------------------------------------------------------------------- Comment By: dag rob?le (corebob) Date: 2003-05-03 12:32 Message: Logged In: YES user_id=745816 check_dead version output: check_dead (nagios-plugins 200305030007) 1.0 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=731820&group_id=29880 From noreply at sourceforge.net Sat May 3 13:11:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 3 13:11:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-731555 ] arbitrary headers in check_http Message-ID: Feature Requests item #731555, was opened at 2003-05-02 14:30 Message generated for change (Comment added) made by nriley You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Nicholas Riley (nriley) Assigned to: Nobody/Anonymous (nobody) Summary: arbitrary headers in check_http Initial Comment: For some servers I monitor, a normal HTTP request will not succeed; it's necessary to add a particular HTTP header to get it to work. I've modified my copy of check_http to send this header, but it would be easier if it provided an option similar to wget's --header, to send an arbitrary header. It would look something like this: check_http -I my.broken.server -h 'Foo: Bar' and check_http would send: GET / HTTP/1.0 Host: my.broken.server User-Agent: check_http... Foo: Bar This seems simple enough that I'm not sure it's worth the trouble to submit a patch, but if you want one, let me know. ---------------------------------------------------------------------- >Comment By: Nicholas Riley (nriley) Date: 2003-05-03 15:10 Message: Logged In: YES user_id=34933 AFAIK, POST data would not answer my example. The headers need to be sent before the CR-LF-CR-LF after which POST data is sent. I can't use check_tcp because I'm connecting via SSL. (Sorry that wasn't in my example; I was attempting to simplify it for the purpose of the example). check_tcp would probably work if I weren't connecting via SSL, but it'd be cumbersome to have to embed the HTTP request-response in a shell script or .cfg file. ---------------------------------------------------------------------- Comment By: Karl DeBisschop (kdebisschop) Date: 2003-05-03 06:15 Message: Logged In: YES user_id=1671 You can submit POST data, which would answer your example. You could also use check_tcp. Are you sure you can't do what you want with the existing code? ---------------------------------------------------------------------- Comment By: Nicholas Riley (nriley) Date: 2003-05-02 18:32 Message: Logged In: YES user_id=34933 OK, here you go. ---------------------------------------------------------------------- Comment By: Subhendu Ghosh (sghosh) Date: 2003-05-02 15:18 Message: Logged In: YES user_id=46572 patches always help speed up the process. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=731555&group_id=29880 From noreply at sourceforge.net Sat May 3 15:19:51 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 3 15:19:51 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-731820 ] New plugin: check_dead 1.2 Message-ID: New Plugins item #731820, was opened at 2003-05-03 12:27 Message generated for change (Settings changed) made by corebob You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=731820&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: dag rob?le (corebob) Assigned to: Nobody/Anonymous (nobody) >Summary: New plugin: check_dead 1.2 Initial Comment: This plugin uses fping to scan for dead hosts on a class C network. It reports the ip addresses of any dead hosts found. I find this plugin useful when I monitor thin clients on a LTSP based network. ---------------------------------------------------------------------- Comment By: dag rob?le (corebob) Date: 2003-05-03 12:32 Message: Logged In: YES user_id=745816 check_dead version output: check_dead (nagios-plugins 200305030007) 1.0 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=731820&group_id=29880 From jeremy+nagios at undergrid.net Sun May 4 14:09:37 2003 From: jeremy+nagios at undergrid.net (Jeremy T. Bouse) Date: Sun May 4 14:09:37 2003 Subject: [Nagiosplug-devel] Plugin command syntax samples Message-ID: <20030504210701.GB22342@UnderGrid.net> Just a quick question... But IIRC the older netsaint plugins had seperate .cfg files with sample syntaxes for the command.cfg to use... I know the Debian package for the netsaint plugins would catenate these all into an auto-generated command file... I noticed that this is absent in the current Nagios plugins and instead is a .cfg file generated from the configure script execution... Was there any particular reason for this change? Would it not be an idea to add a config sub-directory that the .cfg files could be placed in and generate the command.cfg on install rather than through the configure script so it only contains entries that the system is capable of building rather than throwing the kitchen sink into it? Jeremy From karl at debisschop.net Sun May 4 21:14:15 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Sun May 4 21:14:15 2003 Subject: [Nagiosplug-devel] Plugin command syntax samples In-Reply-To: <20030504210701.GB22342@UnderGrid.net> References: <20030504210701.GB22342@UnderGrid.net> Message-ID: <1052107912.1436.5.camel@miles.debisschop.net> On Sun, 2003-05-04 at 17:07, Jeremy T. Bouse wrote: > Just a quick question... But IIRC the older netsaint plugins had > seperate .cfg files with sample syntaxes for the command.cfg to use... I know > the Debian package for the netsaint plugins would catenate these all into an > auto-generated command file... I noticed that this is absent in the current > Nagios plugins and instead is a .cfg file generated from the configure script > execution... Was there any particular reason for this change? Would it not be an > idea to add a config sub-directory that the .cfg files could be placed in and > generate the command.cfg on install rather than through the configure script so > it only contains entries that the system is capable of building rather than > throwing the kitchen sink into it? The config file has in general always been made the same way -- by substitution of paths at build time. If debian removed the entries for unbuilt plugins, it dis so on its own. But only providing those syntaxes that will work seems a good idea. Another approach might be to give each plugin a '--sample' argument that generates a sample invocation. Since This would be good to have in the (embeeded) documentation, I lean towrd this approach. -- Karl From noreply at sourceforge.net Mon May 5 02:49:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 5 02:49:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-732590 ] check_mssql.sh Message-ID: New Plugins item #732590, was opened at 2003-05-05 09:48 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=732590&group_id=29880 Category: Application monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tom De Blende (tomdeblende) Assigned to: Nobody/Anonymous (nobody) Summary: check_mssql.sh Initial Comment: This plugin checks for the availability of MS SQL Server 7 and 2000. It is written in Bash (though it should work in Bourne I guess) and uses FreeTDS and Sqsh to connect. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=732590&group_id=29880 From noreply at sourceforge.net Mon May 5 02:49:10 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 5 02:49:10 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-732590 ] check_mssql.sh Message-ID: New Plugins item #732590, was opened at 2003-05-05 09:48 Message generated for change (Settings changed) made by tomdeblende You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=732590&group_id=29880 Category: Application monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Tom De Blende (tomdeblende) >Assigned to: Stanley Hopcroft (stanleyhopcroft) Summary: check_mssql.sh Initial Comment: This plugin checks for the availability of MS SQL Server 7 and 2000. It is written in Bash (though it should work in Bourne I guess) and uses FreeTDS and Sqsh to connect. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=732590&group_id=29880 From amayhew at verisign.com Mon May 5 16:42:03 2003 From: amayhew at verisign.com (Mayhew, Andrew) Date: Mon May 5 16:42:03 2003 Subject: [Nagiosplug-devel] Bug/Patch for check_http Message-ID: There is an error in the math for determining if a SSL certificate has expired. It will only go critical until the certificate has been expired for more than 24 hours, rather than as soon as it expires. Additionally, the snprintf line for generating the timestamp truncated the time by 1 character. I've also changed the behavior of this check slightly. Since it can take more than 24 hours to generate a new certificate (depending on your CA), it is not helpful to go critical only after you have expired. So I've added a statement that will set the state to critical if the certificate will expire in (days_till_exp /2) days. So for example: check_http -C 10 --ssl -p 443 http://secureserver/ will warn when the certificate is between 5-10 days until expiration and alert critical if the certificate will expire in less than 5 days. The supplied patch is done against a CVS checkout done at 5 May 2003 at around 2:30 PM PST. --And Mayhew --- ../../nagiosplug-cvs/plugins/check_http.c Mon May 5 14:35:48 2003 +++ check_http.c Mon May 5 16:26:04 2003 @@ -934,6 +934,8 @@ int offset; struct tm stamp; int days_left; + int half_days_till_exp = days_till_exp / 2; + int computed_time; /* Retrieve timestamp of certificate */ @@ -977,23 +979,28 @@ stamp.tm_isdst = -1; days_left = (mktime (&stamp) - time (NULL)) / 86400; + computed_time = mktime (&stamp) - time(NULL); snprintf - (timestamp, 16, "%02d/%02d/%04d %02d:%02d", + (timestamp, 17, "%02d/%02d/%04d %02d:%02d", stamp.tm_mon + 1, stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); + if (days_left > 0 && days_left < half_days_till_exp) { + printf ("CRITICAL - Certificate expires in %d day(s) (%s).\n", days_left, timestamp); + return STATE_CRITICAL; + } if (days_left > 0 && days_left <= days_till_exp) { printf ("WARNING - Certificate expires in %d day(s) (%s).\n", days_left, timestamp); return STATE_WARNING; } - if (days_left < 0) { + if ((days_left < 0) || (computed_time <= 0)) { printf ("CRITICAL - Certificate expired on %s.\n", timestamp); return STATE_CRITICAL; } if (days_left == 0) { - printf ("WARNING - Certificate expires today (%s).\n", timestamp); - return STATE_WARNING; + printf ("CRITICAL - Certificate expires today (%s).\n", timestamp); + return STATE_CRITICAL; } printf ("OK - Certificate will expire on %s.\n", timestamp); From mm at elabnet.de Tue May 6 06:09:07 2003 From: mm at elabnet.de (Michael Markstaller) Date: Tue May 6 06:09:07 2003 Subject: [Nagiosplug-devel] NSclient and Physicaldisk-bytes/sec Message-ID: <246BE4BBD2754248AD5C14E535004ABA101EAE@elab4.elabnet.com> Hi, I'm using NSclient (1.0.7.1) and check_nt (nagios-plugins 1.3.0 / 1.7) in conjunction with a shell script to pull some W2k-perfcounters from several servers into MRTG which work fine so far for Memory,SMTP-Messages,PagePool etc. Just to point out it's working overall fine.. Also using from within Nagios to monitor works fine. Now I've added the following counters which return me somewhat strange values: "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" : polled with check_nt it's *always* 0, in perfmon it isn't. "\\PhysicalDisk(_Total)\\Disk Read Bytes/sec" / "\\PhysicalDisk(_Total)\\Disk Write Bytes/sec": the values I receive are very "static" and *very* strange. In perfmon I see a normal graph showing some movement, so the values within perfmon are correct. An example to illustrate: Values from Perfmon "\\PhysicalDisk(_Total)\\Disk Write Bytes/sec" 197562,763446308 15337,7748891304 37833,0113271332 227493,179856569 225081,310079066 197605,281148608 14067,0434390914 12074,8110884988 185230,215176143 312124,651960133 128784,648122873 104239,2056829 93099,405679069 158402,832409301 320800,643613903 225597,324605396 81592,1992627104 So they're variying as I'd expect. when using check_nt to poll via NSClient from the same server I get (only changing a few bytes when monitoring for several hours): 169915,169914,169913,169912,169912,169911,169910,169909,169909,169908,169907,169906,169905,169905,169904,169903 Also, when there comes load to the disks, nothing is changing on these counters.. I've tested with different servers and some other counters on the same machines work fine, anybody has an idea what this is caused by ? thanks, Michael From roy at karlsbakk.net Thu May 8 05:08:06 2003 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Thu May 8 05:08:06 2003 Subject: [Nagiosplug-devel] need help compiling nsclient Message-ID: <200305081405.51540.roy@karlsbakk.net> hi I need to add a few lines to nsclient, so I downloaded the Delphi 7 Architect Trial pack, changed the source, and tried to compile it. I get this error 'Field NSClient.ServerSocket does not have a corresponding component. Remove the declaration?', and things doesn't seem too good. Any idea what this might be? I don't know Delphi any good, but I can remember some of the good ole Borland Pascal 7. It's not that different, after all :) 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 Thu May 8 08:58:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 8 08:58:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-734722 ] check_http reports error when server closes connection Message-ID: Bugs item #734722, was opened at 2003-05-08 10:57 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=734722&group_id=29880 Category: None Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Andrew Wason (awason) Assigned to: Nobody/Anonymous (nobody) Summary: check_http reports error when server closes connection Initial Comment: The check_http plugin reports an error ("Error in recv()") if the web server closes the socket immediately after sending all data. check_http goes call recv() again and gets ECONNRESET. In addition, if this happens when HAVE_SSL is defined, then check_http will segfault because the call to SSL_get_error is not protected by "if (use_ssl)". A patch for both of these against check_http.c 1.32 is attached. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=734722&group_id=29880 From noreply at sourceforge.net Thu May 8 09:04:15 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 8 09:04:15 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-734722 ] check_http reports error when server closes connection Message-ID: Bugs item #734722, was opened at 2003-05-08 10:57 Message generated for change (Comment added) made by awason You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=734722&group_id=29880 Category: None Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Andrew Wason (awason) Assigned to: Nobody/Anonymous (nobody) Summary: check_http reports error when server closes connection Initial Comment: The check_http plugin reports an error ("Error in recv()") if the web server closes the socket immediately after sending all data. check_http goes call recv() again and gets ECONNRESET. In addition, if this happens when HAVE_SSL is defined, then check_http will segfault because the call to SSL_get_error is not protected by "if (use_ssl)". A patch for both of these against check_http.c 1.32 is attached. ---------------------------------------------------------------------- >Comment By: Andrew Wason (awason) Date: 2003-05-08 11:03 Message: Logged In: YES user_id=247569 A simple Java HTTP server app is attached - it closes the socket immediately after serving the data to help duplicate the problem. It listens on port 8911, so use "check_http -I xx.xx.xx.xx -p 8911 -u /" You will probably need to run it on a separate box from where you run check_http due to the race condition in duplicating the bug. javac Http.java java Http ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=734722&group_id=29880 From noreply at sourceforge.net Thu May 8 17:10:09 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 8 17:10:09 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-734923 ] check_disk local filesystem support Message-ID: Patches item #734923, was opened at 2003-05-08 22:59 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=734923&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Dan Rich (drich) Assigned to: Nobody/Anonymous (nobody) Summary: check_disk local filesystem support Initial Comment: The attached patch adds a -l flag to check_disk, causing it to check only local filesystems (only really useful when checking all the filesystems on a system). I needed this because of systems with huge numbers of NFS mounts. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=734923&group_id=29880 From noreply at sourceforge.net Thu May 8 18:45:17 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 8 18:45:17 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-734919 ] check_disk flexibility Message-ID: Feature Requests item #734919, was opened at 2003-05-08 22:56 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=734919&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Dan Rich (drich) Assigned to: Nobody/Anonymous (nobody) Summary: check_disk flexibility Initial Comment: I am using check_disk via. nrpe to monitor diskspace on our servers. I like the feature of being able to monitor all the filesystems with a single check_disk call but have run into three problems/issues with this. 1. There is no way to exclude multiple filesystems. Multiple -x flags just don't work. 2. I need a way to allow for different percentages on different filesystems. For example, I may want to have warnings at 10% and critical at 5% for most filesystems, but if I have a 20GB filesystem, I probably don't need a warning when there is still 2GB free. I also need this feature to be able to work around disks that might be temporarily over their high-water mark. I'm thinking somethign along the lines of: check_disk -w 10% -c 5% -P /usr:5%:2% 3. A flag is needed to tell check_disk to return mount points instead of device names if -p is not used. When I get a warning, knowing that it is /usr that is full is more useful than /dev/cciss/c0d0p3. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=734919&group_id=29880 From noreply at sourceforge.net Thu May 8 18:50:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 8 18:50:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-734923 ] check_disk - allow to check only local filesystems Message-ID: Patches item #734923, was opened at 2003-05-08 22:59 Message generated for change (Settings changed) made by drich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=734923&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Dan Rich (drich) Assigned to: Nobody/Anonymous (nobody) >Summary: check_disk - allow to check only local filesystems Initial Comment: The attached patch adds a -l flag to check_disk, causing it to check only local filesystems (only really useful when checking all the filesystems on a system). I needed this because of systems with huge numbers of NFS mounts. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=734923&group_id=29880 From noreply at sourceforge.net Thu May 8 20:11:21 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 8 20:11:21 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-683235 ] check_snmp doesn't pass -t argument Message-ID: Bugs item #683235, was opened at 2003-02-08 22:05 Message generated for change (Comment added) made by kdebisschop 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: Karl DeBisschop (kdebisschop) Date: 2003-05-08 23:10 Message: Logged In: YES user_id=1671 CVS has been patched in both r130 and HEAD. We will be making a 1.3.x bug fix release in the not too distant future. But if anyone interested in this bug could test beforehand, that would be a big help. ---------------------------------------------------------------------- Comment By: Stanley Hopcroft (stanleyhopcroft) Date: 2003-04-30 19: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 07: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 From noreply at sourceforge.net Thu May 8 20:25:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 8 20:25:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-734722 ] check_http reports error when server closes connection Message-ID: Bugs item #734722, was opened at 2003-05-08 11:57 Message generated for change (Comment added) made by kdebisschop You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=734722&group_id=29880 Category: None Group: CVS >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Andrew Wason (awason) >Assigned to: Karl DeBisschop (kdebisschop) Summary: check_http reports error when server closes connection Initial Comment: The check_http plugin reports an error ("Error in recv()") if the web server closes the socket immediately after sending all data. check_http goes call recv() again and gets ECONNRESET. In addition, if this happens when HAVE_SSL is defined, then check_http will segfault because the call to SSL_get_error is not protected by "if (use_ssl)". A patch for both of these against check_http.c 1.32 is attached. ---------------------------------------------------------------------- >Comment By: Karl DeBisschop (kdebisschop) Date: 2003-05-08 23:24 Message: Logged In: YES user_id=1671 patch applied. Many thanks (also for the java to test against - sure makes things easy on my end) ---------------------------------------------------------------------- Comment By: Andrew Wason (awason) Date: 2003-05-08 12:03 Message: Logged In: YES user_id=247569 A simple Java HTTP server app is attached - it closes the socket immediately after serving the data to help duplicate the problem. It listens on port 8911, so use "check_http -I xx.xx.xx.xx -p 8911 -u /" You will probably need to run it on a separate box from where you run check_http due to the race condition in duplicating the bug. javac Http.java java Http ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=734722&group_id=29880 From Thomas.Nilsen at roxar.com Fri May 9 01:17:05 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri May 9 01:17:05 2003 Subject: [Nagiosplug-devel] Patches for check_mailq to support postfix Message-ID: Hope this might be of interest to others. I've added postfix support for the check_mailq plugin. The postfix entry will only give info on total number of messages in the queue... A tar archive of the changed plugin as well as a diff file (run against nagios-plugins 200303061000) 1.2) can be found on http://home.broadpark.no/~tnilsen-1/check_mailq.tar or as individual files: http://home.broadpark.no/~tnilsen-1/check_mailq http://home.broadpark.no/~tnilsen-1/check_mailq.diff Regards, Thomas Nilsen Svg Support Tel: +47 51 81 01 30 - Mob: +47 916 98 229 DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noreply at sourceforge.net Fri May 9 06:07:07 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 9 06:07:07 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-735218 ] Added postfix support to check_mailq Message-ID: Patches item #735218, was opened at 2003-05-09 14:06 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=735218&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Nilsen (thnilsen) Assigned to: Nobody/Anonymous (nobody) Summary: Added postfix support to check_mailq Initial Comment: Hope this might be of interest to others. I've added postfix support for the check_mailq plugin. The postfix entry will only give info on total number of messages in the queue... Tar archive of the diff file and complete script can be found at http://home.broadpark.no/~tnilsen- 1/check_mailq.tar. I've attached the diff file to this case. Thomas ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=735218&group_id=29880 From noreply at sourceforge.net Fri May 9 12:18:07 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 9 12:18:07 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-635536 ] compilation problem solution for HP-UX! Message-ID: Patches item #635536, was opened at 2002-11-08 09:33 Message generated for change (Comment added) made by jasonmartens 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: Jason Martens (jasonmartens) Date: 2003-05-09 14:17 Message: Logged In: YES user_id=775493 I am having the same problem. gcc 3.1 64 bit gnu make 3.80 automake 1.7.4 I downloaded the plugins today (4/9/03) and ran configure, then gmake all and got the following: gmake[1]: Entering directory `/root/nagios-plugins-1.3.0/plugins' /usr/local/pa20_64/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib -g -O2 -c check_disk.c In file included from check_disk.c:34: common.h:100: error: conflicting types for `snprintf' /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/include/stdio.h:459: error: previous declaration of `snprintf' common.h:104: error: parse error before "va_list" gmake[1]: *** [check_disk.o] Error 1 gmake[1]: Leaving directory `/root/nagios-plugins-1.3.0/plugins' gmake: *** [all-recursive] Error 1 I tried implimenting the changes that Alexandre suggested, but I'm not much of a C programmer... Jason ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-04-07 19: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-28 22: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 Tommy.Fallsen at kongsberg.com Mon May 12 06:00:02 2003 From: Tommy.Fallsen at kongsberg.com (Fallsen, Tommy) Date: Mon May 12 06:00:02 2003 Subject: [Nagiosplug-devel] Nagios plugin work in command, but not in Nagios Message-ID: <26C49D5369C7E0409C3954D5A1ED1AE3060051@kda-beexc-02.kda.kongsberg.com> Hi I've written a little perl script to report if anything is wrong with the Metadevices on a Solaris Server. Problem is that the script works perfectly in command mode, debugging show that it print some text and exit with exit $ERRORS{'CRITICAL'}; when metastat report error. However in Nagios all i get is OK and no output. Here is the script, please note that i learned perl while creating this, so the problem might be the script. I think its made after the criterias in Nagios plug-in development guidelines. #!/usr/bin/perl -w use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_H $PROGNAME); use lib "/opt/sfw/nagios/libexec" ; use utils qw(%ERRORS &print_revision &support &usage); my $remote_user = "root"; my $path_to_rsh = "/usr/bin/rsh -n"; my $METADB="/usr/sbin/metadb"; my $METAHS="/usr/sbin/metahs"; my $METASTAT="/usr/sbin/metastat"; my @state; my @avail; my $Row; my $newFld; my @Fld; my $dbtrouble; my @mdtrouble; my @hstrouble; $PROGNAME = "check_sds"; $ENV{'PATH'}=''; $ENV{'BASH_ENV'}=''; $ENV{'ENV'}=''; Getopt::Long::Configure('bundling'); GetOptions ("V" => \$opt_V, "version" => \$opt_V, "h" => \$opt_h, "help" => \$opt_h, "H=s" => \$opt_H, "hostname=s" => \$opt_H,); if ($opt_V) { print_revision($PROGNAME,'$Revision: 0.1 $'); exit $ERRORS{'OK'}; } if ($opt_h) { print_help(); exit $ERRORS{'OK'}; } ($opt_H) || usage("Host name/address not specified\n"); my $host = $1 if ($opt_H =~ /([-.A-Za-z0-9]+)/); ($host) || usage("Invalid host: $opt_H\n"); # # Check replicas for problems, capital letters in the flags indicate an error. # $dbtrouble=`$path_to_rsh -l $remote_user $opt_H $METADB`; chomp $dbtrouble; if ($dbtrouble =~ /[A-Z]/) { print "One or more Database replicas are not active\n"; exit $ERRORS{'CRITICAL'}; } # # Check the metadevice state, if the state is not Okay, something is up. # @mdtrouble=`$path_to_rsh -l $remote_user $host $METASTAT`; @state = grep /State:/ , at mdtrouble; foreach $Row (@state) { chomp $Row; @Fld=split(":",$Row); foreach $newFld ($Fld[1]) { if ($newFld !~ /Okay*/) { print ("One or more Metadevices are not Okay\n"); exit $ERRORS{'CRITICAL'}; } } } # # Check the hotspares to see if any have been used. # Not used yet. #@hstrouble=`$path_to_rsh -l $remote_user $host $METAHS -i`; #@avail = grep /blocks/ , at hstrouble; # #foreach (@avail) { # if (!/Available/) { # print "Hot spares in usage\n"; # $eval=1; # exit $ERRORS{'WARNING'}; # } #} sub print_help { print "\n\n"; print "This plugin checks Disksuite status on a remote Solaris system \n\n"; print "Usage:\t-H, --hostname=\n\n\n"; support(); } Thanks Tommy Fallsen -------------- next part -------------- An HTML attachment was scrubbed... URL: From noreply at sourceforge.net Mon May 12 13:23:07 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 12 13:23:07 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-736655 ] Network printer status via snmp Message-ID: New Plugins item #736655, was opened at 2003-05-12 16:22 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=736655&group_id=29880 Category: Network device plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Subhendu Ghosh (sghosh) Assigned to: Nobody/Anonymous (nobody) Summary: Network printer status via snmp Initial Comment: This plugin mirrors the functionality of the check_hpjd plugin and adds support for any network printers that support the PrinterMIB (rfc1759). It has been tested with Xerox N2125 and HP JetDirect 610N cards Only snmpv1/v2c is supported at this time. Bug reports to the nagiosplug-devel list please. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=736655&group_id=29880 From russell at quadrix.com Mon May 12 14:04:08 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon May 12 14:04:08 2003 Subject: [Nagiosplug-devel] Contibutions Message-ID: <3EC00BFF.8090605@quadrix.com> Here are 3 plugins that I have written that I would like to contribute to the nagiosplug project: check_telalert.pl - Checks the program TelAlert by watching the full output of a sent alert check_telalert_status.pl - Checks TelAlert by using the -status argument and checking the status of the TelAlert daemons check_metastat.pl - Runs metastat and reports any disk errors found If anyone has any questions about these plugins, just email me back. Can these be added to the contrib directory of the NagiosPlug project (once they are looked over, off course)? Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_metastat.pl URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_telalert.pl URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_telalert_status.pl URL: From roy at karlsbakk.net Tue May 13 02:10:05 2003 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Tue May 13 02:10:05 2003 Subject: [Nagiosplug-devel] check_mssql Message-ID: <200305131108.41688.roy@karlsbakk.net> hi just wrote this. works fine here. any chance to get this checked into cvs? roy #!/usr/bin/perl -w use DBI; use DBD::Sybase; use Getopt::Long; use Date::Parse; use strict; my ( $server,$database,$username,$password,$query,$help,$verbose, $dbh,$sth,$lasterror, $nagline, $s ); my $exitcode = 0; my $lastread = 0; my $data_returned = 0; sub syntax { $s = shift or $s = 'Unknown'; printf("Error: ($s)\n") unless ($help); printf("Syntax: %s -s -d -u -p -q [-v]\n", $0); printf("* --database -d Database name\n"); printf("* --server -s Server name\n"); printf("* --username -u Username\n"); printf("* --password -p Password\n"); printf("* --query -q SQL query to run\n"); printf(" --verbose -v verbose\n"); exit(3); } Getopt::Long::Configure('bundling'); GetOptions ("p=s" => \$password, "password=s" => \$password, "u=s" => \$username, "username=s" => \$username, "s=s" => \$server, "server=s" => \$server, "d=s" => \$database, "database=s" => \$database, "q=s" => \$query, "query=s" => \$query, "h" => \$help, "help" => \$help, "v" => \$verbose, "verbose" => \$verbose); syntax("Help:") if ($help); syntax("Missing username") unless (defined($username)); syntax("Missing password") unless (defined($password)); syntax("Missing server") unless (defined($server)); syntax("Missing database") unless (defined($database)); syntax("Missing query string") unless (defined($query)); unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), "$username", "$password")) { printf ("Can't connect to mssql server $dbh->errstr"); exit(2); } unless ($dbh->do("use $database")) { printf ("Can't 'use $database': $dbh->errstr"); exit(2); } $sth = $dbh->prepare($query); unless ($lasterror = $sth->execute()) { printf("Error in query: $dbh->errstr\n"); exit(2); } exit($exitcode); -- 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 jrozes at vinton.com Tue May 13 09:27:23 2003 From: jrozes at vinton.com (Jonathan Rozes) Date: Tue May 13 09:27:23 2003 Subject: [Nagiosplug-devel] check_mssql Message-ID: <48B8D6ECC8C93E4E992AEB43EE8565DB040F56@pdx-mail01.vinton.com> This is the third version of a check_mssql plugin I've seen now. Why does everybody insist on reinventing the wheel (and poorly, at that)? jonathan > -----Original Message----- > From: Roy Sigurd Karlsbakk [mailto:roy at karlsbakk.net] > Sent: Tuesday, May 13, 2003 2:09 AM > To: NagiosPlug Devel > Subject: [Nagiosplug-devel] check_mssql > > > hi > > just wrote this. works fine here. any chance to get this > checked into cvs? > > roy > > #!/usr/bin/perl -w > > use DBI; > use DBD::Sybase; > use Getopt::Long; > use Date::Parse; > use strict; > > my ( > $server,$database,$username,$password,$query,$help,$verbose, > $dbh,$sth,$lasterror, > $nagline, > $s > ); > my $exitcode = 0; > my $lastread = 0; > my $data_returned = 0; > > sub syntax { > $s = shift or $s = 'Unknown'; > printf("Error: ($s)\n") unless ($help); > printf("Syntax: %s -s -d -u -p > -q [-v]\n", $0); > printf("* --database -d Database name\n"); > printf("* --server -s Server name\n"); > printf("* --username -u Username\n"); > printf("* --password -p Password\n"); > printf("* --query -q SQL query to run\n"); > printf(" --verbose -v verbose\n"); > exit(3); > } > > Getopt::Long::Configure('bundling'); > GetOptions > ("p=s" => \$password, "password=s" => \$password, > "u=s" => \$username, "username=s" => \$username, > "s=s" => \$server, "server=s" => \$server, > "d=s" => \$database, "database=s" => \$database, > "q=s" => \$query, "query=s" => \$query, > "h" => \$help, "help" => \$help, > "v" => \$verbose, "verbose" => \$verbose); > > syntax("Help:") if ($help); > syntax("Missing username") unless (defined($username)); > syntax("Missing password") unless (defined($password)); > syntax("Missing server") unless (defined($server)); > syntax("Missing database") unless (defined($database)); > syntax("Missing query string") unless (defined($query)); > > unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), > "$username", > "$password")) { > printf ("Can't connect to mssql server $dbh->errstr"); > exit(2); > } > unless ($dbh->do("use $database")) { > printf ("Can't 'use $database': $dbh->errstr"); > exit(2); > } > $sth = $dbh->prepare($query); > unless ($lasterror = $sth->execute()) { > printf("Error in query: $dbh->errstr\n"); > exit(2); > } > > exit($exitcode); > > -- > 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. > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux > enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > 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 Stanley.Hopcroft at IPAustralia.Gov.AU Tue May 13 17:05:02 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue May 13 17:05:02 2003 Subject: [Nagiosplug-devel] Debugging plugins: hack the command line with a ' 2>&1' to see the yelps. Message-ID: <20030514100357.B79113@IPAustralia.Gov.AU> Dear Ladies and gentlemen These are the times that try mens souls .. After seeing quite a lot of noise about 'No output!' from plugins (frequently Perl plugins), perhaps it may help to patch checks.c and utils.c so that the command line passed to popen() has the string ' 2>&1' appended to it, possibly under control of a compile time constant (#ifdef DEBUG6). This may give the viewer any complaints/messages/bitches from the plugin or from the plugin runtime (Perl, Java, TCL, Python, Ruby) when the language processor can't find util.pm or something else goes wrong ... I am posting this to nag plugin-dev also since the change could either . be done there (in spopen()) instead . a new coding guideline be added to recommend that plugin writers trap stderr (by dup'ing stdout, dup2(), *STDERR = *STDOUT etc etc) Your comments are welcome. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. From roy at karlsbakk.net Wed May 14 00:12:11 2003 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Wed May 14 00:12:11 2003 Subject: [Nagiosplug-devel] check_mssql In-Reply-To: <48B8D6ECC8C93E4E992AEB43EE8565DB040F56@pdx-mail01.vinton.com> References: <48B8D6ECC8C93E4E992AEB43EE8565DB040F56@pdx-mail01.vinton.com> Message-ID: <200305140910.21679.roy@karlsbakk.net> the only check_mssql script I've seen was a dirty hack with sqsh. I find it better to do this in perl On Tuesday 13 May 2003 18:26, Jonathan Rozes wrote: > This is the third version of a check_mssql plugin I've seen now. Why does > everybody insist on reinventing the wheel (and poorly, at that)? > > jonathan > > > -----Original Message----- > > From: Roy Sigurd Karlsbakk [mailto:roy at karlsbakk.net] > > Sent: Tuesday, May 13, 2003 2:09 AM > > To: NagiosPlug Devel > > Subject: [Nagiosplug-devel] check_mssql > > > > > > hi > > > > just wrote this. works fine here. any chance to get this > > checked into cvs? > > > > roy > > > > #!/usr/bin/perl -w > > > > use DBI; > > use DBD::Sybase; > > use Getopt::Long; > > use Date::Parse; > > use strict; > > > > my ( > > $server,$database,$username,$password,$query,$help,$verbose, > > $dbh,$sth,$lasterror, > > $nagline, > > $s > > ); > > my $exitcode = 0; > > my $lastread = 0; > > my $data_returned = 0; > > > > sub syntax { > > $s = shift or $s = 'Unknown'; > > printf("Error: ($s)\n") unless ($help); > > printf("Syntax: %s -s -d -u -p > > -q [-v]\n", $0); > > printf("* --database -d Database name\n"); > > printf("* --server -s Server name\n"); > > printf("* --username -u Username\n"); > > printf("* --password -p Password\n"); > > printf("* --query -q SQL query to run\n"); > > printf(" --verbose -v verbose\n"); > > exit(3); > > } > > > > Getopt::Long::Configure('bundling'); > > GetOptions > > ("p=s" => \$password, "password=s" => \$password, > > "u=s" => \$username, "username=s" => \$username, > > "s=s" => \$server, "server=s" => \$server, > > "d=s" => \$database, "database=s" => \$database, > > "q=s" => \$query, "query=s" => \$query, > > "h" => \$help, "help" => \$help, > > "v" => \$verbose, "verbose" => \$verbose); > > > > syntax("Help:") if ($help); > > syntax("Missing username") unless (defined($username)); > > syntax("Missing password") unless (defined($password)); > > syntax("Missing server") unless (defined($server)); > > syntax("Missing database") unless (defined($database)); > > syntax("Missing query string") unless (defined($query)); > > > > unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), > > "$username", > > "$password")) { > > printf ("Can't connect to mssql server $dbh->errstr"); > > exit(2); > > } > > unless ($dbh->do("use $database")) { > > printf ("Can't 'use $database': $dbh->errstr"); > > exit(2); > > } > > $sth = $dbh->prepare($query); > > unless ($lasterror = $sth->execute()) { > > printf("Error in query: $dbh->errstr\n"); > > exit(2); > > } > > > > exit($exitcode); > > > > -- > > 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. > > > > > > > > ------------------------------------------------------- > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > > The only event dedicated to issues related to Linux > > enterprise solutions > > www.enterpriselinuxforum.com > > > > _______________________________________________ > > 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 > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > 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 -- 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 emz at norma.perm.ru Wed May 14 00:39:07 2003 From: emz at norma.perm.ru (Eugene M. Zheganin) Date: Wed May 14 00:39:07 2003 Subject: [Nagiosplug-devel] will the pgsql-timestamp patch be released ? Message-ID: <159272593812.20030514133800@norma.perm.ru> Hi, all. I wanna ask a question. In 2002 I used nagios with postgresql. That was fine. Halfyear ago pgsql branch 7.2.x was released. Now the most stable version is 7.3.2. The nagios version available for download is STILL 1.0, with pg-7.2.x (and 7.3.x too) incompatible format of timestamps. I monitor this maillist regularily, and find a patch for it, but not succeed with it neither with CVS version, nor with 1.0-rel. So - is it possible to produce a stable beta as snapshot from CVS with patched timestamps for pg-7.3.x, or to write a patch for 1.0 ? I cannot use pgsql-7.1.x, 'cause 7.3.x is more stable. ? WBR From noreply at sourceforge.net Wed May 14 03:51:07 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 03:51:07 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-737617 ] check_nwstat - add DSVER and UPTIME checks Message-ID: Patches item #737617, was opened at 2003-05-14 11:50 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=737617&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Phil Randal (prandal) Assigned to: Nobody/Anonymous (nobody) Summary: check_nwstat - add DSVER and UPTIME checks Initial Comment: Add checks for NDS Version (DSVER) and server uptime (UPTIME). Patch against latest CVS ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=737617&group_id=29880 From sghosh at sghosh.org Wed May 14 08:51:15 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed May 14 08:51:15 2003 Subject: [Nagiosplug-devel] check_mssql In-Reply-To: <200305131108.41688.roy@karlsbakk.net> Message-ID: Please post to the SourceForge New Plugins Tracker. Thanks -sg On Tue, 13 May 2003, Roy Sigurd Karlsbakk wrote: > hi > > just wrote this. works fine here. any chance to get this checked into cvs? > > roy > > #!/usr/bin/perl -w > > use DBI; > use DBD::Sybase; > use Getopt::Long; > use Date::Parse; > use strict; > > my ( > $server,$database,$username,$password,$query,$help,$verbose, > $dbh,$sth,$lasterror, > $nagline, > $s > ); > my $exitcode = 0; > my $lastread = 0; > my $data_returned = 0; > > sub syntax { > $s = shift or $s = 'Unknown'; > printf("Error: ($s)\n") unless ($help); > printf("Syntax: %s -s -d -u -p > -q [-v]\n", $0); > printf("* --database -d Database name\n"); > printf("* --server -s Server name\n"); > printf("* --username -u Username\n"); > printf("* --password -p Password\n"); > printf("* --query -q SQL query to run\n"); > printf(" --verbose -v verbose\n"); > exit(3); > } > > Getopt::Long::Configure('bundling'); > GetOptions > ("p=s" => \$password, "password=s" => \$password, > "u=s" => \$username, "username=s" => \$username, > "s=s" => \$server, "server=s" => \$server, > "d=s" => \$database, "database=s" => \$database, > "q=s" => \$query, "query=s" => \$query, > "h" => \$help, "help" => \$help, > "v" => \$verbose, "verbose" => \$verbose); > > syntax("Help:") if ($help); > syntax("Missing username") unless (defined($username)); > syntax("Missing password") unless (defined($password)); > syntax("Missing server") unless (defined($server)); > syntax("Missing database") unless (defined($database)); > syntax("Missing query string") unless (defined($query)); > > unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), "$username", > "$password")) { > printf ("Can't connect to mssql server $dbh->errstr"); > exit(2); > } > unless ($dbh->do("use $database")) { > printf ("Can't 'use $database': $dbh->errstr"); > exit(2); > } > $sth = $dbh->prepare($query); > unless ($lasterror = $sth->execute()) { > printf("Error in query: $dbh->errstr\n"); > exit(2); > } > > exit($exitcode); > > -- From jrozes at vinton.com Wed May 14 10:26:21 2003 From: jrozes at vinton.com (Jonathan Rozes) Date: Wed May 14 10:26:21 2003 Subject: [Nagiosplug-devel] check_mssql Message-ID: <48B8D6ECC8C93E4E992AEB43EE8565DB040F5F@pdx-mail01.vinton.com> I don't know if you're talking about my version written in perl with sqsh or the shell script somebody else posted recently, but if you want to talk dirty, allow me to point out some issues with your script: 1. Don't require a password on the command line - it's bad security. 2. Use the utils.pm package included with nagios to get the default timeout, exit codes, print_revision() and support() subroutines, etc. 3. You initialize $exitcode to 0, but there isn't anywhere it could ever be modified. 4. Check the return value when you prepare your statement handle. 5. $nagline and $data_returned are scoped, but never used. 6. Date::Parse is included, but never used. 7. $lasterror is initialized from execute(), but never used. 8. Disconnect from the database when you finish. 9. Set an alarm timer in case your process hangs. 10. If the query is a SELECT statement, the call to execute() will always succeed, even if the database has problems returning data. You need to make sure you can actually fetch the data in such cases. 11. Maybe give the user a way to control the DBI connect parameters. Folks might want to use password encryption, for example. 12. Maybe time the execute() and print the query time along with the query return code when everything goes correctly. Hopefully you'll take this as constructive criticism. I'm not trying to pick a fight; I'm just concerned about the quality of code that goes into nagios. jonathan > -----Original Message----- > From: Roy Sigurd Karlsbakk [mailto:roy at karlsbakk.net] > Sent: Wednesday, May 14, 2003 12:10 AM > To: Jonathan Rozes; NagiosPlug Devel > Subject: Re: [Nagiosplug-devel] check_mssql > > > the only check_mssql script I've seen was a dirty hack with > sqsh. I find it > better to do this in perl > > On Tuesday 13 May 2003 18:26, Jonathan Rozes wrote: > > This is the third version of a check_mssql plugin I've seen > now. Why does > > everybody insist on reinventing the wheel (and poorly, at that)? > > > > jonathan > > > > > -----Original Message----- > > > From: Roy Sigurd Karlsbakk [mailto:roy at karlsbakk.net] > > > Sent: Tuesday, May 13, 2003 2:09 AM > > > To: NagiosPlug Devel > > > Subject: [Nagiosplug-devel] check_mssql > > > > > > > > > hi > > > > > > just wrote this. works fine here. any chance to get this > > > checked into cvs? > > > > > > roy > > > > > > #!/usr/bin/perl -w > > > > > > use DBI; > > > use DBD::Sybase; > > > use Getopt::Long; > > > use Date::Parse; > > > use strict; > > > > > > my ( > > > > $server,$database,$username,$password,$query,$help,$verbose, > > > $dbh,$sth,$lasterror, > > > $nagline, > > > $s > > > ); > > > my $exitcode = 0; > > > my $lastread = 0; > > > my $data_returned = 0; > > > > > > sub syntax { > > > $s = shift or $s = 'Unknown'; > > > printf("Error: ($s)\n") unless ($help); > > > printf("Syntax: %s -s -d -u > -p > > > -q [-v]\n", $0); > > > printf("* --database -d Database name\n"); > > > printf("* --server -s Server name\n"); > > > printf("* --username -u Username\n"); > > > printf("* --password -p Password\n"); > > > printf("* --query -q SQL query to run\n"); > > > printf(" --verbose -v verbose\n"); > > > exit(3); > > > } > > > > > > Getopt::Long::Configure('bundling'); > > > GetOptions > > > ("p=s" => \$password, "password=s" => \$password, > > > "u=s" => \$username, "username=s" => \$username, > > > "s=s" => \$server, "server=s" => \$server, > > > "d=s" => \$database, "database=s" => \$database, > > > "q=s" => \$query, "query=s" => \$query, > > > "h" => \$help, "help" => \$help, > > > "v" => \$verbose, "verbose" => \$verbose); > > > > > > syntax("Help:") if ($help); > > > syntax("Missing username") unless (defined($username)); > > > syntax("Missing password") unless (defined($password)); > > > syntax("Missing server") unless (defined($server)); > > > syntax("Missing database") unless (defined($database)); > > > syntax("Missing query string") unless (defined($query)); > > > > > > unless ($dbh = DBI->connect("dbi:Sybase:server=".uc($server), > > > "$username", > > > "$password")) { > > > printf ("Can't connect to mssql server $dbh->errstr"); > > > exit(2); > > > } > > > unless ($dbh->do("use $database")) { > > > printf ("Can't 'use $database': $dbh->errstr"); > > > exit(2); > > > } > > > $sth = $dbh->prepare($query); > > > unless ($lasterror = $sth->execute()) { > > > printf("Error in query: $dbh->errstr\n"); > > > exit(2); > > > } > > > > > > exit($exitcode); > > > > > > -- > > > 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. > > > > > > > > > > > > ------------------------------------------------------- > > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, > Santa Clara > > > The only event dedicated to issues related to Linux > > > enterprise solutions > > > www.enterpriselinuxforum.com > > > > > > _______________________________________________ > > > 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 > > > > ------------------------------------------------------- > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, > Santa Clara > > The only event dedicated to issues related to Linux > enterprise solutions > > www.enterpriselinuxforum.com > > > > _______________________________________________ > > 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 > > -- > 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 Wed May 14 14:38:11 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 14:38:11 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-737617 ] check_nwstat - add DSVER and UPTIME checks Message-ID: Patches item #737617, was opened at 2003-05-14 11:50 Message generated for change (Settings changed) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=737617&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Phil Randal (prandal) >Assigned to: Ton Voon (tonvoon) Summary: check_nwstat - add DSVER and UPTIME checks Initial Comment: Add checks for NDS Version (DSVER) and server uptime (UPTIME). Patch against latest CVS ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=737617&group_id=29880 From noreply at sourceforge.net Wed May 14 14:54:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 14:54:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-737617 ] check_nwstat - add DSVER and UPTIME checks Message-ID: Patches item #737617, was opened at 2003-05-14 11:50 Message generated for change (Settings changed) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=737617&group_id=29880 Category: Enhancement Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Phil Randal (prandal) >Assigned to: Nobody/Anonymous (nobody) Summary: check_nwstat - add DSVER and UPTIME checks Initial Comment: Add checks for NDS Version (DSVER) and server uptime (UPTIME). Patch against latest CVS ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-14 22:53 Message: Logged In: YES user_id=664364 Phil, Thanks for the patch. Added to HEAD branch. Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=737617&group_id=29880 From noreply at sourceforge.net Wed May 14 15:00:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 15:00:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-735218 ] Added postfix support to check_mailq Message-ID: Patches item #735218, was opened at 2003-05-09 14:06 Message generated for change (Settings changed) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=735218&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Nilsen (thnilsen) >Assigned to: Ton Voon (tonvoon) Summary: Added postfix support to check_mailq Initial Comment: Hope this might be of interest to others. I've added postfix support for the check_mailq plugin. The postfix entry will only give info on total number of messages in the queue... Tar archive of the diff file and complete script can be found at http://home.broadpark.no/~tnilsen- 1/check_mailq.tar. I've attached the diff file to this case. Thomas ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=735218&group_id=29880 From noreply at sourceforge.net Wed May 14 15:01:20 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 15:01:20 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-735218 ] Added postfix support to check_mailq Message-ID: Patches item #735218, was opened at 2003-05-09 14:06 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=735218&group_id=29880 Category: Enhancement Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Thomas Nilsen (thnilsen) >Assigned to: Nobody/Anonymous (nobody) Summary: Added postfix support to check_mailq Initial Comment: Hope this might be of interest to others. I've added postfix support for the check_mailq plugin. The postfix entry will only give info on total number of messages in the queue... Tar archive of the diff file and complete script can be found at http://home.broadpark.no/~tnilsen- 1/check_mailq.tar. I've attached the diff file to this case. Thomas ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-14 23:00 Message: Logged In: YES user_id=664364 Thomas, Thanks for the patch. check_mailq.pl now at v1.3 in the HEAD branch. Can you please try it out and let us know if there are any problems. Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=735218&group_id=29880 From mm at elabnet.de Wed May 14 15:04:10 2003 From: mm at elabnet.de (Michael Markstaller) Date: Wed May 14 15:04:10 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-736655 ] Network printer status via snmp Message-ID: <246BE4BBD2754248AD5C14E535004ABA101F0B@elab4.elabnet.com> Hi, just tried it out; it returns two lines instead of only one with check_hpjd ? on at least this.. sorry its in German and means something like "fuser kit used up (\n) - replace kit" --- cut --- > ./check_printer.pl -H prt2 -P HP OK: Printer ok - FIXIER. VERBR. KIT ERSETZEN --- cut --- > ./check_hpjd -H prt2 Printer ok - ("FIXIER. VERBR..KIT ERSETZEN") --- cut --- Michael -----Original Message----- From: SourceForge.net [mailto:noreply at sourceforge.net] Sent: Monday, May 12, 2003 10:23 PM To: noreply at sourceforge.net Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-736655 ] Network printer status via snmp New Plugins item #736655, was opened at 2003-05-12 16:22 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=736655&group_id=29880 Category: Network device plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Subhendu Ghosh (sghosh) Assigned to: Nobody/Anonymous (nobody) Summary: Network printer status via snmp Initial Comment: This plugin mirrors the functionality of the check_hpjd plugin and adds support for any network printers that support the PrinterMIB (rfc1759). It has been tested with Xerox N2125 and HP JetDirect 610N cards Only snmpv1/v2c is supported at this time. Bug reports to the nagiosplug-devel list please. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=736655&group_id=29880 ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ 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 Wed May 14 15:11:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 15:11:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-734923 ] check_disk - allow to check only local filesystems Message-ID: Patches item #734923, was opened at 2003-05-08 23:59 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=734923&group_id=29880 Category: None Group: None Status: Open Resolution: None >Priority: 1 Submitted By: Dan Rich (drich) >Assigned to: Ton Voon (tonvoon) Summary: check_disk - allow to check only local filesystems Initial Comment: The attached patch adds a -l flag to check_disk, causing it to check only local filesystems (only really useful when checking all the filesystems on a system). I needed this because of systems with huge numbers of NFS mounts. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-14 23:10 Message: Logged In: YES user_id=664364 Dan, Thanks for the patch. Unfortunately, I don't think we can use it because there is a dependency on the df command accepting a -l option, which I'm not convinced every OS supports (I think AIX doesn't have this switch). Also, I don't think this is required as the newest version of check_disk - which uses GNU df code - has a -X option to exclude specified filesystem types. Can you try out the HEAD snapshot and see if this fits your needs. I will close this call after 7 days if there have not been any updates. Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=734923&group_id=29880 From noreply at sourceforge.net Wed May 14 15:32:10 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 15:32:10 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-734923 ] check_disk - allow to check only local filesystems Message-ID: Patches item #734923, was opened at 2003-05-08 22:59 Message generated for change (Comment added) made by drich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=734923&group_id=29880 Category: None Group: None >Status: Closed Resolution: None Priority: 1 Submitted By: Dan Rich (drich) Assigned to: Ton Voon (tonvoon) Summary: check_disk - allow to check only local filesystems Initial Comment: The attached patch adds a -l flag to check_disk, causing it to check only local filesystems (only really useful when checking all the filesystems on a system). I needed this because of systems with huge numbers of NFS mounts. ---------------------------------------------------------------------- >Comment By: Dan Rich (drich) Date: 2003-05-14 22:31 Message: Logged In: YES user_id=21827 It looks like the -X does exactly what I need. And, the head snapshot supports multiple -x flags, so that addresses part of a feature request I sent in as well! Thanks! ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2003-05-14 22:10 Message: Logged In: YES user_id=664364 Dan, Thanks for the patch. Unfortunately, I don't think we can use it because there is a dependency on the df command accepting a -l option, which I'm not convinced every OS supports (I think AIX doesn't have this switch). Also, I don't think this is required as the newest version of check_disk - which uses GNU df code - has a -X option to exclude specified filesystem types. Can you try out the HEAD snapshot and see if this fits your needs. I will close this call after 7 days if there have not been any updates. Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=734923&group_id=29880 From noreply at sourceforge.net Wed May 14 15:48:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 15:48:03 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-05-14 23:47 Message: Logged In: YES user_id=664364 There's clearly something wierd going on in the HPUX compilation. Unfortunately, I don't think anyone in the Nagios Plugin team has access to an HP server, so we will need to rely on someone coming up with a patch. I'll keep this call open and hopefully someone can assist. ---------------------------------------------------------------------- Comment By: Jason Martens (jasonmartens) Date: 2003-05-09 20:17 Message: Logged In: YES user_id=775493 I am having the same problem. gcc 3.1 64 bit gnu make 3.80 automake 1.7.4 I downloaded the plugins today (4/9/03) and ran configure, then gmake all and got the following: gmake[1]: Entering directory `/root/nagios-plugins-1.3.0/plugins' /usr/local/pa20_64/bin/gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib -g -O2 -c check_disk.c In file included from check_disk.c:34: common.h:100: error: conflicting types for `snprintf' /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/include/stdio.h:459: error: previous declaration of `snprintf' common.h:104: error: parse error before "va_list" gmake[1]: *** [check_disk.o] Error 1 gmake[1]: Leaving directory `/root/nagios-plugins-1.3.0/plugins' gmake: *** [all-recursive] Error 1 I tried implimenting the changes that Alexandre suggested, but I'm not much of a C programmer... Jason ---------------------------------------------------------------------- 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 Wed May 14 15:51:15 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 14 15:51:15 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-701515 ] 1.3.0 compilation error Message-ID: Bugs item #701515, was opened at 2003-03-11 12:52 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=701515&group_id=29880 Category: None Group: Release (specify) Status: Open Resolution: Works For Me Priority: 5 Submitted By: Kief Morris (kief_morris) >Assigned to: Ton Voon (tonvoon) Summary: 1.3.0 compilation error Initial Comment: I'm compiling the 1.3.0 plugins on a Solaris 7 Sparc box. Configure runs fine, but Make fails on utils.c. Making all in plugins make[1]: Entering directory `/export/home/nagios/plugins-src/nagios-plugins-1.3.0/plugins' gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib -I/usr/include -g -O2 -c check_disk.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib -I/usr/include -g -O2 -c utils.c utils.c: In function `terminate': utils.c:151: `__builtin_va_alist' undeclared (first use in this function) utils.c:151: (Each undeclared identifier is reported only once utils.c:151: for each function it appears in.) make[1]: *** [utils.o] Error 1 make[1]: Leaving directory `/export/home/nagios/plugins-src/nagios-plugins-1.3.0/plugins' make: *** [all-recursive] Error 1 ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-14 23:50 Message: Logged In: YES user_id=664364 Is this still a problem? As several people have managed to compile on Solaris 7, I'm inclined to think this is not a common problem. If there are no updates in the next 7 days, I'll close this call. Ton ---------------------------------------------------------------------- Comment By: Jeremy T. Bouse (undrgrid) Date: 2003-03-17 00:08 Message: Logged In: YES user_id=10485 I've built successfully on SPARC Solaris 7 with current CVS HEAD version. Install of Solaris 7 was stock with the only acceptions being: application SMCautoc autoconf application SMCautom automake application SMCcvs cvs application SMCgawk gawk application SMCgcc gcc application SMCm4 m4 application SMCmake make application SMCperl perl from www.sunfreeware.com bash-2.05$ uname -a SunOS sparc7 5.7 Generic_106541-02 sun4m sparc SUNW,SPARCstation-20 bash-2.05$ gcc -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.2.2/specs Configured with: ../configure --disable-nls --with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as Thread model: posix gcc version 3.2.2 bash-2.05$ make --version GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please try the current CVS version if you can... ---------------------------------------------------------------------- Comment By: Karl DeBisschop (kdebisschop) Date: 2003-03-12 06:48 Message: Logged In: YES user_id=1671 I just ran compile on Solaris 2.7 (with many GNU utils) Worked perfectly fine with 1.3.0 release. (does not work with CVS HEAD since IPv6 development started in earnest) ---------------------------------------------------------------------- Comment By: Jeremy T. Bouse (undrgrid) Date: 2003-03-11 21:51 Message: Logged In: YES user_id=10485 Can you provide the config.log and plugins/config.h so I can look further into this... I have been unable to reproduce this in Solaris 8 or Solaris 9 and don't have access to a Solaris 7 machine... ---------------------------------------------------------------------- Comment By: Jeremy T. Bouse (undrgrid) Date: 2003-03-11 18:38 Message: Logged In: YES user_id=10485 Can you provide the config.log and plugins/config.h so I can look further into this... I have been unable to reproduce this in Solaris 8 or Solaris 9 and don't have access to a Solaris 7 machine... ---------------------------------------------------------------------- Comment By: Kief Morris (kief_morris) Date: 2003-03-11 18:12 Message: Logged In: YES user_id=565460 This is from the downloaded tarball downloaded, not CVS. Some more info: gcc -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs gcc version 2.95.3 20010315 (release) and: GNU Make 3.80 ---------------------------------------------------------------------- Comment By: Jeremy T. Bouse (undrgrid) Date: 2003-03-11 14:35 Message: Logged In: YES user_id=10485 Is this while compiling the official 1.3.0 release tarball or from CVS? CVS still reports itself as 1.3.0 but the code has changed in some areas... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=701515&group_id=29880 From sghosh at sghosh.org Wed May 14 18:36:06 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed May 14 18:36:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-736655 ] Network printer status via snmp In-Reply-To: <246BE4BBD2754248AD5C14E535004ABA101F0B@elab4.elabnet.com> Message-ID: Thanks. will chomp ;) -sg On Thu, 15 May 2003, Michael Markstaller wrote: > Hi, just tried it out; it returns two lines instead of only one with check_hpjd ? on at least this.. > sorry its in German and means something like "fuser kit used up (\n) - replace kit" > > --- cut --- > > ./check_printer.pl -H prt2 -P HP > OK: Printer ok - FIXIER. VERBR. > KIT ERSETZEN > --- cut --- > > ./check_hpjd -H prt2 > Printer ok - ("FIXIER. VERBR..KIT ERSETZEN") > --- cut --- > > Michael > > -----Original Message----- > From: SourceForge.net [mailto:noreply at sourceforge.net] > Sent: Monday, May 12, 2003 10:23 PM > To: noreply at sourceforge.net > Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-736655 ] Network > printer status via snmp > > > New Plugins item #736655, was opened at 2003-05-12 16:22 > 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=736655&group_id=29880 > > Category: Network device plugin > Group: None > Status: Open > Resolution: None > Priority: 5 > Submitted By: Subhendu Ghosh (sghosh) > Assigned to: Nobody/Anonymous (nobody) > Summary: Network printer status via snmp > > Initial Comment: > This plugin mirrors the functionality of the check_hpjd > plugin and adds support for any network printers that > support the PrinterMIB (rfc1759). It has been tested > with Xerox N2125 and HP JetDirect 610N cards > > Only snmpv1/v2c is supported at this time. > > Bug reports to the nagiosplug-devel list please. > -- From noreply at sourceforge.net Thu May 15 01:33:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 15 01:33:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-738128 ] check_mssql plugin Message-ID: New Plugins item #738128, was opened at 2003-05-15 10:32 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=738128&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_mssql plugin Initial Comment: hi here's (another?) check_mssql plugin written in perl. the only other I've seen was a hacky bourne shell. Waddayathink? roy ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=738128&group_id=29880 From sghosh at sghosh.org Thu May 15 06:11:01 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu May 15 06:11:01 2003 Subject: [Nagiosplug-devel] will the pgsql-timestamp patch be released ? In-Reply-To: <159272593812.20030514133800@norma.perm.ru> Message-ID: Is the patch on Sourceforge? if not, and you have a copy, can you post it on SourceForge? If you can get a patch, it can be applied to the plugin release 1.3 as a bugfix. 1.3 is the current stable release of the plugins. -sg On Wed, 14 May 2003, Eugene M. Zheganin wrote: > Hi, all. > > I wanna ask a question. In 2002 I used nagios with postgresql. That > was fine. > > Halfyear ago pgsql branch 7.2.x was released. Now the most stable > version is 7.3.2. > The nagios version available for download is STILL 1.0, with > pg-7.2.x (and 7.3.x too) incompatible format of timestamps. I monitor this maillist > regularily, and find a patch for it, but not succeed with it neither > with CVS version, nor with 1.0-rel. > > So - is it possible to produce a stable beta as snapshot from CVS with patched timestamps for > pg-7.3.x, or to write a patch for 1.0 ? > > I cannot use pgsql-7.1.x, 'cause 7.3.x is more stable. > > ? > > > WBR > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > 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 May 15 07:00:18 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 15 07:00:18 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-738239 ] check_email_loop.pl v.1.1 Message-ID: New Plugins item #738239, was opened at 2003-05-15 15:59 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=738239&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Markstaller (makki1) Assigned to: Nobody/Anonymous (nobody) Summary: check_email_loop.pl v.1.1 Initial Comment: Updated check_email_loop.pl from contrib-directory, originally 10/19/2000 by Benjamin Schmid blueshift at gmx.net - fixed some unquoted strings - fixed/added pendwarn/lostwarn parameters - added deleting of orphaned check-emails on POP3-box - changed to use "top" in POP3 instead of get (RETR) to minimize traffic - added parameter maxmsg which causes a WARNING state when more msg than maxmsg are on the POP3- box I do these checks over WAN-links and had problems with high traffic when there were many mails in the POP3-mailbox. As there're always some orphaned Email-pings, I delete these now from within check_email_loop.pl, also it now uses TOP instead of downloading the whole email with RETR to save bandwidth ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=738239&group_id=29880 From ted at serreyn.com Thu May 15 14:28:17 2003 From: ted at serreyn.com (Ted Serreyn) Date: Thu May 15 14:28:17 2003 Subject: [Nagiosplug-devel] anyone ever develop a plugin for interface load? Message-ID: <000801c31b28$d31ed1c0$0f14140a@hawkings> I want to be able to alarm and depend on an plugin to alert me when an interface goes over a particular percentage of utilization. Example: I have a cisco DSL router, when my interface load is 100%, my remote monitors will fail. I want to conditionally test only if I have the bandwidth available to test correctly. Ted Serreyn -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathew_ericson at agilent.com Thu May 15 16:58:08 2003 From: mathew_ericson at agilent.com (Mathew Ericson) Date: Thu May 15 16:58:08 2003 Subject: [Nagiosplug-devel] patch for check_disk.t Message-ID: <3EC4296D.7030409@agilent.com> Dear nagiosplug-devel, This patch fixes tests 2,4,6 failing in check_disk.t on hpux and linux - how do I go about getting this checked-in? --- check_disk.t.orig 2003-05-16 10:12:35.000000000 +1000 +++ check_disk.t 2003-05-16 10:13:04.000000000 +1000 @@ -13,19 +13,19 @@ $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK - )/'; +$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK)/'; $cmd = "./check_disk -w 0 -c 0 /"; $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK - )/'; +$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK)/'; $cmd = "./check_disk 0 0 /"; $str = `$cmd`; $t += ok $?>>8,2; print "Test was: $cmd\n" unless ($?); -$t += ok $str, '/^(Only +[\.0-9]+|DISK CRITICAL - )/'; +$t += ok $str, '/^(Only +[\.0-9]+|DISK CRITICAL)/'; exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); -- Mathew Ericson CC/Unix System Administrator Agilent Technologies, Inc. 613 9210 5956 Tel From mathew_ericson at agilent.com Thu May 15 17:28:02 2003 From: mathew_ericson at agilent.com (Mathew Ericson) Date: Thu May 15 17:28:02 2003 Subject: [Nagiosplug-devel] patch for check_ftp.t Message-ID: <3EC4304D.10809@agilent.com> Dear nagiosplug-devel, Here is a patch for check_ftp.t to allow it to work with alternate output of FTP servers (namely the HP-UX default). How do I get this reviewed and checked-in? --- check_ftp.t.orig 2003-05-16 10:32:05.000000000 +1000 +++ check_ftp.t 2003-05-16 10:43:47.000000000 +1000 @@ -16,7 +16,7 @@ $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/FTP ok - [0-9]+ second response time/'; +$t += ok $str, '/FTP\s[o|O][K|k]\s-\s+([0-9]+|[0-9]+\.[0-9]+) second response time/'; #$cmd = "./check_ftp $Cache::noserver -wt 0 -ct 0"; #$str = `$cmd`; thanks mathew -- Mathew Ericson CC/Unix System Administrator Agilent Technologies, Inc. 613 9210 5956 Tel From mathew_ericson at agilent.com Thu May 15 17:36:02 2003 From: mathew_ericson at agilent.com (Mathew Ericson) Date: Thu May 15 17:36:02 2003 Subject: [Nagiosplug-devel] patch for check_http.t Message-ID: <3EC43236.7060701@agilent.com> Dear nagiosdevel, Here is a patch to all check_http.t to succeed againt iPlanet Web Server output. How can I get this reviewed/checked-in? --- check_http.t.orig 2003-05-16 10:47:05.000000000 +1000 +++ check_http.t 2003-05-16 10:52:03.000000000 +1000 @@ -13,7 +13,7 @@ $str = `./check_http $Cache::hostname -wt 300 -ct 600`; $t += ok $?>>8,0; -$t += ok $str, '/HTTP\/1.1 [0-9]{3} (OK|Found) - [0-9]+ second response time/'; +$t += ok $str, '/(HTTP\s[o|O][k|K]\s)?\s?HTTP\/1.1\s[0-9]{3}\s(OK|Found)\s-\s+([0-9]+|[0-9]+\.[0-9]+)\ssecond response time/'; $str = `./check_http $Cache::nullhost -wt 1 -ct 2`; $t += ok $?>>8,2; thanks mathew -- Mathew Ericson CC/Unix System Administrator Agilent Technologies, Inc. 613 9210 5956 Tel From mathew_ericson at agilent.com Thu May 15 18:20:08 2003 From: mathew_ericson at agilent.com (Mathew Ericson) Date: Thu May 15 18:20:08 2003 Subject: [Nagiosplug-devel] patch for check_load.t Message-ID: <3EC43C99.9080203@agilent.com> Dear nagiosdevel, Here is a patch to let check_load.t succeed on debianlinux and HPUX. How can I get this verified and checked-in? --- check_load.t.orig 2003-05-16 10:56:03.000000000 +1000 +++ check_load.t 2003-05-16 11:21:47.000000000 +1000 @@ -15,13 +15,13 @@ $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+$/'; +$t += ok $str, '/^[O|o]?[K|k]?\s?\-?\s?load average:\s[0-9]?\.?[0-9]+,\s[0-9]?\.?[0-9]+,\s[0-9]?\.?[0-9]+/'; $cmd = "./check_load 0 0 0 0 0 0"; $str = `$cmd`; $t += ok $?>>8,2; print "Test was: $cmd\n" unless ($?); -$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+ CRITICAL$/'; +$t += ok $str, '/^CRITICAL\s\-\sload average:\s[0-9]?[\.0-9]+, [0-9?][\.0-9]+, [0-9]?[\.0-9]/'; exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); -- Mathew Ericson CC/Unix System Administrator Agilent Technologies, Inc. 613 9210 5956 Tel From mathew_ericson at agilent.com Thu May 15 18:45:11 2003 From: mathew_ericson at agilent.com (Mathew Ericson) Date: Thu May 15 18:45:11 2003 Subject: [Nagiosplug-devel] patch for check_procs.t Message-ID: <3EC44271.7030908@agilent.com> Dear nagiosdevel, Here is a patch for some typos in check_procs.t that were causing failures. How can I get these reviewed and checked-in: --- check_procs.t.orig 2003-05-16 11:53:38.000000000 +1000 +++ check_procs.t 2003-05-16 11:58:15.000000000 +1000 @@ -20,11 +20,11 @@ $t += ok $str, '/^OK - [0-9]+ processes running$/'; # Reverse Compatibility -$cmd = "./check_procs 100000 100000 Z"; +$cmd = "./check_procs 100000 100000 -s Z"; $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^OK - [0-9]+ processes running with /'; +$t += ok $str, '/^OK - [0-9]+ processes running with/'; # Reverse Compatibility $cmd = "./check_procs 0 10000000"; @@ -41,11 +41,11 @@ $t += ok $str, '/^CRITICAL - [0-9]+ processes running$/'; # Reverse Compatibility -$cmd = "./check_procs 0 0 S"; +$cmd = "./check_procs 0 0 -s S"; $str = `$cmd`; $t += ok $?>>8,2; print "Test was: $cmd\n" unless ($?); -$t += ok $str, '/^CRITICAL - [0-9]+ processes running with /'; +$t += ok $str, '/^CRITICAL - [0-9]+ processes running with/'; exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); thanks mathew -- Mathew Ericson CC/Unix System Administrator Agilent Technologies, Inc. 613 9210 5956 Tel From mathew_ericson at agilent.com Thu May 15 19:16:05 2003 From: mathew_ericson at agilent.com (Mathew Ericson) Date: Thu May 15 19:16:05 2003 Subject: [Nagiosplug-devel] patch for check_tcp.t Message-ID: <3EC449B5.4000700@agilent.com> Dear nagiosdevel, Here is a patch to fix some output parsing errors in check_tcp.t. How do I get these verified and checked-in? --- check_tcp.t.orig 2003-05-16 12:31:10.000000000 +1000 +++ check_tcp.t 2003-05-16 12:31:35.000000000 +1000 @@ -16,7 +16,7 @@ $str = `$cmd`; $t += ok $?>>8,0; print "$cmd\n" if ($?); -$t += ok $str, '/^TCP OK - [0-9]+ second response time on port 80/'; +$t += ok $str, '/^TCP OK\s-\s+[0-9]?\.?[0-9]+ second response time on port 80/'; $cmd = "./check_tcp $Cache::nullhost -p 81 -wt 0 -ct 0 -to 1"; $str = `$cmd`; thanks mathew -- Mathew Ericson CC/Unix System Administrator Agilent Technologies, Inc. 613 9210 5956 Tel From sghosh at sghosh.org Thu May 15 19:26:05 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu May 15 19:26:05 2003 Subject: [Nagiosplug-devel] patch for check_load.t In-Reply-To: <3EC43C99.9080203@agilent.com> Message-ID: Hi Mathhew Thanks for the patches - Can you post them on sourceforge http://sourceforge.net/tracker/?group_id=29880&atid=397599 Also please note whether these are relative to the HEAD branch or rel1_3 -- -sg From noreply at sourceforge.net Thu May 15 19:35:09 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 15 19:35:09 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738604 ] patch for check_tcp.t against rel1_3 Message-ID: Patches item #738604, was opened at 2003-05-16 02:34 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=738604&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) Assigned to: Nobody/Anonymous (nobody) Summary: patch for check_tcp.t against rel1_3 Initial Comment: --- check_tcp.t.orig 2003-05-16 12:31:10.000000000 +1000 +++ check_tcp.t 2003-05-16 12:31:35.000000000 +1000 @@ -16,7 +16,7 @@ $str = `$cmd`; $t += ok $?>>8,0; print "$cmd\n" if ($?); -$t += ok $str, '/^TCP OK - [0-9]+ second response time on port 80/'; +$t += ok $str, '/^TCP OK\s-\s+[0-9]?\.?[0-9]+ second response time on port 80/'; $cmd = "./check_tcp $Cache::nullhost -p 81 -wt 0 -ct 0 -to 1"; $str = `$cmd`; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738604&group_id=29880 From noreply at sourceforge.net Thu May 15 19:36:07 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 15 19:36:07 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738605 ] patch for check_procs.t againsts rel1_3 Message-ID: Patches item #738605, was opened at 2003-05-16 02:35 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=738605&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) Assigned to: Nobody/Anonymous (nobody) Summary: patch for check_procs.t againsts rel1_3 Initial Comment: --- check_procs.t.orig 2003-05-16 11:53:38.000000000 +1000 +++ check_procs.t 2003-05-16 11:58:15.000000000 +1000 @@ -20,11 +20,11 @@ $t += ok $str, '/^OK - [0-9]+ processes running$/'; # Reverse Compatibility -$cmd = "./check_procs 100000 100000 Z"; +$cmd = "./check_procs 100000 100000 -s Z"; $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^OK - [0-9]+ processes running with /'; +$t += ok $str, '/^OK - [0-9]+ processes running with/'; # Reverse Compatibility $cmd = "./check_procs 0 10000000"; @@ -41,11 +41,11 @@ $t += ok $str, '/^CRITICAL - [0-9]+ processes running$/'; # Reverse Compatibility -$cmd = "./check_procs 0 0 S"; +$cmd = "./check_procs 0 0 -s S"; $str = `$cmd`; $t += ok $?>>8,2; print "Test was: $cmd\n" unless ($?); -$t += ok $str, '/^CRITICAL - [0-9]+ processes running with /'; +$t += ok $str, '/^CRITICAL - [0-9]+ processes running with/'; exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738605&group_id=29880 From noreply at sourceforge.net Thu May 15 19:36:11 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 15 19:36:11 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738607 ] patch for check_load.t against rel1_3 Message-ID: Patches item #738607, was opened at 2003-05-16 02:35 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=738607&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) Assigned to: Nobody/Anonymous (nobody) Summary: patch for check_load.t against rel1_3 Initial Comment: --- check_load.t.orig 2003-05-16 10:56:03.000000000 +1000 +++ check_load.t 2003-05-16 11:21:47.000000000 +1000 @@ -15,13 +15,13 @@ $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+$/'; +$t += ok $str, '/^[O|o]?[K|k]?\s?\-?\s?load average:\s[0-9]?\.?[0-9]+,\s[0-9]?\.?[0-9]+,\s[0-9]?\.?[0-9]+/'; $cmd = "./check_load 0 0 0 0 0 0"; $str = `$cmd`; $t += ok $?>>8,2; print "Test was: $cmd\n" unless ($?); -$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+ CRITICAL$/'; +$t += ok $str, '/^CRITICAL\s\-\sload average:\s[0-9]?[\.0-9]+, [0-9?][\.0-9]+, [0-9]?[\.0-9]/'; exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738607&group_id=29880 From noreply at sourceforge.net Thu May 15 19:37:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 15 19:37:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738608 ] patch for check_http.t against rel1_3 Message-ID: Patches item #738608, was opened at 2003-05-16 02:36 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=738608&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) Assigned to: Nobody/Anonymous (nobody) Summary: patch for check_http.t against rel1_3 Initial Comment: --- check_http.t.orig 2003-05-16 10:47:05.000000000 +1000 +++ check_http.t 2003-05-16 10:52:03.000000000 +1000 @@ -13,7 +13,7 @@ $str = `./check_http $Cache::hostname -wt 300 -ct 600`; $t += ok $?>>8,0; -$t += ok $str, '/HTTP\/1.1 [0-9]{3} (OK|Found) - [0-9]+ second response time/'; +$t += ok $str, '/(HTTP\s[o|O][k|K]\s)?\s?HTTP\/1.1\s[0-9]{3}\s(OK|Found)\s-\s+([0-9]+|[0-9]+\.[0-9]+)\ssecond response time/'; $str = `./check_http $Cache::nullhost -wt 1 -ct 2`; $t += ok $?>>8,2; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738608&group_id=29880 From noreply at sourceforge.net Thu May 15 19:37:07 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 15 19:37:07 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738609 ] patch for check_ftp.t against rel1_3 Message-ID: Patches item #738609, was opened at 2003-05-16 02:36 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=738609&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) Assigned to: Nobody/Anonymous (nobody) Summary: patch for check_ftp.t against rel1_3 Initial Comment: --- check_ftp.t.orig 2003-05-16 10:32:05.000000000 +1000 +++ check_ftp.t 2003-05-16 10:43:47.000000000 +1000 @@ -16,7 +16,7 @@ $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/FTP ok - [0-9]+ second response time/'; +$t += ok $str, '/FTP\s[o|O][K|k]\s-\s+([0-9]+|[0-9]+\.[0-9]+) second response time/'; #$cmd = "./check_ftp $Cache::noserver -wt 0 -ct 0"; #$str = `$cmd`; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738609&group_id=29880 From noreply at sourceforge.net Thu May 15 19:38:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 15 19:38:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738610 ] patch for check_disk.t against rel1_3 Message-ID: Patches item #738610, was opened at 2003-05-16 02:37 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=738610&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) Assigned to: Nobody/Anonymous (nobody) Summary: patch for check_disk.t against rel1_3 Initial Comment: --- check_disk.t.orig 2003-05-16 10:12:35.000000000 +1000 +++ check_disk.t 2003-05-16 10:13:04.000000000 +1000 @@ -13,19 +13,19 @@ $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK - )/'; +$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK)/'; $cmd = "./check_disk -w 0 -c 0 /"; $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK - )/'; +$t += ok $str, '/^(Disk ok - +[\.0-9]+|DISK OK)/'; $cmd = "./check_disk 0 0 /"; $str = `$cmd`; $t += ok $?>>8,2; print "Test was: $cmd\n" unless ($?); -$t += ok $str, '/^(Only +[\.0-9]+|DISK CRITICAL - )/'; +$t += ok $str, '/^(Only +[\.0-9]+|DISK CRITICAL)/'; exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738610&group_id=29880 From karl at debisschop.net Thu May 15 20:34:05 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Thu May 15 20:34:05 2003 Subject: [Nagiosplug-devel] will the pgsql-timestamp patch be released ? In-Reply-To: References: Message-ID: <1053055891.1404.1.camel@miles.debisschop.net> On Thu, 2003-05-15 at 09:08, Subhendu Ghosh wrote: > Is the patch on Sourceforge? if not, and you have a copy, can you post it > on SourceForge? > > If you can get a patch, it can be applied to the plugin release 1.3 as a > bugfix. 1.3 is the current stable release of the plugins. > > -sg ISTM that the poster really meant Nagios, not the plugins, and posted the wrong list? The plugin does not use timestamp. > On Wed, 14 May 2003, Eugene M. Zheganin wrote: > > > Hi, all. > > > > I wanna ask a question. In 2002 I used nagios with postgresql. That > > was fine. > > > > Halfyear ago pgsql branch 7.2.x was released. Now the most stable > > version is 7.3.2. > > The nagios version available for download is STILL 1.0, with > > pg-7.2.x (and 7.3.x too) incompatible format of timestamps. I monitor this maillist > > regularily, and find a patch for it, but not succeed with it neither > > with CVS version, nor with 1.0-rel. > > > > So - is it possible to produce a stable beta as snapshot from CVS with patched timestamps for > > pg-7.3.x, or to write a patch for 1.0 ? > > > > I cannot use pgsql-7.1.x, 'cause 7.3.x is more stable. > > > > ? > > > > > > WBR > > > > > > > > ------------------------------------------------------- > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > > The only event dedicated to issues related to Linux enterprise solutions > > www.enterpriselinuxforum.com > > > > _______________________________________________ > > 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 Ton.Voon at egg.com Fri May 16 04:05:05 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Fri May 16 04:05:05 2003 Subject: [Nagiosplug-devel] patch for check_procs.t Message-ID: <53104E20A25CD411B556009027E50636079A9ADE@pnnemp02.pn.egg.com> Mathew, Thank you for all these patches. I know I've been slack on updating the test cases. If you can add your patches to SF (just have the one call if you prefer and add more patch files to it), that will make it easier to track. Ton > -----Original Message----- > From: Mathew Ericson [SMTP:mathew_ericson at agilent.com] > Sent: Friday, May 16, 2003 2:44 AM > To: nagiosplug-devel at lists.sourceforge.net > Subject: [Nagiosplug-devel] patch for check_procs.t > > Dear nagiosdevel, > > Here is a patch for some typos in check_procs.t that were causing > failures. How can I get these reviewed and checked-in: > > --- check_procs.t.orig 2003-05-16 11:53:38.000000000 +1000 > +++ check_procs.t 2003-05-16 11:58:15.000000000 +1000 > @@ -20,11 +20,11 @@ > $t += ok $str, '/^OK - [0-9]+ processes running$/'; > > # Reverse Compatibility > -$cmd = "./check_procs 100000 100000 Z"; > +$cmd = "./check_procs 100000 100000 -s Z"; > $str = `$cmd`; > $t += ok $?>>8,0; > print "Test was: $cmd\n" if ($?); > -$t += ok $str, '/^OK - [0-9]+ processes running with /'; > +$t += ok $str, '/^OK - [0-9]+ processes running with/'; > > # Reverse Compatibility > $cmd = "./check_procs 0 10000000"; > @@ -41,11 +41,11 @@ > $t += ok $str, '/^CRITICAL - [0-9]+ processes running$/'; > > # Reverse Compatibility > -$cmd = "./check_procs 0 0 S"; > +$cmd = "./check_procs 0 0 -s S"; > $str = `$cmd`; > $t += ok $?>>8,2; > print "Test was: $cmd\n" unless ($?); > -$t += ok $str, '/^CRITICAL - [0-9]+ processes running with /'; > +$t += ok $str, '/^CRITICAL - [0-9]+ processes running with/'; > > exit(0) if defined($Test::Harness::VERSION); > exit($tests - $t); > > thanks > mathew > -- > Mathew Ericson > CC/Unix System Administrator > Agilent Technologies, Inc. > 613 9210 5956 Tel > 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 Sat May 17 09:33:09 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 17 09:33:09 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738604 ] patch for check_tcp.t against rel1_3 Message-ID: Patches item #738604, was opened at 2003-05-16 03:34 Message generated for change (Settings changed) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738604&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) >Assigned to: Ton Voon (tonvoon) Summary: patch for check_tcp.t against rel1_3 Initial Comment: --- check_tcp.t.orig 2003-05-16 12:31:10.000000000 +1000 +++ check_tcp.t 2003-05-16 12:31:35.000000000 +1000 @@ -16,7 +16,7 @@ $str = `$cmd`; $t += ok $?>>8,0; print "$cmd\n" if ($?); -$t += ok $str, '/^TCP OK - [0-9]+ second response time on port 80/'; +$t += ok $str, '/^TCP OK\s-\s+[0-9]?\.?[0-9]+ second response time on port 80/'; $cmd = "./check_tcp $Cache::nullhost -p 81 -wt 0 -ct 0 -to 1"; $str = `$cmd`; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738604&group_id=29880 From noreply at sourceforge.net Sat May 17 10:37:10 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 17 10:37:10 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738604 ] patch for check_tcp.t against rel1_3 Message-ID: Patches item #738604, was opened at 2003-05-16 03:34 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738604&group_id=29880 Category: Bugfix Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) Assigned to: Ton Voon (tonvoon) Summary: patch for check_tcp.t against rel1_3 Initial Comment: --- check_tcp.t.orig 2003-05-16 12:31:10.000000000 +1000 +++ check_tcp.t 2003-05-16 12:31:35.000000000 +1000 @@ -16,7 +16,7 @@ $str = `$cmd`; $t += ok $?>>8,0; print "$cmd\n" if ($?); -$t += ok $str, '/^TCP OK - [0-9]+ second response time on port 80/'; +$t += ok $str, '/^TCP OK\s-\s+[0-9]?\.?[0-9]+ second response time on port 80/'; $cmd = "./check_tcp $Cache::nullhost -p 81 -wt 0 -ct 0 -to 1"; $str = `$cmd`; ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-17 18:36 Message: Logged In: YES user_id=664364 Thanks for the patch. Updated in r1_3_0 and HEAD. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738604&group_id=29880 From noreply at sourceforge.net Sat May 17 10:41:08 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 17 10:41:08 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738608 ] patch for check_http.t against rel1_3 Message-ID: Patches item #738608, was opened at 2003-05-16 03:36 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738608&group_id=29880 Category: Bugfix Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) >Assigned to: Ton Voon (tonvoon) Summary: patch for check_http.t against rel1_3 Initial Comment: --- check_http.t.orig 2003-05-16 10:47:05.000000000 +1000 +++ check_http.t 2003-05-16 10:52:03.000000000 +1000 @@ -13,7 +13,7 @@ $str = `./check_http $Cache::hostname -wt 300 -ct 600`; $t += ok $?>>8,0; -$t += ok $str, '/HTTP\/1.1 [0-9]{3} (OK|Found) - [0-9]+ second response time/'; +$t += ok $str, '/(HTTP\s[o|O][k|K]\s)?\s?HTTP\/1.1\s[0-9]{3}\s(OK|Found)\s-\s+([0-9]+|[0-9]+\.[0-9]+)\ssecond response time/'; $str = `./check_http $Cache::nullhost -wt 1 -ct 2`; $t += ok $?>>8,2; ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-17 18:40 Message: Logged In: YES user_id=664364 Thanks for the patch. Committed in r1_3_0 and HEAD. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738608&group_id=29880 From noreply at sourceforge.net Sat May 17 10:52:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 17 10:52:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738605 ] patch for check_procs.t againsts rel1_3 Message-ID: Patches item #738605, was opened at 2003-05-16 03:35 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738605&group_id=29880 Category: Bugfix Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) >Assigned to: Ton Voon (tonvoon) Summary: patch for check_procs.t againsts rel1_3 Initial Comment: --- check_procs.t.orig 2003-05-16 11:53:38.000000000 +1000 +++ check_procs.t 2003-05-16 11:58:15.000000000 +1000 @@ -20,11 +20,11 @@ $t += ok $str, '/^OK - [0-9]+ processes running$/'; # Reverse Compatibility -$cmd = "./check_procs 100000 100000 Z"; +$cmd = "./check_procs 100000 100000 -s Z"; $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^OK - [0-9]+ processes running with /'; +$t += ok $str, '/^OK - [0-9]+ processes running with/'; # Reverse Compatibility $cmd = "./check_procs 0 10000000"; @@ -41,11 +41,11 @@ $t += ok $str, '/^CRITICAL - [0-9]+ processes running$/'; # Reverse Compatibility -$cmd = "./check_procs 0 0 S"; +$cmd = "./check_procs 0 0 -s S"; $str = `$cmd`; $t += ok $?>>8,2; print "Test was: $cmd\n" unless ($?); -$t += ok $str, '/^CRITICAL - [0-9]+ processes running with /'; +$t += ok $str, '/^CRITICAL - [0-9]+ processes running with/'; exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-17 18:51 Message: Logged In: YES user_id=664364 Thanks for the patch. Applied in r1_3_0 and HEAD. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738605&group_id=29880 From noreply at sourceforge.net Sat May 17 11:00:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 17 11:00:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738607 ] patch for check_load.t against rel1_3 Message-ID: Patches item #738607, was opened at 2003-05-16 03:35 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738607&group_id=29880 Category: Bugfix Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) >Assigned to: Ton Voon (tonvoon) Summary: patch for check_load.t against rel1_3 Initial Comment: --- check_load.t.orig 2003-05-16 10:56:03.000000000 +1000 +++ check_load.t 2003-05-16 11:21:47.000000000 +1000 @@ -15,13 +15,13 @@ $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+$/'; +$t += ok $str, '/^[O|o]?[K|k]?\s?\-?\s?load average:\s[0-9]?\.?[0-9]+,\s[0-9]?\.?[0-9]+,\s[0-9]?\.?[0-9]+/'; $cmd = "./check_load 0 0 0 0 0 0"; $str = `$cmd`; $t += ok $?>>8,2; print "Test was: $cmd\n" unless ($?); -$t += ok $str, '/^load average: +[\.0-9]+, +[\.0-9]+, +[\.0-9]+ CRITICAL$/'; +$t += ok $str, '/^CRITICAL\s\-\sload average:\s[0-9]?[\.0-9]+, [0-9?][\.0-9]+, [0-9]?[\.0-9]/'; exit(0) if defined($Test::Harness::VERSION); exit($tests - $t); ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-17 18:59 Message: Logged In: YES user_id=664364 Thanks for the patch. Applied in r1_3_0 and HEAD. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738607&group_id=29880 From noreply at sourceforge.net Sat May 17 16:10:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 17 16:10:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-738609 ] patch for check_ftp.t against rel1_3 Message-ID: Patches item #738609, was opened at 2003-05-16 03:36 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738609&group_id=29880 Category: Bugfix Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Mathew Ericson (mericson23) >Assigned to: Ton Voon (tonvoon) Summary: patch for check_ftp.t against rel1_3 Initial Comment: --- check_ftp.t.orig 2003-05-16 10:32:05.000000000 +1000 +++ check_ftp.t 2003-05-16 10:43:47.000000000 +1000 @@ -16,7 +16,7 @@ $str = `$cmd`; $t += ok $?>>8,0; print "Test was: $cmd\n" if ($?); -$t += ok $str, '/FTP ok - [0-9]+ second response time/'; +$t += ok $str, '/FTP\s[o|O][K|k]\s-\s+([0-9]+|[0-9]+\.[0-9]+) second response time/'; #$cmd = "./check_ftp $Cache::noserver -wt 0 -ct 0"; #$str = `$cmd`; ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2003-05-18 00:09 Message: Logged In: YES user_id=664364 Thanks for the patch - added to r1_3_0 and HEAD. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=738609&group_id=29880 From noreply at sourceforge.net Mon May 19 12:46:11 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 19 12:46:11 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-740051 ] HPJD Status problems Message-ID: Bugs item #740051, was opened at 2003-05-19 14:45 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=740051&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jeremy Baumgartner (jbaumgartner) Assigned to: Nobody/Anonymous (nobody) Summary: HPJD Status problems Initial Comment: When check_hpjd returns with 'out of paper' and 'paper jam', it is frequently returning the wrong error code (paper jam instead of out of paper, etc). Only noticed with 'out of paper' and 'paper jam' errors. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=740051&group_id=29880 From noreply at sourceforge.net Mon May 19 12:57:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 19 12:57:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-740051 ] HPJD Status problems Message-ID: Bugs item #740051, was opened at 2003-05-19 14:45 Message generated for change (Settings changed) made by jbaumgartner You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=740051&group_id=29880 Category: None Group: None Status: Open >Resolution: Invalid Priority: 5 Submitted By: Jeremy Baumgartner (jbaumgartner) Assigned to: Nobody/Anonymous (nobody) Summary: HPJD Status problems Initial Comment: When check_hpjd returns with 'out of paper' and 'paper jam', it is frequently returning the wrong error code (paper jam instead of out of paper, etc). Only noticed with 'out of paper' and 'paper jam' errors. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=740051&group_id=29880 From noreply at sourceforge.net Mon May 19 12:57:12 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 19 12:57:12 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-740051 ] HPJD Status problems Message-ID: Bugs item #740051, was opened at 2003-05-19 14:45 Message generated for change (Settings changed) made by jbaumgartner You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=740051&group_id=29880 Category: None Group: None >Status: Deleted Resolution: Invalid Priority: 5 Submitted By: Jeremy Baumgartner (jbaumgartner) Assigned to: Nobody/Anonymous (nobody) Summary: HPJD Status problems Initial Comment: When check_hpjd returns with 'out of paper' and 'paper jam', it is frequently returning the wrong error code (paper jam instead of out of paper, etc). Only noticed with 'out of paper' and 'paper jam' errors. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=740051&group_id=29880 From noreply at sourceforge.net Mon May 19 15:03:08 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 19 15:03:08 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-740125 ] check_pop3.pl fixup Message-ID: Patches item #740125, was opened at 2003-05-19 22:02 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=740125&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Cove Schneider (coveschneider) Assigned to: Nobody/Anonymous (nobody) Summary: check_pop3.pl fixup Initial Comment: - would send the password too many times causing the pop server to return an error - did not always logout correctly - a little house cleaning ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=740125&group_id=29880 From noreply at sourceforge.net Mon May 19 15:07:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 19 15:07:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-740125 ] check_pop3.pl fixup Message-ID: Patches item #740125, was opened at 2003-05-19 22:02 Message generated for change (Settings changed) made by coveschneider You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=740125&group_id=29880 >Category: Bugfix Group: None Status: Open >Resolution: Fixed Priority: 5 Submitted By: Cove Schneider (coveschneider) Assigned to: Nobody/Anonymous (nobody) Summary: check_pop3.pl fixup Initial Comment: - would send the password too many times causing the pop server to return an error - did not always logout correctly - a little house cleaning ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=740125&group_id=29880 From noreply at sourceforge.net Mon May 19 15:10:16 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Mon May 19 15:10:16 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-740132 ] check_disk_smb update for smbclient 2.2.7 Message-ID: Patches item #740132, was opened at 2003-05-19 22:09 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=740132&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Cove Schneider (coveschneider) Assigned to: Nobody/Anonymous (nobody) Summary: check_disk_smb update for smbclient 2.2.7 Initial Comment: Catches the error messages from smbclient Version 2.2.7-security- rollup-fix correctly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=740132&group_id=29880 From noreply at sourceforge.net Tue May 20 05:15:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue May 20 05:15:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-740404 ] 1.3.0 performance addon for disk/http/load/ping/procs/swap/u Message-ID: Patches item #740404, was opened at 2003-05-20 12: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=740404&group_id=29880 Category: Perf data Group: None Status: Open Resolution: None Priority: 5 Submitted By: Edwin Eefting (drpsycho) Assigned to: Nobody/Anonymous (nobody) Summary: 1.3.0 performance addon for disk/http/load/ping/procs/swap/u Initial Comment: These contain the new performance patches for 1.3.0. This way the plugins will return the extra performance data that is neccesary to make nice graphs with rrd for example. (contact me for the addons for this) developers: please implement this, as i'm seeing people using the most wicked ways to get performance data now. (e.g. parsing the default plugin output!) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=740404&group_id=29880 From noreply at sourceforge.net Tue May 20 11:04:17 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue May 20 11:04:17 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-740404 ] 1.3.0 performance addon for disk/http/load/ping/procs/swap/u Message-ID: Patches item #740404, was opened at 2003-05-20 12:14 Message generated for change (Comment added) made by drpsycho You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=740404&group_id=29880 Category: Perf data Group: None Status: Open Resolution: None Priority: 5 Submitted By: Edwin Eefting (drpsycho) Assigned to: Nobody/Anonymous (nobody) Summary: 1.3.0 performance addon for disk/http/load/ping/procs/swap/u Initial Comment: These contain the new performance patches for 1.3.0. This way the plugins will return the extra performance data that is neccesary to make nice graphs with rrd for example. (contact me for the addons for this) developers: please implement this, as i'm seeing people using the most wicked ways to get performance data now. (e.g. parsing the default plugin output!) ---------------------------------------------------------------------- >Comment By: Edwin Eefting (drpsycho) Date: 2003-05-20 18:04 Message: Logged In: YES user_id=400439 please use the latest patch, the first one was wrong. (can't delete it :( ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=740404&group_id=29880 From noreply at sourceforge.net Wed May 21 05:09:14 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 21 05:09:14 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-741076 ] check_nwstat - add NLM and NLMVER tests Message-ID: Patches item #741076, was opened at 2003-05-21 13:08 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=741076&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Phil Randal (prandal) Assigned to: Nobody/Anonymous (nobody) Summary: check_nwstat - add NLM and NLMVER tests Initial Comment: Attached patch adds NLM: and NLMVER: calls. NLM:xxx returns critical if the specified NLM is not loaded. e.g. NLM:DS.NLM should return OK status and string "Module DS.NLM is loaded" NLMVER:xxx returns critical with the message "Module xxxx is not loaded" if the specified module is not loaded, otherwise return OK with the message "xxx version yyy" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=741076&group_id=29880 From noreply at sourceforge.net Wed May 21 05:24:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 21 05:24:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-741076 ] check_nwstat - add NLM test Message-ID: Patches item #741076, was opened at 2003-05-21 13:08 Message generated for change (Comment added) made by prandal You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=741076&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Phil Randal (prandal) Assigned to: Nobody/Anonymous (nobody) >Summary: check_nwstat - add NLM test Initial Comment: Attached patch adds NLM: and NLMVER: calls. NLM:xxx returns critical if the specified NLM is not loaded. e.g. NLM:DS.NLM should return OK status and string "Module DS.NLM is loaded" NLMVER:xxx returns critical with the message "Module xxxx is not loaded" if the specified module is not loaded, otherwise return OK with the message "xxx version yyy" ---------------------------------------------------------------------- >Comment By: Phil Randal (prandal) Date: 2003-05-21 13:23 Message: Logged In: YES user_id=140673 Updated to roll bot into one NLM:xxxx.nlm now returns status OK and "Module xxxx.nlm version yyyy is loaded" or status Critical and "Module xxxx.nlm is not loaded" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=741076&group_id=29880 From noreply at sourceforge.net Wed May 21 11:29:12 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 21 11:29:12 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-741296 ] check_dns.c segfault with -a and NXDOMAIN Message-ID: Bugs item #741296, was opened at 2003-05-21 13:28 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=741296&group_id=29880 Category: None Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: David Maynard (dpmaynard) Assigned to: Nobody/Anonymous (nobody) Summary: check_dns.c segfault with -a and NXDOMAIN Initial Comment: check_dns.c 1.13 from CVS compiled and run under Red Hat 7.1 and testing against bind-8.2.3+patches on a Cobalt generates a segmentation fault if the requested domain does not exist and the "-a" flag is specified. The "address" variable is NULL when the code reaches line 183 and attempts a strcmp. The null pointer to strcmp generates a segfault. Arguably, this is a bug in the parsing of the "address" variable since it probably shouldn't be a NULL at this point in the code. However, the code for "-a" is predicated on STATE_OK, so if something earlier in the code indicates STATE_WARNING (e.g., because it detects a NXDOMAIN return), then the "-a" check will not be performed and Nagios will "miss" the CRITICAL error. (If I tell it to match an expected address, it is critical if it doesn't exist.) As a result, my "fix" (to achieve the results I need), was to change the code for the "-a" test to include a check for a null address pointer. My patch attached. -dpm ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=741296&group_id=29880 From otto at bookings.net Thu May 22 08:05:04 2003 From: otto at bookings.net (Otto Jongerius) Date: Thu May 22 08:05:04 2003 Subject: [Nagiosplug-devel] patch check_hpjd.c (nagios-plugins-1.3.0) Message-ID: <20030522150354.GA69709@foo.internal.bookings.nl> Hi, check_hpdj (Last Modified: $Date: 2003/02/03 05:07:26 $) from nagios-plugins-1.3.0 barfed when I tried to run it (host not responding) because the order of line 139 of check_hpjd.c is wrong. Following patch fixes this: [otto at foo>diff -u check_hpjd.c /home/otto/check_hpjd.c.patch ~/foobar/nagios-plugins-1.3.0/plugins --- check_hpjd.c Sat Feb 15 13:48:44 2003 +++ /home/otto/check_hpjd.c.patch Thu May 22 16:37:35 2003 @@ -139,8 +139,8 @@ 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); + 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); -- Otto Jongerius From Ton.Voon at egg.com Thu May 22 08:56:09 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu May 22 08:56:09 2003 Subject: [Nagiosplug-devel] Performance patches (was [ nagiosplug-Patches-740404 ] 1.3.0 perf ormance addon for disk/http/load/ping/procs/swap/u) Message-ID: <53104E20A25CD411B556009027E50636079A9B12@pnnemp02.pn.egg.com> Copying to nagiosplug-devel. Please remove nagios-devel if replying. (Sorry, I originally sent to wrong group.) Based on patches received and Karl's replies, I think perf data should have/be: - short labels - generic and common labels across plugins if possible - comma separated, no spaces. Regex format: [a-z0-9]+=[0-9]?\.?[0-9]+ - redundant data removed (eg, if check_disk returns pct and number (used), can calculate free bytes) My suggestion for labels are: Name ; Units ; printf format ; Details time ; seconds ; %.3f ; time taken to do a specific check (eg DNS query, HTTP request, ping RTA) pct ; percent ; %.3f ; percentage (used rather than free if applicable) (eg total disk, total swap, ping percent loss) number ; must be bytes if applicable ; %d ; a given number of things (used rather than free if applicable) (eg processes, users, bytes used such as total disk or total swap) numberf ; float ; %.3f ; a given number of things that may be fractional (eg, load average, average bytes transmitted) counter ; a continuous counter (must be bytes if applicable) ; %d ; a continuous counter (eg bytes transmitted on an interface) load1 ; load ; %.2f ; load average over 1 min load5 ; load ; %.2f ; load average over 5 min load15 ; load ; %.2f ; load average over 15 min Note loadx - not really keen on these, but don't seem to fit into any other labels, unless we only return load5 and use numberf. Maybe number should be a float so that numberf is not required? Note that the patches submitted for check_ping had perf labels of rta and loss, but I think these should be time and pct respectively. I think this makes it easier for something like RRD to work out what type of value it is to draw the graphs. Why the returned values are bad is then up to interpretation (and that is the key to any performance analysis!). Maybe this is too reductionalism and the labels should describe the measure, but I think the labels should be generic and the plugin gives the context. I agree, only in HEAD. Comments? Ton > -----Original Message----- > From: Subhendu Ghosh [SMTP:sghosh at sghosh.org] > Sent: Thursday, May 22, 2003 2:08 PM > To: Voon, Ton > Cc: nagios-devel at lists.sourceforge.net > Subject: Re: [Nagios-devel] FW: [Nagiosplug-devel] [ > nagiosplug-Patches-740404 ] 1.3.0 perfor mance addon for > disk/http/load/ping/procs/swap/u > > perf patches should go into HEAD only. > > is there a list of labels that that has been agreed on? > > -sg > > On Tue, 20 May 2003, Voon, Ton wrote: > > > What's the policy on performance patches? Edwin's patches look useful, > but I > > seem to remember some discussion about sticking to similar labels > between > > plugins. Has any decision been made? Is this for r1_3_0 or for HEAD > only? > > > > I suggest that developer-guidelines.sgml be updated to include all > labels so > > that they can be reused. I'm happy to update after guidance ;-) > > > > Ton > > > > > -----Original Message----- > > > From: SourceForge.net [SMTP:noreply at sourceforge.net] > > > Sent: Tuesday, May 20, 2003 1:14 PM > > > To: noreply at sourceforge.net > > > Subject: [Nagiosplug-devel] [ nagiosplug-Patches-740404 ] 1.3.0 > > > performance addon for disk/http/load/ping/procs/swap/u > > > > > > Patches item #740404, was opened at 2003-05-20 12: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=740404&group_ > > > id=29880 > > > > > > Category: Perf data > > > Group: None > > > Status: Open > > > Resolution: None > > > Priority: 5 > > > Submitted By: Edwin Eefting (drpsycho) > > > Assigned to: Nobody/Anonymous (nobody) > > > Summary: 1.3.0 performance addon for disk/http/load/ping/procs/swap/u > > > > > > Initial Comment: > > > These contain the new performance patches for 1.3.0. > > > This way the plugins will return the extra performance data that is > > > neccesary to make nice graphs with rrd for example. (contact me for > the > > > addons for this) > > > > > > developers: please implement this, as i'm seeing people using the most > > > wicked ways to get performance data now. (e.g. parsing the default > plugin > > > output!) > > > > > > > > > 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: ObjectStore. > > If flattening out C++ or Java code to make your application fit in a > > relational database is painful, don't do it! Check out ObjectStore. > > Now part of Progress Software. http://www.objectstore.net/sourceforge > > _______________________________________________ > > Nagios-devel mailing list > > Nagios-devel at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-devel > > > > -- > > From sghosh at sghosh.org Thu May 22 10:48:02 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu May 22 10:48:02 2003 Subject: [Nagiosplug-devel] patch check_hpjd.c (nagios-plugins-1.3.0) In-Reply-To: <20030522150354.GA69709@foo.internal.bookings.nl> Message-ID: This has been fixed in CVS - both HEAD and r1_3_0 branches. -sg On Thu, 22 May 2003, Otto Jongerius wrote: > Hi, > > check_hpdj (Last Modified: $Date: 2003/02/03 05:07:26 $) from nagios-plugins-1.3.0 > barfed when I tried to run it (host not responding) because the order of line 139 of > check_hpjd.c is wrong. Following patch fixes this: > > [otto at foo>diff -u check_hpjd.c /home/otto/check_hpjd.c.patch ~/foobar/nagios-plugins-1.3.0/plugins > --- check_hpjd.c Sat Feb 15 13:48:44 2003 > +++ /home/otto/check_hpjd.c.patch Thu May 22 16:37:35 2003 > @@ -139,8 +139,8 @@ > 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); > + 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); > > -- > Otto Jongerius > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > 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 ibolandi at barak013.net.il Tue May 27 04:51:04 2003 From: ibolandi at barak013.net.il (Ilan Bolandi) Date: Tue May 27 04:51:04 2003 Subject: [Nagiosplug-devel] (no subject) Message-ID: <3376EA9D41D233428960E9AE687569C40379D991@b1mail1.barakitc.co.il> Hi Is there a plugin to monitor the current cpu state rather than the average loads? I don't want: load average: 0.01, 0.02, 0.00 But rather: 0.1% user, 0.9% system, 0.0% nice, 98.8% idle Thanks for your replies! Ilan From noreply at sourceforge.net Tue May 27 06:22:08 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue May 27 06:22:08 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-738128 ] check_mssql plugin Message-ID: New Plugins item #738128, was opened at 2003-05-15 10:32 Message generated for change (Comment added) made by rkarlsba You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=738128&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_mssql plugin Initial Comment: hi here's (another?) check_mssql plugin written in perl. the only other I've seen was a hacky bourne shell. Waddayathink? roy ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 15:21 Message: Logged In: YES user_id=145309 Thanks you for submitting your plugin/script for inclusion in the NagiosPlugins project. Please note that only plugins/scripts with an opensource license can be accepted in this project. Please ensure that your code contains explicit copyright and license information. Future status of your plugin: Initially the plugin will be included asis in the contrib directory. If you have any updates or patches that need to be applied, please post them on the NaiosPlugins website under Patches. (http://sourceforge.net/tracker/?group_id=29880&atid=397599) If the plugin code meets with the guidelines and there is a general consensus among users that it is useful and could see wide deployment, the plugin code will be migrated from "contrib" to "supported" status in either the plugins or plugins-scripts directories. Future status of your script: At this time we have only started collecting scripts that are used for report generation. Their future migration to supported status is not clear at the moment. Again thanks for contributing to opensource. The NagiosPlugins Team ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=738128&group_id=29880 From noreply at sourceforge.net Tue May 27 06:23:13 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue May 27 06:23:13 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 15:22 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=744254&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From noreply at sourceforge.net Tue May 27 06:24:12 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue May 27 06:24:12 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-738128 ] check_mssql plugin Message-ID: New Plugins item #738128, was opened at 2003-05-15 10:32 Message generated for change (Comment added) made by rkarlsba You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=738128&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_mssql plugin Initial Comment: hi here's (another?) check_mssql plugin written in perl. the only other I've seen was a hacky bourne shell. Waddayathink? roy ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 15:23 Message: Logged In: YES user_id=145309 Thanks you for submitting your plugin/script for inclusion in the NagiosPlugins project. Please note that only plugins/scripts with an opensource license can be accepted in this project. Please ensure that your code contains explicit copyright and license information. Future status of your plugin: Initially the plugin will be included asis in the contrib directory. If you have any updates or patches that need to be applied, please post them on the NaiosPlugins website under Patches. (http://sourceforge.net/tracker/?group_id=29880&atid=397599) If the plugin code meets with the guidelines and there is a general consensus among users that it is useful and could see wide deployment, the plugin code will be migrated from "contrib" to "supported" status in either the plugins or plugins-scripts directories. Future status of your script: At this time we have only started collecting scripts that are used for report generation. Their future migration to supported status is not clear at the moment. Again thanks for contributing to opensource. The NagiosPlugins Team ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 15:21 Message: Logged In: YES user_id=145309 Thanks you for submitting your plugin/script for inclusion in the NagiosPlugins project. Please note that only plugins/scripts with an opensource license can be accepted in this project. Please ensure that your code contains explicit copyright and license information. Future status of your plugin: Initially the plugin will be included asis in the contrib directory. If you have any updates or patches that need to be applied, please post them on the NaiosPlugins website under Patches. (http://sourceforge.net/tracker/?group_id=29880&atid=397599) If the plugin code meets with the guidelines and there is a general consensus among users that it is useful and could see wide deployment, the plugin code will be migrated from "contrib" to "supported" status in either the plugins or plugins-scripts directories. Future status of your script: At this time we have only started collecting scripts that are used for report generation. Their future migration to supported status is not clear at the moment. Again thanks for contributing to opensource. The NagiosPlugins Team ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=738128&group_id=29880 From noreply at sourceforge.net Tue May 27 06:29:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue May 27 06:29:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 15:22 Message generated for change (Comment added) made by rkarlsba You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 >Category: Perl plugin Group: None Status: Open Resolution: None >Priority: 3 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- >Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 15:27 Message: Logged In: YES user_id=145309 WARNING This isn't finished This is only for testing and further development ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From noreply at sourceforge.net Tue May 27 23:59:03 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Tue May 27 23:59:03 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 13:22 Message generated for change (Comment added) made by doffen24 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 06:58 Message: Logged In: YES user_id=788346 If you remove : in if (/^Average:/) { it will work in Solaris too. ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 13:27 Message: Logged In: YES user_id=145309 WARNING This isn't finished This is only for testing and further development ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From noreply at sourceforge.net Wed May 28 00:34:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 28 00:34:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 13:22 Message generated for change (Comment added) made by doffen24 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 07:33 Message: Logged In: YES user_id=788346 Ignore last comment, output of sar in solaris too different. Sorry ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 06:58 Message: Logged In: YES user_id=788346 If you remove : in if (/^Average:/) { it will work in Solaris too. ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 13:27 Message: Logged In: YES user_id=145309 WARNING This isn't finished This is only for testing and further development ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From noreply at sourceforge.net Wed May 28 00:40:08 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 28 00:40:08 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 15:22 Message generated for change (Comment added) made by rkarlsba You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- >Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 09:39 Message: Logged In: YES user_id=145309 What if you rewrite it to support Solaris? Then we can do an OS check before running sar. ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 09:33 Message: Logged In: YES user_id=788346 Ignore last comment, output of sar in solaris too different. Sorry ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 08:58 Message: Logged In: YES user_id=788346 If you remove : in if (/^Average:/) { it will work in Solaris too. ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 15:27 Message: Logged In: YES user_id=145309 WARNING This isn't finished This is only for testing and further development ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From noreply at sourceforge.net Wed May 28 01:00:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 28 01:00:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 13:22 Message generated for change (Comment added) made by doffen24 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 07:59 Message: Logged In: YES user_id=788346 Its your script so you should rewrite it if you want to. This is how i changed it , and below is what sar 1 3 gives in Solaris (its the same for OS versions 2.6, 7 , and 8). if (/^Average/) { @values = split(/\s+/); $user = $values[1]; $system = $values[2]; $iowait = $values[3]; $idle = $values[4]; $stop = 1; } SunOS ask 5.8 Generic_108528-21 sun4u 05/28/03 09:57:24 %usr %sys %wio %idle 09:57:25 2 13 0 85 09:57:26 2 2 0 96 09:57:27 1 12 1 86 Average 2 9 0 89 SunOS levanger 5.6 Generic_105181-31 sun4u 05/28/03 09:58:31 %usr %sys %wio %idle 09:58:32 18 7 19 56 09:58:33 22 13 16 50 09:58:34 23 16 13 49 Average 21 12 16 52 ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 07:39 Message: Logged In: YES user_id=145309 What if you rewrite it to support Solaris? Then we can do an OS check before running sar. ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 07:33 Message: Logged In: YES user_id=788346 Ignore last comment, output of sar in solaris too different. Sorry ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 06:58 Message: Logged In: YES user_id=788346 If you remove : in if (/^Average:/) { it will work in Solaris too. ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 13:27 Message: Logged In: YES user_id=145309 WARNING This isn't finished This is only for testing and further development ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From noreply at sourceforge.net Wed May 28 01:36:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 28 01:36:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 15:22 Message generated for change (Comment added) made by rkarlsba You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- >Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 10:35 Message: Logged In: YES user_id=145309 Can you send me the output from this on your solaris box? perl -e 'print "$^O\n"' ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 09:59 Message: Logged In: YES user_id=788346 Its your script so you should rewrite it if you want to. This is how i changed it , and below is what sar 1 3 gives in Solaris (its the same for OS versions 2.6, 7 , and 8). if (/^Average/) { @values = split(/\s+/); $user = $values[1]; $system = $values[2]; $iowait = $values[3]; $idle = $values[4]; $stop = 1; } SunOS ask 5.8 Generic_108528-21 sun4u 05/28/03 09:57:24 %usr %sys %wio %idle 09:57:25 2 13 0 85 09:57:26 2 2 0 96 09:57:27 1 12 1 86 Average 2 9 0 89 SunOS levanger 5.6 Generic_105181-31 sun4u 05/28/03 09:58:31 %usr %sys %wio %idle 09:58:32 18 7 19 56 09:58:33 22 13 16 50 09:58:34 23 16 13 49 Average 21 12 16 52 ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 09:39 Message: Logged In: YES user_id=145309 What if you rewrite it to support Solaris? Then we can do an OS check before running sar. ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 09:33 Message: Logged In: YES user_id=788346 Ignore last comment, output of sar in solaris too different. Sorry ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 08:58 Message: Logged In: YES user_id=788346 If you remove : in if (/^Average:/) { it will work in Solaris too. ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 15:27 Message: Logged In: YES user_id=145309 WARNING This isn't finished This is only for testing and further development ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From noreply at sourceforge.net Wed May 28 01:48:06 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 28 01:48:06 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 13:22 Message generated for change (Comment added) made by doffen24 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 08:47 Message: Logged In: YES user_id=788346 The output is solaris ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 08:35 Message: Logged In: YES user_id=145309 Can you send me the output from this on your solaris box? perl -e 'print "$^O\n"' ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 07:59 Message: Logged In: YES user_id=788346 Its your script so you should rewrite it if you want to. This is how i changed it , and below is what sar 1 3 gives in Solaris (its the same for OS versions 2.6, 7 , and 8). if (/^Average/) { @values = split(/\s+/); $user = $values[1]; $system = $values[2]; $iowait = $values[3]; $idle = $values[4]; $stop = 1; } SunOS ask 5.8 Generic_108528-21 sun4u 05/28/03 09:57:24 %usr %sys %wio %idle 09:57:25 2 13 0 85 09:57:26 2 2 0 96 09:57:27 1 12 1 86 Average 2 9 0 89 SunOS levanger 5.6 Generic_105181-31 sun4u 05/28/03 09:58:31 %usr %sys %wio %idle 09:58:32 18 7 19 56 09:58:33 22 13 16 50 09:58:34 23 16 13 49 Average 21 12 16 52 ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 07:39 Message: Logged In: YES user_id=145309 What if you rewrite it to support Solaris? Then we can do an OS check before running sar. ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 07:33 Message: Logged In: YES user_id=788346 Ignore last comment, output of sar in solaris too different. Sorry ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 06:58 Message: Logged In: YES user_id=788346 If you remove : in if (/^Average:/) { it will work in Solaris too. ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 13:27 Message: Logged In: YES user_id=145309 WARNING This isn't finished This is only for testing and further development ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From noreply at sourceforge.net Wed May 28 02:44:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Wed May 28 02:44:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-744254 ] check_cpuload Message-ID: New Plugins item #744254, was opened at 2003-05-27 15:22 Message generated for change (Comment added) made by rkarlsba You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_cpuload Initial Comment: Simple perl plugin to check for CPU load on local linux machines using the sysstat package (sar) ---------------------------------------------------------------------- >Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 11:43 Message: Logged In: YES user_id=145309 Added new version. This can actually be called usable. Solaris and linux support. ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 10:47 Message: Logged In: YES user_id=788346 The output is solaris ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 10:35 Message: Logged In: YES user_id=145309 Can you send me the output from this on your solaris box? perl -e 'print "$^O\n"' ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 09:59 Message: Logged In: YES user_id=788346 Its your script so you should rewrite it if you want to. This is how i changed it , and below is what sar 1 3 gives in Solaris (its the same for OS versions 2.6, 7 , and 8). if (/^Average/) { @values = split(/\s+/); $user = $values[1]; $system = $values[2]; $iowait = $values[3]; $idle = $values[4]; $stop = 1; } SunOS ask 5.8 Generic_108528-21 sun4u 05/28/03 09:57:24 %usr %sys %wio %idle 09:57:25 2 13 0 85 09:57:26 2 2 0 96 09:57:27 1 12 1 86 Average 2 9 0 89 SunOS levanger 5.6 Generic_105181-31 sun4u 05/28/03 09:58:31 %usr %sys %wio %idle 09:58:32 18 7 19 56 09:58:33 22 13 16 50 09:58:34 23 16 13 49 Average 21 12 16 52 ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-28 09:39 Message: Logged In: YES user_id=145309 What if you rewrite it to support Solaris? Then we can do an OS check before running sar. ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 09:33 Message: Logged In: YES user_id=788346 Ignore last comment, output of sar in solaris too different. Sorry ---------------------------------------------------------------------- Comment By: Tommy Fallsen (doffen24) Date: 2003-05-28 08:58 Message: Logged In: YES user_id=788346 If you remove : in if (/^Average:/) { it will work in Solaris too. ---------------------------------------------------------------------- Comment By: Roy Sigurd Karlsbakk (rkarlsba) Date: 2003-05-27 15:27 Message: Logged In: YES user_id=145309 WARNING This isn't finished This is only for testing and further development ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=744254&group_id=29880 From Stanley.Hopcroft at IPAustralia.Gov.AU Wed May 28 14:19:05 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed May 28 14:19:05 2003 Subject: [Nagiosplug-devel] Re: RFC Nagios Namespace. In-Reply-To: <5.1.0.14.1.20030528104706.00a34600@mailstore.pobox.com>; from sburke@cpan.org on Wed, May 28, 2003 at 10:47:12AM -0800 References: <5.1.0.14.1.20030528014443.00a35380@mailstore.pobox.com> <5.1.0.14.1.20030527215348.00a87ec0@mailstore.pobox.com> <20030528154747.J23495@IPAustralia.Gov.AU> <5.1.0.14.1.20030527215348.00a87ec0@mailstore.pobox.com> <5.1.0.14.1.20030528014443.00a35380@mailstore.pobox.com> <20030528135916.GN89967@dansat.data-plan.com> <5.1.0.14.1.20030528104706.00a34600@mailstore.pobox.com> Message-ID: <20030529071753.A231@IPAustralia.Gov.AU> Dear Gentlemen, I am writing to thank you for your letters and say, On Wed, May 28, 2003 at 10:47:12AM -0800, Sean M. Burke wrote: > At 02:59 PM 2003-05-28 +0100, Tim Bunce wrote: > >Nagios::* is appropriate here. > > Okiedoke! > > -- > Sean M. Burke http://search.cpan.org/~sburke/ > I am very grateful for your encouragement. Nagios::* it is. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. From Stanley.Hopcroft at IPAustralia.Gov.AU Wed May 28 14:33:05 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed May 28 14:33:05 2003 Subject: [Nagiosplug-devel] Nagios::* namespace accepted on CPAN. In-Reply-To: <53104E20A25CD411B556009027E50636079A9B12@pnnemp02.pn.egg.com>; from Ton.Voon@egg.com on Thu, May 22, 2003 at 04:53:33PM +0100 References: <53104E20A25CD411B556009027E50636079A9B12@pnnemp02.pn.egg.com> Message-ID: <20030529073230.B231@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to say that CPAN has accepted the Nagios::* namespace for the use of Nagios related Perl modules. Potential occupants of this namespace could include :- Nagios::utils.pm - an exporter module supplying subroutines and data structures, useful to those writing Nag service checks in Perl. Nagios::NagConfig - Patrick LeBoutillier's class to read Nag config files (this is a suggested name for Patricks class) Nagios::Web_Trx::* - classes that provide functions similar to but worse than WWW::Mechanize and WWW::Automate ??? - other peoples classes that I cannot imagine which . extend the Nagios core (exploiting the optional built-in Perl) . extend the CGIs (or supplant them) . do other wonderful things to extend Nags reach. Happy hacking. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. From sghosh at sghosh.org Wed May 28 15:02:06 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed May 28 15:02:06 2003 Subject: [Nagiosplug-devel] Re: Nagios::* namespace accepted on CPAN. In-Reply-To: <20030529073230.B231@IPAustralia.Gov.AU> Message-ID: Cool - thanks for doing the legwork. I would probably want to create a perl dir in the plugins, or a separate cvs module under nagiosplug for these... -sg On Thu, 29 May 2003, Stanley Hopcroft wrote: > Dear Ladies and Gentlemen, > > I am writing to say that CPAN has accepted the Nagios::* namespace for > the use of Nagios related Perl modules. > > Potential occupants of this namespace could include :- > > Nagios::utils.pm - an exporter module supplying subroutines and data > structures, useful to those writing Nag service > checks in Perl. > > Nagios::NagConfig - Patrick LeBoutillier's class to read Nag config > files (this is a suggested name for Patricks class) > > Nagios::Web_Trx::* - classes that provide functions similar to but > worse than WWW::Mechanize and WWW::Automate > > ??? - other peoples classes that I cannot imagine which > . extend the Nagios core (exploiting the optional built-in Perl) > . extend the CGIs (or supplant them) > . do other wonderful things to extend Nags reach. > > Happy hacking. > > Yours sincerely. > > -- From noreply at sourceforge.net Thu May 29 02:39:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Thu May 29 02:39:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-745422 ] new plugin: Check a DPT ( Adaptec ) RAID board using snmp Message-ID: Patches item #745422, was opened at 2003-05-29 11:38 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=745422&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Francesc Guasch - Ortiz (frankie_guasch) Assigned to: Nobody/Anonymous (nobody) Summary: new plugin: Check a DPT ( Adaptec ) RAID board using snmp Initial Comment: Check a DPT ( Adaptec ) RAID board using snmp. This plugins requires the NET::SNMP module installed on the system. It also requires the dptagent installed in the host that has the board. This software can be downloaded from Adaptec. I only found an old rpm here: http://www.adaptec.com/worldwide/support/driverdetail.html?sess=no&cat=/Product/ASR-2100S&filekey=u160raid_sm_dr_suse64.tgz I was able to extract the agent and it works fine with RedHat-7.3 and RedHat-9.0. Tested with DPT SmartRAID V Controllers. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=745422&group_id=29880 From noreply at sourceforge.net Fri May 30 06:56:15 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 30 06:56:15 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-746083 ] check_asterisk Message-ID: New Plugins item #746083, was opened at 2003-05-30 15:36 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=746083&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Roy Sigurd Karlsbakk (rkarlsba) Assigned to: Nobody/Anonymous (nobody) Summary: check_asterisk Initial Comment: plugin to log into the asterisk PBX (asterisk.org) manager interface. This just logs in and out, but it's better than nothing :) roy ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=746083&group_id=29880 From jan at e-commercepark.com Fri May 30 11:30:10 2003 From: jan at e-commercepark.com (Jan van den Berg) Date: Fri May 30 11:30:10 2003 Subject: [Nagiosplug-devel] Perl subroutine Message-ID: <000a01c326d8$a2793630$2e00000a@ecp.noc> Hi there, I don't if this is the right place here, but I have a question about a plug-in I'm developing. See the following Perl sub-routine sub get_alert { local @ARGV = '/var/log/alert'; my @last8; while (<>) { push @last8, $_; shift @last8 while @last8 > 8; } my $line = $last8[-6]; my $line =~ y/[,'"()<>]:;0123456789*//d; print $line; #print "test"; } So what this does is, get the 8 before last line from a log file, strips this line from meta-characters and print out a clean line of text. When I run this command-line: no problem. However Nagios says there is no output! But when I uncomment the print "test"; it prints this out nicely in Nagios... so the subroutine is okay, and the print statement is okay. (I also tried using quotes around "$line" but that didn't work). So what am I doing wrong here? Please help. Jan van den Berg -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Fri May 30 11:47:11 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri May 30 11:47:11 2003 Subject: [Nagiosplug-devel] Re: Perl subroutine In-Reply-To: <000b01c326bd$69805b80$2e00000a@ecp.noc> Message-ID: Please post to the regular list, not admin. -sg On Fri, 30 May 2003, Jan van den Berg wrote: > Hi there, > > > > I don't if this is the right place here, but I have a question about a > plug-in I'm developing. > > > > See the following Perl sub-routine > > > > sub get_alert > > { > > local @ARGV = '/var/log/alert'; > > my @last8; > > > > while (<>) { > > push @last8, $_; > > shift @last8 while @last8 > 8; > > } > > my $line = $last8[-6]; > > my $line =~ y/[,'"()<>]:;0123456789*//d; > > > print $line; > > #print "test"; > > } > > > > So what this does is, get the 8 before last line from a log file, strips > this line from meta-characters and print out a clean line of text. When > I run this command-line: no problem. However Nagios says there is no > output! But when I uncomment the print "test"; it prints this out nicely > in Nagios... so the subroutine is okay, and the print statement is okay. > > (I also tried using quotes around "$line" but that didn't work). > > > > So what am I doing wrong here? > > > > Please help. > > > > Jan van den Berg > > -- From michael.haro at resources.ca.gov Fri May 30 11:55:03 2003 From: michael.haro at resources.ca.gov (Michael Haro) Date: Fri May 30 11:55:03 2003 Subject: [Nagiosplug-devel] Perl subroutine Message-ID: <9748CA0A33163743BCD1B77F5614094A348D@agencyx.ad.resources.ca.gov> It might be more efficient to seek() to the end of the file and read backwards. Does the nagios user have access to read /var/log/alert? I'm not sure if it is better, but it might be better to actually open() the file. Something like... my $fh = new FileHandle; $fh->open('/var/log/alert') or die("/var/log/alert: $!"); while(<$fh>) { ... } $fh->close; might work. But I'm no PERL expert. Michael -- Michael Haro Systems & Network Administrator California Resources Agency / CERES -----Original Message----- From: Jan van den Berg [mailto:jan at e-commercepark.com] Sent: Friday, May 30, 2003 11:24 AM To: Nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] Perl subroutine Hi there, I don't if this is the right place here, but I have a question about a plug-in I'm developing. See the following Perl sub-routine sub get_alert { local @ARGV = '/var/log/alert'; my @last8; while (<>) { push @last8, $_; shift @last8 while @last8 > 8; } my $line = $last8[-6]; my $line =~ y/[,'"()<>]:;0123456789*//d; print $line; #print "test"; } So what this does is, get the 8 before last line from a log file, strips this line from meta-characters and print out a clean line of text. When I run this command-line: no problem. However Nagios says there is no output! But when I uncomment the print "test"; it prints this out nicely in Nagios..... so the subroutine is okay, and the print statement is okay. (I also tried using quotes around "$line" but that didn't work). So what am I doing wrong here? Please help. Jan van den Berg From noreply at sourceforge.net Fri May 30 13:23:10 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 30 13:23:10 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-746312 ] Contributed check module (check_softraid) Message-ID: Feature Requests item #746312, was opened at 2003-05-30 14:22 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=746312&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Kenny Root (kruton) Assigned to: Nobody/Anonymous (nobody) Summary: Contributed check module (check_softraid) Initial Comment: This module checks the status of a software RAID using Linux's MD modules. It reads /proc/mdstat to see the condition of each of the disks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=746312&group_id=29880 From noreply at sourceforge.net Fri May 30 13:43:02 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 30 13:43:02 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-746322 ] check_softraid - New plugin Message-ID: New Plugins item #746322, was opened at 2003-05-30 14:42 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=746322&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Kenny Root (kruton) Assigned to: Nobody/Anonymous (nobody) Summary: check_softraid - New plugin Initial Comment: The check_softraid plugin monitors Linux's MD softraid RAID. It reads /proc/mdstat to see if a disk is faulted or a RAID1 or RAID5 is desynced. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=746322&group_id=29880 From noreply at sourceforge.net Fri May 30 13:43:09 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Fri May 30 13:43:09 2003 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-746322 ] check_softraid - New plugin Message-ID: New Plugins item #746322, was opened at 2003-05-30 14:42 Message generated for change (Comment added) made by kruton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=746322&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Kenny Root (kruton) Assigned to: Nobody/Anonymous (nobody) Summary: check_softraid - New plugin Initial Comment: The check_softraid plugin monitors Linux's MD softraid RAID. It reads /proc/mdstat to see if a disk is faulted or a RAID1 or RAID5 is desynced. ---------------------------------------------------------------------- Comment By: Kenny Root (kruton) Date: 2003-05-30 14:42 Message: Logged In: YES user_id=299111 Thanks you for submitting your plugin/script for inclusion in the NagiosPlugins project. Please note that only plugins/scripts with an opensource license can be accepted in this project. Please ensure that your code contains explicit copyright and license information. Future status of your plugin: Initially the plugin will be included asis in the contrib directory. If you have any updates or patches that need to be applied, please post them on the NaiosPlugins website under Patches. (http://sourceforge.net/tracker/?group_id=29880&atid=397599) If the plugin code meets with the guidelines and there is a general consensus among users that it is useful and could see wide deployment, the plugin code will be migrated from "contrib" to "supported" status in either the plugins or plugins-scripts directories. Future status of your script: At this time we have only started collecting scripts that are used for report generation. Their future migration to supported status is not clear at the moment. Again thanks for contributing to opensource. The NagiosPlugins Team ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=746322&group_id=29880 From karl at debisschop.net Sat May 31 06:14:07 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Sat May 31 06:14:07 2003 Subject: [Nagiosplug-devel] Bug fix release Message-ID: <1054386758.2509.1.camel@miles.debisschop.net> Should we plan on releasing 1.3.1 with the accumulated bugfixes to the stable branch? Sounds like Ethan will be diong a 1.1 for nagios, so the timing seems good. -- Karl From noreply at sourceforge.net Sat May 31 07:01:05 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 31 07:01:05 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-741296 ] check_dns.c segfault with -a and NXDOMAIN Message-ID: Bugs item #741296, was opened at 2003-05-21 14:28 Message generated for change (Comment added) made by kdebisschop You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=741296&group_id=29880 Category: None Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: David Maynard (dpmaynard) Assigned to: Nobody/Anonymous (nobody) Summary: check_dns.c segfault with -a and NXDOMAIN Initial Comment: check_dns.c 1.13 from CVS compiled and run under Red Hat 7.1 and testing against bind-8.2.3+patches on a Cobalt generates a segmentation fault if the requested domain does not exist and the "-a" flag is specified. The "address" variable is NULL when the code reaches line 183 and attempts a strcmp. The null pointer to strcmp generates a segfault. Arguably, this is a bug in the parsing of the "address" variable since it probably shouldn't be a NULL at this point in the code. However, the code for "-a" is predicated on STATE_OK, so if something earlier in the code indicates STATE_WARNING (e.g., because it detects a NXDOMAIN return), then the "-a" check will not be performed and Nagios will "miss" the CRITICAL error. (If I tell it to match an expected address, it is critical if it doesn't exist.) As a result, my "fix" (to achieve the results I need), was to change the code for the "-a" test to include a check for a null address pointer. My patch attached. -dpm ---------------------------------------------------------------------- >Comment By: Karl DeBisschop (kdebisschop) Date: 2003-05-31 10:00 Message: Logged In: YES user_id=1671 IMO, your thoughts about where the true bug lies are correct. And we know form experince that other implementations will segfault on your patch because you try to print a null string. I take you point about failing to note that the address is null and move the check up to that point in the code. This is the patch I have applied. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=741296&group_id=29880 From noreply at sourceforge.net Sat May 31 07:03:01 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 31 07:03:01 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-741296 ] check_dns.c segfault with -a and NXDOMAIN Message-ID: Bugs item #741296, was opened at 2003-05-21 14:28 Message generated for change (Settings changed) made by kdebisschop You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=741296&group_id=29880 Category: None Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: David Maynard (dpmaynard) >Assigned to: Karl DeBisschop (kdebisschop) Summary: check_dns.c segfault with -a and NXDOMAIN Initial Comment: check_dns.c 1.13 from CVS compiled and run under Red Hat 7.1 and testing against bind-8.2.3+patches on a Cobalt generates a segmentation fault if the requested domain does not exist and the "-a" flag is specified. The "address" variable is NULL when the code reaches line 183 and attempts a strcmp. The null pointer to strcmp generates a segfault. Arguably, this is a bug in the parsing of the "address" variable since it probably shouldn't be a NULL at this point in the code. However, the code for "-a" is predicated on STATE_OK, so if something earlier in the code indicates STATE_WARNING (e.g., because it detects a NXDOMAIN return), then the "-a" check will not be performed and Nagios will "miss" the CRITICAL error. (If I tell it to match an expected address, it is critical if it doesn't exist.) As a result, my "fix" (to achieve the results I need), was to change the code for the "-a" test to include a check for a null address pointer. My patch attached. -dpm ---------------------------------------------------------------------- Comment By: Karl DeBisschop (kdebisschop) Date: 2003-05-31 10:00 Message: Logged In: YES user_id=1671 IMO, your thoughts about where the true bug lies are correct. And we know form experince that other implementations will segfault on your patch because you try to print a null string. I take you point about failing to note that the address is null and move the check up to that point in the code. This is the patch I have applied. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=741296&group_id=29880 From noreply at sourceforge.net Sat May 31 07:57:04 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 31 07:57:04 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-741296 ] check_dns.c segfault with -a and NXDOMAIN Message-ID: Bugs item #741296, was opened at 2003-05-21 14:28 Message generated for change (Comment added) made by kdebisschop You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=741296&group_id=29880 Category: None Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: David Maynard (dpmaynard) Assigned to: Karl DeBisschop (kdebisschop) Summary: check_dns.c segfault with -a and NXDOMAIN Initial Comment: check_dns.c 1.13 from CVS compiled and run under Red Hat 7.1 and testing against bind-8.2.3+patches on a Cobalt generates a segmentation fault if the requested domain does not exist and the "-a" flag is specified. The "address" variable is NULL when the code reaches line 183 and attempts a strcmp. The null pointer to strcmp generates a segfault. Arguably, this is a bug in the parsing of the "address" variable since it probably shouldn't be a NULL at this point in the code. However, the code for "-a" is predicated on STATE_OK, so if something earlier in the code indicates STATE_WARNING (e.g., because it detects a NXDOMAIN return), then the "-a" check will not be performed and Nagios will "miss" the CRITICAL error. (If I tell it to match an expected address, it is critical if it doesn't exist.) As a result, my "fix" (to achieve the results I need), was to change the code for the "-a" test to include a check for a null address pointer. My patch attached. -dpm ---------------------------------------------------------------------- >Comment By: Karl DeBisschop (kdebisschop) Date: 2003-05-31 10:44 Message: Logged In: YES user_id=1671 further testing should my revised patch failed to trap the condition you had described - I tried to trap the NULL in the while loop. After testing and rereading your post, I realized that it was the break in the while() loop that skipped past the address check. The code in CVS should not segfault. It will be less informative than old code in some cases, so I may do a little more work later. But it should be revady for testing, in both HEAD and r1_3_0 ---------------------------------------------------------------------- Comment By: Karl DeBisschop (kdebisschop) Date: 2003-05-31 10:00 Message: Logged In: YES user_id=1671 IMO, your thoughts about where the true bug lies are correct. And we know form experince that other implementations will segfault on your patch because you try to print a null string. I take you point about failing to note that the address is null and move the check up to that point in the code. This is the patch I have applied. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=741296&group_id=29880 From sghosh at sghosh.org Sat May 31 11:06:03 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sat May 31 11:06:03 2003 Subject: [Nagiosplug-devel] Bug fix release In-Reply-To: <1054386758.2509.1.camel@miles.debisschop.net> Message-ID: On 31 May 2003, Karl DeBisschop wrote: > Should we plan on releasing 1.3.1 with the accumulated bugfixes to the > stable branch? Sounds like Ethan will be diong a 1.1 for nagios, so the > timing seems good. > Sounds good. should we aim for next weekend? -- -sg From karl at debisschop.net Sat May 31 21:13:02 2003 From: karl at debisschop.net (Karl DeBisschop) Date: Sat May 31 21:13:02 2003 Subject: [Nagiosplug-devel] Bug fix release In-Reply-To: References: Message-ID: <1054440694.2509.756.camel@miles.debisschop.net> On Sat, 2003-05-31 at 14:05, Subhendu Ghosh wrote: > On 31 May 2003, Karl DeBisschop wrote: > > > Should we plan on releasing 1.3.1 with the accumulated bugfixes to the > > stable branch? Sounds like Ethan will be diong a 1.1 for nagios, so the > > timing seems good. > > > > Sounds good. should we aim for next weekend? Sounds reasonable, though I wouldn't mind if we gave ourselves a few days beyond that. If we went for the following Tuesday, we could give a short call for testing on Monday. -- Karl From noreply at sourceforge.net Sat May 31 21:42:20 2003 From: noreply at sourceforge.net (SourceForge.net) Date: Sat May 31 21:42:20 2003 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-706851 ] check_tcp misses expect string without newline Message-ID: Bugs item #706851, was opened at 2003-03-20 07:15 Message generated for change (Comment added) made by kdebisschop You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=706851&group_id=29880 Category: None Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: Ade Rixon (aderixon) >Assigned to: Karl DeBisschop (kdebisschop) Summary: check_tcp misses expect string without newline Initial Comment: In check_tcp.c 1.13, the following lines were added (line 261): if (buffer[i-2] == '\r' && buffer[i-1] == '\n') break; I have a TCP service that returns a string on connection without a trailing newline. It used to be detected by the -e option to check_tcp. The above code breaks this behaviour and causes check_tcp to wait until the timeout is reached, whereupon it fails. Can this either be configurable, or be removed? ---------------------------------------------------------------------- >Comment By: Karl DeBisschop (kdebisschop) Date: 2003-06-01 00:27 Message: Logged In: YES user_id=1671 The issue is not that the lines were added, it's that the old version could fail if he first line of text was more than MAXBUF char long. 1.12 calls recv once, 1.13 calls recv until the app stops sending. Are you trying to monitor a streaming app by chance? I propose that the solution is to add an option for a cap on the number of bytes that check_tcp should fetch. Will that work for you? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=706851&group_id=29880