From noreply at sourceforge.net Thu Jul 1 17:58:19 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Jul 1 17:58:19 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-983801 ] check_hpjd fails to parse responses correctly Message-ID: Bugs item #983801, was opened at 2004-07-02 01:57 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=983801&group_id=29880 Category: Parsing problem Group: CVS Status: Open Resolution: None Priority: 5 Submitted By: Gavan Fantom (gavan) Assigned to: Nobody/Anonymous (nobody) Summary: check_hpjd fails to parse responses correctly Initial Comment: When running with net-snmp 5.1.1, check_hpjd fails to parse the results correctly, as it doesn't expect snmpget to return the type of the object along with its value. This can be fixed by adding "-OQ" to the snmpget command. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=983801&group_id=29880 From noreply at sourceforge.net Fri Jul 2 09:25:01 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Jul 2 09:25:01 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-979313 ] check_disk 1.4.0_alpha perfdata problem Message-ID: Bugs item #979313, was opened at 2004-06-24 16:17 Message generated for change (Comment added) made by g_force You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=979313&group_id=29880 Category: Argument proccessing Group: Release (specify) >Status: Closed Resolution: None Priority: 5 Submitted By: Garry W. Cook (g_force) Assigned to: Nobody/Anonymous (nobody) Summary: check_disk 1.4.0_alpha perfdata problem Initial Comment: check_disk in 1.4.0_alpha and the CVS HEAD from 20040116 both seem to contain the same check_disk.c from March of this year. The problem I'm having is with the performance data output, the warning and critical thresholds do not seem to be calculated properly. When checking a 100MB disk for % free space with warning at 30% and critical at 10%, if the disk is 25% full, the check works fine and no alerts are generated. However, the performance data will report the free space at 75MB (75%-correct), the warning threshold at 70MB (70%-incorrect), and the critical threshold at 90MB (90%-incorrect). The performance data from this check would then be considered to be at a 'warning' level. ---------------------------------------------------------------------- >Comment By: Garry W. Cook (g_force) Date: 2004-07-02 10:24 Message: Logged In: YES user_id=197417 I've fixed this particular error, I'll submit a patch on the patch page. Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=979313&group_id=29880 From noreply at sourceforge.net Fri Jul 2 09:29:04 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Jul 2 09:29:04 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-984174 ] Fix for check_disk.c Perfdata Message-ID: Patches item #984174, was opened at 2004-07-02 10:28 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=984174&group_id=29880 Category: Perf data Group: None Status: Open Resolution: None Priority: 5 Submitted By: Garry W. Cook (g_force) Assigned to: Nobody/Anonymous (nobody) 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) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=984174&group_id=29880 From noreply at sourceforge.net Fri Jul 2 14:12:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Jul 2 14:12:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-984174 ] Fix for check_disk.c Perfdata Message-ID: Patches item #984174, was opened at 2004-07-02 10:28 Message generated for change (Comment added) made by g_force You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=984174&group_id=29880 Category: Perf data Group: None Status: Open Resolution: None Priority: 5 Submitted By: Garry W. Cook (g_force) Assigned to: Nobody/Anonymous (nobody) 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: Garry W. Cook (g_force) Date: 2004-07-02 15: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 verdon at cict.fr Thu Jul 8 00:58:07 2004 From: verdon at cict.fr (carole verdon) Date: Thu Jul 8 00:58:07 2004 Subject: [Nagiosplug-devel] Hostextinfo ignored when configured with database support Message-ID: <40ECFDF6.3030109@cict.fr> Hi, I'm desperate. I don't find solutions to solve my problem. I use nagios 1.2 and nagmin 2.1.0 to configure hosts and services on solaris boxe. I compiled nagios with mysql database support using the option --with-mysql-xdata. I see my hosts in statusmap but when i want to use hostextinfo to add an image or coordinates, nothing happens. And when i choose User-supplied coords in the layout method, it says to me that i have not supplied any. Here that i defined in table 'Host Extended Information' of Nagmin: *Template* *Host Name* *Notes URL* *Icon Image* *Icon Image Alt* *VRML Image* *Statusmap Image* *2D Coordinates* *3D Coordinates* *Comment* aurore.cict.fr sun40.gif Sun Server sun.gd2 gw1-mail.cict.fr Mail Gateway 110,80 lambi.cict.fr NIS Server 100.0,50.0 ns2.cict.fr linux40.gif ns2 linux40.png 10,25 telline.cict.fr hpux.png HPUX Server hpux.gif 100,60 vae.cict.fr linux40.jpg Linux Server linux40.png 50,10 I have got several problems: 1. The gd2 images don't appear. If i execute ldd statusmap.cgi, it find the gd library libmysqlclient.so.10 => /usr/local/mysql/lib/mysql/libmysqlclient.so.10 libgd.so.2 => /usr/local/lib/libgd.so.2 libiconv.so.2 => /usr/local/lib/libiconv.so.2 libz.so => /usr/local/lib/libz.so libm.so.1 => /usr/lib/libm.so.1 libpng.so.3 => /usr/local/lib/libpng.so.3 libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 libc.so.1 => /usr/lib/libc.so.1 libz.so.1 (SUNW_1.1) => (version not found) libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1 libgen.so.1 => /usr/lib/libgen.so.1 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libXpm.so.4.11 => /usr/local/lib/libXpm.so.4.11 libX11.so.4 => /usr/lib/libX11.so.4 libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 libpng12.so.0 => /usr/local/lib/libpng12.so.0 libz.so.1 (SUNW_1.1) => (version not found) libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libmp.so.2 => /usr/lib/libmp.so.2 libXext.so.0 => /usr/openwin/lib/libXext.so.0 libz.so.1 (SUNW_1.1) => (version not found) /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1 I have even made this command: crle -l /usr/lib:/usr/local/lib, but that didn't change nothing # crle Configuration file [3]: /var/ld/ld.config Default Library Path (ELF): /usr/lib:/usr/local/lib Trusted Directories (ELF): /usr/lib/secure (system default) Command line: crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib 2. If i edit the /usr/local/nagios/etc/HostExtInfo.cfg, i see that extended informations of hosts are well created: ## NagMIN Configuration File (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for Host ## Generated Wed Jul 7 10:24:53 2004 ## NagMIN Configuration File (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtInfo ## Generated Wed Jul 7 10:24:53 2004 define hostextinfo { host_name aurore.cict.fr icon_image sun40.gif icon_image_alt Sun Server statusmap_image sun.gd2 } define hostextinfo { host_name gw1-mail.cict.fr icon_image_alt Mail Gateway 2d_coords 110,80 } define hostextinfo { host_name lambi.cict.fr icon_image_alt NIS Server 2d_coords 100.0,50.0 } define hostextinfo { host_name ns2.cict.fr icon_image linux40.gif icon_image_alt ns2 statusmap_image linux40.png 2d_coords 10,25 } define hostextinfo { host_name telline.cict.fr icon_image hpux.png icon_image_alt HPUX Server statusmap_image hpux.gif 2d_coords 100,60 } define hostextinfo { host_name vae.cict.fr icon_image linux40.jpg icon_image_alt Linux Server statusmap_image linux40.png 2d_coords 50,10 } ## NagMIN Configuration File (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtTemplate ## Generated Wed Jul 7 10:24:53 2004 I tried to add in my cgi.cfg this line: xedtemplate_config_file=/usr/local/nagios/etc/HostExtInfo.cfg But nagios don't take into account. So, I tried the template method on an old server used to test nagios which was configured without database support. So, i add in cgi.cfg this line: xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg And i realized that worked. I saw my hosts in status map as i have defined them. So, i suppose that the use of database to store the extended information isn't a good method since it don't work. 4. Another problem with nagmin is that if i want to modify coordinates of one host for example, that don't works. When i click on 'save' button, nothing changes. Even after click on 'activate' button, the modifications that i have made don't take into account. I tried to look source code of statusmap.cgi but it's very complicated. I'm not a programmer. I passed several days to search a solution without result. Can someone help me, please? Thanks. Carole. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sun40.gif Type: image/gif Size: 1903 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- gd2((?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????uuz??????????????????????????????????????????????????????????????????????????????????????????????????????????????????UUZ?????????||???????????????????????????????????????????????????????????????????????????????????????????????????????UUZ??????JJ???????xx}????????????????????????????????????????????????????????????????????????????????????????????????TTY??????BB~==|HH???????xx}??????????????????????????????????????????????????????????????????????????????????????????TTY??????DD?``????``?BB??????||?????????????????????????????????????????????????????????????????????????????????????NNT??????BB~gg??????????xx?==|??????uuz??????????????????????????????????????????????????????????????????????????????NNT??????DD?HH????????????????{{?@@}??????uuz????????????????????????????????????????????????????????????????????????JJN??????BBFF?TT??????????????????????==|??????uuz??????????????????????????????????????????????????????????????????JJN??????BBPP????rr?????????????????????????@@}??????nnr????????????????????????????????????????????????????????????FFJ??????@@}PP??????????xx?????????????????????????BB??????sst??????????????????????????????????????????????????????FFJ??????BBUU????????????????tt??????????????????????ii?@@}??????jjm????????????????????????????????????????????????FFJ??????@@}NN?xx???????????????????tt???????????????????{{?PP?BB~??????nnr??????????????????????????????????????????BBH??????BBPP????????????????????????????tt?????????????xx???????UU?BB??????jjm????????????????????????????????????BBF??????BB~NN??????????rr??????????????????????tt???????}}?????????????TT?BB~??????eei??????????????????????????????@@B??????DD?NN????????????????????????????????????????ZZ?ww???????????????????UU?FF???????eei????????????????????????@@B??????BBLL??????????????????????DD}nn????????????????UU??????????????????????ZZ?DDBB??????``e??????????????????==@??????DD?LL??????????????????????nn???????????????????????????????????????????{{???????ss?DD???????``e????????????@@B??????FF?JJ??????????????????????xx?????????????jj????ii??????????????????????{{?????????????ee?BB??????eei??????TTT??????FF?@@}?????????????????????xx????????????????xx?55wZZ????????????????????????????????????????=={FF?????????????==@??????NN?==|??????????????????xx???????????????????``?LL?ZZ????????????????}}??????????????????????;;z??????BBH???????????????NN?HH?????????????ww???????????????????????????????????????????ww??????????????????????HH???????BBH]]]?????????nnr??????UU?FF?xx?tt?nn???????????????????}}????????????????ee?xx?nn??????????????????????FF???????BBFTTT???????????????jjm??????UU?==|UU??????????????????????..r??????????????????==|?????????????????????FF???????+++]]]?????????????????????sstxxx???UU?JJ??????????????????????ee????????????????????????????????????????FF???????++3sst??????????????????????????????'''xxx???PP?FF??????????????????????ww??????????????????????nn??????????FF???????++3xxx????????????????????????????????????'''{{{???PP?JJ??????????????????????ww????????????????????????????FF???????++3{{{??????????????????????????????????????????'''~~~???NN?DD?nn???????????????????ww???????????????????ww?BB??????..5~~~????????????????????????????????????????????????'''~~~???NN?LL??????????????????????ww????????????????NN???????..5{{{??????????????????????????????????????????????????????'''~~~???NN?HH??????????????????????xx??????????BB??????..5???????????????????????????????????????????????????????????????+++??????NN?JJ??????????????????????gg????TT???????55;?????????????????????????????????????????????????????????????????????+++??????LL?JJ???????????????????UU?;;z??????55;???????????????????????????????????????????????????????????????????????????..3??????LL?JJ????????????????DD??????55;?????????????????????????????????????????????????????????????????????????????????+++??????JJ?JJ??????????HH???????;;B???????????????????????????????????????????????????????????????????????????????????????555??????NN?BB~BB~;;z??????;;B?????????????????????????????????????????????????????????????????????????????????????????????..3??????NN?@@}??????;;B???????????????????????????????????????????????????????????????????????????????????????????????????555??????ii????``e~~~??????????????????????????????????????????????????????????????????????????????????????????????????????555??????eeijjm????????????????????????????????????????????????????????????????????????????????????????????????????????????TTTTTY||}?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? -------------- next part -------------- A non-text attachment was scrubbed... Name: linux40.gif Type: image/gif Size: 1642 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: linux40.png Type: image/png Size: 1972 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hpux.png Type: image/png Size: 662 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hpux.gif Type: image/gif Size: 1097 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: linux40.jpg Type: image/jpeg Size: 1666 bytes Desc: not available URL: From ae at op5.se Thu Jul 8 01:27:01 2004 From: ae at op5.se (Andreas Ericsson) Date: Thu Jul 8 01:27:01 2004 Subject: [Nagiosplug-devel] Hostextinfo ignored when configured with database support In-Reply-To: <40ECFDF6.3030109@cict.fr> References: <40ECFDF6.3030109@cict.fr> Message-ID: <40ED0530.1020903@op5.se> carole verdon wrote: > > I have got several problems: > > 1. The gd2 images don't appear. > If i execute ldd statusmap.cgi, it find the gd library > libmysqlclient.so.10 => /usr/local/mysql/lib/mysql/libmysqlclient.so.10 > libgd.so.2 => /usr/local/lib/libgd.so.2 > libiconv.so.2 => /usr/local/lib/libiconv.so.2 > libz.so => /usr/local/lib/libz.so > libm.so.1 => /usr/lib/libm.so.1 > libpng.so.3 => /usr/local/lib/libpng.so.3 > libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 > libc.so.1 => /usr/lib/libc.so.1 > libz.so.1 (SUNW_1.1) => (version not found) > libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1 > libgen.so.1 => /usr/lib/libgen.so.1 > libsocket.so.1 => /usr/lib/libsocket.so.1 > libnsl.so.1 => /usr/lib/libnsl.so.1 > libXpm.so.4.11 => /usr/local/lib/libXpm.so.4.11 > libX11.so.4 => /usr/lib/libX11.so.4 > libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 > libpng12.so.0 => /usr/local/lib/libpng12.so.0 > libz.so.1 (SUNW_1.1) => (version not found) > libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 > libdl.so.1 => /usr/lib/libdl.so.1 > libmp.so.2 => /usr/lib/libmp.so.2 > libXext.so.0 => /usr/openwin/lib/libXext.so.0 > libz.so.1 (SUNW_1.1) => (version not found) > /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1 > But it doesn't find libz with proper version, which is needed by libgd. > > 2. If i edit the /usr/local/nagios/etc/HostExtInfo.cfg, i see that extended > informations of hosts are well created: > > ## NagMIN Configuration File (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) > for Host > ## Generated Wed Jul 7 10:24:53 2004 > ## NagMIN Configuration File (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) > for HostExtInfo > ## Generated Wed Jul 7 10:24:53 2004 > define hostextinfo { > host_name aurore.cict.fr > icon_image sun40.gif > icon_image_alt Sun Server > statusmap_image sun.gd2 > } > define hostextinfo { > host_name gw1-mail.cict.fr > icon_image_alt Mail Gateway > 2d_coords 110,80 > } > define hostextinfo { > host_name lambi.cict.fr > icon_image_alt NIS Server > 2d_coords 100.0,50.0 > } > define hostextinfo { > host_name ns2.cict.fr > icon_image linux40.gif > icon_image_alt ns2 > statusmap_image linux40.png > 2d_coords 10,25 > } > define hostextinfo { > host_name telline.cict.fr > icon_image hpux.png > icon_image_alt HPUX Server > statusmap_image hpux.gif > 2d_coords 100,60 > } > define hostextinfo { > host_name vae.cict.fr > icon_image linux40.jpg > icon_image_alt Linux Server > statusmap_image linux40.png > 2d_coords 50,10 > } > ## NagMIN Configuration File (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) > for HostExtTemplate > ## Generated Wed Jul 7 10:24:53 2004 > > > I tried to add in my cgi.cfg this line: > xedtemplate_config_file=/usr/local/nagios/etc/HostExtInfo.cfg > > But nagios don't take into account. > > So, I tried the template method on an old server used to test nagios which was > configured without database support. So, i add in cgi.cfg this line: > xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg > > And i realized that worked. I saw my hosts in status map as i have defined them. > So, i suppose that the use of database to store the extended information isn't a > good method since it don't work. > Ofcourse it doesn't work when nagmin puts it in configuration files instead of in the proper database. You need to check the documentation again and create and configure tables to store the hostextinfo in. > 4. Another problem with nagmin is that if i want to modify coordinates of one > host for example, that don't works. When i click on 'save' button, nothing > changes. Even after click on 'activate' button, the modifications that i have > made don't take into account. > This is not a problem for the nagiosplug-devel mailinglist (nothing of this mail is, but this isn't even related to nagios). Send an email to the nagmin user- or devel-list. > Can someone help me, please? > I just did. > Thanks. > You're welcome. Oh, and btw. Please don't post a bunch of attachments to the list. Using plaintext emails should work the best and clutter things the least. > Carole. > -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se From verdon at cict.fr Thu Jul 8 02:25:04 2004 From: verdon at cict.fr (carole verdon) Date: Thu Jul 8 02:25:04 2004 Subject: [Nagiosplug-devel] Hostextinfo ignored when configured with database support In-Reply-To: <40ED0530.1020903@op5.se> References: <40ECFDF6.3030109@cict.fr> <40ED0530.1020903@op5.se> Message-ID: <40ED1238.7050307@cict.fr> Thanks for your response. Where i can find the libz.so.1 (SUNW_1.1) ? I search on google but without result. Actually, the packages installed of zlib and glib on my solaris boxe (sparc/solaris 8) are that: $ pkginfo -l SMCzlib PKGINST: SMCzlib NAME: zlib CATEGORY: application ARCH: sparc VERSION: 1.2.1 BASEDIR: /usr/local VENDOR: Greg Roelofs and Jean-loup Gaillt PSTAMP: Steve Christensen INSTDATE: Apr 20 2004 09:51 EMAIL: steve at smc.vnet.net STATUS: completely installed FILES: 21 installed pathnames 7 shared pathnames 8 directories 2 executables 609 blocks used (approx) $ pkginfo -l SMCglib PKGINST: SMCglib NAME: glib CATEGORY: application ARCH: sparc VERSION: 2.2.3 BASEDIR: /usr/local VENDOR: The GLib-2.0 Team PSTAMP: Steve Christensen INSTDATE: Apr 27 2004 11:01 EMAIL: steve at smc.vnet.net STATUS: completely installed FILES: 608 installed pathnames 113 shared pathnames 139 directories 12 executables 26054 blocks used (approx) >Ofcourse it doesn't work when nagmin puts it in configuration files instead of in the proper database. You need to check the documentation again and >create and configure tables to store the hostextinfo in. I don't understand what i must do. Do i have to create tables in nagmin? When i connect to nagios database, i see two tables : HostExtInfo and hostextinfo. HostExtInfo table contains data but hostextinfo table is empty. mysql> select * from HostExtInfo ; +----------+------------------+-----------+-------------+----------------+------------+-----------------+------------+------------+---------+ | template | host_name | notes_url | icon_image | icon_image_alt | vrml_image | statusmap_image | 2d_coords | 3d_coords | comment | +----------+------------------+-----------+-------------+----------------+------------+-----------------+------------+------------+---------+ | NULL | aurore.cict.fr | NULL | sun40.gif | Sun Server | NULL | sun.gd2 | NULL | NULL | NULL | | NULL | telline.cict.fr | NULL | hpux.png | HPUX Server | NULL | hpux.gif | 100,60 | NULL | NULL | | NULL | vae.cict.fr | NULL | linux40.jpg | Linux Server | NULL | linux40.png | 50,10 | NULL | NULL | | NULL | gw1-mail.cict.fr | NULL | NULL | Mail Gateway | NULL | NULL | 110,80 | NULL | NULL | | NULL | lambi.cict.fr | NULL | NULL | NIS Server | NULL | NULL | 100.0,50.0 | NULL | NULL | | NULL | ns2.cict.fr | NULL | linux40.gif | ns2 | NULL | linux40.png | 10,25 | NULL | NULL | +----------+------------------+-----------+-------------+----------------+------------+-----------------+------------+------------+---------+ 6 rows in set (0.00 sec) mysql> select * from hostextinfo; Empty set (0.00 sec) ???????? Andreas Ericsson wrote: > carole verdon wrote: > >> >> I have got several problems: >> >> 1. The gd2 images don't appear. >> If i execute ldd statusmap.cgi, it find the gd library >> libmysqlclient.so.10 => >> /usr/local/mysql/lib/mysql/libmysqlclient.so.10 >> libgd.so.2 => /usr/local/lib/libgd.so.2 >> libiconv.so.2 => /usr/local/lib/libiconv.so.2 >> libz.so => /usr/local/lib/libz.so >> libm.so.1 => /usr/lib/libm.so.1 >> libpng.so.3 => /usr/local/lib/libpng.so.3 >> libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 >> libc.so.1 => /usr/lib/libc.so.1 >> libz.so.1 (SUNW_1.1) => (version not found) >> libcrypt_i.so.1 => /usr/lib/libcrypt_i.so.1 >> libgen.so.1 => /usr/lib/libgen.so.1 >> libsocket.so.1 => /usr/lib/libsocket.so.1 >> libnsl.so.1 => /usr/lib/libnsl.so.1 >> libXpm.so.4.11 => /usr/local/lib/libXpm.so.4.11 >> libX11.so.4 => /usr/lib/libX11.so.4 >> libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 >> libpng12.so.0 => /usr/local/lib/libpng12.so.0 >> libz.so.1 (SUNW_1.1) => (version not found) >> libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 >> libdl.so.1 => /usr/lib/libdl.so.1 >> libmp.so.2 => /usr/lib/libmp.so.2 >> libXext.so.0 => /usr/openwin/lib/libXext.so.0 >> libz.so.1 (SUNW_1.1) => (version not found) >> /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1 >> > > But it doesn't find libz with proper version, which is needed by libgd. > >> >> 2. If i edit the /usr/local/nagios/etc/HostExtInfo.cfg, i see that >> extended informations of hosts are well created: >> >> ## NagMIN Configuration File >> (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for Host >> ## Generated Wed Jul 7 10:24:53 2004 >> ## NagMIN Configuration File >> (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtInfo >> ## Generated Wed Jul 7 10:24:53 2004 >> define hostextinfo { >> host_name aurore.cict.fr >> icon_image sun40.gif >> icon_image_alt Sun Server >> statusmap_image sun.gd2 >> } >> define hostextinfo { >> host_name gw1-mail.cict.fr >> icon_image_alt Mail Gateway >> 2d_coords 110,80 >> } >> define hostextinfo { >> host_name lambi.cict.fr >> icon_image_alt NIS Server >> 2d_coords 100.0,50.0 >> } >> define hostextinfo { >> host_name ns2.cict.fr >> icon_image linux40.gif >> icon_image_alt ns2 >> statusmap_image linux40.png >> 2d_coords 10,25 >> } >> define hostextinfo { >> host_name telline.cict.fr >> icon_image hpux.png >> icon_image_alt HPUX Server >> statusmap_image hpux.gif >> 2d_coords 100,60 >> } >> define hostextinfo { >> host_name vae.cict.fr >> icon_image linux40.jpg >> icon_image_alt Linux Server >> statusmap_image linux40.png >> 2d_coords 50,10 >> } >> ## NagMIN Configuration File >> (/usr/local/nagmin-2.1.0/nagios/HostExtInfo.cfg) for HostExtTemplate >> ## Generated Wed Jul 7 10:24:53 2004 >> >> >> I tried to add in my cgi.cfg this line: >> xedtemplate_config_file=/usr/local/nagios/etc/HostExtInfo.cfg >> >> But nagios don't take into account. >> >> So, I tried the template method on an old server used to test nagios >> which was configured without database support. So, i add in cgi.cfg >> this line: >> xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg >> >> And i realized that worked. I saw my hosts in status map as i have >> defined them. So, i suppose that the use of database to store the >> extended information isn't a good method since it don't work. >> > > Ofcourse it doesn't work when nagmin puts it in configuration files > instead of in the proper database. You need to check the documentation > again and create and configure tables to store the hostextinfo in. > >> 4. Another problem with nagmin is that if i want to modify >> coordinates of one host for example, that don't works. When i click >> on 'save' button, nothing changes. Even after click on 'activate' >> button, the modifications that i have made don't take into account. >> > > This is not a problem for the nagiosplug-devel mailinglist (nothing of > this mail is, but this isn't even related to nagios). Send an email to > the nagmin user- or devel-list. > >> Can someone help me, please? >> > > I just did. > >> Thanks. >> > > You're welcome. Oh, and btw. Please don't post a bunch of attachments > to the list. Using plaintext emails should work the best and clutter > things the least. > >> Carole. >> > > > -- ********************************** VERDON Carole Ing?nieur Syst?me CICT - Universit? Paul Sabatier 118, route de Narbonne 31062 Toulouse Cedex T?l.: 05.61.36.60.44 Fax: 05.61.52.14.58 Mail: verdon at cict.fr ********************************** From ae at op5.se Thu Jul 8 02:54:04 2004 From: ae at op5.se (Andreas Ericsson) Date: Thu Jul 8 02:54:04 2004 Subject: [Nagiosplug-devel] Hostextinfo ignored when configured with database support In-Reply-To: <40ED1238.7050307@cict.fr> References: <40ECFDF6.3030109@cict.fr> <40ED0530.1020903@op5.se> <40ED1238.7050307@cict.fr> Message-ID: <40ED19B1.7090808@op5.se> carole verdon wrote: > Where i can find the libz.so.1 (SUNW_1.1) ? I search on google but > without result. > You don't need it. Rebuild gd and the cgi's with the current libz and it should link properly against it. > > >Ofcourse it doesn't work when nagmin puts it in configuration files > instead of in the proper database. You need to check the documentation > again and >create and configure tables to store the hostextinfo in. > > I don't understand what i must do. Do i have to create tables in nagmin? > No. Forget Nagmin. Nagmin has nothing to do with nagios gui. You must add configuration parameters to cgi.cfg that tells the cgi-programs table, username and password and such to where it can find the hostextinfo. I don't use hostextinfo in DB, so you'll have to go check the documentation for the proper variables. And please, don't post messages like this to nagiosplug-devel in the future. It's not even remotely the proper forum for it. -- Sourcerer / Andreas Ericsson OP5 AB +46 (0)733 709032 andreas.ericsson at op5.se From noreply at sourceforge.net Sat Jul 10 05:07:05 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Sat Jul 10 05:07:05 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-988448 ] Check_disk shows error Message-ID: Support Requests item #988448, was opened at 2004-07-10 12:06 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=988448&group_id=29880 Category: Install Problem (example) Group: None Status: Open Priority: 5 Submitted By: sujais (sujais) Assigned to: Nobody/Anonymous (nobody) Summary: Check_disk shows error Initial Comment: Hello guys, When I use the plugin check_disk for checking disk space this error is shown.. /dev/hda1 Disk not mounted or non existant.. it is working for some servers .. The partition is mounted and nothing is wrong with that. Thank you --Sujai ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=988448&group_id=29880 From noreply at sourceforge.net Wed Jul 14 07:04:06 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Jul 14 07:04:06 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-990876 ] check_citrix help Message-ID: Support Requests item #990876, was opened at 2004-07-14 09:03 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=990876&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: stiletto23 (stiletto23) Assigned to: Nobody/Anonymous (nobody) Summary: check_citrix help Initial Comment: Hello, I need some help with the check_citrix plugin. I have the Nagios command setup as follows: $USER$/check_citrix -C $HOSTADDRESS$ -P published1 >From command window on the Nagios host this returns: "Ok. Citrix master browser "10.20.xx.xx" reported that the published application "published1" is available." But when the command above is exectuded by Nagios it returns a "Warning - (No output). Hopefully I am just not doing something very simple. Any help would be appreciated, I would like to be able to monitor my Citrix boxes more completely. Thanks. -stiletto ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=990876&group_id=29880 From noreply at sourceforge.net Wed Jul 14 08:36:25 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Jul 14 08:36:25 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-990948 ] check_disk_smb doesn't allow spaces in share names Message-ID: Bugs item #990948, was opened at 2004-07-14 11:35 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=990948&group_id=29880 Category: Argument proccessing Group: None Status: Open Resolution: None Priority: 5 Submitted By: Paul Dugas (pdugas) Assigned to: Nobody/Anonymous (nobody) Summary: check_disk_smb doesn't allow spaces in share names Initial Comment: Some SOHO NAS devices (i.e. Linksys NSLU2) don't let you change the share names and have spaces in the defaults. I've hacked the script on my server to simply ignore the check on the share name but a better "fix" is needed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=990948&group_id=29880 From noreply at sourceforge.net Wed Jul 14 22:19:26 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Jul 14 22:19:26 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-991359 ] patch for checking elapsed time of a process Message-ID: Patches item #991359, was opened at 2004-07-14 22:17 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=991359&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Russell Miller (duskglow) Assigned to: Nobody/Anonymous (nobody) Summary: patch for checking elapsed time of a process Initial Comment: Adds a "-e" option (patch is slightly incorrect in that an "e:" should be added to the getopt string, that's not in the patch) to check_procs, so that the elapsed time of a process can be measured and warnings thrown if the process lasts too long. This is useful if a program such as ftpd runs away. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=991359&group_id=29880 From jlyons30 at yahoo.com Thu Jul 15 06:38:24 2004 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu Jul 15 06:38:24 2004 Subject: [Nagiosplug-devel] Re: Perfparse & check_nt/performance data? Message-ID: <20040714171144.85162.qmail@web60807.mail.yahoo.com> Does anyone have a modifed check_nt plugin that reports the performance data for for perfparse?? If so could you zip it and e-mail it?? Thanks. __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From noreply at sourceforge.net Fri Jul 16 14:47:02 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Jul 16 14:47:02 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-992583 ] regex fix for check_ntp Message-ID: Patches item #992583, was opened at 2004-07-16 17:46 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=992583&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nayden Naydenov (naidd) Assigned to: Nobody/Anonymous (nobody) 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=992583&group_id=29880 From orft at gknstl.com Tue Jul 20 06:20:02 2004 From: orft at gknstl.com (Orf, Tracy) Date: Tue Jul 20 06:20:02 2004 Subject: [Nagiosplug-devel] Re: long names in devices whith check_disk Message-ID: I am running nagios plugins on HP-UX 11.11. As already noted, the check_disk plugin on HP-UX doesn't work well with filesystem names longer than about 20 characters. If anyone is interested in using the 1.3 version with HP-UX, I've attached my changes to check_disk.c that I am using. Replace the main while loop with this: while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { if (!index (input_buffer, '/')) continue; /* Fixes AIX /proc fs which lists - for size values */ if (strstr (input_buffer, "/proc ") == input_buffer) continue; /* Fixes HP-UX where long filesystem names cause the df command output to spread to two lines */ if (sscanf (input_buffer, "%s %f %f %f %d%% %s", file_system, &total_disk, &used_disk, &free_disk, &usp, mntp) == 6 || sscanf (input_buffer, "%s %*s %f %f %f %d%% %s", file_system, &total_disk, &used_disk, &free_disk, &usp, mntp) == 6 || sscanf (input_buffer, "%s %*s %f %f %f %d%% %s", file_system, &total_disk, &used_disk, &free_disk, &usp, mntp) == 1) { if (strcmp(exclude_device,file_system) == 0 || (strlen(mntp) > 0 && strcmp(exclude_device,mntp) == 0)) { if (verbose>0) printf ("ignoring %s.", file_system); continue; } /* filesystem info will be on the next line on HP-UX for long filesystem names */ if (strlen(mntp) == 0) { if (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { if (!(sscanf (input_buffer, "%f %f %f %d%% %s", &total_disk, &used_disk, &free_disk, &usp, mntp) == 5)) { printf ("Unable to read output:\n%s\n%s\n", command_line, input_buffer); return result; } } } } else { printf ("Unable to read output:\n%s\n%s\n", command_line, input_buffer); return result; } disk_result = check_disk (usp, free_disk); if (strcmp (file_system, "none") == 0) strncpy (file_system, mntp, MAX_INPUT_BUFFER-1); if (disk_result==STATE_OK && erronly && !verbose) continue; if (disk_result!=STATE_OK || verbose>=0) asprintf (&output, "%s [%.0f kB (%d%%) free on %s]", output, free_disk, 100 - usp, display_mntp ? mntp : file_system); result = max_state (result, disk_result); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From noreply at sourceforge.net Thu Jul 22 01:22:02 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Jul 22 01:22:02 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-995761 ] check_disk to include inode percentage. Message-ID: Patches item #995761, was opened at 2004-07-22 08:21 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=995761&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jorgen Lundman (lundman) Assigned to: Nobody/Anonymous (nobody) Summary: check_disk to include inode percentage. Initial Comment: Since the 1.4.0alpha1 plugins code in check_disk, which calls fsusage.c, already retrieves the inode values I thought to patch it to also print inode percentage free. Additionally, I changed the static "0" in perfdata to be inode percent free. I added -W and -K (sorry, -C was taken) for inode percent warning and critical levels. Alas, only percentage implemented as of now. (No integer value support). Current output looks like: # ./check_disk -l -w 10% -c 2% -X tmpfs -W 10% -K 2% DISK OK - free space: / 31266 MB (93% inode=98%);| /=31266MB;30168;32850;97;33521 And indeed, brining up the -W warning value triggers a warning: # ./check_disk -l -w 10% -c 2% -X tmpfs -W 98% -K 2% DISK WARNING - free space: / 31266 MB (93% inode=98%);| /=31266MB;30168;32850;97;33521 Hope it helps more than it annoys. I could also have patched contrib/check_inodes for Solaris's "df -o i" call, but since nearly all the work was already done in check_disk I opted for that approach. Sincerely, Lundy ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=995761&group_id=29880 From jaap.hogenberg at marketxs.com Thu Jul 22 06:38:13 2004 From: jaap.hogenberg at marketxs.com (Jaap Hogenberg) Date: Thu Jul 22 06:38:13 2004 Subject: [Nagiosplug-devel] Performance output of the disk plugin Message-ID: <1090426653.16043.56.camel@kyle> Hi, While playing with perfparse 0.99.01 and the nagios plugin check_disk , it occurs to me that the performance data for this plugin is not correct. When I run the plugin, this is what I get: ( currently using check_disk 1.42 from plugins 1.4.0alpha2 ) nagios at gilmore:~/cvs/nagiosplug/plugins$ ./check_disk -w 30% -c 10% -p / DISK OK - free space: / 8171 MB (85%);| /=8170MB;6728;8650;0;9612 >From the "plugin developers doc" I gather that the second and third field in the performance data output should be of the "range type" and since we are working with "free space" any value bigger than the warning and critical tresholds is good , so we need to alert when the value is inside a range using the "@" sign.... This means the "warn" field should contain @((max * 100)/10:((max * 100)/30) and the "crit" field should show @[0:]((max * 100) /10 in values: .... | /=8170MB;@961:2884;@0:961;0;9612 Is this right ? I have tried to change the code myself, so that I could supply patches, but my C coding skills are lousy. I would appriciate the help, and many thanks for the great work done allready! Regards, Jaap Hogenberg From Ben at clewett.org.uk Thu Jul 22 07:19:12 2004 From: Ben at clewett.org.uk (Ben Clewett) Date: Thu Jul 22 07:19:12 2004 Subject: [Nagiosplug-devel] Performance output of the disk plugin In-Reply-To: <1090426653.16043.56.camel@kyle> References: <1090426653.16043.56.camel@kyle> Message-ID: <40FFCD6F.8090300@clewett.org.uk> Jaap, From the perspective of PerfParse, this unfortunately does not understand a range of data. Due to a flaw in the original data structure, it can only store a single value each for the critical and warn values. Further, it uses these to draw just single line on the graphs. Considerable work would be required to rebuild the product for a range. You are the first person I have ever seen who has requested support for this, and as far as I know, not a single plugin uses this format :) I do note that the range you specify in this case adds no more information to the output than using threshold values. Somebody here might correct me on this: I believe the range is used where an OK range may be either side of a WARN range, which it's self is either side of a CRITICAL range. Set by specifying overlapping ranges: OK [-WARN--[--CRITIAL--]--WARN-] OK Or in reverse where the '@' is used: an OK range sits between a WARN range, which sits between a CRITICAL range: ---CRITICAL-]--WARN-] OK [-WARN--[-CRITIAL--- I do wish to support this one day in PerfParse as this is a powerful option. If any person here can shine a light on how the ranges should correctly be used, and how to understand overlapping ranges, and most important, will standard plugins be written to use these, and if so, when? I would be interested in knowing :) Regards, Ben. Jaap Hogenberg wrote: > Hi, > > While playing with perfparse 0.99.01 and the nagios plugin check_disk , > it occurs to me that the performance data for this plugin is not > correct. When I run the plugin, this is what I get: > ( currently using check_disk 1.42 from plugins 1.4.0alpha2 ) > > > nagios at gilmore:~/cvs/nagiosplug/plugins$ ./check_disk -w 30% -c 10% -p / > DISK OK - free space: / 8171 MB (85%);| /=8170MB;6728;8650;0;9612 > >>From the "plugin developers doc" I gather that the second and third > field in the performance data output should be of the "range type" > and since we are working with "free space" any value bigger than > the warning and critical tresholds is good , so we need to alert > when the value is inside a range using the "@" sign.... > > This means the "warn" field should contain @((max * 100)/10:((max * > 100)/30) > and the "crit" field should show @[0:]((max * 100) /10 > > in values: .... | /=8170MB;@961:2884;@0:961;0;9612 > > Is this right ? > > I have tried to change the code myself, so that I could supply > patches, but my C coding skills are lousy. > > I would appriciate the help, and many thanks for the great work done > allready! > > Regards, > Jaap Hogenberg > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > 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 nemir at mindless.com Thu Jul 22 08:35:10 2004 From: nemir at mindless.com (nemir nemiria) Date: Thu Jul 22 08:35:10 2004 Subject: [Nagiosplug-devel] has anyone developed a plugin in python? Message-ID: <20040722153433.358C96EEE9@ws1-5.us4.outblaze.com> I had a look at teh distro and couldn't see anything in there that looked like it was a python plugin. I have developed a plugin that I am keen to contribute, but I can't figure out how to make a timeout function for it, which is a showstopper according to the guidelines page. I was hoping that someone had done it before me, and I could maybe have a look how and perhaps ste.. er adapt it to my own purposes. ;-) Regards, Nemir -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm From Ben at clewett.org.uk Thu Jul 22 08:43:14 2004 From: Ben at clewett.org.uk (Ben Clewett) Date: Thu Jul 22 08:43:14 2004 Subject: [Perfparse-users] Re: [Nagiosplug-devel] Performance output of the disk plugin In-Reply-To: <1090509617.19974.85.camel@kyle> References: <1090426653.16043.56.camel@kyle> <40FFCD6F.8090300@clewett.org.uk> <1090509617.19974.85.camel@kyle> Message-ID: <40FFE11A.4090408@clewett.org.uk> Yes I know the check_disk returns the values upside down. Very annoying! Half my disks are showing up as CRITICAL too :) I did post a bug about this, but not sure what happened to it. It's early days yet for performance data, I am sure everything will fall into place over next few months. I might even find time to add range support to PerfParse if it's important. But please don't hold your breath! Regards, Ben Jaap Hogenberg wrote: > On Thu, 2004-07-22 at 16:21, Ben Clewett wrote: > >>Jaap, >> >> From the perspective of PerfParse, this unfortunately does not >>understand a range of data. Due to a flaw in the original data >>structure, it can only store a single value each for the critical and >>warn values. Further, it uses these to draw just single line on the >>graphs. Considerable work would be required to rebuild the product for >>a range. > > OK , I understand. > > >>You are the first person I have ever seen who has requested support for >>this, and as far as I know, not a single plugin uses this format :) > > Well, some of my custom check scripts do ;-) > Until I decided to rip that out , because it confused perfparse :) > > > >>I do note that the range you specify in this case adds no more >>information to the output than using threshold values. > > Uhm, this particular case is a plugin that reports free space, > so the tresholds are not "upper" treshold but lower tresholds, > meaning that when the value drops BELOW the treshold, a warning or > critical status should be set, with critical < warning > > Just using the treshold values would generete these alerts when > exceeding the tresholds. > That's why I though using ranges would be usefull. > > Apart from that, the tresholds that this plugin generates are wrong > anyway : it reports the free space, and the tresholds are not set > to 30 and 10 % (in the example below) but to the values that would be > correct when calculating USED space, i.e. 70 and 90 % > > All together, it sounds like we would be better of having a plugin that > would report on used space percentages than free space ..... > > Regards, and thanks for the help > > Jaap Hogenberg > > >>Somebody here might correct me on this: I believe the range is used >>where an OK range may be either side of a WARN range, which it's self is >>either side of a CRITICAL range. Set by specifying overlapping ranges: >> >> OK [-WARN--[--CRITIAL--]--WARN-] OK >> >>Or in reverse where the '@' is used: an OK range sits between a WARN >>range, which sits between a CRITICAL range: >> >>---CRITICAL-]--WARN-] OK [-WARN--[-CRITIAL--- >> >>I do wish to support this one day in PerfParse as this is a powerful >>option. If any person here can shine a light on how the ranges should >>correctly be used, and how to understand overlapping ranges, and most >>important, will standard plugins be written to use these, and if so, >>when? I would be interested in knowing :) >> >>Regards, Ben. >> >> >>Jaap Hogenberg wrote: >> >> >>>Hi, >>> >>>While playing with perfparse 0.99.01 and the nagios plugin check_disk , >>>it occurs to me that the performance data for this plugin is not >>>correct. When I run the plugin, this is what I get: >>>( currently using check_disk 1.42 from plugins 1.4.0alpha2 ) >>> >>> >>>nagios at gilmore:~/cvs/nagiosplug/plugins$ ./check_disk -w 30% -c 10% -p / >>>DISK OK - free space: / 8171 MB (85%);| /=8170MB;6728;8650;0;9612 >>> >>>>From the "plugin developers doc" I gather that the second and third >>>field in the performance data output should be of the "range type" >>>and since we are working with "free space" any value bigger than >>>the warning and critical tresholds is good , so we need to alert >>>when the value is inside a range using the "@" sign.... >>> >>>This means the "warn" field should contain @((max * 100)/10:((max * >>>100)/30) >>>and the "crit" field should show @[0:]((max * 100) /10 >>> >>>in values: .... | /=8170MB;@961:2884;@0:961;0;9612 >>> >>>Is this right ? >>> >>>I have tried to change the code myself, so that I could supply >>>patches, but my C coding skills are lousy. >>> >>>I would appriciate the help, and many thanks for the great work done >>>allready! >>> >>>Regards, >>>Jaap Hogenberg >>> >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by BEA Weblogic Workshop >>>FREE Java Enterprise J2EE developer tools! >>>Get your free copy of BEA WebLogic Workshop 8.1 today. >>>http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >>>_______________________________________________ >>>Nagiosplug-devel mailing list >>>Nagiosplug-devel at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel >>>::: Please include plugins version (-v) and OS when reporting any issue. >>>::: Messages without supporting info will risk being sent to /dev/null >>> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Perfparse-users mailing list > Perfparse-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfparse-users > From jhmartin at toger.us Thu Jul 22 08:51:01 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu Jul 22 08:51:01 2004 Subject: [Nagiosplug-devel] has anyone developed a plugin in python? In-Reply-To: <20040722153433.358C96EEE9@ws1-5.us4.outblaze.com> References: <20040722153433.358C96EEE9@ws1-5.us4.outblaze.com> Message-ID: <20040722155009.GJ26681@zippy.members.linode.com> On Fri, Jul 23, 2004 at 01:34:33AM +1000, nemir nemiria wrote: > I had a look at teh distro and couldn't see anything in there that looked like it was a python plugin. > > I have developed a plugin that I am keen to contribute, but I can't figure out how to make a timeout function for it, which is a showstopper according to the guidelines page. It isn't a showstopper since both NRPE or Nagios will attempt to kill it after it has run out of time, but it is still a good idea to handle it within your code. I found this about timeouts in python: http://www.python.org/doc/current/lib/module-signal.html -Jason MArtin -- The wise open their minds, but a fool opens his mouth. 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 jhmartin at toger.us Thu Jul 22 08:52:00 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu Jul 22 08:52:00 2004 Subject: [Nagiosplug-devel] has anyone developed a plugin in python? In-Reply-To: <20040722153433.358C96EEE9@ws1-5.us4.outblaze.com> References: <20040722153433.358C96EEE9@ws1-5.us4.outblaze.com> Message-ID: <20040722155103.GK26681@zippy.members.linode.com> On Fri, Jul 23, 2004 at 01:34:33AM +1000, nemir nemiria wrote: > I was hoping that someone had done it before me, and I could maybe have a look how and perhaps ste.. er adapt it to my own purposes. ;-) Found even a better one: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=59aa3aef.0204231823.77932129%40posting.google.com -Jason Martin -- The wise open their minds, but a fool opens his mouth. 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 GWCOOK at mactec.com Thu Jul 22 09:19:24 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu Jul 22 09:19:24 2004 Subject: [Perfparse-users] Re: [Nagiosplug-devel] Performance output of the disk plugin Message-ID: <41FD7929498A174DAB86C45F28E0EC0D0ABD75@golden-m.mactec.com> I don't know about how to handle the range issue, but I fixed the flipped values issue. I thought that I posted to this list with the patch, but maybe I didn't. Check the sourceforge.net nagiosplug site, I posted a patch there (search for user: g_force). If you can't locate it, let me know and I can dig it up and resend to the list... -g -----Original Message----- From: perfparse-users-admin at lists.sourceforge.net on behalf of Ben Clewett Sent: Thu 7/22/2004 9:45 AM To: Jaap Hogenberg Cc: nagiosplug-devel at lists.sourceforge.net; 'perfparse-users at lists.sourceforge.net' Subject: Re: [Perfparse-users] Re: [Nagiosplug-devel] Performance output of the disk plugin Yes I know the check_disk returns the values upside down. Very annoying! Half my disks are showing up as CRITICAL too :) I did post a bug about this, but not sure what happened to it. It's early days yet for performance data, I am sure everything will fall into place over next few months. I might even find time to add range support to PerfParse if it's important. But please don't hold your breath! Regards, Ben Jaap Hogenberg wrote: > On Thu, 2004-07-22 at 16:21, Ben Clewett wrote: > >>Jaap, >> >> From the perspective of PerfParse, this unfortunately does not >>understand a range of data. Due to a flaw in the original data >>structure, it can only store a single value each for the critical and >>warn values. Further, it uses these to draw just single line on the >>graphs. Considerable work would be required to rebuild the product for >>a range. > > OK , I understand. > > >>You are the first person I have ever seen who has requested support for >>this, and as far as I know, not a single plugin uses this format :) > > Well, some of my custom check scripts do ;-) > Until I decided to rip that out , because it confused perfparse :) > > > >>I do note that the range you specify in this case adds no more >>information to the output than using threshold values. > > Uhm, this particular case is a plugin that reports free space, > so the tresholds are not "upper" treshold but lower tresholds, > meaning that when the value drops BELOW the treshold, a warning or > critical status should be set, with critical < warning > > Just using the treshold values would generete these alerts when > exceeding the tresholds. > That's why I though using ranges would be usefull. > > Apart from that, the tresholds that this plugin generates are wrong > anyway : it reports the free space, and the tresholds are not set > to 30 and 10 % (in the example below) but to the values that would be > correct when calculating USED space, i.e. 70 and 90 % > > All together, it sounds like we would be better of having a plugin that > would report on used space percentages than free space ..... > > Regards, and thanks for the help > > Jaap Hogenberg > > >>Somebody here might correct me on this: I believe the range is used >>where an OK range may be either side of a WARN range, which it's self is >>either side of a CRITICAL range. Set by specifying overlapping ranges: >> >> OK [-WARN--[--CRITIAL--]--WARN-] OK >> >>Or in reverse where the '@' is used: an OK range sits between a WARN >>range, which sits between a CRITICAL range: >> >>---CRITICAL-]--WARN-] OK [-WARN--[-CRITIAL--- >> >>I do wish to support this one day in PerfParse as this is a powerful >>option. If any person here can shine a light on how the ranges should >>correctly be used, and how to understand overlapping ranges, and most >>important, will standard plugins be written to use these, and if so, >>when? I would be interested in knowing :) >> >>Regards, Ben. >> >> >>Jaap Hogenberg wrote: >> >> >>>Hi, >>> >>>While playing with perfparse 0.99.01 and the nagios plugin check_disk , >>>it occurs to me that the performance data for this plugin is not >>>correct. When I run the plugin, this is what I get: >>>( currently using check_disk 1.42 from plugins 1.4.0alpha2 ) >>> >>> >>>nagios at gilmore:~/cvs/nagiosplug/plugins$ ./check_disk -w 30% -c 10% -p / >>>DISK OK - free space: / 8171 MB (85%);| /=8170MB;6728;8650;0;9612 >>> >>>>From the "plugin developers doc" I gather that the second and third >>>field in the performance data output should be of the "range type" >>>and since we are working with "free space" any value bigger than >>>the warning and critical tresholds is good , so we need to alert >>>when the value is inside a range using the "@" sign.... >>> >>>This means the "warn" field should contain @((max * 100)/10:((max * >>>100)/30) >>>and the "crit" field should show @[0:]((max * 100) /10 >>> >>>in values: .... | /=8170MB;@961:2884;@0:961;0;9612 >>> >>>Is this right ? >>> >>>I have tried to change the code myself, so that I could supply >>>patches, but my C coding skills are lousy. >>> >>>I would appriciate the help, and many thanks for the great work done >>>allready! >>> >>>Regards, >>>Jaap Hogenberg >>> >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by BEA Weblogic Workshop >>>FREE Java Enterprise J2EE developer tools! >>>Get your free copy of BEA WebLogic Workshop 8.1 today. >>>http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >>>_______________________________________________ >>>Nagiosplug-devel mailing list >>>Nagiosplug-devel at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel >>>::: Please include plugins version (-v) and OS when reporting any issue. >>>::: Messages without supporting info will risk being sent to /dev/null >>> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Perfparse-users mailing list > Perfparse-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfparse-users > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Perfparse-users mailing list Perfparse-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfparse-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From nemir at mindless.com Thu Jul 22 10:57:14 2004 From: nemir at mindless.com (nemir nemiria) Date: Thu Jul 22 10:57:14 2004 Subject: [Nagiosplug-devel] has anyone developed a plugin in python? Message-ID: <20040722175623.C753916402D@ws1-4.us4.outblaze.com> Jason Martin replied with wonderfully helpful comments thus: > On Fri, Jul 23, 2004 at 01:34:33AM +1000, nemir nemiria wrote: > > I was hoping that someone had done it before me, and I could maybe have a look how and perhaps ste.. er adapt it to my own purposes. ;-) > Found even a better one: > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=59aa3aef.0204231823.77932129%40posting.google.com Thanks Jason! A wonderful help. I had spent a few days looking for something to do this for me, and here you go pointing me at the docs for signal and I have written something in less than ten minutes that works perfectly. The code from the above example seems to be overkill for what I need at the moment, and seeing as this is the first thing I've written that wasn't more than a glorified text masher, it adds a level of complexity that I don't want to dive into at 4am. Only thing left is to write up my FAQs (cause I've written it in python I don't assume everyone has it installed, and because I've used optparse to deal with my parameters I have written instructions on downloading and installing optik for the earlier versions.) and try to figure out a try statement that will import from optparse or optik, and then I can post it. ^_^ Thanks for your help. Nemir -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm From david.booth at cdlps.co.uk Thu Jul 22 11:05:11 2004 From: david.booth at cdlps.co.uk (David Booth) Date: Thu Jul 22 11:05:11 2004 Subject: [Nagiosplug-devel] web transaction checker Message-ID: <000d01c46ff8$cbe1c540$963e1a0a@cheshdatasys.co.uk> Hello, I'm looking for a free web transaction checker, to use as an alternative to Sitescope.... - This sort of monitoring is a vital for many companies (it's a jsp solution that needs checking).... Is there a Nagios plugin developed, or in development, that can do this? I'm struggling to find anything free that can do the job..... help! Thanks, dave. From jaap.hogenberg at marketxs.com Thu Jul 22 11:05:13 2004 From: jaap.hogenberg at marketxs.com (Jaap Hogenberg) Date: Thu Jul 22 11:05:13 2004 Subject: [Nagiosplug-devel] Performance output of the disk plugin In-Reply-To: <40FFCD6F.8090300@clewett.org.uk> References: <1090426653.16043.56.camel@kyle> <40FFCD6F.8090300@clewett.org.uk> Message-ID: <1090509617.19974.85.camel@kyle> On Thu, 2004-07-22 at 16:21, Ben Clewett wrote: > Jaap, > > From the perspective of PerfParse, this unfortunately does not > understand a range of data. Due to a flaw in the original data > structure, it can only store a single value each for the critical and > warn values. Further, it uses these to draw just single line on the > graphs. Considerable work would be required to rebuild the product for > a range. OK , I understand. > You are the first person I have ever seen who has requested support for > this, and as far as I know, not a single plugin uses this format :) Well, some of my custom check scripts do ;-) Until I decided to rip that out , because it confused perfparse :) > I do note that the range you specify in this case adds no more > information to the output than using threshold values. Uhm, this particular case is a plugin that reports free space, so the tresholds are not "upper" treshold but lower tresholds, meaning that when the value drops BELOW the treshold, a warning or critical status should be set, with critical < warning Just using the treshold values would generete these alerts when exceeding the tresholds. That's why I though using ranges would be usefull. Apart from that, the tresholds that this plugin generates are wrong anyway : it reports the free space, and the tresholds are not set to 30 and 10 % (in the example below) but to the values that would be correct when calculating USED space, i.e. 70 and 90 % All together, it sounds like we would be better of having a plugin that would report on used space percentages than free space ..... Regards, and thanks for the help Jaap Hogenberg > Somebody here might correct me on this: I believe the range is used > where an OK range may be either side of a WARN range, which it's self is > either side of a CRITICAL range. Set by specifying overlapping ranges: > > OK [-WARN--[--CRITIAL--]--WARN-] OK > > Or in reverse where the '@' is used: an OK range sits between a WARN > range, which sits between a CRITICAL range: > > ---CRITICAL-]--WARN-] OK [-WARN--[-CRITIAL--- > > I do wish to support this one day in PerfParse as this is a powerful > option. If any person here can shine a light on how the ranges should > correctly be used, and how to understand overlapping ranges, and most > important, will standard plugins be written to use these, and if so, > when? I would be interested in knowing :) > > Regards, Ben. > > > Jaap Hogenberg wrote: > > > Hi, > > > > While playing with perfparse 0.99.01 and the nagios plugin check_disk , > > it occurs to me that the performance data for this plugin is not > > correct. When I run the plugin, this is what I get: > > ( currently using check_disk 1.42 from plugins 1.4.0alpha2 ) > > > > > > nagios at gilmore:~/cvs/nagiosplug/plugins$ ./check_disk -w 30% -c 10% -p / > > DISK OK - free space: / 8171 MB (85%);| /=8170MB;6728;8650;0;9612 > > > >>From the "plugin developers doc" I gather that the second and third > > field in the performance data output should be of the "range type" > > and since we are working with "free space" any value bigger than > > the warning and critical tresholds is good , so we need to alert > > when the value is inside a range using the "@" sign.... > > > > This means the "warn" field should contain @((max * 100)/10:((max * > > 100)/30) > > and the "crit" field should show @[0:]((max * 100) /10 > > > > in values: .... | /=8170MB;@961:2884;@0:961;0;9612 > > > > Is this right ? > > > > I have tried to change the code myself, so that I could supply > > patches, but my C coding skills are lousy. > > > > I would appriciate the help, and many thanks for the great work done > > allready! > > > > Regards, > > Jaap Hogenberg > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > _______________________________________________ > > 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 jhmartin at toger.us Thu Jul 22 11:18:01 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu Jul 22 11:18:01 2004 Subject: [Nagiosplug-devel] web transaction checker In-Reply-To: <000d01c46ff8$cbe1c540$963e1a0a@cheshdatasys.co.uk> References: <000d01c46ff8$cbe1c540$963e1a0a@cheshdatasys.co.uk> Message-ID: <20040722181716.GN26681@zippy.members.linode.com> On Thu, Jul 22, 2004 at 03:33:03PM +0100, David Booth wrote: > Hello, > I'm looking for a free web transaction checker, to use as an alternative to > Sitescope.... There isn't a plugin that does synthetic transactions, but there are several open source tools that can do such a thing and can probably be integrated with a small custom plugin. -Jason Martin -- To err is human. To really screw up it takes a computer! 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 rnelson at windchannel.com Thu Jul 22 15:09:17 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu Jul 22 15:09:17 2004 Subject: [Nagiosplug-devel] check_ping problem Message-ID: I found a problem with check_ping and domain names that it doesn't like. To the best of my knowledge, the following is not a problem DNS record: [root at BAMBAM libexec]# ./check_ping -H tap-5300h.2wachovia.nc.windchannel.com -w 100,10%% -c 100,10%% check_ping: Invalid host name/address - tap-5300h.2wachovia.nc.windchannel.com If I take out the "2" then I get: [root at BAMBAM libexec]# ./check_ping -H tap-5300h.wachovia.nc.windchannel.com -w 100,10%% -c 100,10%% PING CRITICAL - Host not found (tap-5300h.wachovia.nc.windchannel.com) Am I doing something wrong, or is this an actual problem with check_ping and domains that begin with numbers? Thanks. - For the record, because I wanted to get this in the monitoring system, I changed the subdomain to wachova2.nc.windchannel.com, so no, the records above do not exist anymore. Rob Nelson rnelson at windchannel.com From rnelson at windchannel.com Thu Jul 22 17:18:21 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Thu Jul 22 17:18:21 2004 Subject: [Nagiosplug-devel] check_ping problem Message-ID: > A reasonable question is whether this is a problem in the > nagios plugin > or in your local resolver library. If you just type a > ping tap-5300h.2wachovia.nc.windchannel.com > to a shell prompt, do you get normal output or a resolver error? If > the bare ping command works, you may have to tweak the check_ping to > use it instead of some ping program that comes with the > nagios plugins. > (My nagios box is down at the moment so I can't check exactly where > nagios gets its ping; I do remember that it configured it wrong and I > had to fix that). Pings and nslookups themselves resolve fine without difficulty, which is why I was so surprised :) I'm using nagios-plugins-1.3.1 and here's what I found - goes beyond check_ping, in fact: The offending code in check_ping.c is (starting on line 200): ===== case 'H': /* hostname */ if (is_host (optarg) == FALSE) usage2 ("Invalid host name/address", optarg); server_address = optarg; break; ===== The is_host seems to be defined in utils.c on line 167: ===== int is_host (char *address) { if (is_dotted_quad (address) || is_hostname (address)) return (TRUE); return (FALSE); } ===== That then leads to utils.c on line 215: ===== int is_hostname (char *s1) { if (!s1 || strlen (s1) > 255) { return FALSE; } /* if s1 contains anything but ALPHA, NUM, dash, or period*/ if (strcspn (s1, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ0123456789-.") != 0) { return FALSE; } /* or if s1 begins with dash or period */ if (strspn (s1, "-.") == 1) { return FALSE; } /* '..' and '.-' are not legal either */ while ((s1 = index (s1, '.'))) { s1++; if (strspn (s1, "0123456789-.") == 1) { return FALSE; } } return TRUE; } ===== I know enough about code to be dangerous but not offer anything helpful. But I'm going to try anyway ;) If I remove the last if test, it will probably start accepting the domain 2wachovia...However, I'm not sure why a check for '..' and '.-' use a regex that will match '.0' through '.9' as well. What else would this affect, if I "fixed" that if statement and recompiled? And how long can I reasonably expect for any such fix to happen and be merged with the source? Rob Nelson Network Engineer Windchannel Communications 919-538-6326 From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Jul 22 18:18:10 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu Jul 22 18:18:10 2004 Subject: [Nagiosplug-devel] web transaction checker In-Reply-To: <20040722181716.GN26681@zippy.members.linode.com>; from jhmartin@toger.us on Thu, Jul 22, 2004 at 11:17:16AM -0700 References: <000d01c46ff8$cbe1c540$963e1a0a@cheshdatasys.co.uk> <20040722181716.GN26681@zippy.members.linode.com> Message-ID: <20040723111713.A48732@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Thu, Jul 22, 2004 at 11:17:16AM -0700, Jason Martin wrote: > On Thu, Jul 22, 2004 at 03:33:03PM +0100, David Booth wrote: > > Hello, > > I'm looking for a free web transaction checker, to use as an alternative to > > Sitescope.... > There isn't a plugin that does synthetic transactions, but there are several > open source tools that can do such a thing and can probably be integrated with > a small custom plugin. > eg at your local CPAN repo, in order of sophistication LWP Nagios::WebTransact (deprecated, but has some examples of Nag plugins that do this) WWW::Automate + WWW::Recorder (?) > -Jason Martin > 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 Jul 22 20:49:08 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Jul 22 20:49:08 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-995761 ] check_disk to include inode percentage. Message-ID: Patches item #995761, was opened at 2004-07-22 08:21 Message generated for change (Comment added) made by lundman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=995761&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jorgen Lundman (lundman) Assigned to: Nobody/Anonymous (nobody) Summary: check_disk to include inode percentage. Initial Comment: Since the 1.4.0alpha1 plugins code in check_disk, which calls fsusage.c, already retrieves the inode values I thought to patch it to also print inode percentage free. Additionally, I changed the static "0" in perfdata to be inode percent free. I added -W and -K (sorry, -C was taken) for inode percent warning and critical levels. Alas, only percentage implemented as of now. (No integer value support). Current output looks like: # ./check_disk -l -w 10% -c 2% -X tmpfs -W 10% -K 2% DISK OK - free space: / 31266 MB (93% inode=98%);| /=31266MB;30168;32850;97;33521 And indeed, brining up the -W warning value triggers a warning: # ./check_disk -l -w 10% -c 2% -X tmpfs -W 98% -K 2% DISK WARNING - free space: / 31266 MB (93% inode=98%);| /=31266MB;30168;32850;97;33521 Hope it helps more than it annoys. I could also have patched contrib/check_inodes for Solaris's "df -o i" call, but since nearly all the work was already done in check_disk I opted for that approach. Sincerely, Lundy ---------------------------------------------------------------------- >Comment By: Jorgen Lundman (lundman) Date: 2004-07-23 03:45 Message: Logged In: YES user_id=286650 Additionally, there is a bug when you use -p, or -x, to list paths to include or exclude. The nodes allocated do not get w_df etc variables cleared, so when you walk the list, they get assigned to global w_df variables, and all tests are out the window. This is a side effect of an OS where malloc() returned memory is not zero'd. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=995761&group_id=29880 From karl at debisschop.net Fri Jul 23 05:26:25 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Fri Jul 23 05:26:25 2004 Subject: [Nagiosplug-devel] check_ping problem In-Reply-To: References: Message-ID: <47068.198.4.159.6.1090583829.squirrel@198.4.159.6> Robert Nelson said: >> A reasonable question is whether this is a problem in the >> nagios plugin >> or in your local resolver library. If you just type a >> ping tap-5300h.2wachovia.nc.windchannel.com >> to a shell prompt, do you get normal output or a resolver error? If >> the bare ping command works, you may have to tweak the check_ping to >> use it instead of some ping program that comes with the >> nagios plugins. >> (My nagios box is down at the moment so I can't check exactly where >> nagios gets its ping; I do remember that it configured it wrong and I >> had to fix that). > > Pings and nslookups themselves resolve fine without difficulty, which is > why I was so surprised :) I'm using nagios-plugins-1.3.1 and here's what > I found - goes beyond check_ping, in fact: > > > The offending code in check_ping.c is (starting on line 200): > > ===== > case 'H': /* hostname */ > if (is_host (optarg) == FALSE) > usage2 ("Invalid host name/address", > optarg); > server_address = optarg; > break; > ===== > > The is_host seems to be defined in utils.c on line 167: > > ===== > int > is_host (char *address) > { > if (is_dotted_quad (address) || is_hostname (address)) > return (TRUE); > return (FALSE); > } > ===== > > That then leads to utils.c on line 215: > > ===== > int > is_hostname (char *s1) > { > if (!s1 || strlen (s1) > 255) { > return FALSE; > } > /* if s1 contains anything but ALPHA, NUM, dash, or period*/ > if (strcspn (s1, > "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ0123456789-.") != > 0) { > return FALSE; > } > /* or if s1 begins with dash or period */ > if (strspn (s1, "-.") == 1) { > return FALSE; > } > /* '..' and '.-' are not legal either */ > while ((s1 = index (s1, '.'))) { > s1++; > if (strspn (s1, "0123456789-.") == 1) { > return FALSE; > } > } > return TRUE; > } > ===== > > I know enough about code to be dangerous but not offer anything helpful. > But I'm going to try anyway ;) If I remove the last if test, it will > probably start accepting the domain 2wachovia...However, I'm not sure > why a check for '..' and '.-' use a regex that will match '.0' through > '.9' as well. What else would this affect, if I "fixed" that if > statement and recompiled? And how long can I reasonably expect for any > such fix to happen and be merged with the source? You can go ahead and make the change - this regex correspnds to the old definition of an arpa hostname - which is stricter than the present defintion. Fixing the code in CVS is on the TODO list. -- Karl From rnelson at windchannel.com Fri Jul 23 07:18:05 2004 From: rnelson at windchannel.com (Robert Nelson) Date: Fri Jul 23 07:18:05 2004 Subject: [Nagiosplug-devel] check_ping problem Message-ID: Thanks Karl! I appreciate the quick response. I'll fix and recompile the plugins and see if it fixes things. Changing the name of our POP was a bit dramatic :) In the future, is this the best way for a psuedo programmer like myself to pass on bugs and help out, or is there a better way that's less work for you guys? Sorry, but I don't know jack about patching and diff'ing source files! Rob Nelson Network Engineer Windchannel Communications 919-538-6326 > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Friday, July 23, 2004 7:57 AM > To: Robert Nelson > Cc: Walt Howard; nagiosplug-devel at lists.sourceforge.net > Subject: RE: [Nagiosplug-devel] check_ping problem > > > Robert Nelson said: > >> A reasonable question is whether this is a problem in the > >> nagios plugin > >> or in your local resolver library. If you just type a > >> ping tap-5300h.2wachovia.nc.windchannel.com > >> to a shell prompt, do you get normal output or a resolver > error? If > >> the bare ping command works, you may have to tweak the > check_ping to > >> use it instead of some ping program that comes with the > >> nagios plugins. > >> (My nagios box is down at the moment so I can't check exactly where > >> nagios gets its ping; I do remember that it configured it > wrong and I > >> had to fix that). > > > > Pings and nslookups themselves resolve fine without > difficulty, which is > > why I was so surprised :) I'm using nagios-plugins-1.3.1 > and here's what > > I found - goes beyond check_ping, in fact: > > > > > > The offending code in check_ping.c is (starting on line 200): > > > > ===== > > case 'H': /* hostname */ > > if (is_host (optarg) == FALSE) > > usage2 ("Invalid host name/address", > > optarg); > > server_address = optarg; > > break; > > ===== > > > > The is_host seems to be defined in utils.c on line 167: > > > > ===== > > int > > is_host (char *address) > > { > > if (is_dotted_quad (address) || is_hostname (address)) > > return (TRUE); > > return (FALSE); > > } > > ===== > > > > That then leads to utils.c on line 215: > > > > ===== > > int > > is_hostname (char *s1) > > { > > if (!s1 || strlen (s1) > 255) { > > return FALSE; > > } > > /* if s1 contains anything but ALPHA, NUM, dash, or period*/ > > if (strcspn (s1, > > > "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ0123456789-.") != > > 0) { > > return FALSE; > > } > > /* or if s1 begins with dash or period */ > > if (strspn (s1, "-.") == 1) { > > return FALSE; > > } > > /* '..' and '.-' are not legal either */ > > while ((s1 = index (s1, '.'))) { > > s1++; > > if (strspn (s1, "0123456789-.") == 1) { > > return FALSE; > > } > > } > > return TRUE; > > } > > ===== > > > > I know enough about code to be dangerous but not offer > anything helpful. > > But I'm going to try anyway ;) If I remove the last if test, it will > > probably start accepting the domain 2wachovia...However, > I'm not sure > > why a check for '..' and '.-' use a regex that will match > '.0' through > > '.9' as well. What else would this affect, if I "fixed" that if > > statement and recompiled? And how long can I reasonably > expect for any > > such fix to happen and be merged with the source? > > You can go ahead and make the change - this regex correspnds > to the old > definition of an arpa hostname - which is stricter than the present > defintion. > > Fixing the code in CVS is on the TODO list. > > -- > Karl > > > From noreply at sourceforge.net Fri Jul 23 08:54:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Jul 23 08:54:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-946857 ] check_ping - output error Message-ID: Bugs item #946857, was opened at 2004-05-03 05:05 Message generated for change (Comment added) made by plynch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=946857&group_id=29880 Category: Argument proccessing Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: Pumuckel1980 (pumuckel1980) Assigned to: Nobody/Anonymous (nobody) Summary: check_ping - output error Initial Comment: Hello, I have some problems with the "nagios-plugins- 1.4.0alpha1". In this Version the check_ping plugin show me the following result: "bin/ping -n -U -c 1 ntest2ext Error: Could not interpret output from ping command" It's OK when I use the "nagios-plugins-1.3.1.tar.gz". ./check_ping -H ntest2ext -w 3000.0,80% -c 5000.0,100% -p 1 PING OK - Packet loss = 0%, RTA = 0.22 ms PING OK - Packet loss = 0%, RTA = 0.46 ms Here are my differnet settings: 1. nagios-plugins-1.3.1.tar.gz ############################## = uname -a "Linux *HOSTNAME* 2.4.22 #1 SMP Mit Okt 29 15:21:08 CET 2003 i686 i686 i386 GNU/Linux" =./check_ping -H *HOSTNAME* -w 3000.0,80% -c 5000.0,100% -p 1 "PING OK - Packet loss = 0%, RTA = 0.22 ms PING OK - Packet loss = 0%, RTA = 0.48 ms" 2. "nagios-plugins-1.4.0alpha1" ############################## = uname -a "Linux *HOSTNAME* 2.4.22 #1 SMP Mit Okt 29 1:21:08 CET 2003 i686 i686 i386 GNU/Linux" =./check_ping -H ntest2ext -w 3000.0,80% -c 5000.0,100% -p 1 "/bin/ping -n -U -c 1 ntest2ext Error: Could not interpret output from ping command" thanks for help bye ---------------------------------------------------------------------- Comment By: Patrick Lynch (plynch) Date: 2004-07-23 10:53 Message: Logged In: YES user_id=375667 I have created a patch for this in Redhat ES 3.0. The reported output from ping changed ever so slightly and was breaking when the host was down. Here is the patch. The work 'packet' is no longer shown in the errors output field. ------ Begin check_ping.c patch for RedHat ES 3.0 ------- --- plugins/check_ping.c 2003-01-13 07:15:16.000000000 -0500 +++ plugins/check_ping.c.new 2004-07-23 10:32:56.000000000 -0500 @@ -387,6 +387,9 @@ (input_buffer, "%*d packets transmitted, %*d packets received, +%*d errors, %d%% packet loss", &pl) == 1 || sscanf + (input_buffer, "%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss", + &pl) == 1 + || sscanf (input_buffer, "%*d packets transmitted, %*d packets received, %d%% packet loss", &pl) == 1 || sscanf ------ End check_ping.c patch for RedHat ES 3.0 ------- ---------------------------------------------------------------------- Comment By: Alex Burger (alex_b) Date: 2004-06-30 21:20 Message: Logged In: YES user_id=85836 My testing was with Mandrake 10, not 9.2. 10 seems to have a different output for ping. Patch 912996 should help with the output problem, but it won't help with the STDOUT/ERR problem. ---------------------------------------------------------------------- Comment By: Alex Burger (alex_b) Date: 2004-06-30 21:03 Message: Logged In: YES user_id=85836 I am using Nagios-1.2 with nagios-plugins-1.3.1 and I am having a similar problem. On my Mandrake 9.2 system, host notifications for DOWN are showing the command line instead of the plugin output although the output for UP is correct. For example: [1088427108] HOST ALERT: server01;DOWN;SOFT;1;/bin/ping -n -U -c 1 server01 [1088427135] HOST NOTIFICATION: alex;server01;DOWN;host-notify-by-email;/bin/ping -n -U -c 1 server01 [1088427305] HOST NOTIFICATION: alex;server01;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.28 ms The host is using 'check-host-alive' which uses the following command line: /usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1 It looks like check_ping is expecting the 'From 10.36.39.219 icmp_seq=1 Destination Host Unreachable' message to be sent to STDERR from ping, but on my system it goes to STDOUT. To test, I created a script that outputs to STDERR a ping result, and changed check_ping to call my script instead: #!/usr/bin/perl select STDERR; print "From 192.168.1.1 icmp_seq=1 Destination Host Unreachable\n"; print "\n"; print "--- 192.168.1.1 ping statistics ---\n"; print "echo 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms\n"; Calling check_ping, I get the correct output: PING CRITICAL - Host Unreachable If I changed the script by removing 'select STDERR', I get: Error: Could not interpret output from ping command Looking at the source code, if it can not interpret the output it outputs the command that was executed instead, for troubleshooting purposes I assume. Alex ---------------------------------------------------------------------- Comment By: Pumuckel1980 (pumuckel1980) Date: 2004-05-03 07:18 Message: Logged In: YES user_id=1034118 added: here is the output of the ping command: [root at pb3 nagios-plugins-1.4.0alpha1]# /bin/ping -n -U -c 1 192.168.1.3 PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data. 64 bytes from 192.168.1.3: icmp_seq=1 ttl=255 time=0.243 ms --- 192.168.1.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.243/0.243/0.243/0.000 ms At the moment I've test the CVS Version (1.27) of the check_ping command. With this there is the same error like in the "nagios-plugins-1.4.0alpha1" package. thanks bye ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=946857&group_id=29880 From jeremy+nagios at undergrid.net Fri Jul 23 11:26:10 2004 From: jeremy+nagios at undergrid.net (Jeremy T. Bouse) Date: Fri Jul 23 11:26:10 2004 Subject: [Nagiosplug-devel] check_ping problem In-Reply-To: References: Message-ID: <20040723182328.GA17969@UnderGrid.net> Hmmm... I must be mistaken as it's been awhile since I've look'd into these functions for verify hostnames and IP addresses given to is_host() when I was working on the AF-independent code. I thought most of this had all been re-written but would be in CVS not in the current 1.3.1 code base if I'm correct. Regards, Jeremy On Fri, Jul 23, 2004 at 09:15:47AM -0400, Robert Nelson wrote: > Thanks Karl! I appreciate the quick response. I'll fix and recompile the > plugins and see if it fixes things. Changing the name of our POP was a > bit dramatic :) > > In the future, is this the best way for a psuedo programmer like myself > to pass on bugs and help out, or is there a better way that's less work > for you guys? Sorry, but I don't know jack about patching and diff'ing > source files! > > Rob Nelson > Network Engineer > Windchannel Communications > 919-538-6326 > > > -----Original Message----- > > From: Karl DeBisschop [mailto:karl at debisschop.net] > > Sent: Friday, July 23, 2004 7:57 AM > > To: Robert Nelson > > Cc: Walt Howard; nagiosplug-devel at lists.sourceforge.net > > Subject: RE: [Nagiosplug-devel] check_ping problem > > > > > > Robert Nelson said: > > >> A reasonable question is whether this is a problem in the > > >> nagios plugin > > >> or in your local resolver library. If you just type a > > >> ping tap-5300h.2wachovia.nc.windchannel.com > > >> to a shell prompt, do you get normal output or a resolver > > error? If > > >> the bare ping command works, you may have to tweak the > > check_ping to > > >> use it instead of some ping program that comes with the > > >> nagios plugins. > > >> (My nagios box is down at the moment so I can't check exactly where > > >> nagios gets its ping; I do remember that it configured it > > wrong and I > > >> had to fix that). > > > > > > Pings and nslookups themselves resolve fine without > > difficulty, which is > > > why I was so surprised :) I'm using nagios-plugins-1.3.1 > > and here's what > > > I found - goes beyond check_ping, in fact: > > > > > > > > > The offending code in check_ping.c is (starting on line 200): > > > > > > ===== > > > case 'H': /* hostname */ > > > if (is_host (optarg) == FALSE) > > > usage2 ("Invalid host name/address", > > > optarg); > > > server_address = optarg; > > > break; > > > ===== > > > > > > The is_host seems to be defined in utils.c on line 167: > > > > > > ===== > > > int > > > is_host (char *address) > > > { > > > if (is_dotted_quad (address) || is_hostname (address)) > > > return (TRUE); > > > return (FALSE); > > > } > > > ===== > > > > > > That then leads to utils.c on line 215: > > > > > > ===== > > > int > > > is_hostname (char *s1) > > > { > > > if (!s1 || strlen (s1) > 255) { > > > return FALSE; > > > } > > > /* if s1 contains anything but ALPHA, NUM, dash, or period*/ > > > if (strcspn (s1, > > > > > "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUWVXYZ0123456789-.") != > > > 0) { > > > return FALSE; > > > } > > > /* or if s1 begins with dash or period */ > > > if (strspn (s1, "-.") == 1) { > > > return FALSE; > > > } > > > /* '..' and '.-' are not legal either */ > > > while ((s1 = index (s1, '.'))) { > > > s1++; > > > if (strspn (s1, "0123456789-.") == 1) { > > > return FALSE; > > > } > > > } > > > return TRUE; > > > } > > > ===== > > > > > > I know enough about code to be dangerous but not offer > > anything helpful. > > > But I'm going to try anyway ;) If I remove the last if test, it will > > > probably start accepting the domain 2wachovia...However, > > I'm not sure > > > why a check for '..' and '.-' use a regex that will match > > '.0' through > > > '.9' as well. What else would this affect, if I "fixed" that if > > > statement and recompiled? And how long can I reasonably > > expect for any > > > such fix to happen and be merged with the source? > > > > You can go ahead and make the change - this regex correspnds > > to the old > > definition of an arpa hostname - which is stricter than the present > > defintion. > > > > Fixing the code in CVS is on the TODO list. > > > > -- > > Karl > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idG21&alloc_id040&op=click > _______________________________________________ > 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 nemir at mindless.com Fri Jul 23 12:01:13 2004 From: nemir at mindless.com (nemir nemiria) Date: Fri Jul 23 12:01:13 2004 Subject: [Nagiosplug-devel] Submission request...? Message-ID: <20040723190131.637041F4FA2@ws1-2.us4.outblaze.com> Hiya! I am pretty sure that everyone that decides this is required moves to snmp, but I don't want to do snmp and I really want to run checks on my CPU usage, so I wrote a plugin to do it. Unfortunately, it doesn't work under any windows based OS, as there isn't a CLI tool that will report the info without adding resource kit tools or some sort of third party utility. If you are familiar with python it shouldn't take too much effort to convert it over. It utilises optparser, which is native to python 2.3 or above. I have made use of a try statement to support the use of the optik module for versions 2.0 - 2.2. If users get an error that says "ImportError: No module named optparse", this means that they are running an older version of Python. They have two choices, either upgrade to 2.3.0 or higher, or install the optik module. I have written very clear and concise FAQs to cover all possible python errors, which you can have if you like. I have covered off everything I can think of. I support all the switches required according to the documentation, I believe that I have captured all possible syntax errors, and make sure it gives intelligent errors whenever required. I have tested this under OpenBSD, RedHat 8.0 -> Fedora Core2, and had someone test it on a debian system for me. I have written it so that it should be functional under any linux as well as NetBSD and FreeBSD. It has been running on about a dozen boxes through check_by_ssh in my network. Is that what you mean by a test harness? When I started this project I hadn't really any idea about how to finish it. Looking at the finished product, I feel a little embarrassed about how long it took for such a simple program. *blush* It has been a fun ride. I will get that out of it, even if I didn't notice something that does the job that already exists or that someone has written better. If you like it, I would be most chuffed to find it in the plugins one day. Chau! Nemir -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: check_cpu Type: application/octet-stream Size: 6001 bytes Desc: not available URL: From noreply at sourceforge.net Fri Jul 23 13:19:11 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Jul 23 13:19:11 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-996800 ] check_nmap.py update for current version of nmap Message-ID: Patches item #996800, was opened at 2004-07-23 16:18 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=996800&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Rippel (rippeld) Assigned to: Nobody/Anonymous (nobody) Summary: check_nmap.py update for current version of nmap Initial Comment: Corrects bug in check_nmap.py with newer versions of nmap where closed ports are reporetd by plugin as being open. This is due to the fact that the original version of the plugin did not look at the port state, only whether nmap returned 'something' for that port. This patch will check for the 'open' state. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=996800&group_id=29880 From karl at debisschop.net Sat Jul 24 04:49:02 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Sat Jul 24 04:49:02 2004 Subject: [Nagiosplug-devel] check_ping problem In-Reply-To: References: Message-ID: <41024C70.8020504@debisschop.net> Robert Nelson wrote: > Thanks Karl! I appreciate the quick response. I'll fix and recompile the > plugins and see if it fixes things. Changing the name of our POP was a > bit dramatic :) > > In the future, is this the best way for a psuedo programmer like myself > to pass on bugs and help out, or is there a better way that's less work > for you guys? Sorry, but I don't know jack about patching and diff'ing > source files! Questions on the nagioplug-devel list Bug-reports and patches are best submitted on the plugins sourceforge - the plugin developers are all seriously overcommitted, so the best way to be sure they don't get lost is the web interface. If you post a bug report to the list and submit it on the web, that's fine too - you will generally get faster response on email - but if you want to be sure it eventually gets fixed, make sure it gets to the web. (somewhat like the Fedora develpment team mantra: "If it's not in bugzilla, it doesn't exist") -- Karl From brazil at sendmail.com Sat Jul 24 11:21:03 2004 From: brazil at sendmail.com (Tim Brazil) Date: Sat Jul 24 11:21:03 2004 Subject: [Nagiosplug-devel] has anyone developed a check_lsof plugin to track file descriptors? Message-ID: <4102A866.6010307@sendmail.com> I currently use Nagios for QA testing for the purpose of tracking and plotting (perlparse) program performance. The one thing that I'm missing is the ability to track file descriptors on a running program. Sort of a lsof on a named service. Has anyone done this already. I figured I check before I look into it myself. Thanks - Tim P.S. - I'm new to the list. I'm a QA Engineer at Sendmail and Nagios + the plugins are golden to me :) From noreply at sourceforge.net Mon Jul 26 04:57:22 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Jul 26 04:57:22 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-997991 ] check pop3 server Message-ID: New Plugins item #997991, was opened at 2004-07-26 11:56 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=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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=997991&group_id=29880 From jhmartin at toger.us Mon Jul 26 08:20:06 2004 From: jhmartin at toger.us (Jason Martin) Date: Mon Jul 26 08:20:06 2004 Subject: [Nagiosplug-devel] perl signal handling Message-ID: <20040726151947.GM26681@zippy.members.linode.com> I've got a perl plugin that invokes df. I've noticed that if there is a stale NFS mount the df command will hang forever and NRPE will kill the plugin, but the df lives on. What is the appropriate way to make sure that the underlying df is killed along with the plugin? Thanks, -Jason Martin -- Shift happpens. - Doppler 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 Mon Jul 26 13:29:01 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Jul 26 13:29:01 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-998291 ] check_ping (1.3.1 and CVS) does not catch expired TTL errors Message-ID: Bugs item #998291, was opened at 2004-07-26 17:28 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=998291&group_id=29880 Category: Parsing problem Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: Georger Araujo (georger_br) Assigned to: Nobody/Anonymous (nobody) Summary: check_ping (1.3.1 and CVS) does not catch expired TTL errors Initial Comment: Guys, I often get the following problem in my network: [root at nagios nagios-plugins-1.3.1]# ping 10.83.0.242 PING 10.83.0.242 (10.83.0.242) 56(84) bytes of data. >From 10.10.0.22: icmp_seq=0 Redirect Host(New nexthop: 10.10.0.242) (... several lines of ICMP redirects ...) >From 10.10.0.22 icmp_seq=0 Time to live exceeded Nagios fails to figure out the host is down - in reality, I have a routing loop and my routers are just playing Pong. Worse, as Nagios doesn't treat this as an error, the ping goes on until check_plugin times out. Not good. OK, you can say I should just append a -w to my command file (when I do it, ping stops on the first "Time to live exceeded" error) - but Nagios *should* figure this out (that the host is down) and do its stuff. The way check_plugin.c is now, Nagios will not play nice with my network. I just looked the latest check_ping.c in CVS and saw that both the STDOUT/STDERR and -w issues have been taken care of, but in order to attain as much accuracy as possible please consider adding this to error_scan(): /* Georger's suggestion if (strstr (buf, "Time to live exceeded")) die (STATE_CRITICAL, _("PING CRITICAL - Time to live exceeded (%s)"), addr); */ I'd love to use the CVS version, but it doesn't compile on my box - I get an error stating that my_connect is declared in two places (net_utils.h and my_sql.c, or was it .h? Dunno, already deleted it), and I couldn't figure out how to not compile check_mysql (or at least compile just check_ping alone). Long live Nagios. Georger ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=998291&group_id=29880 From noreply at sourceforge.net Mon Jul 26 13:34:05 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Jul 26 13:34:05 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-998291 ] check_ping (1.3.1 and CVS) does not catch expired TTL errors Message-ID: Bugs item #998291, was opened at 2004-07-26 17:28 Message generated for change (Comment added) made by georger_br You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=998291&group_id=29880 Category: Parsing problem Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: Georger Araujo (georger_br) Assigned to: Nobody/Anonymous (nobody) Summary: check_ping (1.3.1 and CVS) does not catch expired TTL errors Initial Comment: Guys, I often get the following problem in my network: [root at nagios nagios-plugins-1.3.1]# ping 10.83.0.242 PING 10.83.0.242 (10.83.0.242) 56(84) bytes of data. >From 10.10.0.22: icmp_seq=0 Redirect Host(New nexthop: 10.10.0.242) (... several lines of ICMP redirects ...) >From 10.10.0.22 icmp_seq=0 Time to live exceeded Nagios fails to figure out the host is down - in reality, I have a routing loop and my routers are just playing Pong. Worse, as Nagios doesn't treat this as an error, the ping goes on until check_plugin times out. Not good. OK, you can say I should just append a -w to my command file (when I do it, ping stops on the first "Time to live exceeded" error) - but Nagios *should* figure this out (that the host is down) and do its stuff. The way check_plugin.c is now, Nagios will not play nice with my network. I just looked the latest check_ping.c in CVS and saw that both the STDOUT/STDERR and -w issues have been taken care of, but in order to attain as much accuracy as possible please consider adding this to error_scan(): /* Georger's suggestion if (strstr (buf, "Time to live exceeded")) die (STATE_CRITICAL, _("PING CRITICAL - Time to live exceeded (%s)"), addr); */ I'd love to use the CVS version, but it doesn't compile on my box - I get an error stating that my_connect is declared in two places (net_utils.h and my_sql.c, or was it .h? Dunno, already deleted it), and I couldn't figure out how to not compile check_mysql (or at least compile just check_ping alone). Long live Nagios. Georger ---------------------------------------------------------------------- >Comment By: Georger Araujo (georger_br) Date: 2004-07-26 17:33 Message: Logged In: YES user_id=1087649 Heh, just saw that the my_connect issue has been taken care in bug report #962495. I'll try that in my network, along with my little error_scan hack. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=998291&group_id=29880 From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Jul 26 18:17:10 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon Jul 26 18:17:10 2004 Subject: [Nagiosplug-devel] perl signal handling In-Reply-To: <20040726151947.GM26681@zippy.members.linode.com>; from jhmartin@toger.us on Mon, Jul 26, 2004 at 08:19:47AM -0700 References: <20040726151947.GM26681@zippy.members.linode.com> Message-ID: <20040727111602.C61517@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Mon, Jul 26, 2004 at 08:19:47AM -0700, Jason Martin wrote: > I've got a perl plugin that invokes df. I've noticed that if there is a stale NFS mount the df command will hang > forever and NRPE will kill the plugin, but the df lives on. > What is the appropriate way to make sure that the underlying df is > killed along with the plugin? that since almost certainly df is invoked by popen (eg open DF, 'df |' or `df` in Perl), df will be seperately scheduled and therefore an independent process (not related to both your plugin and NRPE). Your plugin should timeout the df command (or any other command that can hang) with eval and a $SIG{ALRM}. See perldoc perlipc section on Signals ('timeouts in Unix') 'Here's an example: eval { local $SIG{ALRM} = sub { die "alarm clock restart" }; alarm 10; flock(FH, 2); # blocking write lock alarm 0; }; if ($@ and $@ !~ /alarm clock restart/) { die } ' You need to read the rest because your Perl code, if it is interrupted by the alarm signal (timeout), will have to kill the df process in such a way as to avoid zombies. > Thanks, > -Jason Martin > -- > Shift happpens. - Doppler (ROFL). 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 jhmartin at toger.us Tue Jul 27 14:44:07 2004 From: jhmartin at toger.us (Jason Martin) Date: Tue Jul 27 14:44:07 2004 Subject: [Nagiosplug-devel] Plugin request: Veritas NetBackup Message-ID: <20040727214335.GB28707@zippy.members.linode.com> Does anyone happen to have a plugin that monitors the status of a Veritas NetBackup server squirreled away anywhere? Thanks, -Jason Martin -- Press all the keys at once to continue... 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 Jul 29 10:50:04 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Jul 29 10:50:04 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-918973 ] Windows EventLog monitor Message-ID: New Plugins item #918973, was opened at 2004-03-18 18:54 Message generated for change (Comment added) made by nsahnoun You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=918973&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Subhendu Ghosh (sghosh) Assigned to: Nobody/Anonymous (nobody) Summary: Windows EventLog monitor Initial Comment: This a Win32 specific plugin designed to run under NRPE_NT or similar agents. It requires win32 perl (tested under Activestate Perl 5.8). Requires utils.pm to be present. The plugin queries local or remote server for entries in a specified Event Log within a recent past (specified as the number of backtrack second). You can perform regex matches on Source/EventType/EventID or the log message itself. Optionally you can force a CRITICAL if any matches succeed. ---------------------------------------------------------------------- Comment By: nadir (nsahnoun) Date: 2004-07-29 17:49 Message: Logged In: YES user_id=1093899 ! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=918973&group_id=29880 From noreply at sourceforge.net Thu Jul 29 11:40:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Jul 29 11:40:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-991359 ] patch for checking elapsed time of a process Message-ID: Patches item #991359, was opened at 2004-07-14 22:17 Message generated for change (Comment added) made by duskglow You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=991359&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Russell Miller (duskglow) Assigned to: Nobody/Anonymous (nobody) Summary: patch for checking elapsed time of a process Initial Comment: Adds a "-e" option (patch is slightly incorrect in that an "e:" should be added to the getopt string, that's not in the patch) to check_procs, so that the elapsed time of a process can be measured and warnings thrown if the process lasts too long. This is useful if a program such as ftpd runs away. ---------------------------------------------------------------------- >Comment By: Russell Miller (duskglow) Date: 2004-07-29 11:39 Message: Logged In: YES user_id=163260 Oops, here's the patch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=991359&group_id=29880 From noreply at sourceforge.net Thu Jul 29 11:42:06 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Jul 29 11:42:06 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-991359 ] patch for checking elapsed time of a process Message-ID: Patches item #991359, was opened at 2004-07-14 22:17 Message generated for change (Comment added) made by duskglow You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=991359&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Russell Miller (duskglow) Assigned to: Nobody/Anonymous (nobody) Summary: patch for checking elapsed time of a process Initial Comment: Adds a "-e" option (patch is slightly incorrect in that an "e:" should be added to the getopt string, that's not in the patch) to check_procs, so that the elapsed time of a process can be measured and warnings thrown if the process lasts too long. This is useful if a program such as ftpd runs away. ---------------------------------------------------------------------- >Comment By: Russell Miller (duskglow) Date: 2004-07-29 11:41 Message: Logged In: YES user_id=163260 Sigh, third time's a charm. ---------------------------------------------------------------------- Comment By: Russell Miller (duskglow) Date: 2004-07-29 11:39 Message: Logged In: YES user_id=163260 Oops, here's the patch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=991359&group_id=29880 From jhmartin at toger.us Thu Jul 29 14:42:04 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu Jul 29 14:42:04 2004 Subject: [Nagiosplug-devel] Plugin message tables Message-ID: <20040729214152.GC19396@zippy.toger.us> I've been getting some requests from users to provide a list of all possible outputs from the Nagios plugins I am using, which will be used to generate troubleshooting guides for the NOC personell. I was thinking that it would be handy if plugins implemented some sort of message table such that all the messages could be located in one location of the code, and just make calls to the table to generate the appropriate message. Something like an indexed array or string-referenced hash would do it; just move all the printf format strings into one central structure and reference them when generating output. Has anyone else thought of such a thing, or how else can one fairly easily determine all possible outputs of a plugin? Thank you, -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: