From james at higley.net Mon Aug 2 09:57:00 2004 From: james at higley.net (James Higley) Date: Mon Aug 2 09:57:00 2004 Subject: [Nagiosplug-devel] check_mailq and errors Message-ID: <1091458729.27456.28.camel@jabber.higley.net> I'm having some problems with the latest CVS check_mailq Running the script I get Duplicate specification "Warning=i" for option "warning" Duplicate specification "Critical=i" for option "critical" and then the output. i.e. ./check_mailq -w 10 -c 20 -M postfix Duplicate specification "Warning=i" for option "warning" Duplicate specification "Critical=i" for option "critical" CRITICAL: mailq is 40 (threshold c = 20)|unsent=40;10;20;0 This causes an error when running checks. Can anyone explain these Dup errors or a way around them? SuSE 9.1. Profession perl -v This is perl, v5.8.3 built for i586-linux-thread-multi Hope that helps. Thanks in advance! -James From noreply at sourceforge.net Wed Aug 4 11:11:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 4 11:11:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-939170 ] check_yum - Check if YUM/RPM based system is up-to-date Message-ID: New Plugins item #939170, was opened at 2004-04-21 02:23 Message generated for change (Comment added) made by egunnett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: G. Krist (g_krist) Assigned to: Nobody/Anonymous (nobody) Summary: check_yum - Check if YUM/RPM based system is up-to-date Initial Comment: check_yum does a check to see if a system is up-to-date with all updates/patches. It's using the "yum check-update" command on either local host or remote hosts (using nrpe). It has 3 levels of return text: 1) Server is up-to-date (no updates available) 2) Server is NOT up-to-date, xxx packages etc (There are updates, will be a Criticical error) 3) Something wrong with yum etc etc (something is wrong with yum, will be a warning) IMHO there is no need for -w or -c parameters not even possible i think :D note: I would like to see some feedback, i'm already using it for like 10 servers, it worked oke here. We run it once a day. ---------------------------------------------------------------------- Comment By: Eric Gunnett (egunnett) Date: 2004-08-04 11:10 Message: Logged In: YES user_id=1039116 Have added this to 40 servers. Found that I have 2 RPMs to be updated and it is still saying that the servers are okay and have not updates? Did not see any flags to pass to the module. -Eric ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-05-08 00:46 Message: Logged In: YES user_id=1025858 Oke somehow check_yum was always reporting that there was 1 package to be updated (IF the system was not up2date ofcourse). I fixed that in this release. ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-04-21 08:20 Message: Logged In: YES user_id=1025858 0.3 is using the exit codes from yum now! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 From noreply at sourceforge.net Wed Aug 4 11:26:04 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 4 11:26:04 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-939170 ] check_yum - Check if YUM/RPM based system is up-to-date Message-ID: New Plugins item #939170, was opened at 2004-04-21 03:23 Message generated for change (Comment added) made by g_force You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: G. Krist (g_krist) Assigned to: Nobody/Anonymous (nobody) Summary: check_yum - Check if YUM/RPM based system is up-to-date Initial Comment: check_yum does a check to see if a system is up-to-date with all updates/patches. It's using the "yum check-update" command on either local host or remote hosts (using nrpe). It has 3 levels of return text: 1) Server is up-to-date (no updates available) 2) Server is NOT up-to-date, xxx packages etc (There are updates, will be a Criticical error) 3) Something wrong with yum etc etc (something is wrong with yum, will be a warning) IMHO there is no need for -w or -c parameters not even possible i think :D note: I would like to see some feedback, i'm already using it for like 10 servers, it worked oke here. We run it once a day. ---------------------------------------------------------------------- Comment By: Garry W. Cook (g_force) Date: 2004-08-04 12:25 Message: Logged In: YES user_id=197417 I can see a need for -w and -c. Perhaps I want to know when updated 'Frozen Bubble' packages are available, but don't need to update them right away. I might want to pass a list of such apps to the -w flag. However, when Apache or OpenSSH packages are out of date, I would want to generate a critical message, as there could be security issues on my server that need to be updated right away. So, these would be passed to the -c flag. Perhaps nothing would need to be passed to -w, only -c, anything not passed to -c would default to warning. Or perhaps both could be specified, and anything else would generate an unknown? Just some thoughts... I don't even use Yum. I would however be interested in seeing a similar plugin for APT. Is this available or in the works? I'm guessing that it wouldn't be too difficult to convert what you have for Yum, which I might tackle if I get some spare time and can't find an existing plugin. Perhaps you could make your plugin accept an argument to check Yum or APT, depending on user preferences? ---------------------------------------------------------------------- Comment By: Eric Gunnett (egunnett) Date: 2004-08-04 12:10 Message: Logged In: YES user_id=1039116 Have added this to 40 servers. Found that I have 2 RPMs to be updated and it is still saying that the servers are okay and have not updates? Did not see any flags to pass to the module. -Eric ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-05-08 01:46 Message: Logged In: YES user_id=1025858 Oke somehow check_yum was always reporting that there was 1 package to be updated (IF the system was not up2date ofcourse). I fixed that in this release. ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-04-21 09:20 Message: Logged In: YES user_id=1025858 0.3 is using the exit codes from yum now! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 From noreply at sourceforge.net Wed Aug 4 12:27:05 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 4 12:27:05 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-939170 ] check_yum - Check if YUM/RPM based system is up-to-date Message-ID: New Plugins item #939170, was opened at 2004-04-21 11:23 Message generated for change (Comment added) made by g_krist You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: G. Krist (g_krist) Assigned to: Nobody/Anonymous (nobody) Summary: check_yum - Check if YUM/RPM based system is up-to-date Initial Comment: check_yum does a check to see if a system is up-to-date with all updates/patches. It's using the "yum check-update" command on either local host or remote hosts (using nrpe). It has 3 levels of return text: 1) Server is up-to-date (no updates available) 2) Server is NOT up-to-date, xxx packages etc (There are updates, will be a Criticical error) 3) Something wrong with yum etc etc (something is wrong with yum, will be a warning) IMHO there is no need for -w or -c parameters not even possible i think :D note: I would like to see some feedback, i'm already using it for like 10 servers, it worked oke here. We run it once a day. ---------------------------------------------------------------------- >Comment By: G. Krist (g_krist) Date: 2004-08-04 21:26 Message: Logged In: YES user_id=1025858 Oke seems I forgot something to tell. Indeed check_yum doesn't work correct. Why? nrpe remote can't run yum check-update because it needs root for that. The problem only occurs when there are new header files to be downloaded. I found a work-a-round for it (he it's better then playing with suid!). - open/create /etc/cron.hourly/yumupdatedb - put the following lines of text in it: #!/bin/sh /usr/bin/yum check-update - save file - make it +x (executable) This way it will work! @g_force I could make an apt one, but i don't have apt boxes laying around. You can help me with that? ---------------------------------------------------------------------- Comment By: Garry W. Cook (g_force) Date: 2004-08-04 20:25 Message: Logged In: YES user_id=197417 I can see a need for -w and -c. Perhaps I want to know when updated 'Frozen Bubble' packages are available, but don't need to update them right away. I might want to pass a list of such apps to the -w flag. However, when Apache or OpenSSH packages are out of date, I would want to generate a critical message, as there could be security issues on my server that need to be updated right away. So, these would be passed to the -c flag. Perhaps nothing would need to be passed to -w, only -c, anything not passed to -c would default to warning. Or perhaps both could be specified, and anything else would generate an unknown? Just some thoughts... I don't even use Yum. I would however be interested in seeing a similar plugin for APT. Is this available or in the works? I'm guessing that it wouldn't be too difficult to convert what you have for Yum, which I might tackle if I get some spare time and can't find an existing plugin. Perhaps you could make your plugin accept an argument to check Yum or APT, depending on user preferences? ---------------------------------------------------------------------- Comment By: Eric Gunnett (egunnett) Date: 2004-08-04 20:10 Message: Logged In: YES user_id=1039116 Have added this to 40 servers. Found that I have 2 RPMs to be updated and it is still saying that the servers are okay and have not updates? Did not see any flags to pass to the module. -Eric ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-05-08 09:46 Message: Logged In: YES user_id=1025858 Oke somehow check_yum was always reporting that there was 1 package to be updated (IF the system was not up2date ofcourse). I fixed that in this release. ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-04-21 17:20 Message: Logged In: YES user_id=1025858 0.3 is using the exit codes from yum now! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 From noreply at sourceforge.net Wed Aug 4 12:59:10 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 4 12:59:10 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-939170 ] check_yum - Check if YUM/RPM based system is up-to-date Message-ID: New Plugins item #939170, was opened at 2004-04-21 03:23 Message generated for change (Comment added) made by g_force You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: G. Krist (g_krist) Assigned to: Nobody/Anonymous (nobody) Summary: check_yum - Check if YUM/RPM based system is up-to-date Initial Comment: check_yum does a check to see if a system is up-to-date with all updates/patches. It's using the "yum check-update" command on either local host or remote hosts (using nrpe). It has 3 levels of return text: 1) Server is up-to-date (no updates available) 2) Server is NOT up-to-date, xxx packages etc (There are updates, will be a Criticical error) 3) Something wrong with yum etc etc (something is wrong with yum, will be a warning) IMHO there is no need for -w or -c parameters not even possible i think :D note: I would like to see some feedback, i'm already using it for like 10 servers, it worked oke here. We run it once a day. ---------------------------------------------------------------------- Comment By: Garry W. Cook (g_force) Date: 2004-08-04 13:58 Message: Logged In: YES user_id=197417 I might be able to help. Although my time is limited right now. I'll look at the plugin this week if I can. If I can work something out, either as a patch or a separate plugin, I'll let you know. ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-08-04 13:26 Message: Logged In: YES user_id=1025858 Oke seems I forgot something to tell. Indeed check_yum doesn't work correct. Why? nrpe remote can't run yum check-update because it needs root for that. The problem only occurs when there are new header files to be downloaded. I found a work-a-round for it (he it's better then playing with suid!). - open/create /etc/cron.hourly/yumupdatedb - put the following lines of text in it: #!/bin/sh /usr/bin/yum check-update - save file - make it +x (executable) This way it will work! @g_force I could make an apt one, but i don't have apt boxes laying around. You can help me with that? ---------------------------------------------------------------------- Comment By: Garry W. Cook (g_force) Date: 2004-08-04 12:25 Message: Logged In: YES user_id=197417 I can see a need for -w and -c. Perhaps I want to know when updated 'Frozen Bubble' packages are available, but don't need to update them right away. I might want to pass a list of such apps to the -w flag. However, when Apache or OpenSSH packages are out of date, I would want to generate a critical message, as there could be security issues on my server that need to be updated right away. So, these would be passed to the -c flag. Perhaps nothing would need to be passed to -w, only -c, anything not passed to -c would default to warning. Or perhaps both could be specified, and anything else would generate an unknown? Just some thoughts... I don't even use Yum. I would however be interested in seeing a similar plugin for APT. Is this available or in the works? I'm guessing that it wouldn't be too difficult to convert what you have for Yum, which I might tackle if I get some spare time and can't find an existing plugin. Perhaps you could make your plugin accept an argument to check Yum or APT, depending on user preferences? ---------------------------------------------------------------------- Comment By: Eric Gunnett (egunnett) Date: 2004-08-04 12:10 Message: Logged In: YES user_id=1039116 Have added this to 40 servers. Found that I have 2 RPMs to be updated and it is still saying that the servers are okay and have not updates? Did not see any flags to pass to the module. -Eric ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-05-08 01:46 Message: Logged In: YES user_id=1025858 Oke somehow check_yum was always reporting that there was 1 package to be updated (IF the system was not up2date ofcourse). I fixed that in this release. ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-04-21 09:20 Message: Logged In: YES user_id=1025858 0.3 is using the exit codes from yum now! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 From noreply at sourceforge.net Wed Aug 4 20:29:14 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 4 20:29:14 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-939170 ] check_yum - Check if YUM/RPM based system is up-to-date Message-ID: New Plugins item #939170, was opened at 2004-04-21 02:23 Message generated for change (Comment added) made by egunnett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: G. Krist (g_krist) Assigned to: Nobody/Anonymous (nobody) Summary: check_yum - Check if YUM/RPM based system is up-to-date Initial Comment: check_yum does a check to see if a system is up-to-date with all updates/patches. It's using the "yum check-update" command on either local host or remote hosts (using nrpe). It has 3 levels of return text: 1) Server is up-to-date (no updates available) 2) Server is NOT up-to-date, xxx packages etc (There are updates, will be a Criticical error) 3) Something wrong with yum etc etc (something is wrong with yum, will be a warning) IMHO there is no need for -w or -c parameters not even possible i think :D note: I would like to see some feedback, i'm already using it for like 10 servers, it worked oke here. We run it once a day. ---------------------------------------------------------------------- Comment By: Eric Gunnett (egunnett) Date: 2004-08-04 20:27 Message: Logged In: YES user_id=1039116 Yum only reports 1 package to update even if there is more then one. It looks like it is grepping for the Arch and some of the RPMs have the noarch flag. It looks like it is missing them. ---------------------------------------------------------------------- Comment By: Garry W. Cook (g_force) Date: 2004-08-04 12:58 Message: Logged In: YES user_id=197417 I might be able to help. Although my time is limited right now. I'll look at the plugin this week if I can. If I can work something out, either as a patch or a separate plugin, I'll let you know. ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-08-04 12:26 Message: Logged In: YES user_id=1025858 Oke seems I forgot something to tell. Indeed check_yum doesn't work correct. Why? nrpe remote can't run yum check-update because it needs root for that. The problem only occurs when there are new header files to be downloaded. I found a work-a-round for it (he it's better then playing with suid!). - open/create /etc/cron.hourly/yumupdatedb - put the following lines of text in it: #!/bin/sh /usr/bin/yum check-update - save file - make it +x (executable) This way it will work! @g_force I could make an apt one, but i don't have apt boxes laying around. You can help me with that? ---------------------------------------------------------------------- Comment By: Garry W. Cook (g_force) Date: 2004-08-04 11:25 Message: Logged In: YES user_id=197417 I can see a need for -w and -c. Perhaps I want to know when updated 'Frozen Bubble' packages are available, but don't need to update them right away. I might want to pass a list of such apps to the -w flag. However, when Apache or OpenSSH packages are out of date, I would want to generate a critical message, as there could be security issues on my server that need to be updated right away. So, these would be passed to the -c flag. Perhaps nothing would need to be passed to -w, only -c, anything not passed to -c would default to warning. Or perhaps both could be specified, and anything else would generate an unknown? Just some thoughts... I don't even use Yum. I would however be interested in seeing a similar plugin for APT. Is this available or in the works? I'm guessing that it wouldn't be too difficult to convert what you have for Yum, which I might tackle if I get some spare time and can't find an existing plugin. Perhaps you could make your plugin accept an argument to check Yum or APT, depending on user preferences? ---------------------------------------------------------------------- Comment By: Eric Gunnett (egunnett) Date: 2004-08-04 11:10 Message: Logged In: YES user_id=1039116 Have added this to 40 servers. Found that I have 2 RPMs to be updated and it is still saying that the servers are okay and have not updates? Did not see any flags to pass to the module. -Eric ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-05-08 00:46 Message: Logged In: YES user_id=1025858 Oke somehow check_yum was always reporting that there was 1 package to be updated (IF the system was not up2date ofcourse). I fixed that in this release. ---------------------------------------------------------------------- Comment By: G. Krist (g_krist) Date: 2004-04-21 08:20 Message: Logged In: YES user_id=1025858 0.3 is using the exit codes from yum now! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=939170&group_id=29880 From noreply at sourceforge.net Thu Aug 5 12:57:16 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Aug 5 12:57:16 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-714625 ] new plugin: checking Compaq Smart Array Controllers Message-ID: New Plugins item #714625, was opened at 2003-04-03 06:16 Message generated for change (Comment added) made by egunnett You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=714625&group_id=29880 Category: System monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Guenther Mair (gunnyst) Assigned to: Nobody/Anonymous (nobody) Summary: new plugin: checking Compaq Smart Array Controllers Initial Comment: this plugin checks status from various older Compaq Smart Array Controllers - most of them still in use today most of this work is based on the source from cpqarrad- 1.3 by Hugo Trippaers it will be most usefull togehter with check_nrpe I'm looking for someone with knowledge about newer Smart Array Controllers and eventually some details about HP/Compaq's "health driver" - this would be a real fine thing to have integrated without "blind" snmp binaries ---------------------------------------------------------------------- Comment By: Eric Gunnett (egunnett) Date: 2004-08-05 12:56 Message: Logged In: YES user_id=1039116 I am actually going to start a module for the CPQ Wellness Drivers and such, through SNMP if possible. They store all the information in the /proc directory for their monitoring agents. Well, I will let you know how it goes. ---------------------------------------------------------------------- Comment By: Guenther Mair (gunnyst) Date: 2004-06-23 23:05 Message: Logged In: YES user_id=748821 hi recentcoin correct, Compaq has their own agents, but they expect you to install lot's of different agents and tolls and snmp and so on which (at least I do think so) noone needs nor want's what I'm looking for is something really small (at the best 100- 200 kb) which connect's to the SA hardware through the cciss interface; if it can do more like reading information about cpu and fan states, that would be fine but not required compaq/hp agents also pretend you to install redhat/suse servers which is quite a limited choice and even if it works i'm not so pleased with doing workarounds to have it running on debian ---------------------------------------------------------------------- Comment By: recentcoin (recentcoin) Date: 2004-06-23 17:15 Message: Logged In: YES user_id=992761 I know that compaq installes their own agent (SmartStart stuff) and their own MIBS in order to do the health checks on the drives and the controller. I have the Compaq MIB's if that will be of any assistance to you. I also have a lot of Sun, Cisco, etc. MIBS if anyone here needs them to aid in driver development. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=714625&group_id=29880 From jhmartin at toger.us Thu Aug 5 16:08:02 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu Aug 5 16:08:02 2004 Subject: [Nagiosplug-devel] check_http & certificates Message-ID: <20040805230724.GX32547@zippy.toger.us> Just a little usability point, but when check_http is invoked with -C (check certificate) it should imply --ssl. -Jason Martin -- Any philosophy that can be put in a nutshell belongs there This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From noreply at sourceforge.net Thu Aug 5 17:29:29 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Aug 5 17:29:29 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1004285 ] New plugin for checking smb mounts Message-ID: Patches item #1004285, was opened at 2004-08-06 00:27 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=1004285&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ethan Galstad (egalstad) Assigned to: Nobody/Anonymous (nobody) Summary: New plugin for checking smb mounts Initial Comment: This plugin was submitted by Christian Dettendorfer for checking the availability of Windows shares. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1004285&group_id=29880 From julien.touche at lycos.com Sun Aug 8 09:04:14 2004 From: julien.touche at lycos.com (Julien TOUCHE) Date: Sun Aug 8 09:04:14 2004 Subject: [Nagiosplug-devel] nagios-plugins + perfdata Message-ID: <41153315.4010304@lycos.com> i have a small question concerning the default plugins of nagios. it seems they didn't issue the perfdata like shown in http://nagios.sourceforge.net/docs/1_0/perfdata.html in the source plugins dir, plugins$ grep -rin percent_packet_loss * plugins$ grep -rin perfdata * plugins$ is that right ? if it is, is there any plan to change this ? (or maybe integrate graph directly in nagios ?) what is the situation of other plugins ? (nrpe, nsclient, ...) thanks Regards Julien note: please cc. i'm not on list From GWCOOK at mactec.com Mon Aug 9 06:53:00 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Mon Aug 9 06:53:00 2004 Subject: [Nagiosplug-devel] nagios-plugins + perfdata Message-ID: <41FD7929498A174DAB86C45F28E0EC0D6E976F@golden-m.mactec.com> nagiosplug-devel-admin at lists.sourceforge.net wrote: > i have a small question concerning the default plugins of nagios. it > seems they didn't issue the perfdata like shown in > http://nagios.sourceforge.net/docs/1_0/perfdata.html > > in the source plugins dir, > plugins$ grep -rin percent_packet_loss * > plugins$ grep -rin perfdata * > plugins$ > > is that right ? Not all of the plugins currently support Performance Data. To get the maximum number of perfdata supporting plugins, you should use the latest CVS version, available from the Nagios Plugin page on SourceForge. > if it is, is there any plan to change this ? (or maybe integrate > graph directly in nagios ?) what is the situation of other plugins ? > (nrpe, nsclient, ...) To my knowledge, there are only two add-ons that will graph data within Nagios. These are APAN and PerfParse. PerfParse uses the performance data returned by the plugins, while APAN uses another method. Links to both of these add-ons can be found from the Add-On section of the Nagios web site. > thanks > Regards > > Julien > > note: please cc. i'm not on list Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) From noreply at sourceforge.net Tue Aug 10 09:22:02 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Aug 10 09:22:02 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-948667 ] check_procs under HP-UX does not see command arguments Message-ID: Bugs item #948667, was opened at 2004-05-05 10:16 Message generated for change (Comment added) made by jhmartin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 Category: Argument proccessing Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Mark Plaksin (happyzi) Assigned to: Ton Voon (tonvoon) Summary: check_procs under HP-UX does not see command arguments Initial Comment: The ps command used by check_procs on HP-UX does not show command arguments. So it can't be used to search for things like "man ascii". I think this is true for all versions of check_procs. I've specifically tried 1.3.1 and CVS HEAD under HP-UX 11.00. I suspect it's the same on all versions of HP-UX. configure picks '/usr/bin/ps -el' as the ps command. If this is changed to: /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' and PS_FORMAT is "%s %s %s %n%s" and PS_VARLIST is procstat,&procuid,&procppid,&pos,procprog then it works. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 08:21 Message: Logged In: YES user_id=589094 The CVS HEAD configure.in uses ps -el as the ps command for HP-UX, and that command only returns up to 15 characters of the command name and excludes all arguments. ps -ef returns up to 64 characters of the combination of command name and arguments. Head -2 of ps -ef returns UID PID PPID C STIME TTY TIME COMMAND root 625 624 0 Jun 17 ? 6:11 /usr/sbin/netfmt - C -F -f /var/adm/nettl.LOG000 -c /var/adm/con Head -3 of the UNIX95 syntax above returns $ /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' S UID PPID COMMAND R 198 3023 /usr/bin/ps -eo state,uid,ppid,args S 96 1 vmstat -S 300 2 This is true on the following versions of HPUX: HP-UX hostname B.11.11 U 9000/800 1651319313 unlimited- user license HP-UX localhost B.10.20 E 9000/800 882327441 8-user license ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 13:00 Message: Logged In: YES user_id=664364 What do you suggest? It should be something like: ps -eo 's uid ppid vsz rss pcpu comm args' to get all the required information. Will need a head -2 output. ---------------------------------------------------------------------- Comment By: Mark Plaksin (happyzi) Date: 2004-05-05 11:54 Message: Logged In: YES user_id=115461 Thanks for the quick response :) The recent change doesn't do the trick. I tested with today's CVS. We run multiple PeopleSoft instances on a single machine. We want per-instance process checking and the only way to tell which instance a process is for is by looking at the arguments to the command. For example, there is one PSQRYSRV process for earch instance. They show up in the process table like "PSQRYSRV -C dom=INSTANCE_NAME". ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 11:42 Message: Logged In: YES user_id=664364 Mark, CVS HEAD was recently changed for HP-UX (configure output should show HP-UX as the ps syntax). Does this work? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 From noreply at sourceforge.net Tue Aug 10 11:01:13 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Aug 10 11:01:13 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-948667 ] check_procs under HP-UX does not see command arguments Message-ID: Bugs item #948667, was opened at 2004-05-05 13:16 Message generated for change (Comment added) made by tracyorf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 Category: Argument proccessing Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Mark Plaksin (happyzi) Assigned to: Ton Voon (tonvoon) Summary: check_procs under HP-UX does not see command arguments Initial Comment: The ps command used by check_procs on HP-UX does not show command arguments. So it can't be used to search for things like "man ascii". I think this is true for all versions of check_procs. I've specifically tried 1.3.1 and CVS HEAD under HP-UX 11.00. I suspect it's the same on all versions of HP-UX. configure picks '/usr/bin/ps -el' as the ps command. If this is changed to: /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' and PS_FORMAT is "%s %s %s %n%s" and PS_VARLIST is procstat,&procuid,&procppid,&pos,procprog then it works. ---------------------------------------------------------------------- Comment By: Tracy Orf (tracyorf) Date: 2004-08-10 13:00 Message: Logged In: YES user_id=557175 ps -ex in HP-UX will show the command line in extended format. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 11:21 Message: Logged In: YES user_id=589094 The CVS HEAD configure.in uses ps -el as the ps command for HP-UX, and that command only returns up to 15 characters of the command name and excludes all arguments. ps -ef returns up to 64 characters of the combination of command name and arguments. Head -2 of ps -ef returns UID PID PPID C STIME TTY TIME COMMAND root 625 624 0 Jun 17 ? 6:11 /usr/sbin/netfmt - C -F -f /var/adm/nettl.LOG000 -c /var/adm/con Head -3 of the UNIX95 syntax above returns $ /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' S UID PPID COMMAND R 198 3023 /usr/bin/ps -eo state,uid,ppid,args S 96 1 vmstat -S 300 2 This is true on the following versions of HPUX: HP-UX hostname B.11.11 U 9000/800 1651319313 unlimited- user license HP-UX localhost B.10.20 E 9000/800 882327441 8-user license ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 16:00 Message: Logged In: YES user_id=664364 What do you suggest? It should be something like: ps -eo 's uid ppid vsz rss pcpu comm args' to get all the required information. Will need a head -2 output. ---------------------------------------------------------------------- Comment By: Mark Plaksin (happyzi) Date: 2004-05-05 14:54 Message: Logged In: YES user_id=115461 Thanks for the quick response :) The recent change doesn't do the trick. I tested with today's CVS. We run multiple PeopleSoft instances on a single machine. We want per-instance process checking and the only way to tell which instance a process is for is by looking at the arguments to the command. For example, there is one PSQRYSRV process for earch instance. They show up in the process table like "PSQRYSRV -C dom=INSTANCE_NAME". ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 14:42 Message: Logged In: YES user_id=664364 Mark, CVS HEAD was recently changed for HP-UX (configure output should show HP-UX as the ps syntax). Does this work? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 From noreply at sourceforge.net Tue Aug 10 11:44:02 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Aug 10 11:44:02 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1006777 ] Add slave check to check_mysql Message-ID: Patches item #1006777, was opened at 2004-08-10 11:43 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=1006777&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nathan Shafer (nicodemus) Assigned to: Nobody/Anonymous (nobody) Summary: Add slave check to check_mysql Initial Comment: This patch adds a new option to the check_mysql plugin (-S) that will check the slave status by issuing the command "show slave status'. Additional permissions are required for the user that check_mysql connects as. For MySQL 4.x, the permissions 'usage' and 'super' are required. For MySQL 3.23.x, the permissions 'usage' and 'process' are required. This patch should apply against nagios-plugins-1.4.0alpha1 and the latest version in CVS as of 2004-08-10. Thanks, Nathan Shafer ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1006777&group_id=29880 From noreply at sourceforge.net Tue Aug 10 11:47:04 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Aug 10 11:47:04 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1006780 ] New SNMP check plugins for disk, load and procs Message-ID: New Plugins item #1006780, was opened at 2004-08-10 11:46 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=1006780&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nathan Shafer (nicodemus) Assigned to: Nobody/Anonymous (nobody) Summary: New SNMP check plugins for disk, load and procs Initial Comment: These are a few plugins we wrote to do system checks through SNMP. Yes, there are quite a few other snmp plugins, but none of them met our requirements. These plugins are designed to match the functionality and output of the existing non-snmp plugins that come with the base nagios-plugins package. check_snmp_disk.pl This plugin checks the disk space of any number of disks through SNMP. It allows you to specify warning and critical thresholds as either kilobytes of disk space, or percentages. It also allows you to specify exactly which disks you want to check with inclusion and exclusion filters. This plugin has only been tested to work with the Net-SNMP and UCD-SNMP packages. check_snmp_load.pl This plugin checks the load averages of the remote machine through SNMP. It allows you to specify warning and critical levels for the 1 minute, 5 minute, and 15 minute averages. check_snmp_procs.pl Checks if any number of given processes are running on the remote host. It allows you to specify the proc name (with regex support) and the warn and critical ranges (min and max) for each process. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1006780&group_id=29880 From noreply at sourceforge.net Tue Aug 10 12:34:06 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Aug 10 12:34:06 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-948667 ] check_procs under HP-UX does not see command arguments Message-ID: Bugs item #948667, was opened at 2004-05-05 10:16 Message generated for change (Comment added) made by jhmartin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 Category: Argument proccessing Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Mark Plaksin (happyzi) Assigned to: Ton Voon (tonvoon) Summary: check_procs under HP-UX does not see command arguments Initial Comment: The ps command used by check_procs on HP-UX does not show command arguments. So it can't be used to search for things like "man ascii". I think this is true for all versions of check_procs. I've specifically tried 1.3.1 and CVS HEAD under HP-UX 11.00. I suspect it's the same on all versions of HP-UX. configure picks '/usr/bin/ps -el' as the ps command. If this is changed to: /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' and PS_FORMAT is "%s %s %s %n%s" and PS_VARLIST is procstat,&procuid,&procppid,&pos,procprog then it works. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 11:33 Message: Logged In: YES user_id=589094 ps -ex gives me a syntax error on both 10.20 and 11i. ps ex returns just processes owned by the current user. ---------------------------------------------------------------------- Comment By: Tracy Orf (tracyorf) Date: 2004-08-10 10:00 Message: Logged In: YES user_id=557175 ps -ex in HP-UX will show the command line in extended format. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 08:21 Message: Logged In: YES user_id=589094 The CVS HEAD configure.in uses ps -el as the ps command for HP-UX, and that command only returns up to 15 characters of the command name and excludes all arguments. ps -ef returns up to 64 characters of the combination of command name and arguments. Head -2 of ps -ef returns UID PID PPID C STIME TTY TIME COMMAND root 625 624 0 Jun 17 ? 6:11 /usr/sbin/netfmt - C -F -f /var/adm/nettl.LOG000 -c /var/adm/con Head -3 of the UNIX95 syntax above returns $ /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' S UID PPID COMMAND R 198 3023 /usr/bin/ps -eo state,uid,ppid,args S 96 1 vmstat -S 300 2 This is true on the following versions of HPUX: HP-UX hostname B.11.11 U 9000/800 1651319313 unlimited- user license HP-UX localhost B.10.20 E 9000/800 882327441 8-user license ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 13:00 Message: Logged In: YES user_id=664364 What do you suggest? It should be something like: ps -eo 's uid ppid vsz rss pcpu comm args' to get all the required information. Will need a head -2 output. ---------------------------------------------------------------------- Comment By: Mark Plaksin (happyzi) Date: 2004-05-05 11:54 Message: Logged In: YES user_id=115461 Thanks for the quick response :) The recent change doesn't do the trick. I tested with today's CVS. We run multiple PeopleSoft instances on a single machine. We want per-instance process checking and the only way to tell which instance a process is for is by looking at the arguments to the command. For example, there is one PSQRYSRV process for earch instance. They show up in the process table like "PSQRYSRV -C dom=INSTANCE_NAME". ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 11:42 Message: Logged In: YES user_id=664364 Mark, CVS HEAD was recently changed for HP-UX (configure output should show HP-UX as the ps syntax). Does this work? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 From noreply at sourceforge.net Tue Aug 10 12:37:10 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Aug 10 12:37:10 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-948667 ] check_procs under HP-UX does not see command arguments Message-ID: Bugs item #948667, was opened at 2004-05-05 10:16 Message generated for change (Comment added) made by jhmartin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 Category: Argument proccessing Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Mark Plaksin (happyzi) Assigned to: Ton Voon (tonvoon) Summary: check_procs under HP-UX does not see command arguments Initial Comment: The ps command used by check_procs on HP-UX does not show command arguments. So it can't be used to search for things like "man ascii". I think this is true for all versions of check_procs. I've specifically tried 1.3.1 and CVS HEAD under HP-UX 11.00. I suspect it's the same on all versions of HP-UX. configure picks '/usr/bin/ps -el' as the ps command. If this is changed to: /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' and PS_FORMAT is "%s %s %s %n%s" and PS_VARLIST is procstat,&procuid,&procppid,&pos,procprog then it works. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 11:36 Message: Logged In: YES user_id=589094 ps -ex gives me a syntax error on both 10.20 and 11i. ps ex returns just processes owned by the current user. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 11:33 Message: Logged In: YES user_id=589094 ps -ex gives me a syntax error on both 10.20 and 11i. ps ex returns just processes owned by the current user. ---------------------------------------------------------------------- Comment By: Tracy Orf (tracyorf) Date: 2004-08-10 10:00 Message: Logged In: YES user_id=557175 ps -ex in HP-UX will show the command line in extended format. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 08:21 Message: Logged In: YES user_id=589094 The CVS HEAD configure.in uses ps -el as the ps command for HP-UX, and that command only returns up to 15 characters of the command name and excludes all arguments. ps -ef returns up to 64 characters of the combination of command name and arguments. Head -2 of ps -ef returns UID PID PPID C STIME TTY TIME COMMAND root 625 624 0 Jun 17 ? 6:11 /usr/sbin/netfmt - C -F -f /var/adm/nettl.LOG000 -c /var/adm/con Head -3 of the UNIX95 syntax above returns $ /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' S UID PPID COMMAND R 198 3023 /usr/bin/ps -eo state,uid,ppid,args S 96 1 vmstat -S 300 2 This is true on the following versions of HPUX: HP-UX hostname B.11.11 U 9000/800 1651319313 unlimited- user license HP-UX localhost B.10.20 E 9000/800 882327441 8-user license ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 13:00 Message: Logged In: YES user_id=664364 What do you suggest? It should be something like: ps -eo 's uid ppid vsz rss pcpu comm args' to get all the required information. Will need a head -2 output. ---------------------------------------------------------------------- Comment By: Mark Plaksin (happyzi) Date: 2004-05-05 11:54 Message: Logged In: YES user_id=115461 Thanks for the quick response :) The recent change doesn't do the trick. I tested with today's CVS. We run multiple PeopleSoft instances on a single machine. We want per-instance process checking and the only way to tell which instance a process is for is by looking at the arguments to the command. For example, there is one PSQRYSRV process for earch instance. They show up in the process table like "PSQRYSRV -C dom=INSTANCE_NAME". ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 11:42 Message: Logged In: YES user_id=664364 Mark, CVS HEAD was recently changed for HP-UX (configure output should show HP-UX as the ps syntax). Does this work? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 From noreply at sourceforge.net Wed Aug 11 01:43:08 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 11 01:43:08 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-583042 ] cpu and memory checker Message-ID: Feature Requests item #583042, was opened at 2002-07-18 04:14 Message generated for change (Comment added) made by digitalnerve You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=583042&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: Fred Im (fim32) Assigned to: Nobody/Anonymous (nobody) Summary: cpu and memory checker Initial Comment: don't know if this is useful, or if anyone else is interested in these, but i've got these reliable reporting cpu and memory statistics for solaris, hpux, tru64, and linux. caveat: these are shell scripts, not too slow tho... i'm tempted to report multi processor statistics, but i can only find system tools for solaris... fred ---------------------------------------------------------------------- Comment By: digitalnerve (digitalnerve) Date: 2004-08-11 16:42 Message: Logged In: YES user_id=1101792 can this cpu and memory checker check remote host's cpu and memory ? Does it allow -h on the command ? Anybody know where I can find check cpu and memory and log file of a host ? I am using netsaint-statd on the remote hosts. Can anybody help ? digitalnerve at hotvoice.com ---------------------------------------------------------------------- Comment By: Fred Im (fim32) Date: 2002-07-20 04:44 Message: Logged In: YES user_id=577259 cripes, i uploaded the wrong file... in any case, version numbers are more accurate in the latest tgz, also, uses utils.sh in libexec directory to get return values. ---------------------------------------------------------------------- Comment By: Fred Im (fim32) Date: 2002-07-20 04:06 Message: Logged In: YES user_id=577259 uh, bugs found, fixed ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=583042&group_id=29880 From noreply at sourceforge.net Wed Aug 11 04:59:02 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 11 04:59:02 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-997991 ] check pop3 server Message-ID: New Plugins item #997991, was opened at 2004-07-26 13:56 Message generated for change (Comment added) made by kosli You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=997991&group_id=29880 Category: C plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Seamus Dean (seamusdean) Assigned to: Nobody/Anonymous (nobody) Summary: check pop3 server Initial Comment: check_pop3.c is a nagios plugin that check a pop3 server. You can specify a username and password to this plugin,It will using the username and password to login to the pop3 server and see if the server is ok or dead. ---------------------------------------------------------------------- Comment By: KoS (kosli) Date: 2004-08-11 13:57 Message: Logged In: YES user_id=42372 i've made a perl plugin that checks pop3 AND pop3 with SSL: it uses the Mail::POP3Client for the connection cat check_pop3.pl #!/usr/bin/perl # POP3/POP3s check script for nagios use Mail::POP3Client; $host = $ARGV[0]; $user = $ARGV[1]; $password = $ARGV[2]; $usessl = $ARGV[3]; if ($#ARGV != 3) { print "Usage: check_pop3.pl HOST USER PASS USESSL\n"; exit 1; } #print substr($usessl,0,4); if ($usessl eq "true") { $proto = "POP3s"; $pop = new Mail::POP3Client( USER => "$user", PASSWORD => "$password", HOST => "$host", USESSL => true ); }else{ $proto = "POP3"; $pop = new Mail::POP3Client( USER => "$user", PASSWORD => "$password", HOST => "$host"); } $count = $pop->Count(); if ($count == -1 ) { print "$proto CRITICAL [User: $user]\n"; $pop->Close(); exit 2; }else{ print "$proto OK [$count Messages at $user]\n"; $pop->Close(); exit 0; } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=997991&group_id=29880 From awang at qrs.com Wed Aug 11 16:07:04 2004 From: awang at qrs.com (Arnold Wang) Date: Wed Aug 11 16:07:04 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDA683DB@RCAX2003P02.qrs.com> I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and received the following error messages: gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. I searched the list and run into the following message, however I couldn't find the patch anywhere. Can someone kind enough to tell me where the patch is? It looks should fix my problem. >From: Eric Lauriault > aix 5.2 patch for nagios-plugins-1.4.0alpha1 >2004-05-27 13:03 > Hi, > Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > due to misplacement of a VA_COPY and an infinite loop while in > read_filesystem_list. > Enjoy! > Eric Lauriault, eric at la... > Analyste/Administrateur UNIX/telecom/reseau > La Cite collegiale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 146 bytes Desc: not available URL: From hmann at itgroundwork.com Wed Aug 11 16:15:07 2004 From: hmann at itgroundwork.com (Harper Mann) Date: Wed Aug 11 16:15:07 2004 Subject: [Nagiosplug-devel] (no subject) In-Reply-To: <8E889810A443434E80FC2373A39BBAEDA683DB@RCAX2003P02.qrs.com> Message-ID: <20040811231446.C25D560801C@mail2.itgroundwork.com> Are you using gmake (Gnu make)? - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:06 PM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] (no subject) I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and received the following error messages: gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. I searched the list and run into the following message, however I couldn't find the patch anywhere. Can someone kind enough to tell me where the patch is? It looks should fix my problem. >From: Eric Lauriault > aix 5.2 patch for nagios-plugins-1.4.0alpha1 >2004-05-27 13:03 > Hi, > Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > due to misplacement of a VA_COPY and an infinite loop while in > read_filesystem_list. > Enjoy! > Eric Lauriault, eric at la... > Analyste/Administrateur UNIX/telecom/reseau > La Cite collegiale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 146 bytes Desc: not available URL: From awang at qrs.com Wed Aug 11 16:17:06 2004 From: awang at qrs.com (Arnold Wang) Date: Wed Aug 11 16:17:06 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDA683E7@RCAX2003P02.qrs.com> I'm not. I'm using the AIX make utility. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:15 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Are you using gmake (Gnu make)? - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:06 PM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] (no subject) I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and received the following error messages: gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. I searched the list and run into the following message, however I couldn't find the patch anywhere. Can someone kind enough to tell me where the patch is? It looks should fix my problem. >From: Eric Lauriault > aix 5.2 patch for nagios-plugins-1.4.0alpha1 >2004-05-27 13:03 > Hi, > Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > due to misplacement of a VA_COPY and an infinite loop while in > read_filesystem_list. > Enjoy! > Eric Lauriault, eric at la... > Analyste/Administrateur UNIX/telecom/reseau > La Cite collegiale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 146 bytes Desc: not available URL: From hmann at itgroundwork.com Wed Aug 11 16:22:07 2004 From: hmann at itgroundwork.com (Harper Mann) Date: Wed Aug 11 16:22:07 2004 Subject: [Nagiosplug-devel] (no subject) In-Reply-To: <8E889810A443434E80FC2373A39BBAEDA683E7@RCAX2003P02.qrs.com> Message-ID: <20040811232131.90A2760801C@mail2.itgroundwork.com> Hi Arnold, That could be the issue. Suggest installing a gmake AIX package or downloading and compiling gmake. ./configure should find gmake in /usr/local if installed by default. If not, redefine your path so you pick up gmake first. You should run make distclean before re-running ./configure. Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:17 PM To: hmann at itgroundwork.com; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) I'm not. I'm using the AIX make utility. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:15 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Are you using gmake (Gnu make)? - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:06 PM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] (no subject) I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and received the following error messages: gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. I searched the list and run into the following message, however I couldn't find the patch anywhere. Can someone kind enough to tell me where the patch is? It looks should fix my problem. >From: Eric Lauriault > aix 5.2 patch for nagios-plugins-1.4.0alpha1 >2004-05-27 13:03 > Hi, > Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > due to misplacement of a VA_COPY and an infinite loop while in > read_filesystem_list. > Enjoy! > Eric Lauriault, eric at la... > Analyste/Administrateur UNIX/telecom/reseau > La Cite collegiale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 146 bytes Desc: not available URL: From awang at qrs.com Wed Aug 11 16:30:10 2004 From: awang at qrs.com (Arnold Wang) Date: Wed Aug 11 16:30:10 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDA683FA@RCAX2003P02.qrs.com> Thanks for your help. I tried and still having the same problem. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:21 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Hi Arnold, That could be the issue. Suggest installing a gmake AIX package or downloading and compiling gmake. ./configure should find gmake in /usr/local if installed by default. If not, redefine your path so you pick up gmake first. You should run make distclean before re-running ./configure. Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:17 PM To: hmann at itgroundwork.com; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) I'm not. I'm using the AIX make utility. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:15 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Are you using gmake (Gnu make)? - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:06 PM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] (no subject) I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and received the following error messages: gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. I searched the list and run into the following message, however I couldn't find the patch anywhere. Can someone kind enough to tell me where the patch is? It looks should fix my problem. >From: Eric Lauriault > aix 5.2 patch for nagios-plugins-1.4.0alpha1 >2004-05-27 13:03 > Hi, > Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > due to misplacement of a VA_COPY and an infinite loop while in > read_filesystem_list. > Enjoy! > Eric Lauriault, eric at la... > Analyste/Administrateur UNIX/telecom/reseau > La Cite collegiale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 146 bytes Desc: not available URL: From brazil at sendmail.com Wed Aug 11 16:42:05 2004 From: brazil at sendmail.com (Tim Brazil) Date: Wed Aug 11 16:42:05 2004 Subject: [Nagiosplug-devel] (no subject) In-Reply-To: <8E889810A443434E80FC2373A39BBAEDA683DB@RCAX2003P02.qrs.com> References: <8E889810A443434E80FC2373A39BBAEDA683DB@RCAX2003P02.qrs.com> Message-ID: <411AAEA3.6080909@sendmail.com> Someone else is also experiencing the same problem http://article.gmane.org/gmane.network.nagios.plugins.devel/1180 According to this is may be a gcc problem. Which compiler are you using? http://lists.gnu.org/archive/html/bug-gnu-utils/2003-06/msg00404.html Arnold Wang wrote: > I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and > received the following error messages: > > gcc -g -O2 -L. -o check_disk check_disk.o utils.o > ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv > > ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain > > ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain > > ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext > > ld: 0711-317 ERROR: Undefined symbol: .VA_COPY > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > > collect2: ld returned 8 exit status > > make: 1254-004 The error code from the last command is 1. > > Stop. > > make: 1254-004 The error code from the last command is 1. > > Stop. > > make: 1254-004 The error code from the last command is 2. > > Stop. > > I searched the list and run into the following message, however I > couldn?t find the patch anywhere. Can someone kind enough to tell me > where the patch is? It looks should fix my problem. > >>From: Eric Lauriault >>aix 5.2 patch for nagios-plugins-1.4.0alpha1 > >>2004-05-27 13:03 > > > > > > > >> Hi, > > > >> Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > >> due to misplacement of a VA_COPY and an infinite loop while in > >> read_filesystem_list. > > > >> Enjoy! > > > > > > > >> Eric Lauriault, eric at la... > >> Analyste/Administrateur UNIX/telecom/reseau > >> La Cite collegiale > > > > > ------------------------------------------------------------------------ > From awang at qrs.com Wed Aug 11 16:45:01 2004 From: awang at qrs.com (Arnold Wang) Date: Wed Aug 11 16:45:01 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDA68416@RCAX2003P02.qrs.com> I'm using gcc. # gcc -v Reading specs from /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/specs gcc version 2.9-aix51-020209 # -----Original Message----- From: Tim Brazil [mailto:brazil at sendmail.com] Sent: Wednesday, August 11, 2004 4:41 PM To: Arnold Wang Cc: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] (no subject) Someone else is also experiencing the same problem http://article.gmane.org/gmane.network.nagios.plugins.devel/1180 According to this is may be a gcc problem. Which compiler are you using? http://lists.gnu.org/archive/html/bug-gnu-utils/2003-06/msg00404.html Arnold Wang wrote: > I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and > received the following error messages: > > gcc -g -O2 -L. -o check_disk check_disk.o utils.o > ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv > > ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain > > ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain > > ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext > > ld: 0711-317 ERROR: Undefined symbol: .VA_COPY > > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > information. > > collect2: ld returned 8 exit status > > make: 1254-004 The error code from the last command is 1. > > Stop. > > make: 1254-004 The error code from the last command is 1. > > Stop. > > make: 1254-004 The error code from the last command is 2. > > Stop. > > I searched the list and run into the following message, however I > couldn't find the patch anywhere. Can someone kind enough to tell me > where the patch is? It looks should fix my problem. > >>From: Eric Lauriault >>aix 5.2 patch for nagios-plugins-1.4.0alpha1 > >>2004-05-27 13:03 > > > > > > > >> Hi, > > > >> Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > >> due to misplacement of a VA_COPY and an infinite loop while in > >> read_filesystem_list. > > > >> Enjoy! > > > > > > > >> Eric Lauriault, eric at la... > >> Analyste/Administrateur UNIX/telecom/reseau > >> La Cite collegiale > > > > > ------------------------------------------------------------------------ > From hmann at itgroundwork.com Wed Aug 11 16:52:02 2004 From: hmann at itgroundwork.com (Harper Mann) Date: Wed Aug 11 16:52:02 2004 Subject: [Nagiosplug-devel] (no subject) In-Reply-To: <8E889810A443434E80FC2373A39BBAEDA683FA@RCAX2003P02.qrs.com> Message-ID: <20040811235146.3A1E960801C@mail2.itgroundwork.com> You might try "make distclean" or "make clean" if distclean is not found, then re-run configure and then make. - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: Arnold Wang [mailto:awang at qrs.com] Sent: Wednesday, August 11, 2004 4:29 PM To: hmann at itgroundwork.com; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Thanks for your help. I tried and still having the same problem. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:21 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Hi Arnold, That could be the issue. Suggest installing a gmake AIX package or downloading and compiling gmake. ./configure should find gmake in /usr/local if installed by default. If not, redefine your path so you pick up gmake first. You should run make distclean before re-running ./configure. Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:17 PM To: hmann at itgroundwork.com; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) I'm not. I'm using the AIX make utility. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:15 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Are you using gmake (Gnu make)? - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:06 PM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] (no subject) I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and received the following error messages: gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. I searched the list and run into the following message, however I couldn't find the patch anywhere. Can someone kind enough to tell me where the patch is? It looks should fix my problem. >From: Eric Lauriault > aix 5.2 patch for nagios-plugins-1.4.0alpha1 >2004-05-27 13:03 > Hi, > Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > due to misplacement of a VA_COPY and an infinite loop while in > read_filesystem_list. > Enjoy! > Eric Lauriault, eric at la... > Analyste/Administrateur UNIX/telecom/reseau > La Cite collegiale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 146 bytes Desc: not available URL: From awang at qrs.com Wed Aug 11 16:55:00 2004 From: awang at qrs.com (Arnold Wang) Date: Wed Aug 11 16:55:00 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDA6841D@RCAX2003P02.qrs.com> I did "make distclean" and re-configure before I run gmake. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:52 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) You might try "make distclean" or "make clean" if distclean is not found, then re-run configure and then make. - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: Arnold Wang [mailto:awang at qrs.com] Sent: Wednesday, August 11, 2004 4:29 PM To: hmann at itgroundwork.com; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Thanks for your help. I tried and still having the same problem. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:21 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Hi Arnold, That could be the issue. Suggest installing a gmake AIX package or downloading and compiling gmake. ./configure should find gmake in /usr/local if installed by default. If not, redefine your path so you pick up gmake first. You should run make distclean before re-running ./configure. Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:17 PM To: hmann at itgroundwork.com; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) I'm not. I'm using the AIX make utility. _____ From: Harper Mann [mailto:hmann at itgroundwork.com] Sent: Wednesday, August 11, 2004 4:15 PM To: Arnold Wang; nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Are you using gmake (Gnu make)? - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) _____ From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Arnold Wang Sent: Wednesday, August 11, 2004 4:06 PM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] (no subject) I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and received the following error messages: gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. I searched the list and run into the following message, however I couldn't find the patch anywhere. Can someone kind enough to tell me where the patch is? It looks should fix my problem. >From: Eric Lauriault > aix 5.2 patch for nagios-plugins-1.4.0alpha1 >2004-05-27 13:03 > Hi, > Here"s a small patch I wrote for aix 5.2. It fixes compilation issues > due to misplacement of a VA_COPY and an infinite loop while in > read_filesystem_list. > Enjoy! > Eric Lauriault, eric at la... > Analyste/Administrateur UNIX/telecom/reseau > La Cite collegiale -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 146 bytes Desc: not available URL: From brazil at sendmail.com Wed Aug 11 17:00:11 2004 From: brazil at sendmail.com (Tim Brazil) Date: Wed Aug 11 17:00:11 2004 Subject: [Nagiosplug-devel] (no subject) In-Reply-To: <8E889810A443434E80FC2373A39BBAEDA68416@RCAX2003P02.qrs.com> References: <8E889810A443434E80FC2373A39BBAEDA68416@RCAX2003P02.qrs.com> Message-ID: <411AB2ED.2000606@sendmail.com> According to the info I sent previous, it's fixed in gcc-3.0. DISCLAIMER, this is info I gleaned from the internet ;) "This is gcc's bug, and fixed at 01-05-25. gcc-2.95.3 don't contains this fix, but gcc-3.0 contains this fix." Arnold Wang wrote: >I'm using gcc. ># gcc -v >Reading specs from >/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/specs >gcc version 2.9-aix51-020209 ># > >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Wednesday, August 11, 2004 4:41 PM >To: Arnold Wang >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: Re: [Nagiosplug-devel] (no subject) > > >Someone else is also experiencing the same problem > >http://article.gmane.org/gmane.network.nagios.plugins.devel/1180 > >According to this is may be a gcc problem. Which compiler are you using? > >http://lists.gnu.org/archive/html/bug-gnu-utils/2003-06/msg00404.html > > >Arnold Wang wrote: > > > >>I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and >>received the following error messages: >> >>gcc -g -O2 -L. -o check_disk check_disk.o utils.o >>../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext >> >>ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >> >>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >>information. >> >>collect2: ld returned 8 exit status >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 2. >> >>Stop. >> >>I searched the list and run into the following message, however I >>couldn't find the patch anywhere. Can someone kind enough to tell me >>where the patch is? It looks should fix my problem. >> >> >> >>>From: Eric Lauriault >>>aix 5.2 patch for nagios-plugins-1.4.0alpha1 >>> >>> >> >> >> >>>2004-05-27 13:03 >>> >>> >> >> >> >> >> >> >> >>>Hi, >>> >>> >> >> >> >>>Here"s a small patch I wrote for aix 5.2. It fixes compilation issues >>> >>> >>>due to misplacement of a VA_COPY and an infinite loop while in >>> >>> >>>read_filesystem_list. >>> >>> >> >> >> >>>Enjoy! >>> >>> >> >> >> >> >> >> >> >>>Eric Lauriault, eric at la... >>> >>> >>>Analyste/Administrateur UNIX/telecom/reseau >>> >>> >>>La Cite collegiale >>> >>> >> >> >>------------------------------------------------------------------------ >> >> >> > > > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >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 awang at qrs.com Wed Aug 11 17:02:24 2004 From: awang at qrs.com (Arnold Wang) Date: Wed Aug 11 17:02:24 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDA68428@RCAX2003P02.qrs.com> Thanks for the info. I'll give a try. -----Original Message----- From: Tim Brazil [mailto:brazil at sendmail.com] Sent: Wednesday, August 11, 2004 5:00 PM To: Arnold Wang Cc: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] (no subject) According to the info I sent previous, it's fixed in gcc-3.0. DISCLAIMER, this is info I gleaned from the internet ;) "This is gcc's bug, and fixed at 01-05-25. gcc-2.95.3 don't contains this fix, but gcc-3.0 contains this fix." Arnold Wang wrote: >I'm using gcc. ># gcc -v >Reading specs from >/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/specs >gcc version 2.9-aix51-020209 ># > >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Wednesday, August 11, 2004 4:41 PM >To: Arnold Wang >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: Re: [Nagiosplug-devel] (no subject) > > >Someone else is also experiencing the same problem > >http://article.gmane.org/gmane.network.nagios.plugins.devel/1180 > >According to this is may be a gcc problem. Which compiler are you using? > >http://lists.gnu.org/archive/html/bug-gnu-utils/2003-06/msg00404.html > > >Arnold Wang wrote: > > > >>I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and >>received the following error messages: >> >>gcc -g -O2 -L. -o check_disk check_disk.o utils.o >>../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext >> >>ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >> >>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >>information. >> >>collect2: ld returned 8 exit status >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 2. >> >>Stop. >> >>I searched the list and run into the following message, however I >>couldn't find the patch anywhere. Can someone kind enough to tell me >>where the patch is? It looks should fix my problem. >> >> >> >>>From: Eric Lauriault >>>aix 5.2 patch for nagios-plugins-1.4.0alpha1 >>> >>> >> >> >> >>>2004-05-27 13:03 >>> >>> >> >> >> >> >> >> >> >>>Hi, >>> >>> >> >> >> >>>Here"s a small patch I wrote for aix 5.2. It fixes compilation issues >>> >>> >>>due to misplacement of a VA_COPY and an infinite loop while in >>> >>> >>>read_filesystem_list. >>> >>> >> >> >> >>>Enjoy! >>> >>> >> >> >> >> >> >> >> >>>Eric Lauriault, eric at la... >>> >>> >>>Analyste/Administrateur UNIX/telecom/reseau >>> >>> >>>La Cite collegiale >>> >>> >> >> >>------------------------------------------------------------------------ >> >> >> > > > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >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 blaz at amis.net Thu Aug 12 06:35:05 2004 From: blaz at amis.net (Blaz Zupan) Date: Thu Aug 12 06:35:05 2004 Subject: [Nagiosplug-devel] nagios ircd plugin fix Message-ID: <20040811214522.Y93841@titanic.medinet.si> I'm not subscribed to this list, so this mail will hopefully get through. I'm the maintainer of the FreeBSD port of nagios-plugins. I've received the following contribution and added it to the FreeBSD port of nagios plugins. I think this is a general fix that should be included in the nagios-plugins distribtion, so I'm sending it to this list. ---------- Forwarded message ---------- Date: Tue, 10 Aug 2004 11:03:40 +0300 From: Martin Tsachev To: Blaz Zupan Subject: Re: nagios ircd plugin -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 10 August 2004 08:40, you wrote: > > Please apply the following patch to the ircd check plugin: > > > > - --- check_ircd Mon Aug 9 19:10:26 2004 > > +++ check_ircd.new Mon Aug 9 19:10:55 2004 > > @@ -67,6 +67,7 @@ > > $ENV{PATH} = ""; > > $ENV{ENV} = ""; > > $ENV{BASH_ENV} = ""; > > +$ENV{CDPATH} = ""; > > Sure, could you please just elaborate on what problem it fixes (I don't use > the plugin myself)? The check_ircd script is run in perl's tainted mode. Perl checks for some insecure environment variables and if they are set refuses to run. In my case I have CDPATH set globally on the system so this is the only way to run the check script. - -- Martin Tsachev http://martin.f2o.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBGIFeypytlz9Py3wRAifuAJ49kyzmbXmEtJjAlVR3BxgWSC8uYwCeN12u Uyr6HAF2C0/Zi7JygoMabT4= =IY4z -----END PGP SIGNATURE----- From david at familie-ecker.net Thu Aug 12 06:35:07 2004 From: david at familie-ecker.net (David Ecker) Date: Thu Aug 12 06:35:07 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable Message-ID: <200408121423.37349.david@familie-ecker.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, the check_ping plugin (Version *.31) prints the message "Error:Could not interpret output from ping command" I found out that if the host is unreachable (for example if a router is misconfigured) ping prints another paramter in the result line : 5 packets send, 0 recieves, +3 errors, 100% packet loss,........ If the host is reachable or the icmp messages are returned everything looks okay. I use RedHat Enterprise 3 Do you have a patch for this case?? thx, bye David Ecker -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBG2FGRF725tuf87kRAnHvAKCghyjgNg+6rV+dAf3roTIkIRNZVwCgxeHA 4KPqMdz5mIq+SNS7j22+NBc= =ZpKf -----END PGP SIGNATURE----- From ae at op5.se Thu Aug 12 07:14:12 2004 From: ae at op5.se (Andreas Ericsson) Date: Thu Aug 12 07:14:12 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <200408121423.37349.david@familie-ecker.net> References: <200408121423.37349.david@familie-ecker.net> Message-ID: <411B7B1A.1080004@op5.se> David Ecker wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > the check_ping plugin (Version *.31) prints the message "Error:Could not > interpret output from ping command" > > I found out that if the host is unreachable (for example if a router is > misconfigured) ping prints another paramter in the result line : > 5 packets send, 0 recieves, +3 errors, 100% packet loss,........ > > If the host is reachable or the icmp messages are returned everything looks > okay. > > I use RedHat Enterprise 3 > > Do you have a patch for this case?? > There is a contributed plugin, named check_icmp which will work properly, and much faster than normal check_ping. It doesn't rely on underlying programs to actually send the packets for it, so it handles faults and network anomalies properly. If you find any problems with check_icmp, you can contact me directly, as I'm the author of it. > thx, bye > David Ecker -- Andreas Ericsson OP5 AB From awang at qrs.com Thu Aug 12 11:11:09 2004 From: awang at qrs.com (Arnold Wang) Date: Thu Aug 12 11:11:09 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDAF39C0@RCAX2003P02.qrs.com> I tried with gcc 3.3.2 and I passed the "gettext" error now. I'm having an error of unknown symbol of .VA_COPY. This seems point me back to Eric's patch about misplaced VA_COPY. gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. -----Original Message----- From: Arnold Wang Sent: Wednesday, August 11, 2004 5:01 PM To: 'Tim Brazil' Cc: nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Thanks for the info. I'll give a try. -----Original Message----- From: Tim Brazil [mailto:brazil at sendmail.com] Sent: Wednesday, August 11, 2004 5:00 PM To: Arnold Wang Cc: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] (no subject) According to the info I sent previous, it's fixed in gcc-3.0. DISCLAIMER, this is info I gleaned from the internet ;) "This is gcc's bug, and fixed at 01-05-25. gcc-2.95.3 don't contains this fix, but gcc-3.0 contains this fix." Arnold Wang wrote: >I'm using gcc. ># gcc -v >Reading specs from >/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/specs >gcc version 2.9-aix51-020209 ># > >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Wednesday, August 11, 2004 4:41 PM >To: Arnold Wang >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: Re: [Nagiosplug-devel] (no subject) > > >Someone else is also experiencing the same problem > >http://article.gmane.org/gmane.network.nagios.plugins.devel/1180 > >According to this is may be a gcc problem. Which compiler are you using? > >http://lists.gnu.org/archive/html/bug-gnu-utils/2003-06/msg00404.html > > >Arnold Wang wrote: > > > >>I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and >>received the following error messages: >> >>gcc -g -O2 -L. -o check_disk check_disk.o utils.o >>../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext >> >>ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >> >>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >>information. >> >>collect2: ld returned 8 exit status >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 2. >> >>Stop. >> >>I searched the list and run into the following message, however I >>couldn't find the patch anywhere. Can someone kind enough to tell me >>where the patch is? It looks should fix my problem. >> >> >> >>>From: Eric Lauriault >>>aix 5.2 patch for nagios-plugins-1.4.0alpha1 >>> >>> >> >> >> >>>2004-05-27 13:03 >>> >>> >> >> >> >> >> >> >> >>>Hi, >>> >>> >> >> >> >>>Here"s a small patch I wrote for aix 5.2. It fixes compilation issues >>> >>> >>>due to misplacement of a VA_COPY and an infinite loop while in >>> >>> >>>read_filesystem_list. >>> >>> >> >> >> >>>Enjoy! >>> >>> >> >> >> >> >> >> >> >>>Eric Lauriault, eric at la... >>> >>> >>>Analyste/Administrateur UNIX/telecom/reseau >>> >>> >>>La Cite collegiale >>> >>> >> >> >>------------------------------------------------------------------------ >> >> >> > > > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >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 awang at qrs.com Thu Aug 12 11:21:00 2004 From: awang at qrs.com (Arnold Wang) Date: Thu Aug 12 11:21:00 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDAF39E2@RCAX2003P02.qrs.com> After I complained about the missing patch, I did Google search and found this. http://article.gmane.org/gmane.network.nagios.plugins.devel/1207. I'll give that a try. Sorry for not doing homework first. -----Original Message----- From: Arnold Wang Sent: Thursday, August 12, 2004 11:10 AM To: 'Tim Brazil' Cc: 'nagiosplug-devel at lists.sourceforge.net' Subject: RE: [Nagiosplug-devel] (no subject) I tried with gcc 3.3.2 and I passed the "gettext" error now. I'm having an error of unknown symbol of .VA_COPY. This seems point me back to Eric's patch about misplaced VA_COPY. gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. -----Original Message----- From: Arnold Wang Sent: Wednesday, August 11, 2004 5:01 PM To: 'Tim Brazil' Cc: nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Thanks for the info. I'll give a try. -----Original Message----- From: Tim Brazil [mailto:brazil at sendmail.com] Sent: Wednesday, August 11, 2004 5:00 PM To: Arnold Wang Cc: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] (no subject) According to the info I sent previous, it's fixed in gcc-3.0. DISCLAIMER, this is info I gleaned from the internet ;) "This is gcc's bug, and fixed at 01-05-25. gcc-2.95.3 don't contains this fix, but gcc-3.0 contains this fix." Arnold Wang wrote: >I'm using gcc. ># gcc -v >Reading specs from >/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/specs >gcc version 2.9-aix51-020209 ># > >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Wednesday, August 11, 2004 4:41 PM >To: Arnold Wang >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: Re: [Nagiosplug-devel] (no subject) > > >Someone else is also experiencing the same problem > >http://article.gmane.org/gmane.network.nagios.plugins.devel/1180 > >According to this is may be a gcc problem. Which compiler are you using? > >http://lists.gnu.org/archive/html/bug-gnu-utils/2003-06/msg00404.html > > >Arnold Wang wrote: > > > >>I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and >>received the following error messages: >> >>gcc -g -O2 -L. -o check_disk check_disk.o utils.o >>../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext >> >>ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >> >>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >>information. >> >>collect2: ld returned 8 exit status >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 2. >> >>Stop. >> >>I searched the list and run into the following message, however I >>couldn't find the patch anywhere. Can someone kind enough to tell me >>where the patch is? It looks should fix my problem. >> >> >> >>>From: Eric Lauriault >>>aix 5.2 patch for nagios-plugins-1.4.0alpha1 >>> >>> >> >> >> >>>2004-05-27 13:03 >>> >>> >> >> >> >> >> >> >> >>>Hi, >>> >>> >> >> >> >>>Here"s a small patch I wrote for aix 5.2. It fixes compilation issues >>> >>> >>>due to misplacement of a VA_COPY and an infinite loop while in >>> >>> >>>read_filesystem_list. >>> >>> >> >> >> >>>Enjoy! >>> >>> >> >> >> >> >> >> >> >>>Eric Lauriault, eric at la... >>> >>> >>>Analyste/Administrateur UNIX/telecom/reseau >>> >>> >>>La Cite collegiale >>> >>> >> >> >>------------------------------------------------------------------------ >> >> >> > > > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >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 brazil at sendmail.com Thu Aug 12 11:27:13 2004 From: brazil at sendmail.com (Tim Brazil) Date: Thu Aug 12 11:27:13 2004 Subject: [Nagiosplug-devel] (no subject) In-Reply-To: <8E889810A443434E80FC2373A39BBAEDAF39E2@RCAX2003P02.qrs.com> References: <8E889810A443434E80FC2373A39BBAEDAF39E2@RCAX2003P02.qrs.com> Message-ID: <411BB661.5050506@sendmail.com> Hi Arnold Please let us know how you make out after installing the patch. I'm sure I'll be setting up our AIX boxes when I get bandwidth. I'd rather have you stumble over these issues than me ;) Tim Arnold Wang wrote: >After I complained about the missing patch, I did Google search and found >this. http://article.gmane.org/gmane.network.nagios.plugins.devel/1207. I'll >give that a try. Sorry for not doing homework first. > > >-----Original Message----- >From: Arnold Wang >Sent: Thursday, August 12, 2004 11:10 AM >To: 'Tim Brazil' >Cc: 'nagiosplug-devel at lists.sourceforge.net' >Subject: RE: [Nagiosplug-devel] (no subject) > >I tried with gcc 3.3.2 and I passed the "gettext" error now. I'm having an >error of unknown symbol of .VA_COPY. This seems point me back to Eric's >patch about misplaced VA_COPY. > > gcc -g -O2 -L. -o check_disk check_disk.o utils.o >../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv >ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >information. >collect2: ld returned 8 exit status >make: 1254-004 The error code from the last command is 1. > > >Stop. >make: 1254-004 The error code from the last command is 1. > > >Stop. >make: 1254-004 The error code from the last command is 2. > > >Stop. > >-----Original Message----- >From: Arnold Wang >Sent: Wednesday, August 11, 2004 5:01 PM >To: 'Tim Brazil' >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: RE: [Nagiosplug-devel] (no subject) > >Thanks for the info. I'll give a try. > >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Wednesday, August 11, 2004 5:00 PM >To: Arnold Wang >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: Re: [Nagiosplug-devel] (no subject) > > >According to the info I sent previous, it's fixed in gcc-3.0. >DISCLAIMER, this is info I gleaned from the internet ;) > >"This is gcc's bug, and fixed at 01-05-25. >gcc-2.95.3 don't contains this fix, but gcc-3.0 contains this fix." > > > > > >Arnold Wang wrote: > > > >>I'm using gcc. >># gcc -v >>Reading specs from >>/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/specs >>gcc version 2.9-aix51-020209 >># >> >>-----Original Message----- >>From: Tim Brazil [mailto:brazil at sendmail.com] >>Sent: Wednesday, August 11, 2004 4:41 PM >>To: Arnold Wang >>Cc: nagiosplug-devel at lists.sourceforge.net >>Subject: Re: [Nagiosplug-devel] (no subject) >> >> >>Someone else is also experiencing the same problem >> >>http://article.gmane.org/gmane.network.nagios.plugins.devel/1180 >> >>According to this is may be a gcc problem. Which compiler are you using? >> >>http://lists.gnu.org/archive/html/bug-gnu-utils/2003-06/msg00404.html >> >> >>Arnold Wang wrote: >> >> >> >> >> >>>I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and >>>received the following error messages: >>> >>>gcc -g -O2 -L. -o check_disk check_disk.o utils.o >>>../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv >>> >>>ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain >>> >>>ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain >>> >>>ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext >>> >>>ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >>> >>>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >>>information. >>> >>>collect2: ld returned 8 exit status >>> >>>make: 1254-004 The error code from the last command is 1. >>> >>>Stop. >>> >>>make: 1254-004 The error code from the last command is 1. >>> >>>Stop. >>> >>>make: 1254-004 The error code from the last command is 2. >>> >>>Stop. >>> >>>I searched the list and run into the following message, however I >>>couldn't find the patch anywhere. Can someone kind enough to tell me >>>where the patch is? It looks should fix my problem. >>> >>> >>> >>> >>> >>>>From: Eric Lauriault >>>>aix 5.2 patch for nagios-plugins-1.4.0alpha1 >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>>>2004-05-27 13:03 >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>>>Hi, >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>>Here"s a small patch I wrote for aix 5.2. It fixes compilation issues >>>> >>>> >>>>due to misplacement of a VA_COPY and an infinite loop while in >>>> >>>> >>>>read_filesystem_list. >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>>Enjoy! >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>>>Eric Lauriault, eric at la... >>>> >>>> >>>>Analyste/Administrateur UNIX/telecom/reseau >>>> >>>> >>>>La Cite collegiale >>>> >>>> >>>> >>>> >>>------------------------------------------------------------------------ >>> >>> >>> >>> >>> >> >> >>------------------------------------------------------- >>SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >>100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >>Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >>http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >>_______________________________________________ >>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 awang at qrs.com Thu Aug 12 12:09:12 2004 From: awang at qrs.com (Arnold Wang) Date: Thu Aug 12 12:09:12 2004 Subject: [Nagiosplug-devel] (no subject) Message-ID: <8E889810A443434E80FC2373A39BBAEDAF3AAC@RCAX2003P02.qrs.com> The patch works. -----Original Message----- From: Arnold Wang Sent: Thursday, August 12, 2004 11:20 AM To: Arnold Wang; 'Tim Brazil' Cc: 'nagiosplug-devel at lists.sourceforge.net' Subject: RE: [Nagiosplug-devel] (no subject) After I complained about the missing patch, I did Google search and found this. http://article.gmane.org/gmane.network.nagios.plugins.devel/1207. I'll give that a try. Sorry for not doing homework first. -----Original Message----- From: Arnold Wang Sent: Thursday, August 12, 2004 11:10 AM To: 'Tim Brazil' Cc: 'nagiosplug-devel at lists.sourceforge.net' Subject: RE: [Nagiosplug-devel] (no subject) I tried with gcc 3.3.2 and I passed the "gettext" error now. I'm having an error of unknown symbol of .VA_COPY. This seems point me back to Eric's patch about misplaced VA_COPY. gcc -g -O2 -L. -o check_disk check_disk.o utils.o ../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv ld: 0711-317 ERROR: Undefined symbol: .VA_COPY ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. -----Original Message----- From: Arnold Wang Sent: Wednesday, August 11, 2004 5:01 PM To: 'Tim Brazil' Cc: nagiosplug-devel at lists.sourceforge.net Subject: RE: [Nagiosplug-devel] (no subject) Thanks for the info. I'll give a try. -----Original Message----- From: Tim Brazil [mailto:brazil at sendmail.com] Sent: Wednesday, August 11, 2004 5:00 PM To: Arnold Wang Cc: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] (no subject) According to the info I sent previous, it's fixed in gcc-3.0. DISCLAIMER, this is info I gleaned from the internet ;) "This is gcc's bug, and fixed at 01-05-25. gcc-2.95.3 don't contains this fix, but gcc-3.0 contains this fix." Arnold Wang wrote: >I'm using gcc. ># gcc -v >Reading specs from >/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/specs >gcc version 2.9-aix51-020209 ># > >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Wednesday, August 11, 2004 4:41 PM >To: Arnold Wang >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: Re: [Nagiosplug-devel] (no subject) > > >Someone else is also experiencing the same problem > >http://article.gmane.org/gmane.network.nagios.plugins.devel/1180 > >According to this is may be a gcc problem. Which compiler are you using? > >http://lists.gnu.org/archive/html/bug-gnu-utils/2003-06/msg00404.html > > >Arnold Wang wrote: > > > >>I tried to compile Nagios plug-in 1.4.0alpha1 on AIX 5.2 machine and >>received the following error messages: >> >>gcc -g -O2 -L. -o check_disk check_disk.o utils.o >>../lib/libnagiosplug.a popen.o ../intl/libintl.a -liconv >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain >> >>ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext >> >>ld: 0711-317 ERROR: Undefined symbol: .VA_COPY >> >>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >>information. >> >>collect2: ld returned 8 exit status >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 1. >> >>Stop. >> >>make: 1254-004 The error code from the last command is 2. >> >>Stop. >> >>I searched the list and run into the following message, however I >>couldn't find the patch anywhere. Can someone kind enough to tell me >>where the patch is? It looks should fix my problem. >> >> >> >>>From: Eric Lauriault >>>aix 5.2 patch for nagios-plugins-1.4.0alpha1 >>> >>> >> >> >> >>>2004-05-27 13:03 >>> >>> >> >> >> >> >> >> >> >>>Hi, >>> >>> >> >> >> >>>Here"s a small patch I wrote for aix 5.2. It fixes compilation issues >>> >>> >>>due to misplacement of a VA_COPY and an infinite loop while in >>> >>> >>>read_filesystem_list. >>> >>> >> >> >> >>>Enjoy! >>> >>> >> >> >> >> >> >> >> >>>Eric Lauriault, eric at la... >>> >>> >>>Analyste/Administrateur UNIX/telecom/reseau >>> >>> >>>La Cite collegiale >>> >>> >> >> >>------------------------------------------------------------------------ >> >> >> > > > > >------------------------------------------------------- >SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media >100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 >Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. >http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 >_______________________________________________ >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 Aug 12 12:45:01 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Aug 12 12:45:01 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-948667 ] check_procs under HP-UX does not see command arguments Message-ID: Bugs item #948667, was opened at 2004-05-05 10:16 Message generated for change (Comment added) made by jhmartin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 Category: Argument proccessing Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Mark Plaksin (happyzi) Assigned to: Ton Voon (tonvoon) Summary: check_procs under HP-UX does not see command arguments Initial Comment: The ps command used by check_procs on HP-UX does not show command arguments. So it can't be used to search for things like "man ascii". I think this is true for all versions of check_procs. I've specifically tried 1.3.1 and CVS HEAD under HP-UX 11.00. I suspect it's the same on all versions of HP-UX. configure picks '/usr/bin/ps -el' as the ps command. If this is changed to: /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' and PS_FORMAT is "%s %s %s %n%s" and PS_VARLIST is procstat,&procuid,&procppid,&pos,procprog then it works. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-12 11:44 Message: Logged In: YES user_id=589094 The following configure.in block, placed above all others that invoke ps -el is working for me (against 1.3.1) elif /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state uid ppid args' 2>/dev/null | egrep -i ["^S +UID +PPID +[RGSCOMDNA]+"] >/dev/null then AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[]) AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid ppid args'",[]) AC_DEFINE_UNQUOTED(PS_FORMAT,"%s %d %d %n%s",[Format string for scanning ps output in check_procs]) AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -el",[]) AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %d %*s %*s %*s %s",[]) AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -el",[]) AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[]) echo " ps syntax... $PATH_TO_ENV UNIX95=1 $PATH_TO_PS -eo 'state uid ppid args'" I also added AC_PATH_PROG(PATH_TO_ENV,env) after AC_PATH_PROG(PATH_TO_PS,ps) ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 11:36 Message: Logged In: YES user_id=589094 ps -ex gives me a syntax error on both 10.20 and 11i. ps ex returns just processes owned by the current user. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 11:33 Message: Logged In: YES user_id=589094 ps -ex gives me a syntax error on both 10.20 and 11i. ps ex returns just processes owned by the current user. ---------------------------------------------------------------------- Comment By: Tracy Orf (tracyorf) Date: 2004-08-10 10:00 Message: Logged In: YES user_id=557175 ps -ex in HP-UX will show the command line in extended format. ---------------------------------------------------------------------- Comment By: Jason Martin (jhmartin) Date: 2004-08-10 08:21 Message: Logged In: YES user_id=589094 The CVS HEAD configure.in uses ps -el as the ps command for HP-UX, and that command only returns up to 15 characters of the command name and excludes all arguments. ps -ef returns up to 64 characters of the combination of command name and arguments. Head -2 of ps -ef returns UID PID PPID C STIME TTY TIME COMMAND root 625 624 0 Jun 17 ? 6:11 /usr/sbin/netfmt - C -F -f /var/adm/nettl.LOG000 -c /var/adm/con Head -3 of the UNIX95 syntax above returns $ /usr/bin/env UNIX95=1 /usr/bin/ps -eo 'state,uid,ppid,args' S UID PPID COMMAND R 198 3023 /usr/bin/ps -eo state,uid,ppid,args S 96 1 vmstat -S 300 2 This is true on the following versions of HPUX: HP-UX hostname B.11.11 U 9000/800 1651319313 unlimited- user license HP-UX localhost B.10.20 E 9000/800 882327441 8-user license ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 13:00 Message: Logged In: YES user_id=664364 What do you suggest? It should be something like: ps -eo 's uid ppid vsz rss pcpu comm args' to get all the required information. Will need a head -2 output. ---------------------------------------------------------------------- Comment By: Mark Plaksin (happyzi) Date: 2004-05-05 11:54 Message: Logged In: YES user_id=115461 Thanks for the quick response :) The recent change doesn't do the trick. I tested with today's CVS. We run multiple PeopleSoft instances on a single machine. We want per-instance process checking and the only way to tell which instance a process is for is by looking at the arguments to the command. For example, there is one PSQRYSRV process for earch instance. They show up in the process table like "PSQRYSRV -C dom=INSTANCE_NAME". ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-05-05 11:42 Message: Logged In: YES user_id=664364 Mark, CVS HEAD was recently changed for HP-UX (configure output should show HP-UX as the ps syntax). Does this work? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=948667&group_id=29880 From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Aug 12 18:52:14 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu Aug 12 18:52:14 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <411B7B1A.1080004@op5.se> References: <200408121423.37349.david@familie-ecker.net> <411B7B1A.1080004@op5.se> Message-ID: <20040813015113.GD58801@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Thu, Aug 12, 2004 at 04:13:46PM +0200, Andreas Ericsson wrote: > > There is a contributed plugin, named check_icmp which will work > properly, and much faster than normal check_ping. It doesn't rely on > underlying programs to actually send the packets for it, so it handles > faults and network anomalies properly. > I would love to try check_icmp (having been disappointed by check_fping). However, it doesn't appear to be in a freshly co'd copy of the CVS bash-2.04$ pwd /usr/home/stanley/build/nagiosplug bash-2.04$ ls AUTHORS FAQ README autogen.sh intl plugins CHANGES Helper.pm REQUIREMENTS command.cfg.in lib plugins-scripts CODING INSTALLING ROADMAP configure.in nagios-plugins.spec.in po COPYING LEGAL SUPPORT contrib opttest.pl test.pl.in CVS Makefile.am THANKS.in contrib-reporting package.def tools ChangeLog NEWS acinclude.m4 doc pkg win32 bash-2.04$ find . -iname '*icmp*' -ls bash-2.04$ Nor on SourceForge/Tracker/new plugins. tsitc> lynx -dump -nolist -pauth=foo:bar 'http://sourceforge.net/tracker/?atid=541465&group_id=29880&func=browse' | grep -i icmp tsitc> lynx -dump -nolist -pauth=foo:bar 'http://sourceforge.net/tracker/index.php?func=browse&group_id=29880&atid=541465&set=&offset=50' | grep -i icmp > If you find any problems with check_icmp, you can contact me directly, > as I'm the author of it. > > Andreas Ericsson > OP5 AB > > 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 noreply at sourceforge.net Thu Aug 12 19:05:10 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Aug 12 19:05:10 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1008452 ] check_icmp Message-ID: New Plugins item #1008452, was opened at 2004-08-13 04:04 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=1008452&group_id=29880 Category: C plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andreas Ericsson (ageric) Assigned to: Nobody/Anonymous (nobody) Summary: check_icmp Initial Comment: check_icmp is basically a ping program written specifically for Nagios. It is faster than check_fping and check_ping by sending packets in a much more clever way, and is more resource-friendly since it doesn't fork other programs to do the actual checking. It can check several IP-addresses one go and also handles routing anomalies and various other network errors correctly, whereas output from the ping program differs enough from platform to platform for things to go awry from time to time. This plugin writes performance data correctly, but only when pinging one host. It is written with portability in mind, and should compile cleanly on most platforms. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1008452&group_id=29880 From ae at op5.se Thu Aug 12 19:11:09 2004 From: ae at op5.se (Andreas Ericsson) Date: Thu Aug 12 19:11:09 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <20040813015113.GD58801@IPAustralia.Gov.AU> References: <200408121423.37349.david@familie-ecker.net> <411B7B1A.1080004@op5.se> <20040813015113.GD58801@IPAustralia.Gov.AU> Message-ID: <411C22F6.5020607@op5.se> Stanley Hopcroft wrote: > Dear Sir, > > I am writing to thank you for your letter and say, > > On Thu, Aug 12, 2004 at 04:13:46PM +0200, Andreas Ericsson wrote: > >>There is a contributed plugin, named check_icmp which will work >>properly, and much faster than normal check_ping. It doesn't rely on >>underlying programs to actually send the packets for it, so it handles >>faults and network anomalies properly. >> > > > I would love to try check_icmp (having been disappointed by > check_fping). > > However, it doesn't appear to be in a freshly co'd copy of the CVS > No, it's not. I just added it to the 'New Plugins' section on sourceforge, and the latest version will always be available from https://devel.op5.se/oss/check_icmp-0.6.tar.gz Version number is subject to change without notice. ;-) > > Nor on SourceForge/Tracker/new plugins. > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer From noreply at sourceforge.net Thu Aug 12 19:53:14 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Aug 12 19:53:14 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-1008474 ] check_log Message-ID: Support Requests item #1008474, was opened at 2004-08-13 10:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=1008474&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: digitalnerve (digitalnerve) Assigned to: Nobody/Anonymous (nobody) Summary: check_log Initial Comment: Is there a check_log.pl that I can download ? I am using netsaint-statd on my remote linux server. I want to use check_log to monitor the log file at remote server. However, check_log does not have the option, - h for me to specify which remote host to check the log file. Or how can I make use of this check_log to check remote host ? please email to me at digitalnerve at hotvoice.com thank you ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=1008474&group_id=29880 From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Aug 12 21:24:01 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu Aug 12 21:24:01 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <411C22F6.5020607@op5.se> References: <200408121423.37349.david@familie-ecker.net> <411B7B1A.1080004@op5.se> <20040813015113.GD58801@IPAustralia.Gov.AU> <411C22F6.5020607@op5.se> Message-ID: <20040813042248.GF58801@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Fri, Aug 13, 2004 at 04:09:58AM +0200, Andreas Ericsson wrote: > Stanley Hopcroft wrote: .. blah blah blah. > > No, it's not. I just added it to the 'New Plugins' section on > sourceforge, and the latest version will always be available from > https://devel.op5.se/oss/check_icmp-0.6.tar.gz > Version number is subject to change without notice. ;-) > Got it thank you. Compiles and runs Ok (make) on FreeBSD 4.9-RLEASE-p2. Running in prod Nag checking reachability of ~ 400 LAN connected devices. tsitc# ../libexec/check_icmp -w 30,15% -c 60,50% -H 10.0.0.45 OK - 10.0.0.45: loss 0%, rta 1.76 ms | pl=0;rta=1.76 It is considerably faster than check_ping. tsitc# ~anwsmh/perl/dotime/dotime 10 '../libexec/check_icmp -w 30,15% -c 60,50% -H 10.0.0.45' Running ../libexec/check_icmp -w 30,15% -c 60,50% -H 10.0.0.45 10 times 1 2 3 4 5 6 7 8 9 10 done Avg 1 2 3 4 5 6 7 8 9 10 ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ real 0.138 0.12 0.10 0.18 0.10 0.21 0.10 0.19 0.10 0.16 0.12 user 0.008 0.01 0.02 0.00 0.02 0.02 0.00 0.01 0.00 0.00 0.00 sys 0.053 0.02 0.06 0.04 0.07 0.02 0.09 0.02 0.09 0.09 0.03 tsitc# ~anwsmh/perl/dotime/dotime 10 '../libexec/check_ping -w 30,15% -c 60,50% -H 10.0.0.45' Running ../libexec/check_ping -w 30,15% -c 60,50% -H 10.0.0.45 10 times 1 2 3 4 5 6 7 8 9 10 done Avg 1 2 3 4 5 6 7 8 9 10 ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ real 4.053 4.04 4.04 4.03 4.04 4.14 4.06 4.06 4.04 4.04 4.04 user 0.000 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 sys 0.000 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 tsitc# > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer 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 GWCOOK at mactec.com Thu Aug 12 21:40:17 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu Aug 12 21:40:17 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable Message-ID: <41FD7929498A174DAB86C45F28E0EC0D6E9826@golden-m.mactec.com> nagiosplug-devel-admin at lists.sourceforge.net wrote: > Dear Sir, > > I am writing to thank you for your letter and say, > > On Fri, Aug 13, 2004 at 04:09:58AM +0200, Andreas Ericsson wrote: >> Stanley Hopcroft wrote: > > .. blah blah blah. And yadda yadda yadda > tsitc# ../libexec/check_icmp -w 30,15% -c 60,50% -H 10.0.0.45 > OK - 10.0.0.45: loss 0%, rta 1.76 ms | pl=0;rta=1.76 > > It is considerably faster than check_ping. OK, I haven't downloaded and tried it out yet, I'm waiting until I get to the office tomorrow. However, if what I see above is the actual output of the plugin (thanks Stanley), then it appears as though the perfdata output is indeed formatted incorrectly. It should appear this way: | pl=0ms;; rta=1.76ms;; There could be a min and max value following warn and crit, but it seems unnecessary for an ICMP check, and is therefore omitted, along with the trailing semicolons. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) From GWCOOK at mactec.com Thu Aug 12 22:45:01 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu Aug 12 22:45:01 2004 Subject: [Nagiosplug-devel] Perfdata patch for check_icmp Message-ID: <41FD7929498A174DAB86C45F28E0EC0D6E9827@golden-m.mactec.com> I couldn't wait until the morning to try check_icmp. It works well, but the perfdata format is borked. Attached is a patch that fixes it in one section. I didn't fix it in all of the areas where it is generated as I've got to get some sleep tonight. Andreas, this should give you what you need to get it all fixed up. Also, it appears that the utils.h with the latest CVS plugins include some perfdata code. This might make it easier for developers out there to add the perfdata correctly. Enjoy! Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) -------------- next part -------------- A non-text attachment was scrubbed... Name: check_icmp.c.patch Type: application/octet-stream Size: 767 bytes Desc: check_icmp.c.patch URL: From karl at debisschop.net Fri Aug 13 04:22:05 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Fri Aug 13 04:22:05 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <20040813042248.GF58801@IPAustralia.Gov.AU> References: <200408121423.37349.david@familie-ecker.net> <411B7B1A.1080004@op5.se> <20040813015113.GD58801@IPAustralia.Gov.AU> <411C22F6.5020607@op5.se> <20040813042248.GF58801@IPAustralia.Gov.AU> Message-ID: <411CA437.5060103@debisschop.net> Stanley Hopcroft wrote: > Compiles and runs Ok (make) on FreeBSD 4.9-RLEASE-p2. Running in prod > Nag checking reachability of ~ 400 LAN connected devices. > > tsitc# ../libexec/check_icmp -w 30,15% -c 60,50% -H 10.0.0.45 > OK - 10.0.0.45: loss 0%, rta 1.76 ms | pl=0;rta=1.76 > > It is considerably faster than check_ping. It also includes a great deal of code from fping, which is not GPL. Further, the Stanford license from fping seems to be largely omitted. I have not come to a conclusion on how I feel about adding non0GPL software to the plugins - it is not consistent with the plugins themselves, so we'd need to distribute them with different licenses applying to differnt parts of a release. Anyone else care to comment? -- Karl From ae at op5.se Fri Aug 13 05:05:03 2004 From: ae at op5.se (Andreas Ericsson) Date: Fri Aug 13 05:05:03 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <411CA437.5060103@debisschop.net> References: <200408121423.37349.david@familie-ecker.net> <411B7B1A.1080004@op5.se> <20040813015113.GD58801@IPAustralia.Gov.AU> <411C22F6.5020607@op5.se> <20040813042248.GF58801@IPAustralia.Gov.AU> <411CA437.5060103@debisschop.net> Message-ID: <411CAE3E.4010201@op5.se> Karl DeBisschop wrote: > Stanley Hopcroft wrote: > >> Compiles and runs Ok (make) on FreeBSD 4.9-RLEASE-p2. Running in prod >> Nag checking reachability of ~ 400 LAN connected devices. >> >> tsitc# ../libexec/check_icmp -w 30,15% -c 60,50% -H 10.0.0.45 >> OK - 10.0.0.45: loss 0%, rta 1.76 ms | pl=0;rta=1.76 >> >> It is considerably faster than check_ping. > > > It also includes a great deal of code from fping, which is not GPL. > Further, the Stanford license from fping seems to be largely omitted. > It is completely omitted in the original source package at http://www.fping.com/download/fping-2.4b2_to-ipv6.tar.gz (which is what I built check_icmp from), aside from a notice indicating that a non-existant message must be included in every distribution of the source. The Stanford license, available at http://graphics.stanford.edu/software/license.html clearly states that it applies to programs whose associated web pages include a link to that very license. The fping homepage http://www.fping.com does not (I imagine the student who wrote it graduated). Strictly speaking, this puts the fping source-code in the public domain, so we should be free to do whatever we want with it, with proper credits where credits are due, ofcourse. It's clearly stated in the check_icmp source-code that it's a hack based on fping, and if it seems proper I can add it to the usage() output as well. > I have not come to a conclusion on how I feel about adding non0GPL > software to the plugins - it is not consistent with the plugins > themselves, so we'd need to distribute them with different licenses > applying to differnt parts of a release. > > Anyone else care to comment? > > -- > Karl > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer From ae at op5.se Fri Aug 13 05:26:19 2004 From: ae at op5.se (Andreas Ericsson) Date: Fri Aug 13 05:26:19 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <411CAE3E.4010201@op5.se> References: <200408121423.37349.david@familie-ecker.net> <411B7B1A.1080004@op5.se> <20040813015113.GD58801@IPAustralia.Gov.AU> <411C22F6.5020607@op5.se> <20040813042248.GF58801@IPAustralia.Gov.AU> <411CA437.5060103@debisschop.net> <411CAE3E.4010201@op5.se> Message-ID: <411CB30A.4080705@op5.se> I've sent an email to the current maintainer and asked him what the idea with the current (non-existing) license is. I'll post the answer here when I get it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer From awang at qrs.com Fri Aug 13 13:11:01 2004 From: awang at qrs.com (Arnold Wang) Date: Fri Aug 13 13:11:01 2004 Subject: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE Message-ID: <8E889810A443434E80FC2373A39BBAEDAF41E0@RCAX2003P02.qrs.com> I posted the following message to the checkins list and haven't received any response yet, I hope I can get some helps here. _____ From: Arnold Wang Sent: Friday, August 13, 2004 11:51 AM To: nagios-checkins at lists.sourceforge.net Subject: [Nagios-checkins] SSL error for NRPE I received the following error "CHECK_NRPE: Error - Could not complete SSL handshake." when I tried to run check_nrpe from the monitoring host. The monitoring host is running RedHat Enterprise 3.0 and the monitored host is running AIX 5.3. The problem only happens if I run nrpe in inetd mode. If I run nrpe as a separate daemon, with -d option, it's working fine. Thanks in advance for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brazil at sendmail.com Fri Aug 13 14:11:11 2004 From: brazil at sendmail.com (Tim Brazil) Date: Fri Aug 13 14:11:11 2004 Subject: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE In-Reply-To: <8E889810A443434E80FC2373A39BBAEDAF41E0@RCAX2003P02.qrs.com> References: <8E889810A443434E80FC2373A39BBAEDAF41E0@RCAX2003P02.qrs.com> Message-ID: <411D2E47.30008@sendmail.com> The way you may be able to figure it out is via debug output from openssl s_client. Make sure your client and server share the same cyphers /usr/bin/openssl s_client -connect :5666 -debug Arnold Wang wrote: > I posted the following message to the checkins list and haven?t > received any response yet, I hope I can get some helps here. > > ------------------------------------------------------------------------ > > *From:* Arnold Wang > *Sent:* Friday, August 13, 2004 11:51 AM > *To:* nagios-checkins at lists.sourceforge.net > *Subject:* [Nagios-checkins] SSL error for NRPE > > I received the following error ?CHECK_NRPE: Error - Could not complete > SSL handshake.? when I tried to run check_nrpe from the monitoring > host. The monitoring host is running RedHat Enterprise 3.0 and the > monitored host is running AIX 5.3. The problem only happens if I run > nrpe in inetd mode. If I run nrpe as a separate daemon, with ?d > option, it?s working fine. > > Thanks in advance for your help. > From awang at qrs.com Fri Aug 13 14:30:07 2004 From: awang at qrs.com (Arnold Wang) Date: Fri Aug 13 14:30:07 2004 Subject: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE Message-ID: <8E889810A443434E80FC2373A39BBAEDAF4293@RCAX2003P02.qrs.com> Here is the output, which is beyond me to interpret. [root at rcarhld01 /]# openssl s_client -connect rcaaixd02:5666 -debug CONNECTED(00000003) write to 080AD2F8 [080AD340] (142 bytes => 142 (0x8E)) 0000 - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00 ......c... ..9.. 0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............ 0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00 ..3..2../.....f. 0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00 .............c.. 0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40 b..a...........@ 0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00 ..e..d..`....... 0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 d1 1c ................ 0070 - cc d9 8f 5d 03 e5 47 6f-03 87 0d d3 4b 9c b7 49 ...]..Go....K..I 0080 - 99 1e 4d a1 d7 88 b8 42-cb 2e 28 a9 c5 be ..M....B..(... read from 080AD2F8 [080B28A0] (7 bytes => 0 (0x0)) 15787:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:226: The following is the output when I run nrpe -d on the remote host. [root at rcarhld01 libexec]# openssl s_client -connect rcaaixd02:5666 -debug CONNECTED(00000003) write to 080AD2F8 [080AD340] (142 bytes => 142 (0x8E)) 0000 - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00 ......c... ..9.. 0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............ 0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00 ..3..2../.....f. 0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00 .............c.. 0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40 b..a...........@ 0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00 ..e..d..`....... 0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 e4 c0 ................ 0070 - de c2 fd f6 10 55 22 dc-3d fc d2 40 e3 4b db 60 .....U".=.. at .K.` 0080 - 6d d6 35 30 4b 05 50 58-71 e0 47 e1 d6 ec m.50K.PXq.G... read from 080AD2F8 [080B28A0] (7 bytes => 7 (0x7)) 0000 - 15 03 01 00 02 02 28 ......( 16818:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:470: -----Original Message----- From: Tim Brazil [mailto:brazil at sendmail.com] Sent: Friday, August 13, 2004 2:11 PM To: Arnold Wang Cc: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE The way you may be able to figure it out is via debug output from openssl s_client. Make sure your client and server share the same cyphers /usr/bin/openssl s_client -connect :5666 -debug Arnold Wang wrote: > I posted the following message to the checkins list and haven't > received any response yet, I hope I can get some helps here. > > ------------------------------------------------------------------------ > > *From:* Arnold Wang > *Sent:* Friday, August 13, 2004 11:51 AM > *To:* nagios-checkins at lists.sourceforge.net > *Subject:* [Nagios-checkins] SSL error for NRPE > > I received the following error "CHECK_NRPE: Error - Could not complete > SSL handshake." when I tried to run check_nrpe from the monitoring > host. The monitoring host is running RedHat Enterprise 3.0 and the > monitored host is running AIX 5.3. The problem only happens if I run > nrpe in inetd mode. If I run nrpe as a separate daemon, with -d > option, it's working fine. > > Thanks in advance for your help. > From karl at debisschop.net Fri Aug 13 16:46:03 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Fri Aug 13 16:46:03 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <411CB30A.4080705@op5.se> References: <200408121423.37349.david@familie-ecker.net> <411B7B1A.1080004@op5.se> <20040813015113.GD58801@IPAustralia.Gov.AU> <411C22F6.5020607@op5.se> <20040813042248.GF58801@IPAustralia.Gov.AU> <411CA437.5060103@debisschop.net> <411CAE3E.4010201@op5.se> <411CB30A.4080705@op5.se> Message-ID: <411D5278.4040807@debisschop.net> Andreas Ericsson wrote: > I've sent an email to the current maintainer and asked him what the idea > with the current (non-existing) license is. I'll post the answer here > when I get it. > Thanks - I'm sure you understand we cannot be casual about licenses with the official distribution. -- Karl From david at familie-ecker.net Sat Aug 14 18:18:07 2004 From: david at familie-ecker.net (David Ecker) Date: Sat Aug 14 18:18:07 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable In-Reply-To: <411B7B1A.1080004@op5.se> References: <200408121423.37349.david@familie-ecker.net> <411B7B1A.1080004@op5.se> Message-ID: <200408130841.15760.david@familie-ecker.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, probably I am just blind, but i can't find a plugin named check_icmp in nagiosplugin-1.3 or 1.4alpha or on the extra download page. Where can I get this package from?? Thx David Ecker Am Donnerstag, 12. August 2004 16:13 schrieb Andreas Ericsson: > David Ecker wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi, > > > > the check_ping plugin (Version *.31) prints the message "Error:Could not > > interpret output from ping command" > > > > I found out that if the host is unreachable (for example if a router is > > misconfigured) ping prints another paramter in the result line : > > 5 packets send, 0 recieves, +3 errors, 100% packet loss,........ > > > > If the host is reachable or the icmp messages are returned everything > > looks okay. > > > > I use RedHat Enterprise 3 > > > > Do you have a patch for this case?? > > There is a contributed plugin, named check_icmp which will work > properly, and much faster than normal check_ping. It doesn't rely on > underlying programs to actually send the packets for it, so it handles > faults and network anomalies properly. > > If you find any problems with check_icmp, you can contact me directly, > as I'm the author of it. > > > thx, bye > > David Ecker -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBHGKJRF725tuf87kRAlluAJwPN5g6mFoqevXMKCvNMUrAbkLuLACglVlx LfqLihTeQxObZpKyc/kRTZ4= =UGFn -----END PGP SIGNATURE----- From seanius at seanius.net Sat Aug 14 18:18:10 2004 From: seanius at seanius.net (sean finney) Date: Sat Aug 14 18:18:10 2004 Subject: [Nagiosplug-devel] [patch] check_swap for NetBSD/OpenBSD Message-ID: <20040814073121.GA25105@seanius.net> hey there, after taking a look to see how it was done with the swap/swapinfo commands, i've added the functionality to the configure script to detect the NetBSD/OpenBSD swapctl command and configure itself accordingly. i've kept the patch as minimal as possible (basically copying what was done for swap/swapinfo in configure.in), and it's based off of a cvs checkout from earlier this afternoon. fwiw, i've tested this on NetBSD macppc and i386, as well as OpenBSD i386. sean -------------- next part -------------- --- configure.in.old 2004-08-14 00:40:12.000000000 -0400 +++ configure.in 2004-08-14 00:42:51.000000000 -0400 @@ -1362,6 +1362,32 @@ dnl end if for PATH_TO_SWAPINFO fi +AC_PATH_PROG(PATH_TO_SWAPCTL,swapctl,,[$PATH:/sbin]) +if (test -n "$PATH_TO_SWAPCTL") +then +AC_MSG_CHECKING([for $PATH_TO_SWAPCTL format]) +if [$PATH_TO_SWAPCTL -l 2>&1 >/dev/null] +then + ac_cv_have_swap=yes + ac_cv_swap_command="$PATH_TO_SWAPCTL -l" + if [$PATH_TO_SWAPCTL -l 2>/dev/null | \ + egrep -i "^Device +1K-blocks +Used +Avail +Capacity +Priority" >/dev/null ] + then + ac_cv_swap_format=["%*s %llu %*d %llu %*d"] + ac_cv_swap_conv=1024 + AC_MSG_RESULT([using 1K BSD format swapctl]) + + elif [$PATH_TO_SWAPCTL -l 2>/dev/null | \ + egrep -i "^Device +512-blocks +Used +Avail +Capacity +Priority" >/dev/null ] + then + ac_cv_swap_format=["%*s %llu %*d %llu %*d"] + ac_cv_swap_conv=2048 + AC_MSG_RESULT([using 512 byte BSD format swapctl]) + fi +fi +dnl end if for PATH_TO_SWAPCTL +fi + if test "x$ac_cv_have_swap" != "x" then AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found]) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From GWCOOK at mactec.com Sun Aug 15 20:58:15 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Sun Aug 15 20:58:15 2004 Subject: [Nagiosplug-devel] check_ping /destination unreachable Message-ID: <41FD7929498A174DAB86C45F28E0EC0D6E9852@golden-m.mactec.com> > Hi, > > probably I am just blind, but i can't find a plugin named > check_icmp in > nagiosplugin-1.3 or 1.4alpha or on the extra download page. > Where can I get > this package from?? > > Thx > David Ecker http://devel.op5.se/oss/check_icmp-0.6.tar.gz From noreply at sourceforge.net Mon Aug 16 08:52:58 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Aug 16 08:52:58 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1010097 ] check_procs & timeout Message-ID: Bugs item #1010097, was opened at 2004-08-16 07:51 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=1010097&group_id=29880 Category: None Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Jason Martin (jhmartin) Assigned to: Nobody/Anonymous (nobody) Summary: check_procs & timeout Initial Comment: The check_procs plugin does not set a timeout before executing the ps command. This may result in poor timeout behavior, for example a NRPE error stating the socket timed out vs a 'pretty' error indicating that ps didn't complete in time. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1010097&group_id=29880 From awang at qrs.com Mon Aug 16 10:40:07 2004 From: awang at qrs.com (Arnold Wang) Date: Mon Aug 16 10:40:07 2004 Subject: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE Message-ID: <8E889810A443434E80FC2373A39BBAEDAF4668@RCAX2003P02.qrs.com> Thanks for looking into this problem. I didn't spend a lot of times during the weekends on this problem. However, I did try the agent on another AIX machine and everything worked fine there. This tells me the problem is local in that machine, I'm not sure whether it's related to the basic SSL because two reasons. First, the agent works fine as a stand alone daemon. Second, SSH works fine on that machine, which also relies on SSL. I wonder how the agent behaviors differently in stand alone mode and inetd mode on encryption. I would assume this should help me to find out what's the problem in the system. -----Original Message----- From: Tim Brazil [mailto:brazil at sendmail.com] Sent: Friday, August 13, 2004 3:53 PM To: Arnold Wang Subject: Re: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE Hi Arnold I've been really busy today and haven't been able to get a chance to think about your issue. I'm heading out early for the weekend. It sounds like you have a basic ssl issue. All I can do at this point is recommend you search on the internet using the error you got returned from the debug output. I'm sure this has been experienced by someone else before. If you really get stuck and decide to not use ssl you can re-compile your nrep without it using configure --disable-ssl. If you don't have is figured out by Monday, perhaps I can look into it further. Sorry Tim Arnold Wang wrote: >It looks like I'm having trouble to send to the list. Here are the two >e-mails I send early, I hope you can them this time. Thanks for you help. > >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Friday, August 13, 2004 2:11 PM >To: Arnold Wang >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: Re: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE > >The way you may be able to figure it out is via debug output from >openssl s_client. Make sure your client and server share the same cyphers > >/usr/bin/openssl s_client -connect :5666 -debug > > >Arnold Wang wrote: > > > >>I posted the following message to the checkins list and haven't >>received any response yet, I hope I can get some helps here. >> >>------------------------------------------------------------------------ >> >>*From:* Arnold Wang >>*Sent:* Friday, August 13, 2004 11:51 AM >>*To:* nagios-checkins at lists.sourceforge.net >>*Subject:* [Nagios-checkins] SSL error for NRPE >> >>I received the following error "CHECK_NRPE: Error - Could not complete >>SSL handshake." when I tried to run check_nrpe from the monitoring >>host. The monitoring host is running RedHat Enterprise 3.0 and the >>monitored host is running AIX 5.3. The problem only happens if I run >>nrpe in inetd mode. If I run nrpe as a separate daemon, with -d >>option, it's working fine. >> >>Thanks in advance for your help. >> >> >> > > > > > > ------------------------------------------------------------------------ > > Subject: > RE: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE > From: > "Arnold Wang" > Date: > Fri, 13 Aug 2004 13:34:46 -0700 > To: > "Tim Brazil" > > To: > "Tim Brazil" > > >Here is what it looks like in inetd.conf: >nrpe stream tcp nowait nagios /usr/local/nagios/bin/nrpe >/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -i > > >The nrpe.cfg file looks like this, which I believed used when I run nrpe -d >mode: >server_port=5666 >allowed_hosts=127.0.0.1,10.17.2.88 >nrpe_user=nagios >nrpe_group=nagios >dont_blame_nrpe=0 >debug=0 >command_timeout=60 >command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 >command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c >30,25,20 >command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p >/dev/hd >a1 >command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p >/dev/hd >b1 >command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 >-s >Z >command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c >200 > >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Friday, August 13, 2004 1:29 PM >To: Arnold Wang >Subject: Re: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE > >Just a guess... are you running the inetd process as the nagios user? > >nrpe stream tcp nowait nagios /usr/sbin/tcpd /usr/sbin/nrpe -c >/usr/local/nagios/etc/nrpe.cfg -i > > >Arnold Wang wrote: > > > >>I posted the following message to the checkins list and haven't >>received any response yet, I hope I can get some helps here. >> >>------------------------------------------------------------------------ >> >>*From:* Arnold Wang >>*Sent:* Friday, August 13, 2004 11:51 AM >>*To:* nagios-checkins at lists.sourceforge.net >>*Subject:* [Nagios-checkins] SSL error for NRPE >> >>I received the following error "CHECK_NRPE: Error - Could not complete >>SSL handshake." when I tried to run check_nrpe from the monitoring >>host. The monitoring host is running RedHat Enterprise 3.0 and the >>monitored host is running AIX 5.3. The problem only happens if I run >>nrpe in inetd mode. If I run nrpe as a separate daemon, with -d >>option, it's working fine. >> >>Thanks in advance for your help. >> >> >> > > > > > ------------------------------------------------------------------------ > > Subject: > RE: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE > From: > "Arnold Wang" > Date: > Fri, 13 Aug 2004 14:29:02 -0700 > To: > "Tim Brazil" > > To: > "Tim Brazil" > CC: > nagiosplug-devel at lists.sourceforge.net > > >Here is the output, which is beyond me to interpret. >[root at rcarhld01 /]# openssl s_client -connect rcaaixd02:5666 -debug >CONNECTED(00000003) >write to 080AD2F8 [080AD340] (142 bytes => 142 (0x8E)) >0000 - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00 ......c... ..9.. >0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............ >0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00 ..3..2../.....f. >0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00 .............c.. >0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40 b..a...........@ >0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00 ..e..d..`....... >0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 d1 1c ................ >0070 - cc d9 8f 5d 03 e5 47 6f-03 87 0d d3 4b 9c b7 49 ...]..Go....K..I >0080 - 99 1e 4d a1 d7 88 b8 42-cb 2e 28 a9 c5 be ..M....B..(... >read from 080AD2F8 [080B28A0] (7 bytes => 0 (0x0)) >15787:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake >failure:s23_lib.c:226: > >The following is the output when I run nrpe -d on the remote host. >[root at rcarhld01 libexec]# openssl s_client -connect rcaaixd02:5666 -debug >CONNECTED(00000003) >write to 080AD2F8 [080AD340] (142 bytes => 142 (0x8E)) >0000 - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00 ......c... ..9.. >0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............ >0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00 ..3..2../.....f. >0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00 ............c.. >0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40 b..a...........@ >0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00 ..e..d..`....... >0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 e4 c0 ................ >0070 - de c2 fd f6 10 55 22 dc-3d fc d2 40 e3 4b db 60 .....U".=.. at .K.` >0080 - 6d d6 35 30 4b 05 50 58-71 e0 47 e1 d6 ec m.50K.PXq.G... >read from 080AD2F8 [080B28A0] (7 bytes => 7 (0x7)) >0000 - 15 03 01 00 02 02 28 ......( >16818:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert >handshake failure:s23_clnt.c:470: >-----Original Message----- >From: Tim Brazil [mailto:brazil at sendmail.com] >Sent: Friday, August 13, 2004 2:11 PM >To: Arnold Wang >Cc: nagiosplug-devel at lists.sourceforge.net >Subject: Re: [Nagiosplug-devel] FW: [Nagios-checkins] SSL error for NRPE > >The way you may be able to figure it out is via debug output from >openssl s_client. Make sure your client and server share the same cyphers > >/usr/bin/openssl s_client -connect :5666 -debug > > >Arnold Wang wrote: > > > >>I posted the following message to the checkins list and haven't >>received any response yet, I hope I can get some helps here. >> >>------------------------------------------------------------------------ >> >>*From:* Arnold Wang >>*Sent:* Friday, August 13, 2004 11:51 AM >>*To:* nagios-checkins at lists.sourceforge.net >>*Subject:* [Nagios-checkins] SSL error for NRPE >> >>I received the following error "CHECK_NRPE: Error - Could not complete >>SSL handshake." when I tried to run check_nrpe from the monitoring >>host. The monitoring host is running RedHat Enterprise 3.0 and the >>monitored host is running AIX 5.3. The problem only happens if I run >>nrpe in inetd mode. If I run nrpe as a separate daemon, with -d >>option, it's working fine. >> >>Thanks in advance for your help. >> >> >> > > > From nick at torchbox.com Tue Aug 17 05:40:02 2004 From: nick at torchbox.com (Nick Burch) Date: Tue Aug 17 05:40:02 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrect command Message-ID: Hi All I've just noticed that check_mem.pl from the contrib section is using the following command to check memory useage: vmstat | tail -1 | awk '{print \$4,\$5}' And then treating the two numbers it gets back as used and free memory respectively. Only one slight problem - all the copies of vmstat I can find report: procs-r procs-b procs-w swap-used mem-free .... i.e. the 5th value is the free memory, but the 4td is swap useage, not total memory useage. To get memory useage and free memory, you need to use command "free" (on all the systems I have, at any rate). The following patch will get check_mem.pl to check for free and used memory, ignoring memory used for buffering: --- check_mem.pl.old 2004-08-16 16:30:45.000000000 +0100 +++ check_mem.pl 2004-08-16 16:35:43.000000000 +0100 @@ -39,7 +39,7 @@ $verb_err = 0; # This the unix command string that brings Perl the data -$command_line = `vmstat | tail -1 | awk '{print \$4,\$5}'`; +$command_line = `free | head -3 | tail -1 | awk '{print \$3,\$4}'`; chomp $command_line; Could someone verify this patch does the right things, and if it does, update the contrib with it? Thanks Nick From GWCOOK at mactec.com Tue Aug 17 16:03:18 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Tue Aug 17 16:03:18 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrect command Message-ID: <41FD7929498A174DAB86C45F28E0EC0D6E9890@golden-m.mactec.com> nagiosplug-devel-admin at lists.sourceforge.net wrote: > Hi All > > I've just noticed that check_mem.pl from the contrib section > is using the > following command to check memory useage: > vmstat | tail -1 | awk '{print \$4,\$5}' > And then treating the two numbers it gets back as used and > free memory > respectively. > > Only one slight problem - all the copies of vmstat I can find report: > procs-r procs-b procs-w swap-used mem-free .... > i.e. the 5th value is the free memory, but the 4td is swap > useage, not > total memory useage. > > To get memory useage and free memory, you need to use command "free" > (on all the systems I have, at any rate). The following patch will get > check_mem.pl to check for free and used memory, ignoring > memory used for > buffering: > > > --- check_mem.pl.old 2004-08-16 16:30:45.000000000 +0100 > +++ check_mem.pl 2004-08-16 16:35:43.000000000 +0100 @@ -39,7 > +39,7 @@ $verb_err = 0; > > # This the unix command string that brings Perl the data > -$command_line = `vmstat | tail -1 | awk '{print \$4,\$5}'`; > +$command_line = `free | head -3 | tail -1 | awk '{print \$3,\$4}'`; > > chomp $command_line; > > > Could someone verify this patch does the right things, and if > it does, > update the contrib with it? > > Thanks > Nick I can verify that neither of them works properly on my system (RH9). The '-f' option to get free memory does not work at all. However, with the -u option, it does appear to work as you have said in the original version, but the patched version does not. Observe: /usr/local/src/nagios/nagios-plugins-HEAD-200408121647/contrib: top 07:15:14 up 180 days, 18:56, 3 users, load average: 1.05, 0.73, 0.66 120 processes: 113 sleeping, 1 running, 6 zombie, 0 stopped CPU0 states: 14.0% user 2.0% system 0.0% nice 0.0% iowait 82.0% idle CPU1 states: 1.0% user 1.0% system 0.0% nice 0.0% iowait 96.0% idle Mem: 1030344k av, 971092k used, 59252k free, 0k shrd, 182032k buff 649668k actv, 4996k in_d, 18540k in_c Swap: 2040212k av, 143864k used, 1896348k free 519776k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND [snip] /usr/local/src/nagios/nagios-plugins-HEAD-200408121647/contrib: sudo perl check_mem.pl -u -w 80 -c 90 Memory OK - 26.1% (269200 kB) used /usr/local/src/nagios/nagios-plugins-HEAD-200408121647/contrib: sudo perl check_mem.orig.pl -u -w 80 -c 90 Memory OK - 70.2% (143852 kB) used The patched version (check_mem.pl above) shows used memory when using the -u option. But I'm not sure where the figure (269200 kB) is coming from. Perhaps I'm not reading the output of top correctly, and this is correct? If so, please explain. The original version (check_mem.orig.pl), when used with the -u option, does indeed appear to show the swap space in use. Instead of fixing it the way that you have, why not add a third option to check the swap? Also, since you are taking the time to get in there and fix the code, why not add Performance Data output as well? Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) From nick at torchbox.com Wed Aug 18 03:16:03 2004 From: nick at torchbox.com (Nick Burch) Date: Wed Aug 18 03:16:03 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrect command In-Reply-To: <41FD7929498A174DAB86C45F28E0EC0D6E9890@golden-m.mactec.com> Message-ID: On Tue, 17 Aug 2004, Cook, Garry wrote: > I can verify that neither of them works properly on my system (RH9). The > '-f' option to get free memory does not work at all. However, with the > -u option, it does appear to work as you have said in the original > version, but the patched version does not. Observe: > > /usr/local/src/nagios/nagios-plugins-HEAD-200408121647/contrib: top > > 07:15:14 up 180 days, 18:56, 3 users, load average: 1.05, 0.73, 0.66 > 120 processes: 113 sleeping, 1 running, 6 zombie, 0 stopped > CPU0 states: 14.0% user 2.0% system 0.0% nice 0.0% iowait 82.0% > idle > CPU1 states: 1.0% user 1.0% system 0.0% nice 0.0% iowait 96.0% > idle > Mem: 1030344k av, 971092k used, 59252k free, 0k shrd, 182032k > buff > 649668k actv, 4996k in_d, 18540k in_c > Swap: 2040212k av, 143864k used, 1896348k free 519776k > cached Instead of using top, using "free" is normally better, as it just reports the memory usage. >From the above, we can see you have 1030344k memory in total. At that point, including disk buffers and caching, 971092k was used. You have 182032k used for disk buffering and 519776k used for caching, both of which are handled by the kernel, and shoved out of the way when memory is required. Based on this, you have 971092-182032-519776 = 269284k of memory in use by programs, and hence 1030344-269284 = 761060k free. (The free command does these calculation for you) > /usr/local/src/nagios/nagios-plugins-HEAD-200408121647/contrib: sudo > perl check_mem.pl -u -w 80 -c 90 > Memory OK - 26.1% (269200 kB) used This matches the above calculation > /usr/local/src/nagios/nagios-plugins-HEAD-200408121647/contrib: sudo > perl check_mem.orig.pl -u -w 80 -c 90 > Memory OK - 70.2% (143852 kB) used This is your "swap used" value. the old version used vmstat to get its info, and the column if though was "memory used" is now "swap used" > The patched version (check_mem.pl above) shows used memory when using > the -u option. But I'm not sure where the figure (269200 kB) is coming > from. Perhaps I'm not reading the output of top correctly, and this is > correct? If so, please explain. With linux, you have two pools of memory - real and swap. Swap memory is used for program requested storage that hasn't been used in "a bit" (how to define "a bit" is the source of much discussion, and is what memory managers are all about). Real memory is used for currently and recently used program storage, and data the OS has decided to cache for you. On a normal linux system, you'd expect used memory (including buffers) to be near 100% - this shows the scheduler and cacher are doing their job. What is normally of interest is how much memory is in use / free when you ignore the cached data (since the disk cache data may be thrown away by the memory manager if more space is required) > Instead of fixing it the way that you have, why not add a third option > to check the swap? I've enclosed a new patch, which adds the "-s" option. When given, instead of reporting on real memory, it reports on swap instead > Also, since you are taking the time to get in there and fix the code, > why not add Performance Data output as well? I'm using "free" not "top", so all I have to hand is real memory useage, swap useage and buffering/caching. It wouldn't be too hard to report these, if people think they might be useful Nick -------------- next part -------------- --- check_mem.pl.old 2004-08-16 16:30:45.000000000 +0100 +++ check_mem.pl 2004-08-18 10:56:09.000000000 +0100 @@ -22,7 +22,7 @@ use strict; use Getopt::Std; -use vars qw($opt_c $opt_f $opt_u $opt_w +use vars qw($opt_c $opt_f $opt_u $opt_w $opt_s $free_memory $used_memory $total_memory $crit_level $warn_level %exit_codes @memlist @@ -38,17 +38,6 @@ # Turn this to 1 to see reason for parameter errors (if any) $verb_err = 0; -# This the unix command string that brings Perl the data -$command_line = `vmstat | tail -1 | awk '{print \$4,\$5}'`; - -chomp $command_line; - at memlist = split(/ /, $command_line); - -# Define the calculating scalars -$used_memory = $memlist[0]; -$free_memory = $memlist[1]; -$total_memory = $used_memory + $free_memory; - # Get the options if ($#ARGV le 0) { @@ -56,7 +45,7 @@ } else { - getopts('c:fuw:'); + getopts('c:fusw:'); } # Shortcircuit the switches @@ -86,23 +75,46 @@ $warn_level = $opt_w; $crit_level = $opt_c; +# Which line of "free" contains our data of interest +my $mem_line = 3; +my $what_rep = "Memory"; +if($opt_s) { + $mem_line = 4; + $what_rep = "Swap"; +} + +# Now go and get the details of the free and used memory + +# This the unix command string that brings Perl the data +$command_line = `free | head -$mem_line | tail -1 | awk '{print \$3,\$4}'`; + +chomp $command_line; + at memlist = split(/ /, $command_line); + +# Define the calculating scalars +$used_memory = $memlist[0]; +$free_memory = $memlist[1]; +$total_memory = $used_memory + $free_memory; + + +# Now do our reporting bits if ($opt_f) { $percent = $free_memory / $total_memory * 100; $fmt_pct = sprintf "%.1f", $percent; if ($percent <= $crit_level) { - print "Memory CRITICAL - $fmt_pct% ($free_memory kB) free\n"; + print "$what_rep CRITICAL - $fmt_pct% ($free_memory kB) free, $total_memory kB total\n"; exit $exit_codes{'CRITICAL'}; } elsif ($percent <= $warn_level) { - print "Memory WARNING - $fmt_pct% ($free_memory kB) free\n"; + print "$what_rep WARNING - $fmt_pct% ($free_memory kB) free, $total_memory kB total\n"; exit $exit_codes{'WARNING'}; } else { - print "Memory OK - $fmt_pct% ($free_memory kB) free\n"; + print "$what_rep OK - $fmt_pct% ($free_memory kB) free, $total_memory kB total\n"; exit $exit_codes{'OK'}; } } @@ -112,17 +124,17 @@ $fmt_pct = sprintf "%.1f", $percent; if ($percent >= $crit_level) { - print "Memory CRITICAL - $fmt_pct% ($used_memory kB) used\n"; + print "$what_rep CRITICAL - $fmt_pct% ($used_memory kB) used, $total_memory kB total\n"; exit $exit_codes{'CRITICAL'}; } elsif ($percent >= $warn_level) { - print "Memory WARNING - $fmt_pct% ($used_memory kB) used\n"; + print "$what_rep WARNING - $fmt_pct% ($used_memory kB) used, $total_memory kB total\n"; exit $exit_codes{'WARNING'}; } else { - print "Memory OK - $fmt_pct% ($used_memory kB) used\n"; + print "$what_rep OK - $fmt_pct% ($used_memory kB) used, $total_memory kB total\n"; exit $exit_codes{'OK'}; } } @@ -136,6 +148,7 @@ print "options:\n"; print " -f Check FREE memory\n"; print " -u Check USED memory\n"; + print " -s Instead of checking regular memory, check swap\n"; print " -w PERCENT Percent free/used when to warn\n"; print " -c PERCENT Percent free/used when critical\n"; print "\nCopyright (C) 2000 Dan Larsson \n"; From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Aug 18 03:38:05 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed Aug 18 03:38:05 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrect command In-Reply-To: References: <41FD7929498A174DAB86C45F28E0EC0D6E9890@golden-m.mactec.com> Message-ID: <20040818103701.GA413@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your contribution and say that AFAIK - *BSD systems (FreeBSD 4.x anyway) do _not_ have a 'free' command - they do however have a vmstat command which displays stan> vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 ac0 in sy cs us sy id 0 1 0 39356 134156 11 0 0 0 7 0 0 0 1345 2761 1064 1 0 99 stan> from man vmstat ' memory Information about the usage of virtual and real memory. Virtual pages (reported in units of 1024 bytes) are considered active if they belong to processes which are running or have run in the last 20 seconds. avm active virtual pages fre size of the free list ' Would it be better to fish the free mem from the vmstat output (for those systems whose vmstat do show free memory) ? On another matter, you may want to save a few fork and execs by replacing the piped calls to awk and head and friends with direct Perl manipulation of the command output (eg @vmstat = `vmstat`; # could even redirect stderr and check for errors $head = unshift @vmstat ; # etc etc ). OTOH, I can well see why anyone would want to avoid breaking a plugin that works quite well. Yours sincerely. -- Stanley Hopcroft Network specialist, IT Infrastructure IP Australia Ph: (02) 6283 3189 Fax: (02) 6281 1353 PO Box 200 Woden ACT 2606 http://www.ipaustralia.gov.au From nick at torchbox.com Wed Aug 18 03:54:12 2004 From: nick at torchbox.com (Nick Burch) Date: Wed Aug 18 03:54:12 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrect command In-Reply-To: <20040818103701.GA413@IPAustralia.Gov.AU> Message-ID: On Wed, 18 Aug 2004, Stanley Hopcroft wrote: > - *BSD systems (FreeBSD 4.x anyway) do _not_ have a 'free' command > > - they do however have a vmstat command which displays > > stan> vmstat > procs memory page disks faults > cpu > r b w avm fre flt re pi po fr sr ad0 ac0 in sy cs us > sy id Ah. That'll be exactly the format that the old plugin expected Anyone object to me putting some conditional logic in to check the system type, and try to guess the appropriate command for that platform? > Would it be better to fish the free mem from the vmstat output (for > those systems whose vmstat do show free memory) ? Almost certainly. Anyone got any other platforms to hand who could let me know the format (if any) of their "free" and "vmstat" commands? > On another matter, you may want to save a few fork and execs by > replacing the piped calls to awk and head and friends with direct Perl > manipulation of the command output The old version didn't bother doing it in perl. I've tried a perl version - it doesn't cause any noticable speed improvements (both versions take 0.037+-0.02 seconds to run, averaged over 4 runs), and makes the code less readable Nick From benny at bennyvision.com Wed Aug 18 06:14:07 2004 From: benny at bennyvision.com (C. Bensend) Date: Wed Aug 18 06:14:07 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrectcommand In-Reply-To: References: <20040818103701.GA413@IPAustralia.Gov.AU> Message-ID: <53013.63.227.74.41.1092834807.squirrel@webmail.stinkweasel.net> > Almost certainly. Anyone got any other platforms to hand who could let me > know the format (if any) of their "free" and "vmstat" commands? OpenBSD 3.5-STABLE vmstat: procs memory page disk traps cpu r b w avm fre flt re pi po fr sr wd0 int sys cs us sy id No 'free' command exists on OpenBSD either. Benny PS: If the above doesn't tell you the details you need, you can see the full man pages (pardon the linewrap): -STABLE: http://www.openbsd.org/cgi-bin/man.cgi?query=vmstat&apropos=0&sektion=0&manpath=OpenBSD+3.5&arch=i386&format=html -CURRENT: http://www.openbsd.org/cgi-bin/man.cgi?query=vmstat&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html -- "Horrible pain! I made sounds like a dolphin giving birth." -- Mr. Corman, "Scrubs" From nick at torchbox.com Wed Aug 18 10:02:05 2004 From: nick at torchbox.com (Nick Burch) Date: Wed Aug 18 10:02:05 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrectcommand In-Reply-To: <53013.63.227.74.41.1092834807.squirrel@webmail.stinkweasel.net> Message-ID: On Wed, 18 Aug 2004, C. Bensend wrote: > > Almost certainly. Anyone got any other platforms to hand who could let > > me know the format (if any) of their "free" and "vmstat" commands? > > OpenBSD 3.5-STABLE vmstat: Based on that, I looked for other machines. A few hours of fiddling with the Sourceforge compile farm and the HP Testdrive later, I think the script should now be there. For linux, cygwin and solaris/sunos, it will report the free/used physical memory. With the -s switch, it will report swap useage For FreeBSD, NetBSD, OpenBSD, HP-UX and some dec thing, it reports overall (physical + swap combined) useage, and will barf if asked about swap. I can also confirm that all the system's I've seen report meaningful numbers in columns 4 and 5 of vmstat. It's just a pity they can't agree on what the hell they actually are, or mean.... Do people want to try the attached version? Nick -------------- next part -------------- #!/usr/bin/perl -w # $Id: check_mem.pl,v 1.1.1.1 2002/02/28 06:42:54 egalstad Exp $ # check_mem.pl Copyright (C) 2000 Dan Larsson
, # 2004 Nick Burch # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # you should have received a copy of the GNU General Public License # along with this program (or with Nagios); if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA # Tell Perl what we need to use use strict; use Getopt::Std; use Config; use vars qw($opt_c $opt_f $opt_u $opt_w $opt_s $free_memory $used_memory $total_memory $crit_level $warn_level $os %exit_codes @memlist $percent $fmt_pct $verb_err $command_line); # Predefined exit codes for Nagios %exit_codes = ('UNKNOWN' ,-1, 'OK' , 0, 'WARNING' , 1, 'CRITICAL', 2,); # Turn this to 1 to see reason for parameter errors (if any) $verb_err = 0; # What OS are we running on? $os = $Config{'osname'}; # Get the options if ($#ARGV le 0) { &usage; } else { getopts('c:fusw:'); } # Shortcircuit the switches if (!$opt_w or $opt_w == 0 or !$opt_c or $opt_c == 0) { print "*** You must define WARN and CRITICAL levels!" if ($verb_err); &usage; } elsif (!$opt_f and !$opt_u) { print "*** You must select to monitor either USED or FREE memory!" if ($verb_err); &usage; } # Check if levels are sane if ($opt_w <= $opt_c and $opt_f) { print "*** WARN level must not be less than CRITICAL when checking FREE memory!" if ($verb_err); &usage; } elsif ($opt_w >= $opt_c and $opt_u) { print "*** WARN level must not be greater than CRITICAL when checking USED memory!" if ($verb_err); &usage; } # Check if we can report on swap for this platform if($opt_s && !($os eq "linux" || $os eq "cygwin" || $os eq "solaris")) { # Can't get swap info from vmstat, only from free print "Checking swap useage not possible on your platform\n"; exit $exit_codes{'UNKNOWN'}; } $warn_level = $opt_w; $crit_level = $opt_c; # What to report when displaying the output # Which line of "free" contains our data of interest my $what_rep = "Memory"; if($opt_s) { $what_rep = "Swap"; } # Now go and get the details of the free and used memory # As different Unix (and unix-esque) flavours report things differently, # we need to use one of a few commands to check if($os eq "freebsd" || $os eq "netbsd" || $os eq "openbsd" || $os eq "dec_os" || $os eq "hpux") { # Ask vmstat. 4th param is used memory, 5th is free $command_line = `vmstat | tail -1 | awk '{print \$4,\$5}'`; } elsif($os eq "linux" || $os eq "cygwin") { # Use the command "free" to get the required data my $mem_line = 3; if($opt_s) { $mem_line = 4; } $command_line = `free | head -$mem_line | tail -1 | awk '{print \$3,\$4}'`; } elsif($os eq "solaris") { if($opt_s) { # Go ask "swap -s" $command_line = `swap -s | awk '{print \$9,\$11}' | sed s/k//g`; } else { # Ask both vmstat col 5 and prtconf line 2 my $free_cmd = `vmstat | tail -1 | awk '{print \$5}'`; my $tot_cmd = `prtconf -p | head -2 | tail -1 | awk '{print \$3}'`; chomp $free_cmd; chomp $tot_cmd; $command_line = (($tot_cmd*1024)-$free_cmd)." ".$free_cmd."\n"; } } else { print "I'm sorry, I don't know how to check memory on your system.\nPlease send the output of the following commands to\nnagiosplug-devel\@lists.sourceforge.net with a subject\n'check_mem.pl information for new platform' :\n\nfree\nvmstat\nman vmstat\n"; exit $exit_codes{'UNKNOWN'}; } chomp $command_line; @memlist = split(/ /, $command_line); # Define the calculating scalars $used_memory = $memlist[0]; $free_memory = $memlist[1]; $total_memory = $used_memory + $free_memory; # Now do our reporting bits if ($opt_f) { $percent = $free_memory / $total_memory * 100; $fmt_pct = sprintf "%.1f", $percent; if ($percent <= $crit_level) { print "$what_rep CRITICAL - $fmt_pct% ($free_memory kB) free, $total_memory kB total\n"; exit $exit_codes{'CRITICAL'}; } elsif ($percent <= $warn_level) { print "$what_rep WARNING - $fmt_pct% ($free_memory kB) free, $total_memory kB total\n"; exit $exit_codes{'WARNING'}; } else { print "$what_rep OK - $fmt_pct% ($free_memory kB) free, $total_memory kB total\n"; exit $exit_codes{'OK'}; } } elsif ($opt_u) { $percent = $used_memory / $total_memory * 100; $fmt_pct = sprintf "%.1f", $percent; if ($percent >= $crit_level) { print "$what_rep CRITICAL - $fmt_pct% ($used_memory kB) used, $total_memory kB total\n"; exit $exit_codes{'CRITICAL'}; } elsif ($percent >= $warn_level) { print "$what_rep WARNING - $fmt_pct% ($used_memory kB) used, $total_memory kB total\n"; exit $exit_codes{'WARNING'}; } else { print "$what_rep OK - $fmt_pct% ($used_memory kB) used, $total_memory kB total\n"; exit $exit_codes{'OK'}; } } # Show usage sub usage() { print "\ncheck_mem.pl v1.0 - Nagios Plugin\n\n"; print "usage:\n"; print " check_mem.pl - -w -c \n\n"; print "options:\n"; print " -f Check FREE memory\n"; print " -u Check USED memory\n"; print " -s Check swap instead of regular memory. Only on some systems\n"; print " -w PERCENT Percent free/used when to warn\n"; print " -c PERCENT Percent free/used when critical\n"; print "\nCopyright 2000 Dan Larsson , 2004 Nick Burch \n"; print "check_mem.pl comes with absolutely NO WARRANTY either implied or explicit\n"; print "This program is licensed under the terms of the\n"; print "GNU General Public License (check source code for details)\n"; exit $exit_codes{'UNKNOWN'}; } From GWCOOK at mactec.com Wed Aug 18 11:20:02 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Wed Aug 18 11:20:02 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrectcommand Message-ID: <41FD7929498A174DAB86C45F28E0EC0D6E98F7@golden-m.mactec.com> nagiosplug-devel-admin at lists.sourceforge.net wrote: > On Wed, 18 Aug 2004, C. Bensend wrote: >>> Almost certainly. Anyone got any other platforms to hand who could >>> let me know the format (if any) of their "free" and "vmstat" >>> commands? >> >> OpenBSD 3.5-STABLE vmstat: > > Based on that, I looked for other machines. A few hours of > fiddling with > the Sourceforge compile farm and the HP Testdrive later, I think the > script should now be there. > > For linux, cygwin and solaris/sunos, it will report the > free/used physical > memory. With the -s switch, it will report swap useage > > For FreeBSD, NetBSD, OpenBSD, HP-UX and some dec thing, it > reports overall > (physical + swap combined) useage, and will barf if asked about swap. > > I can also confirm that all the system's I've seen report meaningful > numbers in columns 4 and 5 of vmstat. It's just a pity they > can't agree on > what the hell they actually are, or mean.... > > Do people want to try the attached version? > > Nick I've attached a patch which adds Performance Data output, and also adds the 's' flag to the usage output. However, as you can see from what I've pasted below, only 'used' works on my RH9 system. Free and Swap are borked. /usr/local/nagios/libexec: perl check_mem.pl -u -w 20 -c 25 Memory CRITICAL - 25.5% (262688 kB) used, 1030344 kB total | 'Memory Used'=25.5%;20;25;0;100 /usr/local/nagios/libexec: perl check_mem.pl -u -w 20 -c 35 Memory WARNING - 29.9% (308424 kB) used, 1030344 kB total | 'Memory Used'=29.9%;20;35;0;100 /usr/local/nagios/libexec: perl check_mem.pl -u -w 60 -c 80 Memory OK - 26.9% (277600 kB) used, 1030344 kB total | 'Memory Used'=26.9%;60;80;0;100 /usr/local/nagios/libexec: perl check_mem.pl -f -w 60 -c 80 check_mem.pl v1.0 - Nagios Plugin usage: check_mem.pl - -w -c options: -f Check FREE memory -u Check USED memory -s Check swap instead of regular memory. Only on some systems -w PERCENT Percent free/used when to warn -c PERCENT Percent free/used when critical Copyright 2000 Dan Larsson
, 2004 Nick Burch check_mem.pl comes with absolutely NO WARRANTY either implied or explicit This program is licensed under the terms of the GNU General Public License (check source code for details) /usr/local/nagios/libexec: perl check_mem.pl -s -w 60 -c 80 check_mem.pl v1.0 - Nagios Plugin usage: check_mem.pl - -w -c options: -f Check FREE memory -u Check USED memory -s Check swap instead of regular memory. Only on some systems -w PERCENT Percent free/used when to warn -c PERCENT Percent free/used when critical Copyright 2000 Dan Larsson
, 2004 Nick Burch check_mem.pl comes with absolutely NO WARRANTY either implied or explicit This program is licensed under the terms of the GNU General Public License (check source code for details) And, just to be sure that it was not the changes that I've made which broke the plugin: /usr/local/nagios/libexec: perl check_mem.orig.pl -s -w 60 -c 80 check_mem.pl v1.0 - Nagios Plugin usage: check_mem.pl - -w -c options: -f Check FREE memory -u Check USED memory -s Check swap instead of regular memory. Only on some systems -w PERCENT Percent free/used when to warn -c PERCENT Percent free/used when critical Copyright 2000 Dan Larsson
, 2004 Nick Burch check_mem.pl comes with absolutely NO WARRANTY either implied or explicit This program is licensed under the terms of the GNU General Public License (check source code for details) /usr/local/nagios/libexec: perl check_mem.orig.pl -f -w 60 -c 80 check_mem.pl v1.0 - Nagios Plugin usage: check_mem.pl - -w -c options: -f Check FREE memory -u Check USED memory -s Check swap instead of regular memory. Only on some systems -w PERCENT Percent free/used when to warn -c PERCENT Percent free/used when critical Copyright 2000 Dan Larsson
, 2004 Nick Burch check_mem.pl comes with absolutely NO WARRANTY either implied or explicit This program is licensed under the terms of the GNU General Public License (check source code for details) Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) -------------- next part -------------- A non-text attachment was scrubbed... Name: check_mem.pl.patch Type: application/octet-stream Size: 2513 bytes Desc: check_mem.pl.patch URL: From tonvoon at mac.com Wed Aug 18 12:48:00 2004 From: tonvoon at mac.com (Ton Voon) Date: Wed Aug 18 12:48:00 2004 Subject: [Nagiosplug-devel] Bug in check_oracle.sh In-Reply-To: <40C72D80.7040207@cict.fr> References: <40C72D80.7040207@cict.fr> Message-ID: <603492F8-F14F-11D8-A956-000A95D47298@mac.com> Carole, Thanks for the report. This is now fixed in CVS. Ton On 9 Jun 2004, at 16:32, carole verdon wrote: > Hi, > > I would indicate that there is a bug in check_oracle.sh line 161: > > --db) > pmonchk=`ps -ef | grep -v grep | grep ${2} | grep -c pmon` > > In my case, in /etc/oratab, there is 2 databases called "etu92" et > "etu923". The database "etu92" is active while "etu923" is no active. > > When i execute the check_oracle with the sid "etu92", it find that > there is 1 PMON process running. In fact, it takes into account the > process that corresponding to the sid "etu923". > > To solve this problem, it is enough to correct the line that calls the > 'ps' command by: > pmonchk=`ps -ef | grep -v grep | grep ${2}$ | grep -c pmon` > > I hope that will be corrected in the next version of the plugins. > > Carole. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: GNOME Foundation > Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. > GNOME Users and Developers European Conference, 28-30th June in Norway > http://2004/guadec.org > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null > From tonvoon at mac.com Wed Aug 18 12:52:21 2004 From: tonvoon at mac.com (Ton Voon) Date: Wed Aug 18 12:52:21 2004 Subject: [Nagiosplug-devel] Check_ifstatus patch In-Reply-To: <41FD7929498A174DAB86C45F28E0EC0D6E9285@golden-m.mactec.com> References: <41FD7929498A174DAB86C45F28E0EC0D6E9285@golden-m.mactec.com> Message-ID: <0B84E44C-F150-11D8-A956-000A95D47298@mac.com> Committed in CVS. Thanks On 16 Jun 2004, at 15:28, Cook, Garry wrote: > The check_ifstatus patch seems to output Performance Data incorrectly. > I've patched it and included the patch below. For future reference, > please let me know if I should submit this somewhere on sf.net, or if > sending to the list is ok. > Thanks. > > *** check_ifstatus.orig 2004-06-16 08:11:54.000000000 -0600 > --- check_ifstatus 2004-06-16 08:12:31.000000000 -0600 > *************** > *** 207,213 **** > $ifexclude, > $ifunused); > } > ! my $perfdata = > sprintf("up:%d,down:%d,dormant:%d,excluded:%d,unused:%d",$ifup,$ifdown, > $ > ifdormant,$ifexclude,$ifunused); > print ("$state: $answer |$perfdata\n"); > exit $ERRORS{$state}; > > --- 207,213 ---- > $ifexclude, > $ifunused); > } > ! my $perfdata = > sprintf("up=%d,down=%d,dormant=%d,excluded=%d,unused=%d",$ifup,$ifdown, > $ > ifdormant,$ifexclude,$ifunused); > print ("$state: $answer |$perfdata\n"); > exit $ERRORS{$state}; > > > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > NWMGYKND > _______________________________________________ > 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 pla at softflare.com Wed Aug 18 13:21:07 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed Aug 18 13:21:07 2004 Subject: [Nagiosplug-devel] Re: Bug in check_oracle.sh In-Reply-To: <603492F8-F14F-11D8-A956-000A95D47298@mac.com> References: <40C72D80.7040207@cict.fr> <603492F8-F14F-11D8-A956-000A95D47298@mac.com> Message-ID: <20040818202021.10243.qmail@mullet.softflare.net> Ton Voon writes: > On 9 Jun 2004, at 16:32, carole verdon wrote: >> To solve this problem, it is enough to correct the line that calls the >> 'ps' command by: >> pmonchk=`ps -ef | grep -v grep | grep ${2}$ | grep -c pmon` Yep, that will stop etu923 being confused with etu92. However, you will have problems with vetu92. I would suggest ^${2}$ is a more complete fix. -- Paul Allen Softflare Support From tonvoon at mac.com Wed Aug 18 13:27:08 2004 From: tonvoon at mac.com (Ton Voon) Date: Wed Aug 18 13:27:08 2004 Subject: [Nagiosplug-devel] Re: Bug in check_oracle.sh In-Reply-To: <20040818202021.10243.qmail@mullet.softflare.net> References: <40C72D80.7040207@cict.fr> <603492F8-F14F-11D8-A956-000A95D47298@mac.com> <20040818202021.10243.qmail@mullet.softflare.net> Message-ID: Good point. Committed to CVS. Actually, I prefer to use check_oracle --login - much better error messages... Ton On 18 Aug 2004, at 21:20, Paul L. Allen wrote: > Ton Voon writes: >> On 9 Jun 2004, at 16:32, carole verdon wrote: > >>> To solve this problem, it is enough to correct the line that calls >>> the 'ps' command by: >>> pmonchk=`ps -ef | grep -v grep | grep ${2}$ | grep -c pmon` > > Yep, that will stop etu923 being confused with etu92. However, you > will > have problems with vetu92. I would suggest ^${2}$ is a more complete > fix. > -- > Paul Allen > Softflare Support > From noreply at sourceforge.net Wed Aug 18 13:28:07 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 18 13:28:07 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-984174 ] Fix for check_disk.c Perfdata Message-ID: Patches item #984174, was opened at 2004-07-02 17:28 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=984174&group_id=29880 Category: Perf data Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Garry W. Cook (g_force) >Assigned to: Ton Voon (tonvoon) Summary: Fix for check_disk.c Perfdata Initial Comment: Perfdata for check_disk was reporting wrong, -w and -c reported backwards when using %. Patch follows: --- check_disk.c.orig 2004-07-02 09:50:32.000000000 -0600 +++ check_disk.c.new 2004-07-02 10:22:10.000000000 -0600 @@ -192,8 +192,8 @@ asprintf (&perf, "%s %s", perf, perfdata ((!strcmp (file_system, "none") || display_mntp) ? me- >me_devname : me->me_mountdir, fsp.fsu_bavail*fsp.fsu_blocksize/mult, units, - TRUE, min ((uintmax_t) psize-(uintmax_t)w_df, (uintmax_t)((1.0-w_dfp/100.0) *psize)), - TRUE, min ((uintmax_t) psize-(uintmax_t)c_df, (uintmax_t)((1.0-c_dfp/100.0) *psize)), + TRUE, min ((uintmax_t) psize-(uintmax_t)w_df, (uintmax_t)((w_dfp/100.0) *psize)), + TRUE, min ((uintmax_t) psize-(uintmax_t)c_df, (uintmax_t)((c_dfp/100.0) *psize)), TRUE, 0, TRUE, psize)); if (disk_result==STATE_OK && erronly && !verbose) ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2004-08-18 21:27 Message: Logged In: YES user_id=664364 Thanks. Committed to check_disk 1.43 ---------------------------------------------------------------------- Comment By: Garry W. Cook (g_force) Date: 2004-07-02 22:10 Message: Logged In: YES user_id=197417 OK, please disregard patch above. It did not behave the way that I thought it did. New patch attached. If this one doesn't work, I give up, but it seems to be correct now. Keep in mind, that it does not display perfdata the way it displays output. My output is in % free space, but the perfdata is MB in use. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=984174&group_id=29880 From benny at bennyvision.com Wed Aug 18 13:34:10 2004 From: benny at bennyvision.com (C. Bensend) Date: Wed Aug 18 13:34:10 2004 Subject: [Nagiosplug-devel] patch: contrib/check_mem.pl using incorrectcommand In-Reply-To: References: <53013.63.227.74.41.1092834807.squirrel@webmail.stinkweasel.net> Message-ID: <2826.134.244.169.17.1092861228.squirrel@webmail.stinkweasel.net> > Do people want to try the attached version? Hey Nick, This version seems to work fine on OpenBSD 3.4-STABLE and 3.5-STABLE. Thanks! Benny -- "Horrible pain! I made sounds like a dolphin giving birth." -- Mr. Corman, "Scrubs" From tonvoon at mac.com Wed Aug 18 13:37:04 2004 From: tonvoon at mac.com (Ton Voon) Date: Wed Aug 18 13:37:04 2004 Subject: [Nagiosplug-devel] [patch] check_swap for NetBSD/OpenBSD In-Reply-To: <20040814073121.GA25105@seanius.net> References: <20040814073121.GA25105@seanius.net> Message-ID: <4115D1D1-F156-11D8-A956-000A95D47298@mac.com> Sean, This looks good, but I cannot test. I doesn't break anything on my MacOSX system, so I've committed this to CVS now. Thanks. Ton On 14 Aug 2004, at 08:31, sean finney wrote: > hey there, > > after taking a look to see how it was done with the swap/swapinfo > commands, i've added the functionality to the configure script > to detect the NetBSD/OpenBSD swapctl command and configure > itself accordingly. i've kept the patch as minimal as possible > (basically copying what was done for swap/swapinfo in configure.in), > and it's based off of a cvs checkout from earlier this afternoon. > > fwiw, i've tested this on NetBSD macppc and i386, as well as > OpenBSD i386. > > > sean > From noreply at sourceforge.net Wed Aug 18 13:45:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 18 13:45:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-992583 ] regex fix for check_ntp Message-ID: Patches item #992583, was opened at 2004-07-16 22:46 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=992583&group_id=29880 Category: Bugfix Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Nayden Naydenov (naidd) >Assigned to: Ton Voon (tonvoon) Summary: regex fix for check_ntp Initial Comment: The check_ntp plugin included with nagios-plugins-1.3.1 has a problem parsing the output from various ntp servers. Here is an example: ./check_ntp -H clock Use of uninitialized value in concatenation (.) or string at ./123 line 308. NTP UNKNOWN: Jitter too high And here is the verbose output: ./check_ntp -H clock -v server 192.168.2.222, stratum 1, offset -0.000741, delay 0.03159 ntperr = 0 16 Jul 17:36:37 ntpdate[12099]: adjust time server 192.168.2.222 offset -0.000741 sec ntperr = 0 remote refid st t when poll reach delay offset jitter ============================================================================== *127.127.1.0 .GPS. 0 - 11 64 377 0.000 0.000 0.000 Candiate count= 1 192.168.2.255 0.0.0.0 16 u - 64 0 0.000 0.000 0.000 192.168.3.255 0.0.0.0 16 u - 64 0 0.000 0.000 0.000 192.168.6.255 0.0.0.0 16 u - 64 0 0.000 0.000 0.000 192.168.9.255 0.0.0.0 16 u - 64 0 0.000 0.000 0.000 Use of uninitialized value in concatenation (.) or string at ./123 line 308. NTP UNKNOWN: Jitter too high As you can see, the "t" (peer type) field in the first table row is "-", and the script is only expecting to see "l", "u", "m", or "b". Changing the following regular expression (line 265) fixes the problem (notice the extra "-"): BEFORE: # match sys.peer or pps.peer if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { AFTER: # match sys.peer or pps.peer if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { Finally, here is the brief output after the change: ./check_ntp -H clock NTP OK: Offset -0.000771 secs, jitter 0.000 msec, peer is stratum 0 ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2004-08-18 21:44 Message: Logged In: YES user_id=664364 Nayden, Thanks for the report. This appears to be fixed in 1.18 of check_ntp.pl. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=992583&group_id=29880 From noreply at sourceforge.net Wed Aug 18 13:50:11 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 18 13:50:11 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-981253 ] Patch for is_hostname in utils.c Message-ID: Patches item #981253, was opened at 2004-06-28 14:39 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=981253&group_id=29880 Category: Bugfix Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Guido Trotter (ultrotter) >Assigned to: Ton Voon (tonvoon) Summary: Patch for is_hostname in utils.c Initial Comment: As an hostname is now allowed to begin with a digit so shall be a hostname component: es: ns.2way.de This patch fixes the problem (present in 1.3.1, I've not checked later versions) ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2004-08-18 21:49 Message: Logged In: YES user_id=664364 Guido, Thanks for the report. We use a different way of checking hostnames in 1.4 (by trying to resolve the given name) Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=981253&group_id=29880 From noreply at sourceforge.net Wed Aug 18 14:00:05 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 18 14:00:05 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-949070 ] check_tcp enhancement: ignore output Message-ID: Patches item #949070, was opened at 2004-05-06 11:58 Message generated for change (Settings changed) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=949070&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jan-Piet Mens (jpm) >Assigned to: Ton Voon (tonvoon) Summary: check_tcp enhancement: ignore output Initial Comment: This patch add an option to ignore the output of check_tcp. I use this when checking a mainframe for 3270 connections; the bytes that are output look funny. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=949070&group_id=29880 From seanius at seanius.net Wed Aug 18 14:12:08 2004 From: seanius at seanius.net (sean finney) Date: Wed Aug 18 14:12:08 2004 Subject: [Nagiosplug-devel] [patch] check_swap for NetBSD/OpenBSD In-Reply-To: <4115D1D1-F156-11D8-A956-000A95D47298@mac.com> References: <20040814073121.GA25105@seanius.net> <4115D1D1-F156-11D8-A956-000A95D47298@mac.com> Message-ID: <20040818210504.GA4246@seanius.net> hi tom, i've also been working on getting this working on tru64 unix, but the change is more complicated and will take a little more time. however, it's led me to finding something that you might find interesting: tru64, provides a system call called swapctl(2), which you can use among other things to get a list of swap devices and their statuses. since swapon -s is ugly and would be complicated to parse (and i can't find any better programs on the system), i'm going to try and implement it via this syscall. where this gets interesting is that solaris and *bsd also provide this functionality, though the bsd functions differ slightly in calling conventions. linux doesn't provide this function, but does provide sysinfo(2), which among other things returns the total and free amounts of swap. is there any reason not to use these syscalls? i think it could considerably clean up the code in question. i'd be happy to do the legwork myself on this, just let me know. sean On Wed, Aug 18, 2004 at 09:36:16PM +0100, Ton Voon wrote: > Sean, > > This looks good, but I cannot test. I doesn't break anything on my > MacOSX system, so I've committed this to CVS now. Thanks. > > Ton > > On 14 Aug 2004, at 08:31, sean finney wrote: > > >hey there, > > > >after taking a look to see how it was done with the swap/swapinfo > >commands, i've added the functionality to the configure script > >to detect the NetBSD/OpenBSD swapctl command and configure > >itself accordingly. i've kept the patch as minimal as possible > >(basically copying what was done for swap/swapinfo in configure.in), > >and it's based off of a cvs checkout from earlier this afternoon. > > > >fwiw, i've tested this on NetBSD macppc and i386, as well as > >OpenBSD i386. > > > > > > sean > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From seanius at seanius.net Wed Aug 18 14:12:10 2004 From: seanius at seanius.net (sean finney) Date: Wed Aug 18 14:12:10 2004 Subject: [Nagiosplug-devel] [patch] check_swap for NetBSD/OpenBSD In-Reply-To: <20040818210504.GA4246@seanius.net> References: <20040814073121.GA25105@seanius.net> <4115D1D1-F156-11D8-A956-000A95D47298@mac.com> <20040818210504.GA4246@seanius.net> Message-ID: <20040818210548.GA4492@seanius.net> On Wed, Aug 18, 2004 at 05:05:04PM -0400, sean finney wrote: > hi tom, ton! sorry :) sean -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From tonvoon at mac.com Wed Aug 18 14:17:04 2004 From: tonvoon at mac.com (Ton Voon) Date: Wed Aug 18 14:17:04 2004 Subject: [Nagiosplug-devel] [patch] check_swap for NetBSD/OpenBSD In-Reply-To: <20040818210504.GA4246@seanius.net> References: <20040814073121.GA25105@seanius.net> <4115D1D1-F156-11D8-A956-000A95D47298@mac.com> <20040818210504.GA4246@seanius.net> Message-ID: Sean, Our policy is to try and use system calls where possible, rather than parsing command line tools, so your idea is exactly what we are looking for. If you can get it to work on tru64, solaris and *bsd, then I'd be more than happy to commit. However, it may have to wait until 1.5 as 1.4 is in an alpha state at the moment. Ton On 18 Aug 2004, at 22:05, sean finney wrote: > hi tom, > > i've also been working on getting this working on tru64 unix, > but the change is more complicated and will take a little more time. > however, it's led me to finding something that you might find > interesting: > > tru64, provides a system call called swapctl(2), which you can use > among other things to get a list of swap devices and their statuses. > since swapon -s is ugly and would be complicated to parse (and i can't > find any better programs on the system), i'm going to try and implement > it via this syscall. > > where this gets interesting is that solaris and *bsd also provide > this functionality, though the bsd functions differ slightly in > calling conventions. linux doesn't provide this function, but > does provide sysinfo(2), which among other things returns > the total and free amounts of swap. > > is there any reason not to use these syscalls? i think it could > considerably clean up the code in question. i'd be happy to do > the legwork myself on this, just let me know. From noreply at sourceforge.net Wed Aug 18 14:27:04 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 18 14:27:04 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-944000 ] Patch to improve check_dig Message-ID: Patches item #944000, was opened at 2004-04-28 21:57 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=944000&group_id=29880 Category: Enhancement Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Bill Kunkel (gollum13) >Assigned to: Ton Voon (tonvoon) Summary: Patch to improve check_dig Initial Comment: This patch adds the ability to set the record type (i.e. A, MX, NS, etc) that gets passed to dig and also set an string expected in the answer section of the dig results. This is very usefull to keep an eye on things like MX records to know when the go missing or get changed. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2004-08-18 22:26 Message: Logged In: YES user_id=664364 Bill, Thanks for the patch. Applied to check_dig.c v1.26 Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=944000&group_id=29880 From noreply at sourceforge.net Wed Aug 18 14:30:04 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Aug 18 14:30:04 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-921082 ] check_disk MACOSX support Message-ID: Patches item #921082, was opened at 2004-03-22 15:40 Message generated for change (Comment added) made by tonvoon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=921082&group_id=29880 Category: Enhancement Group: None >Status: Pending Resolution: None Priority: 5 Submitted By: Guiom (guiomp) Assigned to: Ton Voon (tonvoon) Summary: check_disk MACOSX support Initial Comment: adds support for the df output of MAC OSX. The automounter volume are excluded from the output parsed. ---------------------------------------------------------------------- >Comment By: Ton Voon (tonvoon) Date: 2004-08-18 22:29 Message: Logged In: YES user_id=664364 Will mark this call into Pending so it will automatically close after 14 days unless there is an update. ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2004-03-22 19:37 Message: Logged In: YES user_id=664364 Guiom, Thanks for the patch. check_disk in r1.4alpha uses the GNU coreutils lib instead of df, so I think your patch is redundant. Can you try with r1.4? Ton ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=921082&group_id=29880 From pla at softflare.com Wed Aug 18 14:51:06 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed Aug 18 14:51:06 2004 Subject: [Nagiosplug-devel] Re: Bug in check_oracle.sh In-Reply-To: References: <40C72D80.7040207@cict.fr> <603492F8-F14F-11D8-A956-000A95D47298@mac.com> <20040818202021.10243.qmail@mullet.softflare.net> Message-ID: <20040818215049.13082.qmail@mullet.softflare.net> Hi Ton Ton Voon writes: > Good point. Committed to CVS. > > Actually, I prefer to use check_oracle --login - much better error > messages... So far, I don't have to look after any Oracle servers. If I did, maybe I'd use check_oracle like you. But somebody submitted a patch and I spotted an obvious problem with it once it became clear that grep needed a $ to prevent false reports. Regexes are better than pinball. Regexes are even better than sex. OK, I lied - NOTHING beats pinball. But regexes come a close second. :) -- Paul Allen Softflare Support From seanius at seanius.net Wed Aug 18 21:57:08 2004 From: seanius at seanius.net (sean finney) Date: Wed Aug 18 21:57:08 2004 Subject: [Nagiosplug-devel] [patch] check_swap: tru64 support (swapctl(2) syscall) Message-ID: <20040819045634.GA17966@seanius.net> hey folks, attached is a patch to the latest cvs that adds support to check_swap for tru64 systems, via the swapctl(2) syscall. this syscall also exists on solaris with the same calling convention, and a slightly different one exists on *bsd, but for this patch it will only affect systems which don't pass any of the previous configure tests (thus only tru64 to my knowledge). the next patch i'll submit will include reworked code for these other systems, as well as using linux's sysinfo(2) for similar purposes. sean ps - i'm now subscribed to the list, so no need to keep cc'ing me -------------- next part -------------- Index: configure.in =================================================================== RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v retrieving revision 1.111 diff -u -r1.111 configure.in --- configure.in 18 Aug 2004 20:36:07 -0000 1.111 +++ configure.in 19 Aug 2004 04:09:44 -0000 @@ -1388,6 +1388,23 @@ dnl end if for PATH_TO_SWAPCTL fi +dnl +dnl test for swapctl system call, as found in tru64 and solaris +dnl note: the way the ifdef logic in check_swap is right now, +dnl this will only affect systems that don't pass one of the +dnl earlier tests. +dnl +AC_CHECK_HEADERS([sys/swap.h sys/stat.h sys/param.h]) +AC_CHECK_DECLS([swapctl],,,[ + #include + #include + #include + ]) +dnl +dnl end test for swapctl system call +dnl + + if test "x$ac_cv_have_swap" != "x" then AC_DEFINE(HAVE_SWAP,1,[Define if swap/swapinfo command is found]) Index: plugins/check_swap.c =================================================================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_swap.c,v retrieving revision 1.29 diff -u -r1.29 check_swap.c --- plugins/check_swap.c 2 Mar 2004 05:01:19 -0000 1.29 +++ plugins/check_swap.c 19 Aug 2004 04:09:45 -0000 @@ -52,7 +52,7 @@ { int percent_used, percent; unsigned long long total_swap = 0, used_swap = 0, free_swap = 0; - unsigned long long dsktotal, dskused, dskfree, tmp; + unsigned long long dsktotal = 0, dskused = 0, dskfree = 0, tmp = 0; int result = STATE_OK; char input_buffer[MAX_INPUT_BUFFER]; char *perf; @@ -64,6 +64,11 @@ char *temp_buffer; char *swap_command; char *swap_format; +# else +# ifdef HAVE_DECL_SWAPCTL + int i=0, nswaps=0; + swaptbl_t tbl; +# endif /* HAVE_DECL_SWAPCTL */ # endif #endif char str[32]; @@ -230,6 +235,43 @@ /* close the pipe */ if (spclose (child_process)) result = max_state (result, STATE_WARNING); +# else +# ifdef HAVE_DECL_SWAPCTL + + /* initialize swap table entries */ + memset(&tbl, 0, sizeof(swaptbl_t)); + tbl.swt_ent[0].ste_path=(char*)malloc(sizeof(char)*(MAXPATHLEN+1)); + memset(tbl.swt_ent[0].ste_path, 0, sizeof(char)*(MAXPATHLEN+1)); + tbl.swt_n=1; + + /* get the number of active swap devices */ + nswaps=swapctl(SC_GETNSWP, NULL); + + /* and now, tally 'em up */ + for(i=0;i 0){ + percent = 100 * (((double) dskused) / ((double) dsktotal)); + result = max_state (result, check_swap (percent, dskfree)); + } + + total_swap += dsktotal; + free_swap += dskfree; + used_swap += dskused; + } + + /* and clean up after ourselves */ + free(tbl.swt_ent[0].ste_path); + +# endif /* HAVE_DECL_SWAPCTL */ # endif /* HAVE_SWAP */ #endif /* HAVE_PROC_MEMINFO */ Index: plugins/common.h =================================================================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/common.h,v retrieving revision 1.11 diff -u -r1.11 common.h --- plugins/common.h 24 Oct 2003 13:28:24 -0000 1.11 +++ plugins/common.h 19 Aug 2004 04:09:45 -0000 @@ -98,6 +98,18 @@ #include #endif +#ifdef HAVE_DECL_SWAPCTL +# ifdef HAVE_SYS_SWAP_H +# include +# endif +# ifdef HAVE_SYS_STAT_H +# include +# endif +# ifdef HAVE_SYS_PARAM_H +# include +# endif +#endif + /* * * Missing Functions -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From noreply at sourceforge.net Thu Aug 19 06:45:18 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Aug 19 06:45:18 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1012191 ] Selectable behaviour for Admin Down in check_ifoperstatus Message-ID: Patches item #1012191, was opened at 2004-08-19 15:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1012191&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Ra?l Pedroche (pedroche) Assigned to: Nobody/Anonymous (nobody) Summary: Selectable behaviour for Admin Down in check_ifoperstatus Initial Comment: I have modified check_ifoperstatus to allow selecting the status for interfaces with ifAdminStatus = 2 (down), just like it can already be done with interfaces with ifOperStatus = 5 (dormant). I find it quite useful to be able to specify Ignore in hosts with a lot of interfaces that are enabled/disabled commonly, like Ethernet switches. I have also fixed a small bug that outputted "WARNNG" instead of "WARNING" for dormant interfaces (without -w or with -w w). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1012191&group_id=29880 From noreply at sourceforge.net Thu Aug 19 06:50:07 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Aug 19 06:50:07 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1012191 ] Selectable behaviour for Admin Down in check_ifoperstatus Message-ID: Patches item #1012191, was opened at 2004-08-19 15:44 Message generated for change (Settings changed) made by pedroche You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1012191&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None >Priority: 3 Submitted By: Ra?l Pedroche (pedroche) Assigned to: Nobody/Anonymous (nobody) Summary: Selectable behaviour for Admin Down in check_ifoperstatus Initial Comment: I have modified check_ifoperstatus to allow selecting the status for interfaces with ifAdminStatus = 2 (down), just like it can already be done with interfaces with ifOperStatus = 5 (dormant). I find it quite useful to be able to specify Ignore in hosts with a lot of interfaces that are enabled/disabled commonly, like Ethernet switches. I have also fixed a small bug that outputted "WARNNG" instead of "WARNING" for dormant interfaces (without -w or with -w w). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1012191&group_id=29880 From tonvoon at mac.com Thu Aug 19 14:39:08 2004 From: tonvoon at mac.com (Ton Voon) Date: Thu Aug 19 14:39:08 2004 Subject: [Nagiosplug-devel] [patch] check_swap: tru64 support (swapctl(2) syscall) In-Reply-To: <20040819045634.GA17966@seanius.net> References: <20040819045634.GA17966@seanius.net> Message-ID: <1697CFFA-F228-11D8-B219-000A95D47298@mac.com> Sean, Thanks for the patch. Applied in CVS. I think *bsd don't pass the previous tests in the configure, so this probably needs more testing on those systems, but this is a great start. Ton On 19 Aug 2004, at 05:56, sean finney wrote: > hey folks, > > attached is a patch to the latest cvs that adds support to check_swap > for tru64 systems, via the swapctl(2) syscall. this syscall also > exists on solaris with the same calling convention, and a slightly > different one exists on *bsd, but for this patch it will only affect > systems which don't pass any of the previous configure tests (thus > only tru64 to my knowledge). > > the next patch i'll submit will include reworked code for these > other systems, as well as using linux's sysinfo(2) for similar > purposes. > > > sean > > ps - i'm now subscribed to the list, so no need to keep cc'ing me > From seanius at seanius.net Thu Aug 19 15:06:09 2004 From: seanius at seanius.net (sean finney) Date: Thu Aug 19 15:06:09 2004 Subject: [Nagiosplug-devel] [patch] check_swap: tru64 support (AIX anyone?) In-Reply-To: <1697CFFA-F228-11D8-B219-000A95D47298@mac.com> References: <20040819045634.GA17966@seanius.net> <1697CFFA-F228-11D8-B219-000A95D47298@mac.com> Message-ID: <20040819220454.GA10430@seanius.net> hey ton, On Thu, Aug 19, 2004 at 10:38:19PM +0100, Ton Voon wrote: > Thanks for the patch. Applied in CVS. I think *bsd don't pass the > previous tests in the configure, so this probably needs more testing on > those systems, but this is a great start. i think what's actually happening (though i'll verify) is that it's passing the test, but then not adding check_swap to the EXTRAS in configure(.in). the machines i used for testing were... a bit on the slow side, so after running configure i'd go into the plugins dir and make check_swap manually. i'll double check this and send in another patch either way. also, does anyone here have access to an AIX machine? sean -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From benny at bennyvision.com Thu Aug 19 15:39:20 2004 From: benny at bennyvision.com (C. Bensend) Date: Thu Aug 19 15:39:20 2004 Subject: [Nagiosplug-devel] [patch] check_swap: tru64 support (AIX anyone?) In-Reply-To: <20040819220454.GA10430@seanius.net> References: <20040819045634.GA17966@seanius.net> <1697CFFA-F228-11D8-B219-000A95D47298@mac.com> <20040819220454.GA10430@seanius.net> Message-ID: <58150.63.227.74.41.1092955131.squirrel@webmail.stinkweasel.net> > also, does anyone here have access to an AIX machine? Yes, although they do not have gcc / gmake installed (and no, I can't install them either - these are production build machines). They do have IBM compilers on them, however. Benny -- "Horrible pain! I made sounds like a dolphin giving birth." -- Mr. Corman, "Scrubs" From seanius at seanius.net Thu Aug 19 17:07:03 2004 From: seanius at seanius.net (sean finney) Date: Thu Aug 19 17:07:03 2004 Subject: [Nagiosplug-devel] [patch] check_swap: tru64 support (AIX anyone?) In-Reply-To: <58150.63.227.74.41.1092955131.squirrel@webmail.stinkweasel.net> References: <20040819045634.GA17966@seanius.net> <1697CFFA-F228-11D8-B219-000A95D47298@mac.com> <20040819220454.GA10430@seanius.net> <58150.63.227.74.41.1092955131.squirrel@webmail.stinkweasel.net> Message-ID: <20040820000629.GA11457@seanius.net> hi benny, On Thu, Aug 19, 2004 at 05:38:29PM -0500, C. Bensend wrote: > Yes, although they do not have gcc / gmake installed (and no, I can't > install them either - these are production build machines). They do > have IBM compilers on them, however. it's taken a couple hours of googling, but i think i've found the aix system calls[1] that i need to get the necessary swap information (as well as a whole bunch of other useful information). do the ibm compilers successfully compile the nagios plugins? if so, is there any chance i could throw you a tarball to test? from my limited experience with aix, i remember the compiler was particularly picky. if not, could i throw you a test program with just the code in question? sean [1] http://publib16.boulder.ibm.com/pseries/en_US/files/aixfiles/libperfstat.h.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From benny at bennyvision.com Thu Aug 19 17:14:03 2004 From: benny at bennyvision.com (C. Bensend) Date: Thu Aug 19 17:14:03 2004 Subject: [Nagiosplug-devel] [patch] check_swap: tru64 support (AIX anyone?) In-Reply-To: <20040820000629.GA11457@seanius.net> References: <20040819045634.GA17966@seanius.net> <1697CFFA-F228-11D8-B219-000A95D47298@mac.com> <20040819220454.GA10430@seanius.net> <58150.63.227.74.41.1092955131.squirrel@webmail.stinkweasel.net> <20040820000629.GA11457@seanius.net> Message-ID: <57081.63.227.74.41.1092960818.squirrel@webmail.stinkweasel.net> > it's taken a couple hours of googling, but i think i've found the > aix system calls[1] that i need to get the necessary swap information > (as well as a whole bunch of other useful information). > > do the ibm compilers successfully compile the nagios plugins? > if so, is there any chance i could throw you a tarball to test? > from my limited experience with aix, i remember the compiler was > particularly picky. if not, could i throw you a test program > with just the code in question? Personally, I have never had a piece of open source software compile successfully with the IBM compilers. ;) But, after several spectacular failures, I pretty much wrote it off as evil-in-a-CD-case and went on with my life. I guess I have managed one or two compiles, but I recall nothing was easy. You are more than welcome to send me whatever you like - I'll test and report back. As I said, I cannot install real compilers, but I can certainly test anything you send my way. Feel free to send it directly to me, so as not to clutter the list. Benny -- "Horrible pain! I made sounds like a dolphin giving birth." -- Mr. Corman, "Scrubs" From Ton.Voon at egg.com Fri Aug 20 00:25:14 2004 From: Ton.Voon at egg.com (Voon, Ton) Date: Fri Aug 20 00:25:14 2004 Subject: [Nagiosplug-devel] [patch] check_swap: tru64 support (AIX any one?) Message-ID: I did get CVS HEAD to compile successfully on an AIX 5.1 server with gcc, but I no longer have access. -----Original Message----- From: sean finney [mailto:seanius at seanius.net] Sent: 20 August 2004 01:06 To: C. Bensend Cc: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] [patch] check_swap: tru64 support (AIX anyone?) hi benny, On Thu, Aug 19, 2004 at 05:38:29PM -0500, C. Bensend wrote: > Yes, although they do not have gcc / gmake installed (and no, I can't > install them either - these are production build machines). They do > have IBM compilers on them, however. it's taken a couple hours of googling, but i think i've found the aix system calls[1] that i need to get the necessary swap information (as well as a whole bunch of other useful information). do the ibm compilers successfully compile the nagios plugins? if so, is there any chance i could throw you a tarball to test? from my limited experience with aix, i remember the compiler was particularly picky. if not, could i throw you a test program with just the code in question? sean [1] http://publib16.boulder.ibm.com/pseries/en_US/files/aixfiles/libperfstat.h.h tm 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 is authorised and regulated by the Financial Services Authority. Egg Investments Ltd. is entered in the FSA register under number 190518. 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 paulo.fessel at primesys.com.br Fri Aug 20 08:35:45 2004 From: paulo.fessel at primesys.com.br (Paulo Afonso Graner Fessel) Date: Fri Aug 20 08:35:45 2004 Subject: [Nagiosplug-devel] Patch for completeness on check_nt plugin Message-ID: <4B9C5742BB8F8D4895316485C08165A2057F2FE3@brsaoex01.primesys.br> I've looked at code of check_nt.c and there's this remark: // Changed divisor in following line from v to 3044515 to accurately reflect memory size This is incorrect. The memory size that check_nt reports is a sum of RAM and pagefile sizes, as defined here: "Commit Charge: In the Windows operating system, the name for the amount of physical memory (RAM) and virtual memory that is allocated to all running programs, or applications, and the operating system itself. "Windows Task Manager displays the commit charge in its Performance tab. There are three memory readings, measured in kilobytes: * Total: refers to the total amount of physical and virtual memory the computer is using at that moment. * Limit: refers to the combined limit of both the physical memory and the allocated virtual memory. * Peak: refers to the highest total system memory usage during the session in which you are using the computer. "The commit charge will increase when applications are opened and used and decrease when applications are closed." So, dividing the memory collected by 3044515 is confusing, to say the least, as what is shown by MEMUSE is actually the Commit Charge. Dividing it by 3044515 assumes that we're using paging space that is two times the size of Physical RAM - this was exactly the reasoning used by a friend of mine, a Windows specialist. But he corrected himself quickly and went to check the paging file size. It was 1.5x the size of physical RAM and could grow up to 2x physical RAM, when neccessary. But even this behavior may be changed by the user - specifying a paging space that it's 3x the physical RAM, for exemple - thus making the plugin output useless. Another problem with this change is that the values returned by the plugin are different that those shown on field "Commit Charge" on Windows Task Manager, and this may confuse Windows SA's. Also, the original patch made by Gary Cook seems not to have implemented warning and critical levels for performance counters. I have an alternative implementation that does it, along with some sanity checking of the parameters needed to use -v COUNTER. The patch I'm sending solve both issues: it restores the divisor to 1 MB and implements warning and critical levels for performance counters. Please evaluate. []'s Paulo Paulo Afonso Graner Fessel Administrador de Ambiente e Sistemas UNIX paulo.fessel at primesys.com.br OWT Fone: +55 (11) 3038-6464 Fax: +55 (11) 3038-6508 http://www.primesys.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LogoPrimesys.gif Type: image/gif Size: 2173 bytes Desc: LogoPrimesys.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: check_nt.perfdata.newpatch Type: application/octet-stream Size: 8007 bytes Desc: check_nt.perfdata.newpatch URL: From Ton.Voon at egg.com Fri Aug 20 09:16:18 2004 From: Ton.Voon at egg.com (Voon, Ton) Date: Fri Aug 20 09:16:18 2004 Subject: [Nagiosplug-devel] Patch for completeness on check_nt plugin Message-ID: Paulo, You make some very interesting comments. I am happy to include the perf data part (which I will do soon), but as a Unix bod and not a Windows person, I don't feel qualified to make a decision on whether to include the patch about the memory divisor. Any comments from Windows specialists? I'd be happy to go with the majority in this discussion. Ton This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which is authorised and regulated by the Financial Services Authority. Egg Investments Ltd. is entered in the FSA register under number 190518. 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 GWCOOK at mactec.com Fri Aug 20 09:21:07 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Fri Aug 20 09:21:07 2004 Subject: [Nagiosplug-devel] Patch for completeness on check_nt plugin Message-ID: <41FD7929498A174DAB86C45F28E0EC0D6E9942@golden-m.mactec.com> Paulo Afonso Graner Fessel wrote: > I've looked at code of check_nt.c and there's this remark: > > // Changed divisor in following line from v to 3044515 to accurately > reflect memory size > > This is incorrect. The memory size that check_nt reports is a sum of > RAM and pagefile sizes, as defined here: > > "Commit Charge: In the Windows operating system, the name for the > amount of physical memory (RAM) and virtual memory that is allocated > to all running programs, or applications, and the operating system > itself. > > "Windows Task Manager displays the commit charge in its Performance > tab. There are three memory readings, measured in kilobytes: > > * Total: refers to the total amount of physical and virtual memory > the computer is using at that moment. > * Limit: refers to the combined limit of both the physical memory and > the allocated virtual memory. > * Peak: refers to the highest total system memory usage during the > session in which you are using the computer. > > "The commit charge will increase when applications are opened and > used and decrease when applications are closed." OK, I probably should not have made that change, as I was really patching to add performance data. I guess I should know better and stick to changing one thing at a time. However, I did not find this information in the docuementation, and the original values for the MEMUSE check were quite confusing. The change that I made properly reported MEMUSE on my sytems, and as mentioned in the code comments, I was not sure that it was the correct thing to do. Is the information that you've provided above in the NSClient docs somewhere? If so, please let me know and I'll read them again. > So, dividing the memory collected by 3044515 is confusing, to say the > least, as what is shown by MEMUSE is actually the Commit Charge. > Dividing it by 3044515 assumes that we're using paging space that is > two times the size of Physical RAM - this was exactly the reasoning > used by a friend of mine, a Windows specialist. But he corrected > himself quickly and went to check the paging file size. It was 1.5x > the size of physical RAM and could grow up to 2x physical RAM, when > neccessary. But even this behavior may be changed by the user - > specifying a paging space that it's 3x the physical RAM, for exemple > - thus making the plugin output useless. If MEMUSE is actually checking Commit Charge, then I think that the source of the confusion lies in the name of the check. Your point is still valid, and my change should be reversed to it's original value. However, I think that perhaps the name of the check needs to be updated as well, and details on how to actually check physical RAM should be included, if not already in the documentation. > Another problem with this change is that the values returned by the > plugin are different that those shown on field "Commit Charge" on > Windows Task Manager, and this may confuse Windows SA's. > > Also, the original patch made by Gary Cook seems not to have > implemented warning and critical levels for performance counters. I > have an alternative implementation that does it, along with some > sanity checking of the parameters needed to use -v COUNTER. > The patch I'm sending solve both issues: it restores the divisor to 1 > MB and implements warning and critical levels for performance > counters. Please evaluate. I don't check any counters, so wouldn't have been able to test the addition of perfdata for these. Thanks for following up on that, if it works well I'm sure that it will add value to the plugin. > []'s > Paulo > > Paulo Afonso Graner Fessel > Administrador de Ambiente e Sistemas UNIX > paulo.fessel at primesys.com.br > OWT > Fone: +55 (11) 3038-6464 > Fax: +55 (11) 3038-6508 > http://www.primesys.com.br Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) From GWCOOK at mactec.com Fri Aug 20 10:20:11 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Fri Aug 20 10:20:11 2004 Subject: [Nagiosplug-devel] Patch for completeness on check_nt plugin Message-ID: <41FD7929498A174DAB86C45F28E0EC0D6E9944@golden-m.mactec.com> nagiosplug-devel-admin at lists.sourceforge.net wrote: > Paulo, > > You make some very interesting comments. I am happy to > include the perf data > part (which I will do soon), but as a Unix bod and not a > Windows person, I > don't feel qualified to make a decision on whether to include > the patch > about the memory divisor. > > Any comments from Windows specialists? I'd be happy to go > with the majority > in this discussion. > > Ton You should probably include it. The problem is that I'm not a Windows person either, so I should not have changed it in the first place. I shouldn't have messed with something that I didn't fully understand, even if my code comments explained it and offered the original code too. My apologies to all. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) From paulo.fessel at primesys.com.br Fri Aug 20 11:10:10 2004 From: paulo.fessel at primesys.com.br (Paulo Afonso Graner Fessel) Date: Fri Aug 20 11:10:10 2004 Subject: RES: [Nagiosplug-devel] Patch for completeness on check_nt plugin Message-ID: <4B9C5742BB8F8D4895316485C08165A2057F3429@brsaoex01.primesys.br> Hello, Gary and Ton. I found a reference to Commit Charge here: http://www.microsoft.com/technet/prodtechnol/windows2000serv/tips/w2mem. mspx Here are the entries for "Commit Charge": * Commit Charge Total-This number shows the size of virtual memory in use. You'll notice that this number matches the number shown in MEM Usage. * Commit Charge Limit-This shows the size of your paging limit. The paging limit is the maximum size your virtual memory can be without making changes to its configuration. * Commit Charge Peak-This number shows the highest amount of virtual memory used since you began tracking usage. So, it seems that CHECK_MEMUSE is actually showing "Commit Charge Total" and "Commit Charge Limit". What the heck, couldn't MS do things like the rest of all us and show "Virtual Memory In Use" and "Virtual Memory Total"?! []'s Paulo Paulo Afonso Graner Fessel Administrador de Ambiente e Sistemas UNIX paulo.fessel at primesys.com.br OWT Fone: +55 (11) 3038-6464 Fax: +55 (11) 3038-6508 http://www.primesys.com.br > -----Mensagem original----- > De: Cook, Garry [mailto:GWCOOK at mactec.com] > Enviada em: sexta-feira, 20 de agosto de 2004 14:19 > Para: Voon, Ton; Paulo Afonso Graner Fessel; > nagiosplug-devel at lists.sourceforge.net > Assunto: RE: [Nagiosplug-devel] Patch for completeness on > check_nt plugin > > nagiosplug-devel-admin at lists.sourceforge.net wrote: > > Paulo, > > > > You make some very interesting comments. I am happy to include the > > perf data part (which I will do soon), but as a Unix bod and not a > > Windows person, I don't feel qualified to make a decision > on whether > > to include the patch about the memory divisor. > > > > Any comments from Windows specialists? I'd be happy to go with the > > majority in this discussion. > > > > Ton > > You should probably include it. The problem is that I'm not a > Windows person either, so I should not have changed it in the > first place. I shouldn't have messed with something that I > didn't fully understand, even if my code comments explained > it and offered the original code too. > My apologies to all. > > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) > From seanius at seanius.net Sat Aug 21 17:50:03 2004 From: seanius at seanius.net (sean finney) Date: Sat Aug 21 17:50:03 2004 Subject: [Nagiosplug-devel] bug in included asprintf (lib/snprintf.c)? Message-ID: <20040822004901.GA24556@seanius.net> i've spent the past couple hours trying to figure this one out, and think i've finally nailed it. i think asprintf (or something it calls) has trouble with non-standard ints. that is, unsigned long long illicits some strange behavior: #include #include "../config.h" int main(){ char *ptr=NULL; unsigned long long one=1; int two=2; ptr=strdup(""); asprintf(&ptr, "%s [%llu (%d%%)]", ptr, one, two); printf("ptr is: %s\n", ptr); return 0; } produces: ptr is: [0 (1%)] huh? (fwiw, this is on solaris 8, gcc 3.0.4) sean -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From seanius at seanius.net Sun Aug 22 15:01:08 2004 From: seanius at seanius.net (sean finney) Date: Sun Aug 22 15:01:08 2004 Subject: [Nagiosplug-devel] [patch] check_swap: swapctl(2) for tru64,solaris,*BSD,et c Message-ID: <20040822220018.GA24660@seanius.net> hey folks, here's a patch that uses the system call swapctl(2) to determine swap usage statistics instead of the userland program equivalents. fwict, there are two variants of swapctl, one i've called "SVR4" and the other "BSD", based on the host's os and header comments on the machines where they were found. this patch affects the following os's from what i can tell: solaris 7-9 (SVR4) tru64 unix (SVR4) freebsd (BSD) openbsd (BSD) netbsd (BSD) i've tested this on all of the above (plus my linux machine, just to make sure the tests didn't break anything there), except for the freebsd machine, due to a power outage and me not being able to power it back up until tomorrow. for solaris, i removed the clause that detects the solaris output of swap -l, but i've left the rest of them (plus the other HAVE_SWAP commands) as they are until they too can be replaced. from googling, it looks like unixware also has an SVR4 style swapctl, but i don't have a box to test it on. if anyone has a chance, could they look into that? like i said, i left in the previous program checks, but it's possible that having both checks succeed might do something wierd. sean -------------- next part -------------- Index: configure.in =================================================================== RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v retrieving revision 1.112 diff -u -r1.112 configure.in --- configure.in 19 Aug 2004 19:05:48 -0000 1.112 +++ configure.in 22 Aug 2004 21:57:23 -0000 @@ -1303,18 +1303,16 @@ ac_cv_swap_conv=2048 AC_MSG_RESULT([using IRIX format swap]) - elif [$PATH_TO_SWAP -l 2>/dev/null | egrep -i "^swapfile +dev +swaplo +blocks +free" >/dev/null] - then - ac_cv_swap_format=["%*s %*[0-9,-] %*d %d %d"] - ac_cv_swap_conv=2048 - AC_MSG_RESULT([using Solaris format swap]) - elif [$PATH_TO_SWAP -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null] then ac_cv_swap_format=["%*s %*[0-9,-] %*d %d %d"] ac_cv_swap_conv=2048 AC_MSG_RESULT([using Unixware format swap]) - + else + dnl if we don't know what format swap's output is + dnl we might as well pretend we didn't see it + ac_cv_have_swap="" + ac_cv_swap_command="" fi fi dnl end if for PATH_TO_SWAP @@ -1362,46 +1360,83 @@ dnl end if for PATH_TO_SWAPINFO fi -AC_PATH_PROG(PATH_TO_SWAPCTL,swapctl,,[$PATH:/sbin]) -if (test -n "$PATH_TO_SWAPCTL") -then -AC_MSG_CHECKING([for $PATH_TO_SWAPCTL format]) -if [$PATH_TO_SWAPCTL -l 2>&1 >/dev/null] +dnl +dnl test for swapctl system call, both the 2-arg and 3-arg variants +dnl fwict, the 2-arg is an SVR4 standard, whereas the 3-arg is shared +dnl in the various BSD's +dnl + +AC_CHECK_HEADERS([sys/swap.h sys/stat.h sys/param.h]) +AC_CHECK_DECLS([swapctl],,,[ + #include + #include + #include + #include + ]) +AC_CHECK_TYPES([swaptbl_t, swapent_t],,,[ + #include + #include + #include + ]) +AC_CHECK_MEMBERS([struct swapent.se_nblks],,,[ + #include + #include + #include + #include + ]) + +if test "$ac_cv_have_decl_swapctl" = "yes"; then - ac_cv_have_swap=yes - ac_cv_swap_command="$PATH_TO_SWAPCTL -l" - if [$PATH_TO_SWAPCTL -l 2>/dev/null | \ - egrep -i "^Device +1K-blocks +Used +Avail +Capacity +Priority" >/dev/null ] + EXTRAS="$EXTRAS check_swap" + AC_MSG_CHECKING([for 2-arg (SVR4) swapctl]) + if test "$ac_cv_type_swaptbl_t" = "yes" -a \ + "$ac_cv_type_swapent_t" = "yes"; then - ac_cv_swap_format=["%*s %llu %*d %llu %*d"] - ac_cv_swap_conv=1024 - AC_MSG_RESULT([using 1K BSD format swapctl]) - - elif [$PATH_TO_SWAPCTL -l 2>/dev/null | \ - egrep -i "^Device +512-blocks +Used +Avail +Capacity +Priority" >/dev/null ] + AC_MSG_RESULT([yes]) + ac_cv_check_swap_swapctl_svr4="1"; + AC_DEFINE([CHECK_SWAP_SWAPCTL_SVR4],1, + [Define if 2-argument SVR4 swapctl exists]) + else + AC_MSG_RESULT([no]) + AC_MSG_CHECKING([for 3-arg (*BSD) swapctl]) + if test "$ac_cv_member_struct_swapent_se_nblks" = "yes"; + then + AC_MSG_RESULT([yes]) + AC_DEFINE([CHECK_SWAP_SWAPCTL_BSD],1, + [Define if 3-argument BSD swapctl exists]) + else + AC_MSG_RESULT([no]) + fi + fi + AC_MSG_CHECKING([for whether swapctl uses blocks or pages]) + if test "$ac_cv_check_swap_swapctl_svr4" = "1"; then - ac_cv_swap_format=["%*s %llu %*d %llu %*d"] + dnl + dnl the SVR4 spec returns values in pages + dnl + AC_MSG_RESULT([page]) + AC_CHECK_DECLS([sysconf]) + AC_MSG_CHECKING([for system page size]) + if test "$ac_cv_have_decl_sysconf" = "yes"; + then + AC_MSG_RESULT([determined by sysconf(3)]) + ac_cv_swap_conv="(1048576/sysconf(_SC_PAGESIZE))" + else + AC_MSG_WARN([don't know. guessing 4096k]) + ac_cv_swap_conv=256 + fi + else + dnl + dnl the BSD spec returns values in blocks + dnl + AC_MSG_RESULT([blocks (assuming 512b)]) ac_cv_swap_conv=2048 - AC_MSG_RESULT([using 512 byte BSD format swapctl]) fi + AC_DEFINE_UNQUOTED(SWAP_CONVERSION,$ac_cv_swap_conv, + [Conversion factor to MB]) fi -dnl end if for PATH_TO_SWAPCTL -fi - -dnl -dnl test for swapctl system call, as found in tru64 and solaris -dnl note: the way the ifdef logic in check_swap is right now, -dnl this will only affect systems that don't pass one of the -dnl earlier tests. -dnl -AC_CHECK_HEADERS([sys/swap.h sys/stat.h sys/param.h]) -AC_CHECK_DECLS([swapctl],,,[ - #include - #include - #include - ]) dnl -dnl end test for swapctl system call +dnl end tests for the swapctl system calls dnl Index: plugins/check_swap.c =================================================================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_swap.c,v retrieving revision 1.30 diff -u -r1.30 check_swap.c --- plugins/check_swap.c 19 Aug 2004 19:05:49 -0000 1.30 +++ plugins/check_swap.c 22 Aug 2004 21:57:23 -0000 @@ -56,29 +56,37 @@ int result = STATE_OK; char input_buffer[MAX_INPUT_BUFFER]; char *perf; + int conv_factor = SWAP_CONVERSION; #ifdef HAVE_PROC_MEMINFO FILE *fp; #else # ifdef HAVE_SWAP - int conv_factor; /* Convert to MBs */ char *temp_buffer; char *swap_command; char *swap_format; # else # ifdef HAVE_DECL_SWAPCTL - int i=0, nswaps=0; - swaptbl_t tbl; + int i=0, nswaps=0, swapctl_res=0; +# ifdef CHECK_SWAP_SWAPCTL_SVR4 + swaptbl_t *tbl=NULL; + swapent_t *ent=NULL; +# else +# ifdef CHECK_SWAP_SWAPCTL_BSD + struct swapent *ent; +# endif /* CHECK_SWAP_SWAPCTL_BSD */ +# endif /* CHECK_SWAP_SWAPCTL_SVR4 */ # endif /* HAVE_DECL_SWAPCTL */ # endif #endif char str[32]; - char *status; + char *status, *tmp_status; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); status = strdup (""); + tmp_status = strdup (""); perf = strdup (""); if (process_arguments (argc, argv) != OK) @@ -122,7 +130,6 @@ # ifdef HAVE_SWAP asprintf(&swap_command, "%s", SWAP_COMMAND); asprintf(&swap_format, "%s", SWAP_FORMAT); - conv_factor = SWAP_CONVERSION; /* These override the command used if a summary (and thus ! allswaps) is required */ /* The summary flag returns more accurate information about swap usage on these OSes */ @@ -132,14 +139,6 @@ asprintf(&swap_format, "%s", "%d%*s %d"); conv_factor = 1; } -# else -# ifdef sun - if (!allswaps) { - asprintf(&swap_command, "%s", "/usr/sbin/swap -s"); - asprintf(&swap_format, "%s", "%*s %*dk %*s %*s + %*dk %*s = %dk %*s %dk %*s"); - conv_factor = 2048; - } -# endif # endif if (verbose >= 2) @@ -183,15 +182,6 @@ if (verbose >= 3) printf (_("total=%d, used=%d, free=%d\n"), total_swap, used_swap, free_swap); } else { -# else -# ifdef sun - if (!allswaps) { - sscanf (input_buffer, swap_format, &used_swap, &free_swap); - used_swap = used_swap / 1024; - free_swap = free_swap / 1024; - total_swap = used_swap + free_swap; - } else { -# endif # endif while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { sscanf (input_buffer, swap_format, &dsktotal, &dskfree); @@ -219,10 +209,6 @@ } # ifdef _AIX } -# else -# ifdef sun - } -# endif # endif /* If we get anything on STDERR, at least set warning */ @@ -236,31 +222,38 @@ if (spclose (child_process)) result = max_state (result, STATE_WARNING); # else -# ifdef HAVE_DECL_SWAPCTL - - /* initialize swap table entries */ - memset(&tbl, 0, sizeof(swaptbl_t)); - tbl.swt_ent[0].ste_path=(char*)malloc(sizeof(char)*(MAXPATHLEN+1)); - memset(tbl.swt_ent[0].ste_path, 0, sizeof(char)*(MAXPATHLEN+1)); - tbl.swt_n=1; +# ifdef CHECK_SWAP_SWAPCTL_SVR4 /* get the number of active swap devices */ nswaps=swapctl(SC_GETNSWP, NULL); + /* initialize swap table + entries */ + tbl=(swaptbl_t*)malloc(sizeof(swaptbl_t)+(sizeof(swapent_t)*nswaps)); + memset(tbl, 0, sizeof(swaptbl_t)+(sizeof(swapent_t)*nswaps)); + tbl->swt_n=nswaps; + for(i=0;iswt_ent[i]; + ent->ste_path=(char*)malloc(sizeof(char)*MAXPATHLEN); + } + /* and now, tally 'em up */ + swapctl_res=swapctl(SC_LIST, tbl); + if(swapctl_res < 0){ + perror("swapctl failed: "); + result = STATE_WARNING; + } + for(i=0;iswt_ent[i].ste_pages / SWAP_CONVERSION; + dskfree = tbl->swt_ent[i].ste_free / SWAP_CONVERSION; + dskused = ( dsktotal - dskfree ); if(allswaps && dsktotal > 0){ percent = 100 * (((double) dskused) / ((double) dsktotal)); result = max_state (result, check_swap (percent, dskfree)); + if (verbose) { + asprintf (&status, "%s [%d (%d%%)]", status, (int)dskfree, 100 - percent); + } } total_swap += dsktotal; @@ -269,16 +262,58 @@ } /* and clean up after ourselves */ - free(tbl.swt_ent[0].ste_path); + for(i=0;iswt_ent[i].ste_path); + } + free(tbl); +# else +# ifdef CHECK_SWAP_SWAPCTL_BSD -# endif /* HAVE_DECL_SWAPCTL */ + /* get the number of active swap devices */ + nswaps=swapctl(SWAP_NSWAP, NULL, 0); + + /* initialize swap table + entries */ + ent=(struct swapent*)malloc(sizeof(struct swapent)*nswaps); + + /* and now, tally 'em up */ + swapctl_res=swapctl(SWAP_STATS, ent, nswaps); + if(swapctl_res < 0){ + perror("swapctl failed: "); + result = STATE_WARNING; + } + + for(i=0;ise_nblks / conv_factor; + dskused = ent->se_inuse / conv_factor; + dskfree = ( dsktotal - dskused ); + + if(allswaps && dsktotal > 0){ + percent = 100 * (((double) dskused) / ((double) dsktotal)); + result = max_state (result, check_swap (percent, dskfree)); + if (verbose) { + asprintf (&status, "%s [%d (%d%%)]", status, (int)dskfree, 100 - percent); + } + } + + total_swap += dsktotal; + free_swap += dskfree; + used_swap += dskused; + } + + /* and clean up after ourselves */ + free(ent); + +# endif /* CHECK_SWAP_SWAPCTL_BSD */ +# endif /* CHECK_SWAP_SWAPCTL_SVR4 */ # endif /* HAVE_SWAP */ #endif /* HAVE_PROC_MEMINFO */ percent_used = 100 * ((double) used_swap) / ((double) total_swap); result = max_state (result, check_swap (percent_used, free_swap)); - asprintf (&status, _(" %d%% free (%llu MB out of %llu MB)%s"), - (100 - percent_used), free_swap, total_swap, status); + /* broken into two steps because of funkiness with builtin asprintf */ + asprintf (&tmp_status, _(" %d%% free (%llu MB out of %llu MB)"), + (100 - percent_used), free_swap, total_swap); + asprintf (&status, "%s%s", tmp_status, status); asprintf (&perf, "%s", perfdata ("swap", (long) free_swap, "MB", TRUE, (long) max (warn_size/1024, warn_percent/100.0*total_swap), Index: plugins/common.h =================================================================== RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/common.h,v retrieving revision 1.12 diff -u -r1.12 common.h --- plugins/common.h 19 Aug 2004 19:05:49 -0000 1.12 +++ plugins/common.h 22 Aug 2004 21:57:23 -0000 @@ -110,6 +110,10 @@ # endif #endif +#ifndef SWAP_CONVERSION +# define SWAP_CONVERSION 1 +#endif + /* * * Missing Functions -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From tonvoon at mac.com Mon Aug 23 15:07:12 2004 From: tonvoon at mac.com (Ton Voon) Date: Mon Aug 23 15:07:12 2004 Subject: [Nagiosplug-devel] Patch for completeness on check_nt plugin In-Reply-To: <4B9C5742BB8F8D4895316485C08165A2057F2FE3@brsaoex01.primesys.br> References: <4B9C5742BB8F8D4895316485C08165A2057F2FE3@brsaoex01.primesys.br> Message-ID: Paulo, Garry, This has now been applied to CVS. I wouldn't worry about the technicalities of which is the "correct" value - this is what the discussion list is for! Paulo, Thanks for the patch. I've committed it almost verbatim. I've only made a slight change to the comments (we are trying to avoid using // and use /* */ instead - see the development guidelines at http://nagiosplug.sourceforge.net/developer-guidelines.html). I've also removed your copyright line from the CHECK_COUNTER code (the developer guidelines has a section on the reasons). If you are uncomfortable with this, then I can reverse the change. Ton On 20 Aug 2004, at 13:28, Paulo Afonso Graner Fessel wrote: > I've looked at code of check_nt.c and there's this remark: > ? > // Changed divisor in following line from?v to 3044515 to accurately > reflect memory size > ? > This is incorrect. The memory size that check_nt reports is a sum of > RAM and pagefile sizes, as defined here: > ? > "Commit Charge: In the Windows operating system, the name for the > amount of physical memory (RAM) and virtual memory that is allocated > to all running programs, or applications, and the operating system > itself. > ? > "Windows Task Manager displays the commit charge in its Performance > tab. There are three memory readings, measured in kilobytes: > ? > * Total: refers to the total amount of physical and virtual memory the > computer is using at that moment. > * Limit: refers to the combined limit of both the physical memory and > the allocated virtual memory. > * Peak: refers to the highest total system memory usage during the > session in which you are using the computer. > ? > "The commit charge will increase when applications are opened and used > and decrease when applications are closed." > ? > So, dividing the memory?collected by 3044515 is confusing, to say the > least, as what is shown by MEMUSE is?actually the Commit > Charge.?Dividing it by 3044515 assumes that we're using paging space > that is two times the size of Physical RAM - this was?exactly the > reasoning?used by?a friend of mine, a Windows specialist. But he > corrected himself?quickly and went to check the paging file size. It > was 1.5x the size of physical RAM and could grow up to 2x physical > RAM, when neccessary.? But even this behavior may be changed by the > user?- specifying a paging space that it's 3x the physical RAM, for > exemple -?thus making the plugin output?useless. > ? > Another problem with this?change is that the values returned by the > plugin are different that those shown on field "Commit Charge" on > Windows Task Manager, and this may confuse Windows SA's. > ? > Also, the original patch made by Gary Cook seems not to have > implemented warning and critical levels for performance counters. I > have an alternative implementation that does it, along with some > sanity checking of the parameters needed to use -v COUNTER. > ? > The patch I'm sending solve both issues: it restores the divisor to 1 > MB and implements warning and critical levels for performance > counters. Please evaluate. > ? > []'s > Paulo > ? > Paulo Afonso Graner Fessel > Administrador de Ambiente e Sistemas UNIX > paulo.fessel at primesys.com.br > OWT > Fone: +55 (11) 3038-6464 > Fax: +55 (11) 3038-6508 > http://www.primesys.com.br > ? > ? > ? > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 5096 bytes Desc: not available URL: From paulo.fessel at primesys.com.br Mon Aug 23 19:15:12 2004 From: paulo.fessel at primesys.com.br (Paulo Afonso Graner Fessel) Date: Mon Aug 23 19:15:12 2004 Subject: RES: [Nagiosplug-devel] Patch for completeness on check_nt plugin Message-ID: <4B9C5742BB8F8D4895316485C08165A20587EBE9@brsaoex01.primesys.br> Ton, No problems with the remotion of the Copyright. Just provide credit of the changes I've made, ok? Thanks, Paulo Paulo Afonso Graner Fessel Administrador de Ambiente e Sistemas UNIX paulo.fessel at primesys.com.br OWT Fone: +55 (11) 3038-6464 Fax: +55 (11) 3038-6508 http://www.primesys.com.br _____ De: Ton Voon [mailto:tonvoon at mac.com] Enviada em: segunda-feira, 23 de agosto de 2004 19:07 Para: Paulo Afonso Graner Fessel; Garry Cook Cc: nagiosplug-devel at lists.sourceforge.net Assunto: Re: [Nagiosplug-devel] Patch for completeness on check_nt plugin Paulo, Garry, This has now been applied to CVS. I wouldn't worry about the technicalities of which is the "correct" value - this is what the discussion list is for! Paulo, Thanks for the patch. I've committed it almost verbatim. I've only made a slight change to the comments (we are trying to avoid using // and use /* */ instead - see the development guidelines at http://nagiosplug.sourceforge.net/developer-guidelines.html). I've also removed your copyright line from the CHECK_COUNTER code (the developer guidelines has a section on the reasons). If you are uncomfortable with this, then I can reverse the change. Ton On 20 Aug 2004, at 13:28, Paulo Afonso Graner Fessel wrote: I've looked at code of check_nt.c and there's this remark: // Changed divisor in following line from v to 3044515 to accurately reflect memory size This is incorrect. The memory size that check_nt reports is a sum of RAM and pagefile sizes, as defined here: "Commit Charge: In the Windows operating system, the name for the amount of physical memory (RAM) and virtual memory that is allocated to all running programs, or applications, and the operating system itself. "Windows Task Manager displays the commit charge in its Performance tab. There are three memory readings, measured in kilobytes: * Total: refers to the total amount of physical and virtual memory the computer is using at that moment. * Limit: refers to the combined limit of both the physical memory and the allocated virtual memory. * Peak: refers to the highest total system memory usage during the session in which you are using the computer. "The commit charge will increase when applications are opened and used and decrease when applications are closed." So, dividing the memory collected by 3044515 is confusing, to say the least, as what is shown by MEMUSE is actually the Commit Charge. Dividing it by 3044515 assumes that we're using paging space that is two times the size of Physical RAM - this was exactly the reasoning used by a friend of mine, a Windows specialist. But he corrected himself quickly and went to check the paging file size. It was 1.5x the size of physical RAM and could grow up to 2x physical RAM, when neccessary. But even this behavior may be changed by the user - specifying a paging space that it's 3x the physical RAM, for exemple - thus making the plugin output useless. Another problem with this change is that the values returned by the plugin are different that those shown on field "Commit Charge" on Windows Task Manager, and this may confuse Windows SA's. Also, the original patch made by Gary Cook seems not to have implemented warning and critical levels for performance counters. I have an alternative implementation that does it, along with some sanity checking of the parameters needed to use -v COUNTER. The patch I'm sending solve both issues: it restores the divisor to 1 MB and implements warning and critical levels for performance counters. Please evaluate. []'s Paulo Paulo Afonso Graner Fessel Administrador de Ambiente e Sistemas UNIX paulo.fessel at primesys.com.br OWT Fone: +55 (11) 3038-6464 Fax: +55 (11) 3038-6508 http://www.primesys.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LogoPrimesys.gif Type: image/gif Size: 2173 bytes Desc: LogoPrimesys.gif URL: From Ton.Voon at egg.com Tue Aug 24 00:09:18 2004 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue Aug 24 00:09:18 2004 Subject: [Nagiosplug-devel] Patch for completeness on check_nt plugin Message-ID: Sorry, forgot to mention that we ALWAYS give credit. The specific checkin would have your name next to it (http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/plugins/check_n t.c?rev=1.24 &sortby=date&view=log) and we credit you in the THANKS file (generated from AUTHORS - http://cvs.sourceforge.net/viewcvs.py/nagiosplug/nagiosplug/AUTHORS?rev=1.37 &view=auto). We appreciate everyone's involvement. -----Original Message----- From: Paulo Afonso Graner Fessel [mailto:paulo.fessel at primesys.com.br] Sent: 23 August 2004 23:09 To: Ton Voon; Garry Cook Cc: nagiosplug-devel at lists.sourceforge.net Subject: RES: [Nagiosplug-devel] Patch for completeness on check_nt plugin Ton, No problems with the remotion of the Copyright. Just provide credit of the changes I've made, ok? Thanks, Paulo Paulo Afonso Graner Fessel Administrador de Ambiente e Sistemas UNIX paulo.fessel at primesys.com.br OWT Fone: +55 (11) 3038-6464 Fax: +55 (11) 3038-6508 http://www.primesys.com.br _____ De: Ton Voon [mailto:tonvoon at mac.com] Enviada em: segunda-feira, 23 de agosto de 2004 19:07 Para: Paulo Afonso Graner Fessel; Garry Cook Cc: nagiosplug-devel at lists.sourceforge.net Assunto: Re: [Nagiosplug-devel] Patch for completeness on check_nt plugin Paulo, Garry, This has now been applied to CVS. I wouldn't worry about the technicalities of which is the "correct" value - this is what the discussion list is for! Paulo, Thanks for the patch. I've committed it almost verbatim. I've only made a slight change to the comments (we are trying to avoid using // and use /* */ instead - see the development guidelines at http://nagiosplug.sourceforge.net/developer-guidelines.html). I've also removed your copyright line from the CHECK_COUNTER code (the developer guidelines has a section on the reasons). If you are uncomfortable with this, then I can reverse the change. Ton On 20 Aug 2004, at 13:28, Paulo Afonso Graner Fessel wrote: I've looked at code of check_nt.c and there's this remark: // Changed divisor in following line from v to 3044515 to accurately reflect memory size This is incorrect. The memory size that check_nt reports is a sum of RAM and pagefile sizes, as defined here: "Commit Charge: In the Windows operating system, the name for the amount of physical memory (RAM) and virtual memory that is allocated to all running programs, or applications, and the operating system itself. "Windows Task Manager displays the commit charge in its Performance tab. There are three memory readings, measured in kilobytes: * Total: refers to the total amount of physical and virtual memory the computer is using at that moment. * Limit: refers to the combined limit of both the physical memory and the allocated virtual memory. * Peak: refers to the highest total system memory usage during the session in which you are using the computer. "The commit charge will increase when applications are opened and used and decrease when applications are closed." So, dividing the memory collected by 3044515 is confusing, to say the least, as what is shown by MEMUSE is actually the Commit Charge. Dividing it by 3044515 assumes that we're using paging space that is two times the size of Physical RAM - this was exactly the reasoning used by a friend of mine, a Windows specialist. But he corrected himself quickly and went to check the paging file size. It was 1.5x the size of physical RAM and could grow up to 2x physical RAM, when neccessary. But even this behavior may be changed by the user - specifying a paging space that it's 3x the physical RAM, for exemple - thus making the plugin output useless. Another problem with this change is that the values returned by the plugin are different that those shown on field "Commit Charge" on Windows Task Manager, and this may confuse Windows SA's. Also, the original patch made by Gary Cook seems not to have implemented warning and critical levels for performance counters. I have an alternative implementation that does it, along with some sanity checking of the parameters needed to use -v COUNTER. The patch I'm sending solve both issues: it restores the divisor to 1 MB and implements warning and critical levels for performance counters. Please evaluate. []'s Paulo Paulo Afonso Graner Fessel Administrador de Ambiente e Sistemas UNIX paulo.fessel at primesys.com.br OWT Fone: +55 (11) 3038-6464 Fax: +55 (11) 3038-6508 http://www.primesys.com.br 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 is authorised and regulated by the Financial Services Authority. Egg Investments Ltd. is entered in the FSA register under number 190518. 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LogoPrimesys.gif Type: image/gif Size: 2173 bytes Desc: not available URL: From jhmartin at toger.us Tue Aug 24 11:49:07 2004 From: jhmartin at toger.us (Jason Martin) Date: Tue Aug 24 11:49:07 2004 Subject: [Nagiosplug-devel] ssl & client certs Message-ID: <20040824184738.GD20497@zippy.toger.us> Hello, can anyone recommend a way to handle doing http checks on servers that require SSL client certificates? check_http doesn't appear to handle this yet. Thanks, -Jason Martin -- This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From hmann at itgroundwork.com Tue Aug 24 17:19:11 2004 From: hmann at itgroundwork.com (Harper Mann) Date: Tue Aug 24 17:19:11 2004 Subject: [Nagiosplug-devel] ssl & client certs In-Reply-To: <20040824184738.GD20497@zippy.toger.us> Message-ID: <20040825001851.DCB2B60801C@mail2.itgroundwork.com> Doesn't the -S (--ssl) switch work? [root at evian libexec]# ./check_http -H 192.168.4.88 -u /nagios/cgi-bin/cmd.cgi -a nagiosadmin:password -S -v SSL seeding: OK Page is 1117 characters STATUS: HTTP/1.1 200 OK **** HEADER **** Date: Wed, 25 Aug 2004 00:16:29 GMT Server: Apache/2.0.46 (Red Hat) Connection: close Content-Type: text/html; charset=UTF-8 **** CONTENT **** External Command Interface
External Command Interface
Last Updated: Tue Aug 24 17:16:29 PDT 2004
Nagios® - www.nagios.org
Logged in as nagiosadmin

Error: No command was specified

HTTP ok: HTTP/1.1 200 OK - 0.245 second response time |time= 0.245 - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) -----Original Message----- From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Jason Martin Sent: Tuesday, August 24, 2004 11:48 AM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] ssl & client certs Hello, can anyone recommend a way to handle doing http checks on servers that require SSL client certificates? check_http doesn't appear to handle this yet. Thanks, -Jason Martin -- This message is PGP/MIME signed. From jhmartin at toger.us Tue Aug 24 17:32:13 2004 From: jhmartin at toger.us (Jason Martin) Date: Tue Aug 24 17:32:13 2004 Subject: [Nagiosplug-devel] ssl & client certs In-Reply-To: <20040825001851.DCB2B60801C@mail2.itgroundwork.com> References: <20040824184738.GD20497@zippy.toger.us> <20040825001851.DCB2B60801C@mail2.itgroundwork.com> Message-ID: <20040825003051.GJ20497@zippy.toger.us> On Tue, Aug 24, 2004 at 05:18:47PM -0700, Harper Mann wrote: > Doesn't the -S (--ssl) switch work? No; you're thinking of a SSL server with just server certificates. I'm referring to the situation where both the server and the client are required to provide certificates. The output from openssl s_server includes the data: --- Acceptable client certificate CA names /C=US/ST=WA/L=blah/O=blah/OU=blah/CN=blah --- This happens when the webserver is set to validate the client. The apache option for this is http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslverifyclient SSLVerifyClient If I was using wget I would need to use the following options: --sslcertfile=FILE optional client certificate. --sslcertkey=KEYFILE optional keyfile for this certificate. --sslcerttype=0/1 Client-Cert type 0=PEM (default) / 1=ASN1 (DER) -Jason Martin -- The most expensive component is the one that breaks. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From julien.touche at lycos.com Sat Aug 28 05:33:02 2004 From: julien.touche at lycos.com (Julien TOUCHE) Date: Sat Aug 28 05:33:02 2004 Subject: [Nagiosplug-devel] HEAD + openbsd Message-ID: <41307BA4.9040505@lycos.com> patch to solve some present but can't compile error with configure (HEAD-200408271647) + one i didn't find in configure.in (and change aclocal.m4 doesn't seem to do it.) for sys/ucred.h, need #if HAVE_SYS_PARAM_H # include #endif + arpa/inet.h pb on compile In file included from utils.c:21: /usr/include/arpa/inet.h:74: warning: `struct in_addr' declared inside parameter list /usr/include/arpa/inet.h:74: warning: its scope is only this definition or declaration, which is probably not what you want. /usr/include/arpa/inet.h:75: warning: `struct in_addr' declared inside parameter list /usr/include/arpa/inet.h:75: warning: parameter has incomplete type /usr/include/arpa/inet.h:79: warning: parameter has incomplete type /usr/include/arpa/inet.h:85: warning: parameter has incomplete type => need before include #include at the end of compiling, i also get: mv t-remove-potcdate.sed remove-potcdate.sed : --default-domain=nagios-plugins --directory=.. --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --files-from=./POTFILES.in --copyright-holder='Nagios Plugin Development Group' test ! -f nagios-plugins.po || { if test -f ./nagios-plugins.pot; then sed -f remove-potcdate.sed < ./nagios-plugins.pot > nagios-plugins.1po && sed -f remove-potcdate.sed < nagios-plugins.po > nagios-plugins.2po && if cmp nagios-plugins.1po nagios-plugins.2po >/dev/null 2>&1; then rm -f nagios-plugins.1po nagios-plugins.2po nagios-plugins.po; else rm -f nagios-plugins.1po nagios-plugins.2po ./nagios-plugins.pot && mv nagios-plugins.po ./nagios-plugins.pot; fi; else mv nagios-plugins.po ./nagios-plugins.pot; fi; } : --update fr.po nagios-plugins.pot rm -f fr.gmo && /usr/local/bin/msgfmt -c --statistics -o fr.gmo fr.po error while opening "fr.po" for reading: No such file or directory but don't know where does it come from. Regards Julien -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: patch-configure_in URL: From julien.touche at lycos.com Sun Aug 29 11:36:12 2004 From: julien.touche at lycos.com (Julien TOUCHE) Date: Sun Aug 29 11:36:12 2004 Subject: [Nagiosplug-devel] check_linux_ram.pl (free ram+swap) Message-ID: <41322223.9020104@lycos.com> a small contrib for people who wants to check ram on linux hosts (use /proc/meminfo). compatible with perfdata Regards Julien -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_linux_ram.pl URL: From noreply at sourceforge.net Mon Aug 30 09:01:14 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Aug 30 09:01:14 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1019173 ] contribution: check_microdowell Message-ID: New Plugins item #1019173, was opened at 2004-08-30 18:00 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=1019173&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Matthias Eichler (blindzero) Assigned to: Nobody/Anonymous (nobody) Summary: contribution: check_microdowell Initial Comment: Dear Nagios-Plugin-Developer, we've made a smart an small perl plugin that checks the status of "Microdowell UPS". As these UPS from Microdowell are a bit hard to implement ins upsd we wrote this plugin which uses the software from Microdowell which reports the status on a tcp/ip port. We will make further developments in this plugin as just the general status (ONLINE, OFFLINE, BATTERY, BATTERY_EMPTY, etc.) of the UPS is checked at the moment, but values like the power in- and output etc are not monitored yet. Greetings from Ottobrunn, Germany, Matthias Eichler, Oliver Sommer, kernzeit AG ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1019173&group_id=29880 From julien.touche at lycos.com Mon Aug 30 20:46:21 2004 From: julien.touche at lycos.com (Julien TOUCHE) Date: Mon Aug 30 20:46:21 2004 Subject: [Nagiosplug-devel] check_ping: Could not interpret output from ping command Message-ID: <412E4CDE.80402@lycos.com> i test today nagiosplug 1.4.0alpha1 and HEAD and have a problem with ping (on linux whitebox3/x86) # /bin/ping -n -U -w 10 -c 5 localhost PING whitebox (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=0 ttl=0 time=0.094 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=0 time=0.057 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=0 time=0.025 ms 64 bytes from 127.0.0.1: icmp_seq=3 ttl=0 time=0.023 ms 64 bytes from 127.0.0.1: icmp_seq=4 ttl=0 time=0.023 ms --- whitebox ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4015ms rtt min/avg/max/mdev = 0.023/0.044/0.094/0.028 ms, pipe 2 # /opt/nagios/libexec/check_ping -V check_ping (nagios-plugins 1.4.0alpha2) 1.27 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. # /opt/nagios/libexec/check_ping -H localhost -c 400,50% -w 100,10% /bin/ping -n -U -w 10 -c 5 localhost Error: Could not interpret output from ping command Regards Julien