From noreply at sourceforge.net Fri Oct 1 03:49:08 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Oct 1 03:49:08 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1038413 ] check_ups improvement, update and bugfix Message-ID: Patches item #1038413, was opened at 2004-10-01 02:48 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=1038413&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: arnaud quette (uzuul) Assigned to: Nobody/Anonymous (nobody) Summary: check_ups improvement, update and bugfix Initial Comment: The attached patch: - update the compatibility of check_ups to the new protocol and naming scheme (support for NUT 1.4 and 2.0) - merge the patch from Alain Richard to update to NUT 2.0 compatibility (Bug #1032009, https://sourceforge.net/tracker/index.php?func=detail&aid=1032009&group_id=29880&atid=397597) - merge the patch from Alen Salamun (Patch #815785, https://sourceforge.net/tracker/index.php?func=detail&aid=815785&group_id=29880&atid=397599) - enhance integration of check_ups by updating REQUIREMENTS, AUTHOR, NUT new URL, command.cfg.in, ... What has to be done: - check and update translations, - keep old variable names (ie LINE for input.voltage) for the "-v" argument? - sort out the use of voltage in mV (check with Alain), - enhance the "-T" temperature switch (to switch from farenheit to celsius). Arnaud --- NUT Core Team ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1038413&group_id=29880 From noreply at sourceforge.net Fri Oct 1 07:03:07 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Oct 1 07:03:07 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1038454 ] Compile probleme on debian Message-ID: Bugs item #1038454, was opened at 2004-10-01 12:43 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=1038454&group_id=29880 Category: None Group: snapshot tarball Status: Open Resolution: None Priority: 5 Submitted By: tango73 (tango73) Assigned to: Nobody/Anonymous (nobody) Summary: Compile probleme on debian Initial Comment: I tried many time to compile the daily tarball on my debian but i always have this error on the make. . . . . chmod +x check_file_age make[2]: Leaving directory `/home/dml/public/nagios- plugins-HEAD-200410010447/plugins-scripts' Making all in po make[2]: Entering directory `/home/dml/public/nagios- plugins-HEAD-200410010447/po' /usr/bin/msgmerge --update fr.po nagios-plugins.pot /usr/bin/msgmerge: erreur lors de l'ouverture de ? fr.po ? en lecture: Aucun fichier ou r?pertoire de ce type make[2]: *** [fr.po] Erreur 1 make[2]: Leaving directory `/home/dml/public/nagios- plugins-HEAD-200410010447/po' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/home/dml/public/nagios- plugins-HEAD-200410010447' make: *** [all] Erreur 2 please help me, thanks ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1038454&group_id=29880 From noreply at sourceforge.net Sat Oct 2 04:48:01 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Sat Oct 2 04:48:01 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-726385 ] updated check_traffic plugin v0.91b Message-ID: New Plugins item #726385, was opened at 2003-04-23 12:23 Message generated for change (Comment added) made by elikster You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=726385&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mike Kazmier (mikekazmier) Assigned to: Nobody/Anonymous (nobody) Summary: updated check_traffic plugin v0.91b Initial Comment: I have patched the make_config script to correctly report interfaces from cisco routers and create the RRD files properly. Fixed other small bugs in script. Included a new script called set_perms which will set the permissions correctly to allow RRD file updates and creation of the graphs in a default nagios installation. ---------------------------------------------------------------------- Comment By: Elikster (elikster) Date: 2004-10-02 06:32 Message: Logged In: YES user_id=1131825 It is missing one file, the check_traffic script itself in those two tarballs. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=726385&group_id=29880 From noreply at sourceforge.net Mon Oct 4 10:21:27 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Oct 4 10:21:27 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1040047 ] Checks the Memory usage on a Cisco Router using Net::SNMP Message-ID: New Plugins item #1040047, was opened at 2004-10-04 17:16 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=1040047&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Thomas Bridge (milden) Assigned to: Nobody/Anonymous (nobody) Summary: Checks the Memory usage on a Cisco Router using Net::SNMP Initial Comment: Checks the memory usage on a Cisco router by querying the variables for free memory and used memory, and calculating how much is used. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1040047&group_id=29880 From noreply at sourceforge.net Mon Oct 4 16:28:26 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Oct 4 16:28:26 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1040277 ] Checks the Disks usage and process runnig in HP-UX machines Message-ID: New Plugins item #1040277, was opened at 2004-10-04 20:25 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=1040277&group_id=29880 Category: C plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Toth (igtoth) Assigned to: Nobody/Anonymous (nobody) Summary: Checks the Disks usage and process runnig in HP-UX machines Initial Comment: Checks the Disks usage and process runnig in HP-UX machines and if Listener Oracle Process are running. Allrady compiled to HP-UX system. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1040277&group_id=29880 From noreply at sourceforge.net Mon Oct 4 16:37:39 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Oct 4 16:37:39 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1040283 ] Check by Telnet (PHP command mode) (disk,memory,process,cpu) Message-ID: New Plugins item #1040283, was opened at 2004-10-04 20:34 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=1040283&group_id=29880 Category: Application monitor Group: None Status: Open Resolution: None Priority: 5 Submitted By: Toth (igtoth) Assigned to: Nobody/Anonymous (nobody) Summary: Check by Telnet (PHP command mode) (disk,memory,process,cpu) Initial Comment: CHECK_BY_TELNET developed by Ighor Toth setember 2004 LICENSE: GNU General Public License REQUIREMENTS: 1. php 4.3.x 2. register_globals set to ON NOTE: this script 'ONLY' run with and for LINUX systems INSTALL: 1. copy check_* file to ../../nagios/libexec 2. put the content of checkcommands.cfg in your checkcommands.cfg file 3. see samples in services.cfg to make yourself services.cfg file 4. make sure that check file are executable (chmod +x check_...) HELP FILES: type: ./check_disk_bt -h or ./check_load_bt --help ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1040283&group_id=29880 From nagios at nodata.co.uk Tue Oct 5 03:35:26 2004 From: nagios at nodata.co.uk (nodata) Date: Tue Oct 5 03:35:26 2004 Subject: [Nagiosplug-devel] Passing arguments to a servce? Message-ID: <19762.213.164.3.90.1096972239.squirrel@213.164.3.90> How can I pass an argument to a service? I have many hosts, each running multiple Sybase databases. I have a plugin that checks whether the Sybase database is up. The plugin requires four arguments to connect: * user * pass * dbsvr (note that this is not the hostname) * dbname My question is: Because I cannot use the $HOSTNAME$ macro to make a generic SYBASE-Server service, how can I still have a generic SYBASE-Server service, with custom arguments passed to its check_command? Your help would really be appreciated. Thanks From ighor at brasilcenter.com.br Tue Oct 5 05:40:03 2004 From: ighor at brasilcenter.com.br (Ighor Toth) Date: Tue Oct 5 05:40:03 2004 Subject: [Nagiosplug-devel] Passing arguments to a servce? Message-ID: You can put on 'checkcommands.cfg' file anything you want.. you can create multiple fixed checkcommands like: # 'check_your_check01' command definition define command{ command_name check_your_check01 command_line $USER1$/check_your_check $HOSTADDRESS$ USER PASS DBSVR DBNAME } this frist dont have $ARGx$ only fixed parameters OR you can do this.. (mix) # 'check_your_check02' command definition define command{ command_name check_your_check02 command_line $USER1$/check_your_check $HOSTADDRESS$ USER PASS $ARG1$ DBSVR DBNAME } # 'check_your_check03' command definition define command{ command_name check_your_check03 command_line $USER1$/check_your_check 192.168.0.1 USER PASS DBSVR DBNAME } you must put in services the name in command_name like: # Service definition define service{ use generic-service ; Name of service template to use host_name MY-SERVER service_description CHECK_YOUR_CHECK01 is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 10 retry_check_interval 1 contact_groups LOCAL-admins notification_interval 20 notification_period 24x7 notification_options c,r check_command check_your_check!USER!PASS!DBSVR!DBNAME } OR fixed: # Service definition define service{ use generic-service ; Name of service template to use host_name MY-SERVER service_description CHECK_YOUR_CHECK03 is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 10 retry_check_interval 1 contact_groups LOCAL-admins notification_interval 20 notification_period 24x7 notification_options c,r check_command check_your_check03! } "nodata" @lists.sourceforge.net em 05/10/2004 07:30:39 Enviado Por: nagiosplug-devel-admin at lists.sourceforge.net Para: nagiosplug-devel at lists.sourceforge.net cc: Assunto: [Nagiosplug-devel] Passing arguments to a servce? How can I pass an argument to a service? I have many hosts, each running multiple Sybase databases. I have a plugin that checks whether the Sybase database is up. The plugin requires four arguments to connect: * user * pass * dbsvr (note that this is not the hostname) * dbname My question is: Because I cannot use the $HOSTNAME$ macro to make a generic SYBASE-Server service, how can I still have a generic SYBASE-Server service, with custom arguments passed to its check_command? Your help would really be appreciated. Thanks ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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 nagios at nodata.co.uk Tue Oct 5 06:02:56 2004 From: nagios at nodata.co.uk (nodata) Date: Tue Oct 5 06:02:56 2004 Subject: [Nagiosplug-devel] Passing arguments to a servce? In-Reply-To: References: Message-ID: <49970.213.164.3.90.1096981101.squirrel@213.164.3.90> Thanks for this. I think I'm going to end up with a lot of similar services :) It would be nice if a service could inherit or "use" another service. That way there would be no repetition. > > You can put on 'checkcommands.cfg' file anything you want.. you can > create multiple fixed checkcommands like: > > # 'check_your_check01' command definition > define command{ > command_name check_your_check01 > command_line $USER1$/check_your_check $HOSTADDRESS$ USER PASS > DBSVR DBNAME > } > > this frist dont have $ARGx$ only fixed parameters > OR you can do this.. (mix) > > # 'check_your_check02' command definition > define command{ > command_name check_your_check02 > command_line $USER1$/check_your_check $HOSTADDRESS$ USER PASS > $ARG1$ DBSVR DBNAME > } > > # 'check_your_check03' command definition > define command{ > command_name check_your_check03 > command_line $USER1$/check_your_check 192.168.0.1 USER PASS > DBSVR DBNAME > } > > you must put in services the name in command_name like: > > > # Service definition > define service{ > use generic-service ; Name of > service template to use > > host_name MY-SERVER > service_description CHECK_YOUR_CHECK01 > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 10 > retry_check_interval 1 > contact_groups LOCAL-admins > notification_interval 20 > notification_period 24x7 > notification_options c,r > check_command > check_your_check!USER!PASS!DBSVR!DBNAME > } > > OR > fixed: > > # Service definition > define service{ > use generic-service ; Name of > service template to use > > host_name MY-SERVER > service_description CHECK_YOUR_CHECK03 > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 10 > retry_check_interval 1 > contact_groups LOCAL-admins > notification_interval 20 > notification_period 24x7 > notification_options c,r > check_command check_your_check03! > } > > > > > > > > "nodata" @lists.sourceforge.net em 05/10/2004 > 07:30:39 > > Enviado Por: nagiosplug-devel-admin at lists.sourceforge.net > > > Para: nagiosplug-devel at lists.sourceforge.net > cc: > > Assunto: [Nagiosplug-devel] Passing arguments to a servce? > > How can I pass an argument to a service? > > I have many hosts, each running multiple Sybase databases. > I have a plugin that checks whether the Sybase database is up. > > The plugin requires four arguments to connect: > * user > * pass > * dbsvr (note that this is not the hostname) > * dbname > > My question is: Because I cannot use the $HOSTNAME$ macro to make a > generic SYBASE-Server service, how can I still have a generic > SYBASE-Server service, with custom arguments passed to its check_command? > > Your help would really be appreciated. > > Thanks > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > 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 nagios at nodata.co.uk Tue Oct 5 06:11:46 2004 From: nagios at nodata.co.uk (nodata) Date: Tue Oct 5 06:11:46 2004 Subject: [Nagiosplug-devel] Passing arguments to a servce? Message-ID: <60466.213.164.3.90.1096981621.squirrel@213.164.3.90> > It would be nice if a service could inherit or "use" another service. > That way there would be no repetition. Wait a minute.. it can! Oops :/ From josv at osp.nl Tue Oct 5 07:17:29 2004 From: josv at osp.nl (Jos Visser) Date: Tue Oct 5 07:17:29 2004 Subject: [Nagiosplug-devel] Passing arguments to a servce? In-Reply-To: <49970.213.164.3.90.1096981101.squirrel@213.164.3.90> References: <49970.213.164.3.90.1096981101.squirrel@213.164.3.90> Message-ID: <20041005141353.GZ1549@Jos-Vissers-Computer.local> Well, there is the templating system: define service { name sybase-generic bla bla bla bla register 0 } define service { use sybase-generic host_name server1 check_command sybase-check!arg1!arg2 } define service { use sybase-generic host_name server1,server2 check_command sybase-check!arg3!arg4 } and so forth... I use it extensively and it works great! ++Jos.es On Tue, Oct 05, 2004 at 02:58:21PM +0200 it came to pass that nodata wrote: > Thanks for this. > > I think I'm going to end up with a lot of similar services :) > > It would be nice if a service could inherit or "use" another service. > That way there would be no repetition. > > > > > You can put on 'checkcommands.cfg' file anything you want.. you can > > create multiple fixed checkcommands like: > > > > # 'check_your_check01' command definition > > define command{ > > command_name check_your_check01 > > command_line $USER1$/check_your_check $HOSTADDRESS$ USER PASS > > DBSVR DBNAME > > } > > > > this frist dont have $ARGx$ only fixed parameters > > OR you can do this.. (mix) > > > > # 'check_your_check02' command definition > > define command{ > > command_name check_your_check02 > > command_line $USER1$/check_your_check $HOSTADDRESS$ USER PASS > > $ARG1$ DBSVR DBNAME > > } > > > > # 'check_your_check03' command definition > > define command{ > > command_name check_your_check03 > > command_line $USER1$/check_your_check 192.168.0.1 USER PASS > > DBSVR DBNAME > > } > > > > you must put in services the name in command_name like: > > > > > > # Service definition > > define service{ > > use generic-service ; Name of > > service template to use > > > > host_name MY-SERVER > > service_description CHECK_YOUR_CHECK01 > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 10 > > retry_check_interval 1 > > contact_groups LOCAL-admins > > notification_interval 20 > > notification_period 24x7 > > notification_options c,r > > check_command > > check_your_check!USER!PASS!DBSVR!DBNAME > > } > > > > OR > > fixed: > > > > # Service definition > > define service{ > > use generic-service ; Name of > > service template to use > > > > host_name MY-SERVER > > service_description CHECK_YOUR_CHECK03 > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 10 > > retry_check_interval 1 > > contact_groups LOCAL-admins > > notification_interval 20 > > notification_period 24x7 > > notification_options c,r > > check_command check_your_check03! > > } > > > > > > > > > > > > > > > > "nodata" @lists.sourceforge.net em 05/10/2004 > > 07:30:39 > > > > Enviado Por: nagiosplug-devel-admin at lists.sourceforge.net > > > > > > Para: nagiosplug-devel at lists.sourceforge.net > > cc: > > > > Assunto: [Nagiosplug-devel] Passing arguments to a servce? > > > > How can I pass an argument to a service? > > > > I have many hosts, each running multiple Sybase databases. > > I have a plugin that checks whether the Sybase database is up. > > > > The plugin requires four arguments to connect: > > * user > > * pass > > * dbsvr (note that this is not the hostname) > > * dbname > > > > My question is: Because I cannot use the $HOSTNAME$ macro to make a > > generic SYBASE-Server service, how can I still have a generic > > SYBASE-Server service, with custom arguments passed to its check_command? > > > > Your help would really be appreciated. > > > > Thanks > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > > Use IT products in your business? Tell us what you think of them. Give us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > > more > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > 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: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > 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 -- The truth told with evil intent is worse than all the lies we can invent. -- William Blake From teleneko at gmail.com Tue Oct 5 08:35:32 2004 From: teleneko at gmail.com (Oscar Ramos Moreno) Date: Tue Oct 5 08:35:32 2004 Subject: [Nagiosplug-devel] Database support in nagios Message-ID: <28d813b60410050831212eee43@mail.gmail.com> Hi, I am developing a custom application based on nagios and I need database support. I have read that nagios works with some databases (mysql, postgresql, RRD,...), in fact there are some debian packages with this support. But I do not find any information to developers or users that want to store this information or access to this information directly to the database or the tables structures. To be more concrete I want to use postgresql to store "static information" and informatin without history (hosts, networks, contactgroups, ...) and RRD, from RRDTool, for dynamic information with history. Some of the information will be shown with nagios cgis or php web interface (nagios-php.sourceforge.net/) so I need to access this information. I have read that nagios do not have support to take its configuratin from a database and if you store it in a database have to writed in the configuratin files, There is the same problems with CGIs? R-ds, OScar. From noreply at sourceforge.net Tue Oct 5 11:15:23 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Oct 5 11:15:23 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1040873 ] check_swap bug in 1.40alpha1 Message-ID: Bugs item #1040873, was opened at 2004-10-05 14:14 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=1040873&group_id=29880 Category: Argument proccessing Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: larry (good_vs_evil) Assigned to: Nobody/Anonymous (nobody) Summary: check_swap bug in 1.40alpha1 Initial Comment: The check_swap plugin throws a warning / error if the warning percentage is less than the critical percentage, which seems backward. /usr/local/nagios/libexec/check_swap -w 80% -c 90% -a Warning percentage should be more than critical percentage Usage: check_swap [-a] -w % -c % check_swap [-a] -w -c check_swap (-h | --help) for detailed help check_swap (-V | --version) for version information Checking the same command on 1.3.1: /usr/local/nagios/libexec/check_swap -w 80% -c 90% -a Swap ok - Swap used: 0% (0 out of 2146754560) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1040873&group_id=29880 From noreply at sourceforge.net Wed Oct 6 08:33:42 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Oct 6 08:33:42 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1041548 ] bug in check_nt with fix Message-ID: Bugs item #1041548, was opened at 2004-10-06 15:31 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=1041548&group_id=29880 Category: Argument proccessing Group: None Status: Open Resolution: None Priority: 5 Submitted By: p_ashfield (paulashfield) Assigned to: Nobody/Anonymous (nobody) Summary: bug in check_nt with fix Initial Comment: check_nt.c , line 183 : else if (strlen(value_list)==1) output_message = strdup (_("wrong -l argument")); the ==1 should be != 1, value_list in this branch is the drive letter to check for space so a single character is the correct syntax ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1041548&group_id=29880 From noreply at sourceforge.net Wed Oct 6 09:07:12 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Oct 6 09:07:12 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1041571 ] simap,spop certificate check and new check_nntps check Message-ID: Patches item #1041571, was opened at 2004-10-06 11:05 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=1041571&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Eric Chen (chen23) Assigned to: Nobody/Anonymous (nobody) Summary: simap,spop certificate check and new check_nntps check Initial Comment: these patches add a certificate check for check_simap and check_spop. this also adds a new check for nntps this also requires adding to configure.in: check_tcp_ssl="check_simap check_spop check_nntps" patches agains nagios-plugins-1.3.1 built on Solaris 9 w/ Forte Developer 7 C 5.4 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1041571&group_id=29880 From noreply at sourceforge.net Wed Oct 6 09:12:17 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Oct 6 09:12:17 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1041576 ] starttls support for check_smtp Message-ID: Patches item #1041576, was opened at 2004-10-06 11:10 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=1041576&group_id=29880 Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Submitted By: Eric Chen (chen23) Assigned to: Nobody/Anonymous (nobody) Summary: starttls support for check_smtp Initial Comment: added starttls support and certifcate check to check_smtp code borrowed from check_http.c also requires additional change to plugin/Makefile.am: check_smtp_LDADD = $(NETLIBS) $(SSLLIBS) patches against nagios-plugins-1.3.1 built on Solaris 9 w/ Forte Developer 7 C 5.4 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1041576&group_id=29880 From noreply at sourceforge.net Thu Oct 7 04:56:06 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Oct 7 04:56:06 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1021708 ] Multiple perl plugins using SNMP Message-ID: New Plugins item #1021708, was opened at 2004-09-03 11:35 Message generated for change (Comment added) made by patrickproy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1021708&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Patrick Proy (patrickproy) Assigned to: Nobody/Anonymous (nobody) Summary: Multiple perl plugins using SNMP Initial Comment: Hello, I developped multiple plugins in Perl that use SNMP to monitor disks, load, process, etc.... I started the dev of these plugins 3 months ago, some people have tested them, and now I realize a lot of people have done the same thing.... I think it should be a good idea if all these people (including me) could work and develop on the same code. All these scripts have been tested quite a lot (by me and other people who have used them). Here are the scripts : I have done some web pages to explain how they work (http://www.manubulon.com/nagios/) In all these scripts, regular expression can be used for drive, interface, process selection. - check_snmp_storage.pl : checks in the snmp storage table. It is possible to use regexp to include (or exclude) multiple drives - check_snmp_int.pl : checks in snmp interface table. - check_snmp_process.pl : checks the number of processes that are running on a distant machine. - check_snmp_load.pl : checks load by different ways : load given by Net-SNMP on Linux, processor info on Windows or other machines, and specific or AS/400. - check_snmp_vrrp.pl : checks the state of all interface on a vrrp cluster to check if all are master or backup. Patrick nagios at proy.org ---------------------------------------------------------------------- >Comment By: Patrick Proy (patrickproy) Date: 2004-10-07 13:49 Message: Logged In: YES user_id=124902 Updating script version Added : - check_snmp_cpfw.pl : monitors Checkpoint Firewall-1 status of modules : SVN, HA, FW, MGMT. - check_snmp_mem.pl : monitors memory of net-snmp and Cisco (pix & routers) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1021708&group_id=29880 From noreply at sourceforge.net Thu Oct 7 18:05:25 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Oct 7 18:05:25 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1042691 ] check_nt bugs (counter + USEDDISKSPACE) Message-ID: Bugs item #1042691, was opened at 2004-10-08 02:58 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=1042691&group_id=29880 Category: Argument proccessing Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: Jan Scholten (cyrin) Assigned to: Nobody/Anonymous (nobody) Summary: check_nt bugs (counter + USEDDISKSPACE) Initial Comment: The check_nt plugin off the 1.4 alpha is not working correct with the NSClient 2.01 v 1.4: /check_nt -H torino -p 1248 -v COUNTER -l "\Paging File(_Total)\% Usage",'Paging File Usage is %2.2f%%' -w 40 -c 90 Paging File Usage is %2.2f%% = 3 [root at milano plugins]# ./check_nt -V check_nt (nagios-plugins 1.4.0alpha1) 1.21 v. 1.3: ./check_nt -H 210.48.1.49 -p 5668 -v COUNTER -l "\Paging File(_Total)\% Usage",'Paging File Usage is %2. 2f%%' -w 40 -c 90 Paging File Usage is 2.15% The %2.2f%% is not correctly parsed. checked on Debian 3.1 and Red Hat EL WS V3 U3 (Thanks HarperMan) Another Bug (?): USEDDISKSPACE interprets the -l in a different way: V1.3 needs -l c v1.4 needs -l c: (or something longer than 1 Byte see patch somebody checked in!) Jan ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1042691&group_id=29880 From svaid at hssworld.com Sat Oct 9 10:29:16 2004 From: svaid at hssworld.com (svaid at hssworld.com) Date: Sat Oct 9 10:29:16 2004 Subject: [Nagiosplug-devel] (No output!) Message-ID: Hi, My plugin working fine when run on command line. ./check_meas -H 192.168.206.15 -w 25,25,25,25 -c 50,50,50,50 MEAS OK - SM_RECEIVED_all:0 SMPP_PDU_SENT_all:0 SMS_BUFFERED_all:0 SMS_RETRANSMITTED_all:0 When run via Nagios, it displays an OK status but the text output of the status is not getting displayed. I am not able to make out this as it is a simple plugin text output which Nagios should display correctly. Please help..... regards Shivani *********************** HSS-Private *********************** "DISCLAIMER: This message is proprietary to Hughes Software Systems Limited (HSS) and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. HSS accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." "Please note:The email domain of Hughes Software Systems Ltd. has been changed to "hssworld.com" from hss.hns.com" "DISCLAIMER: This message is proprietary to Hughes Software Systems Limited (HSS) and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. HSS accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." From noreply at sourceforge.net Sat Oct 9 18:33:14 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Sat Oct 9 18:33:14 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-1043798 ] check_citrix issues Message-ID: Support Requests item #1043798, was opened at 2004-10-09 18:28 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=1043798&group_id=29880 Category: None Group: None Status: Open Priority: 5 Submitted By: resistor3672 (resistor3672) Assigned to: Nobody/Anonymous (nobody) Summary: check_citrix issues Initial Comment: I ran into these issues using the check_citrix plugin, so I'll share them here in the hopes that they will allow the continued development of the plugin and of the excellent Nagios package. Issue 1) Lots of applications to look for If one has a large number of apps to look for, one should split the seach into multiple services and have each service look for a subset. The danger is that the buffer used to hold all the search string will overflow, and Nagios 1.2 will seg fault. One can alternatively try increasing the buffer size in the plugin, and use the -L option, but even so I still hit the seg fault after a couple of dozen apps. Issue 2) Lots of apps in the list The plugin returns the application list on errors. If this list exceeds the default nagios return buffer, the plugin will behave strangely. I had it returning an OK status in nagios (green) and showing the "Failed: " string in status information. I assume this is due to a lack of buffer error checking in Nagios (can that be fixed?). I simply removed the print statements that show the list on errors, and while it is less informative, it still tells me when an application is missing from the list. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=1043798&group_id=29880 From hmann at itgroundwork.com Sat Oct 9 20:44:29 2004 From: hmann at itgroundwork.com (Harper Mann) Date: Sat Oct 9 20:44:29 2004 Subject: [Nagiosplug-devel] (No output!) In-Reply-To: Message-ID: When you run from the command line, are you user "nagios"? Also, what does the message output look like from the command line? If there is a "newline" before the output, Nagios won't output it; only up to the "newline". As well, if the output has a "|" character in it, only text before the "|" will be printed. Nagios recognizes "|" as the start tag of performance info. Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) -----Original Message----- From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of svaid at hssworld.com Sent: Friday, October 08, 2004 5:10 AM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] (No output!) Hi, My plugin working fine when run on command line. ./check_meas -H 192.168.206.15 -w 25,25,25,25 -c 50,50,50,50 MEAS OK - SM_RECEIVED_all:0 SMPP_PDU_SENT_all:0 SMS_BUFFERED_all:0 SMS_RETRANSMITTED_all:0 When run via Nagios, it displays an OK status but the text output of the status is not getting displayed. I am not able to make out this as it is a simple plugin text output which Nagios should display correctly. Please help..... regards Shivani *********************** HSS-Private *********************** "DISCLAIMER: This message is proprietary to Hughes Software Systems Limited (HSS) and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. HSS accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." "Please note:The email domain of Hughes Software Systems Ltd. has been changed to "hssworld.com" from hss.hns.com" "DISCLAIMER: This message is proprietary to Hughes Software Systems Limited (HSS) and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. HSS accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nagiosplug-devel mailing list Nagiosplug-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From noreply at sourceforge.net Mon Oct 11 01:12:12 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Oct 11 01:12:12 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1044406 ] check_swap displays negative percentage when swap = 0 Message-ID: Bugs item #1044406, was opened at 2004-10-11 01:07 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=1044406&group_id=29880 Category: Argument proccessing Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: christopher neitzert (neitzert) Assigned to: Nobody/Anonymous (nobody) Summary: check_swap displays negative percentage when swap = 0 Initial Comment: /usr/local/nagios/libexec/check_swap -a -w90%-c100% CRITICAL - Swap used: -2147483648% (0 out of 0) /usr/local/nagios/libexec/check_swap -w90%-c100% -a CRITICAL - Swap used: -2147483648% (0 out of 0) Fedora Core 2, Using nagios-plugins-1.3.1.tar.gz ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1044406&group_id=29880 From noreply at sourceforge.net Mon Oct 11 01:20:28 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Oct 11 01:20:28 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1044406 ] check_swap displays negative percentage when swap = 0 Message-ID: Bugs item #1044406, was opened at 2004-10-11 01:07 Message generated for change (Comment added) made by neitzert You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1044406&group_id=29880 Category: Argument proccessing Group: Release (specify) >Status: Deleted Resolution: None Priority: 5 Submitted By: christopher neitzert (neitzert) Assigned to: Nobody/Anonymous (nobody) Summary: check_swap displays negative percentage when swap = 0 Initial Comment: /usr/local/nagios/libexec/check_swap -a -w90%-c100% CRITICAL - Swap used: -2147483648% (0 out of 0) /usr/local/nagios/libexec/check_swap -w90%-c100% -a CRITICAL - Swap used: -2147483648% (0 out of 0) Fedora Core 2, Using nagios-plugins-1.3.1.tar.gz ---------------------------------------------------------------------- >Comment By: christopher neitzert (neitzert) Date: 2004-10-11 01:15 Message: Logged In: YES user_id=309514 found related bug ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1044406&group_id=29880 From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Oct 11 17:35:41 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon Oct 11 17:35:41 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-1043798 ] check_citrix issues In-Reply-To: References: Message-ID: <20041012002952.GB64667@IPAustralia.Gov.AU> Dear Resistor, I am writing to thank you for your letter and say, On Sat, Oct 09, 2004 at 06:28:33PM -0700, SourceForge.net wrote: > > Category: None > Group: None > Status: Open > Priority: 5 > Submitted By: resistor3672 (resistor3672) > Assigned to: Nobody/Anonymous (nobody) > Summary: check_citrix issues > > Initial Comment: > I ran into these issues using the check_citrix plugin, so > I'll share them here in the hopes that they will allow the > continued development of the plugin and of the > excellent Nagios package. > > Issue 1) Lots of applications to look for > > If one has a large number of apps to look for, one should > split the seach into multiple services and have each > service look for a subset. The danger is that the buffer > used to hold all the search string will overflow, and > Nagios 1.2 will seg fault. One can alternatively try > increasing the buffer size in the plugin, and use the -L > option, but even so I still hit the seg fault after a couple > of dozen apps. > There are a number of issues here. 1 It would be good to fix the SEGV in Nag 1.2 If you know gdb, inducing the fault and then getting a backtrace would help the developers fix the problem. The backtrace can be posted to me, nag-developers or here (pref nag-developers). If you don't know gdb, but you are willing to help, please contact me privately for some instructions. 2 Thanks for pointing out the problem. Would you mind posting an example of inducing it (the search string you are using). Unfortunately, I have no access to a huge number of published apps but other check_citrix users may. FWIW, this plugin has been made obsolescent by Citrix Metaframe XP which uses a completely different (XML browse service) method of locating the application serers. > Issue 2) Lots of apps in the list > > The plugin returns the application list on errors. If this > list exceeds the default nagios return buffer, the plugin > will behave strangely. I had it returning an OK status in > nagios (green) and showing the "Failed: " string in > status information. I assume this is due to a lack of > buffer error checking in Nagios (can that be fixed?). I > simply removed the print statements that show the list > on errors, and while it is less informative, it still tells me > when an application is missing from the list. > > Good idea. Maybe an acceptable mod is 1 first .. last application 2 first 100 characters of application list. Which would suit better ? For other reasons, I run Nag patched with MAX_PLUGIN_OUTPUTLENGTH (in common/objects.h) increased, and this helps with verbose plugins. Actually, re-reading what you have said, it sounds more like plugin failure since Nag simply truncates excessive plugin output (for all plugins [so option 2 shouldn't be necessary] - the plugin output in base/checks.c is either copied with strncpy or an fgets(), of the size of the output buffer). It might be good to wrap the plugin in a shell script (that appends the output to a file as well as writing to STDOUT) and see what it's up to. Does the plugin respond the same way (when it reports an error) from the CLI ? Yours sincerely. -- Stanley Hopcroft Network specialist, IT Infrastructure IP Australia Ph: (02) 6283 3189 Fax: (02) 6281 1353 PO Box 200 Woden ACT 2606 http://www.ipaustralia.gov.au From noreply at sourceforge.net Tue Oct 12 08:30:44 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Oct 12 08:30:44 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1045506 ] check_linux_raid.pl errors Message-ID: Bugs item #1045506, was opened at 2004-10-12 15: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=1045506&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: NOEL Sebastien (mib42) Assigned to: Nobody/Anonymous (nobody) Summary: check_linux_raid.pl errors Initial Comment: check_linux_raid.pl always uses the last line of "/proc/mdstat" for the status because there are no break in the while possible correction is : while() { if ($found) { if (/(\[[_U]+\])/) { $status = $1; last ; #<== for break the while } elsif (/recovery = (.*?)\s/) { $recovery = $1; ($finish) = /finish=(.*?min)/; last ; # <== for break the while } } else { if (/$ARGV[0]/) { $found = 1; if (/active/) { $active = 1; } } } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1045506&group_id=29880 From wtatam at premierit.com Wed Oct 13 06:09:33 2004 From: wtatam at premierit.com (Will Tatam) Date: Wed Oct 13 06:09:33 2004 Subject: [Nagiosplug-devel] check_smtp Message-ID: <416BFAC4.60505@premierit.com> check_smtp does not check remote exim mail servers correctly and is unreliable locally as it does not wait for the server to send a greeting before sending data -- Will Tatam Internal Systems Manager Tel +44 (0) 20 7837 2690 Fax +44 (0) 20 7278 3113 JID wtatam at jabber.premierit.com Premier IT http://www.premierit.com/ New Premier House | Southampton Row London | WC1B 5AL From kate at cht.com.tw Wed Oct 13 06:09:36 2004 From: kate at cht.com.tw (Hsiu-Fen Hung) Date: Wed Oct 13 06:09:36 2004 Subject: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" Message-ID: <001401c4b109$421486c0$28af320a@kate> I write the following plugin in "expect". It runs sucessfully in shell, but it shows "No output" when I integrated it with nagios. Can I write the nagios plugins in "expect" ? If Yes, how to change it. Thanks ! #!/usr/bin/expect spawn ssh -l xxxx xx.xx.xx.xx "/opt/ecs/bin/almsummary" expect -re "Password: " send "xxxxxxxx\rr" expect eof set output $expect_out(buffer) #puts $output if [ string match "*Yes*" $output ] { puts "ACD:CRITICAL\n"; set exitstatus 1 } else { puts "ACD:OK\n"; set exitstatus 0 } exit $exitstatus -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Wed Oct 13 06:52:50 2004 From: ae at op5.se (Andreas Ericsson) Date: Wed Oct 13 06:52:50 2004 Subject: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" In-Reply-To: <001401c4b109$421486c0$28af320a@kate> References: <001401c4b109$421486c0$28af320a@kate> Message-ID: <416D3200.2060804@op5.se> Output is truncated to one line, so if there are any empty lines before the output you want, Nagios won't see it. Hsiu-Fen Hung wrote: > I write the following plugin in "expect". It runs sucessfully in shell, but it shows "No output" when I integrated it with nagios. > Can I write the nagios plugins in "expect" ? If Yes, how to change it. Thanks ! > > #!/usr/bin/expect > spawn ssh -l xxxx xx.xx.xx.xx "/opt/ecs/bin/almsummary" > expect -re "Password: " > send "xxxxxxxx\rr" > expect eof > set output $expect_out(buffer) > #puts $output > if [ string match "*Yes*" $output ] { > puts "ACD:CRITICAL\n"; > set exitstatus 1 > } else { > puts "ACD:OK\n"; > set exitstatus 0 > } > exit $exitstatus > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer From hmann at itgroundwork.com Wed Oct 13 09:55:08 2004 From: hmann at itgroundwork.com (Harper Mann) Date: Wed Oct 13 09:55:08 2004 Subject: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" In-Reply-To: <416D3200.2060804@op5.se> Message-ID: Did you run it as "nagios" on the command line? Regards, - Harper Harper Mann Groundwork Open Source Solutions 510-599-2075 (cell) -----Original Message----- From: nagiosplug-devel-admin at lists.sourceforge.net [mailto:nagiosplug-devel-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Wednesday, October 13, 2004 6:48 AM To: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" Output is truncated to one line, so if there are any empty lines before the output you want, Nagios won't see it. Hsiu-Fen Hung wrote: > I write the following plugin in "expect". It runs sucessfully in shell, but it shows "No output" when I integrated it with nagios. > Can I write the nagios plugins in "expect" ? If Yes, how to change it. Thanks ! > > #!/usr/bin/expect > spawn ssh -l xxxx xx.xx.xx.xx "/opt/ecs/bin/almsummary" > expect -re "Password: " > send "xxxxxxxx\rr" > expect eof > set output $expect_out(buffer) > #puts $output > if [ string match "*Yes*" $output ] { > puts "ACD:CRITICAL\n"; > set exitstatus 1 > } else { > puts "ACD:OK\n"; > set exitstatus 0 > } > exit $exitstatus > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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 kate at cht.com.tw Thu Oct 14 08:58:07 2004 From: kate at cht.com.tw (kate) Date: Thu Oct 14 08:58:07 2004 Subject: [Nagiosplug-devel] Re: Anyone have experience with writing plugins in "expect" Message-ID: <1097740557.25276.kate@cht.com.tw> How can I modify my scripts? >Output is truncated to one line, so if there are any empty lines before > the output you want, Nagios won"t see it. Hsiu-Fen Hung wrote: > I write the following plugin in "expect". It runs sucessfully in shell, but it shows "No output" when I integrated it with nagios. > Can I write the nagios plugins in "expect" ? If Yes, how to change it. Thanks ! > > #!/usr/bin/expect > spawn ssh -l xxxx xx.xx.xx.xx "/opt/ecs/bin/almsummary" > expect -re "Password: " > send "xxxxxxxx\rr" > expect eof > set output $expect_out(buffer) > #puts $output > if [ string match "*Yes*" $output ] { > puts "ACD:CRITICAL\n"; > set exitstatus 1 > } else { > puts "ACD:OK\n"; > set exitstatus 0 > } > exit $exitstatus > -- Andreas Ericsson andreas.ericsson at op... OP5 AB http://www.op5.se Lead Developer From ae at op5.se Thu Oct 14 10:34:00 2004 From: ae at op5.se (Andreas Ericsson) Date: Thu Oct 14 10:34:00 2004 Subject: [Nagiosplug-devel] Re: Anyone have experience with writing plugins in "expect" In-Reply-To: <1097740557.25276.kate@cht.com.tw> References: <1097740557.25276.kate@cht.com.tw> Message-ID: <416EB84D.8010901@op5.se> kate wrote: > How can I modify my scripts? Possibly using an editor. ;) Just make sure they don't write anything at all until it's time to write the output you want Nagios to display. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer From jhmartin at toger.us Thu Oct 14 23:38:42 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu Oct 14 23:38:42 2004 Subject: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" In-Reply-To: <001401c4b109$421486c0$28af320a@kate> References: <001401c4b109$421486c0$28af320a@kate> Message-ID: <20041013145325.GJ31458@zippy.toger.us> On Wed, Oct 13, 2004 at 05:44:32PM +0800, Hsiu-Fen Hung wrote: > I write the following plugin in "expect". It runs sucessfully > in shell, but it shows "No output" when I integrated it with > nagios. Can I write the nagios plugins in "expect" ? If Yes, > how to change it. Thanks ! Nagios plugins can be written in any language. Can you post your Nagios command definition as well? Thanks, -Jason Martin -- Facts are stubborn things. 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 seanius at seanius.net Fri Oct 15 06:36:17 2004 From: seanius at seanius.net (sean finney) Date: Fri Oct 15 06:36:17 2004 Subject: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" In-Reply-To: <001401c4b109$421486c0$28af320a@kate> References: <001401c4b109$421486c0$28af320a@kate> Message-ID: <20041015133206.GA1286@seanius.net> On Wed, Oct 13, 2004 at 05:44:32PM +0800, Hsiu-Fen Hung wrote: > #!/usr/bin/expect > spawn ssh -l xxxx xx.xx.xx.xx "/opt/ecs/bin/almsummary" > expect -re "Password: " > send "xxxxxxxx\rr" just for the record, there's a much more secure way of doing this. create an ssh public/private keypair, let's say nagios_cmd_1 and nagios_cmd_1.pub. create these keys without a passphrase, and then in nagios_cmd_1.pub, prefix the key with the text: command="/opt/ecs/bin/almsummary" now you have an ssh keypair which can be used in a script without requiring any password, and it can only be used to execute the command you've specified in the public key. put it in the .ssh/authorized_keys file on your destination machines. i do something like this to check disk, load, and swap on all my machines. sean -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From martinus.nel at scarceskills.com Fri Oct 15 07:43:52 2004 From: martinus.nel at scarceskills.com (martinus.nel at scarceskills.com) Date: Fri Oct 15 07:43:52 2004 Subject: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" Message-ID: <0e19199d045c7f65196bb65a11b91af1@vega.scarceskills.com> Sean, I would like to use the 'command="xxx"' prefix in my ssh keys, but how do I get more than 1 command in there ? At the moment I just used the 'from "xxxxx"' prefix for limiting from where connections can come from. Martinus. sean finney wrote: >On Wed, Oct 13, 2004 at 05:44:32PM +0800, Hsiu-Fen Hung wrote: >> #!/usr/bin/expect >> spawn ssh -l xxxx xx.xx.xx.xx "/opt/ecs/bin/almsummary" >> expect -re "Password: " >> send "xxxxxxxx\rr" > >just for the record, there's a much more secure way of doing this. >create an ssh public/private keypair, let's say nagios_cmd_1 and >nagios_cmd_1.pub. create these keys without a passphrase, and then in >nagios_cmd_1.pub, prefix the key with the text: > >command="/opt/ecs/bin/almsummary" > >now you have an ssh keypair which can be used in a script without >requiring >any password, and it can only be used to execute the command you've >specified in the public key. put it in the .ssh/authorized_keys file >on your destination machines. i do something like this to check >disk, load, and swap on all my machines. > > > sean > > -- --------------------------------------------------------------------------- DISCLAIMER This e-mail message and any attachments are confidential and may also be a privileged communication. It is intended solely for the person(s) to whom it is addressed. If you are not the intended addressee of the message you must take no action based on it. Please reply to this message to let us know you received it in error and also delete the message from your system. Internet e-mails are not necessarily secure and you should be mindful of this when e-mailing us. The contents of an attachment to this e-mail may contain software viruses which could damage your own computer system. Whilst we have taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening the attachment. --------------------------------------------------------------------------- From jhmartin at toger.us Fri Oct 15 08:05:38 2004 From: jhmartin at toger.us (Jason Martin) Date: Fri Oct 15 08:05:38 2004 Subject: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" In-Reply-To: <0e19199d045c7f65196bb65a11b91af1@vega.scarceskills.com> References: <0e19199d045c7f65196bb65a11b91af1@vega.scarceskills.com> Message-ID: <20041015150058.GB31458@zippy.toger.us> On Fri, Oct 15, 2004 at 03:38:33PM +0100, martinus.nel at scarceskills.com wrote: > I would like to use the 'command="xxx"' prefix in my ssh keys, but how do I > get more than 1 command in there ? You have to create different keys. -Jason Martin -- I.R.S.: We've got what it takes to take what you've got! 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 seanius at seanius.net Fri Oct 15 15:17:40 2004 From: seanius at seanius.net (sean finney) Date: Fri Oct 15 15:17:40 2004 Subject: [Nagiosplug-devel] Anyone have experience with writing plugins in "expect" In-Reply-To: <0e19199d045c7f65196bb65a11b91af1@vega.scarceskills.com> References: <0e19199d045c7f65196bb65a11b91af1@vega.scarceskills.com> Message-ID: <20041015221436.GA5588@seanius.net> On Fri, Oct 15, 2004 at 03:38:33PM +0100, martinus.nel at scarceskills.com wrote: > Sean, > > I would like to use the 'command="xxx"' prefix in my ssh keys, but how do I > get more than 1 command in there ? > > At the moment I just used the 'from "xxxxx"' prefix for limiting from where > connections can come from. you can only have one command per key, which is an unfortunate limitation. the two ways around this are a) have a seperate key for each command (i have a Makefile to make managing this easier) or b) remove the command restriction, and take care to not let anyone have access to that key (you can also for the user to have a restricted shell and only allow the key from one host) sean -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From noreply at sourceforge.net Fri Oct 15 19:45:12 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Oct 15 19:45:12 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1032009 ] check_ups incompatible with nut 2.0 Message-ID: Bugs item #1032009, was opened at 2004-09-21 12:12 Message generated for change (Comment added) made by pathennessy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1032009&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Alain RICHARD (arichard) Assigned to: Nobody/Anonymous (nobody) Summary: check_ups incompatible with nut 2.0 Initial Comment: Hi, nut is now at 2.0 level and have changed completly the communication protocol used to monitoring the ups state and values (nut 2.0 is included in various recent distributions like fedora). This breaks completly the check_ups plugin. I have reworked it and you'll find it joined to this report. As the old plugin works with nut-0.x and nut-1.x, I propose to add this as a new check_upsv2 plugin. I am currently using it and it is stable. Regards, ---------------------------------------------------------------------- Comment By: Pat Hennessy (pathennessy) Date: 2004-10-15 22:44 Message: Logged In: YES user_id=1140303 I also ran into this and found this bug after the fact. I wrote a perl script to use the upsc command instead. The upsc command works with both versions. Since the upsc command comes with the nut client, it should always work with the server. Using this perl script, I am able to update my nut servers one at time without the need to fiddle with my Nagios config or plugins. I was going to submit the script to the contrib section of the CVS tree, but I haven't quite figured out how to do that yet. If someone wants it, I will be happy to email the script to them until I submit it (if its even accepted). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1032009&group_id=29880 From noreply at sourceforge.net Mon Oct 18 07:48:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Oct 18 07:48:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1032009 ] check_ups incompatible with nut 2.0 Message-ID: Bugs item #1032009, was opened at 2004-09-21 08:12 Message generated for change (Comment added) made by uzuul You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1032009&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Alain RICHARD (arichard) Assigned to: Nobody/Anonymous (nobody) Summary: check_ups incompatible with nut 2.0 Initial Comment: Hi, nut is now at 2.0 level and have changed completly the communication protocol used to monitoring the ups state and values (nut 2.0 is included in various recent distributions like fedora). This breaks completly the check_ups plugin. I have reworked it and you'll find it joined to this report. As the old plugin works with nut-0.x and nut-1.x, I propose to add this as a new check_upsv2 plugin. I am currently using it and it is stable. Regards, ---------------------------------------------------------------------- Comment By: arnaud quette (uzuul) Date: 2004-10-18 06:47 Message: Logged In: YES user_id=135177 I've made a patch that include Richard's enhancements plus some of mine. Check http://sourceforge.net/tracker/index.php? func=detail&aid=1038413&group_id=29880&atid=397599 Note that we _can't_ rely on upsc as it implies having NUT installed. We (NUT developers) have made an easy and Ascii protocol so that implementation is fairly straightforward, as in check_ups. Moreover, only upsc from nut 1.4 supports both the old and the new protocol, so if you have NUT 2.0 installed locally, and want to talk to a <= 1.4 NUT server, it won't work! If having both old and new protocol compat is needed, please tell us so. Arnaud --- 2nd NUT coordinator/developer Debian Developer ---------------------------------------------------------------------- Comment By: Pat Hennessy (pathennessy) Date: 2004-10-15 18:44 Message: Logged In: YES user_id=1140303 I also ran into this and found this bug after the fact. I wrote a perl script to use the upsc command instead. The upsc command works with both versions. Since the upsc command comes with the nut client, it should always work with the server. Using this perl script, I am able to update my nut servers one at time without the need to fiddle with my Nagios config or plugins. I was going to submit the script to the contrib section of the CVS tree, but I haven't quite figured out how to do that yet. If someone wants it, I will be happy to email the script to them until I submit it (if its even accepted). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1032009&group_id=29880 From emildebian at gmail.com Mon Oct 18 11:45:05 2004 From: emildebian at gmail.com (Emil Getschko) Date: Mon Oct 18 11:45:05 2004 Subject: [Nagiosplug-devel] Checking/Monitoring DLCIs Message-ID: <14e0303104101811445d9f86f8@mail.gmail.com> Hi, How can I check the status of my DLCIs in my Frame Relay net with Nagios? Has nagios any plugin or config to do this? Thank you! From ighor at brasilcenter.com.br Mon Oct 18 14:00:01 2004 From: ighor at brasilcenter.com.br (Ighor Toth) Date: Mon Oct 18 14:00:01 2004 Subject: [Nagiosplug-devel] Checking/Monitoring DLCIs Message-ID: eh cara melhor portuga mesmo.... entao eu fiz um script q da telnet em linux... e dai eu fa?o oq eu quero...verico varias coisas.... talvez pode funcionar com cisco .. "ainda nao testei" em hp-ux eu testei e nao rola .. nao sei pq... eu s? n?o lembro mais o comando pra ver dlci, lmi em cisco se vc quiser te passo o script para ver se vc consegue dar telnet nele .. caso ok.. vc me passa um log do show.. pq tenho q varrer o log procurando as palavras chaves e retornando s? o necessario Att, Ighor Toth Emil Getschko em 18/10/2004 17:46:09 Favor responder a Emil Getschko Para: Ighor Toth cc: Assunto: Re: [Nagiosplug-devel] Checking/Monitoring DLCIs Opa! Parece que vc tb eh brasileiro... melhor que usar meu ingles...! Entao.. eu queria monitorar as DLCIs usando o Nagios... mas nao sei como... eu uso cisco sim! On Mon, 18 Oct 2004 17:11:32 -0300, Ighor Toth wrote: > > Hi > > I think that dont have a script/pugin to do this... > > Do you use a Cisco ? > > Emil Getschko @lists.sourceforge.net em 18/10/2004 15:44:00 > > Favor responder a Emil Getschko > > Enviado Por: nagiosplug-devel-admin at lists.sourceforge.net > > Para: Nagios-users at lists.sourceforge.net > cc: Nagiosplug-devel at lists.sourceforge.net > > Assunto: [Nagiosplug-devel] Checking/Monitoring DLCIs > > > > Hi, > > How can I check the status of my DLCIs in my Frame Relay net with > Nagios? Has nagios any plugin or config to do this? > > Thank you! > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Nagiosplug-devel mailing list > Nagiosplug-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel > ::: Please include plugins version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > From noreply at sourceforge.net Mon Oct 18 17:44:07 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Oct 18 17:44:07 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1032009 ] check_ups incompatible with nut 2.0 Message-ID: Bugs item #1032009, was opened at 2004-09-21 12:12 Message generated for change (Comment added) made by pathennessy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1032009&group_id=29880 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Alain RICHARD (arichard) Assigned to: Nobody/Anonymous (nobody) Summary: check_ups incompatible with nut 2.0 Initial Comment: Hi, nut is now at 2.0 level and have changed completly the communication protocol used to monitoring the ups state and values (nut 2.0 is included in various recent distributions like fedora). This breaks completly the check_ups plugin. I have reworked it and you'll find it joined to this report. As the old plugin works with nut-0.x and nut-1.x, I propose to add this as a new check_upsv2 plugin. I am currently using it and it is stable. Regards, ---------------------------------------------------------------------- Comment By: Pat Hennessy (pathennessy) Date: 2004-10-18 20:43 Message: Logged In: YES user_id=1140303 Well, thats real useful. I kinda wish I saw all this before, but I must have missed these bugs while looking. Hopefully, this will all be working into the next release of the nagios plugins. Using upsc hasn't been a big deal to us because we install NUT on all the servers. Since we are using it to monitor and handle clean shutdowns. I wasn't aware in the compatibility issue and will keep that in mind to switch versions on everything at once. Actually, I will probably install a patched version of the check_ups program instead. I'd rather use that then a script. I also played with the NUT perl module, but that only works with <=1.4 versions of NUT. It was not real pretty, maybe something better came along. I was kinda tempted to fix it to work with the newer protocol, but parsing the output of upsc was quicker and easier. ---------------------------------------------------------------------- Comment By: arnaud quette (uzuul) Date: 2004-10-18 10:47 Message: Logged In: YES user_id=135177 I've made a patch that include Richard's enhancements plus some of mine. Check http://sourceforge.net/tracker/index.php? func=detail&aid=1038413&group_id=29880&atid=397599 Note that we _can't_ rely on upsc as it implies having NUT installed. We (NUT developers) have made an easy and Ascii protocol so that implementation is fairly straightforward, as in check_ups. Moreover, only upsc from nut 1.4 supports both the old and the new protocol, so if you have NUT 2.0 installed locally, and want to talk to a <= 1.4 NUT server, it won't work! If having both old and new protocol compat is needed, please tell us so. Arnaud --- 2nd NUT coordinator/developer Debian Developer ---------------------------------------------------------------------- Comment By: Pat Hennessy (pathennessy) Date: 2004-10-15 22:44 Message: Logged In: YES user_id=1140303 I also ran into this and found this bug after the fact. I wrote a perl script to use the upsc command instead. The upsc command works with both versions. Since the upsc command comes with the nut client, it should always work with the server. Using this perl script, I am able to update my nut servers one at time without the need to fiddle with my Nagios config or plugins. I was going to submit the script to the contrib section of the CVS tree, but I haven't quite figured out how to do that yet. If someone wants it, I will be happy to email the script to them until I submit it (if its even accepted). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1032009&group_id=29880 From pietrob at lansystems.it Tue Oct 19 01:12:02 2004 From: pietrob at lansystems.it (Pietro Bandera) Date: Tue Oct 19 01:12:02 2004 Subject: [Nagiosplug-devel] Check M$SQL server by snmp Message-ID: <3A54E3DDD9C02847887B8CEDC0AEEB448E73@exchange2000.lansystems.loc> Hi all I'm having problems in checking some M$SQL snmp call using a perl script The problem is this: The snmpcall that i want to use have this OID .1.3.6.1.4.1.311.1.4.1.1.1.1.5 That correspond to this name "mssqlSrvState" Unfortunatly if i call this by snmpwalk command i get: [ftplan at dns ftplan]$ snmpwalk 10.11.108.138 public .1.3.6.1.4.1.311.1.4.1.1.1.1.5 enterprises.microsoft.software.4.1.1.1.1.5.21.77.105.99.114.111.115.111.102. 116.32.67.111.114.112.111.114.9 7.116.105.111.110 = 1 As you can see in the answer i get a bigger OID that i think is real OID of that call. But if i use Snmpget 10.11.108.138 public enterprises.microsoft.software.4.1.1.1.1.5.21.77.105.99.114.111.115.111.102. 116.32.67.111.114.112.111.114.9 7.116.105.111.110 Or Snmpwalk 10.11.108.138 public enterprises.microsoft.software.4.1.1.1.1.5.21.77.105.99.114.111.115.111.102. 116.32.67.111.114.112.111.114.9 7.116.105.111.110 I got an error about "no such name" The same problem is affecting my check_MSsql.pl perl script down here: That's the main part of the script: use Fcntl; use Net::SNMP; use strict; use diagnostics; # inizializza variabili my $host = shift || ""; my $comunity = shift || ""; my ($session, $error) = Net::SNMP->session( -hostname => $host, -community => $comunity, ); if (!defined($session)) { printf("ERROR: %s.\n", $error); exit 1; } my $mssqlSrvState = ".1.3.6.1.4.1.311.1.4.1.1.1.1.5"; my $result1 = $session->get_request( -varbindlist => [$mssqlSrvState] ); if (!defined($result1)) { printf("ERROR: %s.\n", $session->error); $session->close; exit 2; } printf("SQL running State %s ", ($result1->{$mssqlSrvState})); if ($result1->{$mssqlSrvState} == 3 ) { printf ("CRITICAL SQL Stopped\n"); $session->close; If i use it i get [ftplan at dns libexec]# ./check_MSsql.pl 10.11.108.138 public ERROR: Received noSuchName(2) error-status at error-index 1. Even if i change the value of the $mssqlSrvState with the longer OID written above i get the same answer. Do you have any idea how to resolve it?! I got many snmp request that i would like to use form the mssql.mib but all of them have this problem. Thanks a lot Ciao Pietro From bpinksto at centenary.edu Tue Oct 19 21:12:28 2004 From: bpinksto at centenary.edu (Brad Pinkston) Date: Tue Oct 19 21:12:28 2004 Subject: [Nagiosplug-devel] RPM Updates and Nagios Message-ID: <00e201c4b612$337022b0$ca9189c6@gents.centenary.edu> Has anyone started on or developed a plug-in that checks any service for rpm updates? I was hoping for a plug-in to check RedHat Network or some other service. Anyone have any interest in creating this plug-in? Brad Pinkston Firewall/Network Administrator Checkpoint CCSA Centenary College of LA (318) 869-5721 bpinksto at centenary.edu -------------------------------------------------------------------- This email has been scanned for viruses by Centenary College of LA -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Wed Oct 20 01:01:31 2004 From: ae at op5.se (Andreas Ericsson) Date: Wed Oct 20 01:01:31 2004 Subject: [Nagiosplug-devel] RPM Updates and Nagios In-Reply-To: <00e201c4b612$337022b0$ca9189c6@gents.centenary.edu> References: <00e201c4b612$337022b0$ca9189c6@gents.centenary.edu> Message-ID: <41761A01.7090507@op5.se> Brad Pinkston wrote: > Has anyone started on or developed a plug-in that checks any service > for rpm updates? I was hoping for a plug-in to check RedHat Network > or some other service. Anyone have any interest in creating this > plug-in? > I know I saw something about check_yum some while back, but I'm not sure. It's usually the sort of thing that takes too long to test. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer From bohara at gmail.com Wed Oct 20 07:35:05 2004 From: bohara at gmail.com (Ben O'Hara) Date: Wed Oct 20 07:35:05 2004 Subject: [Nagiosplug-devel] nagios Plusgins / Solaris 7 Message-ID: <2b36e6604102007294ea0de8b@mail.gmail.com> Hi All, Im having some problems compiling the nagios-plugins-1.4.0alpha1 package on Solaris 7 and wondering if anyone has any ideas? Ive done the standard "./configure --prefix=/apps/nagios" without problems, however when moving onto the make im getting problems as below.... make[2]: Entering directory `/apps/src/ftp/nagios-plugins-1.4.0alpha1/plugins' gcc -g -O2 -L. -Lno/lib -o check_http check_http.o netutils.o utils.o ../lib/libnagiosplug.a getaddrinfo.o gethostbyname.o -lnsl -lsocket -lresolv -lssl -lcrypto ../intl/libintl.a -lgen -lnsl Undefined first referenced symbol in file RAND_status check_http.o ld: fatal: Symbol referencing errors. No output written to check_http make[2]: *** [check_http] Error 1 make[2]: Leaving directory `/apps/src/ftp/nagios-plugins-1.4.0alpha1/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/apps/src/ftp/nagios-plugins-1.4.0alpha1' make: *** [all] Error 2 This has worked fine on FreeBSD 4.10, however Solaris doesnt seem to like it.. Anybody seen this before or have any ideas? Cheers in advance Ben O'Hara From josv at osp.nl Wed Oct 20 08:48:22 2004 From: josv at osp.nl (Jos Visser) Date: Wed Oct 20 08:48:22 2004 Subject: [Nagiosplug-devel] nagios Plusgins / Solaris 7 In-Reply-To: <2b36e6604102007294ea0de8b@mail.gmail.com> References: <2b36e6604102007294ea0de8b@mail.gmail.com> Message-ID: <20041020154248.GO747@Jos-Vissers-Computer.local> Which version of OpenSSL is linked in? ++Jos.uk On Wed, Oct 20, 2004 at 03:29:10PM +0100 it came to pass that Ben O'Hara wrote: > Hi All, > Im having some problems compiling the > nagios-plugins-1.4.0alpha1 package on Solaris 7 and wondering if > anyone has any ideas? > > Ive done the standard "./configure --prefix=/apps/nagios" without > problems, however when moving onto the make im getting problems as > below.... > > make[2]: Entering directory `/apps/src/ftp/nagios-plugins-1.4.0alpha1/plugins' > gcc -g -O2 -L. -Lno/lib -o check_http check_http.o netutils.o > utils.o ../lib/libnagiosplug.a getaddrinfo.o gethostbyname.o -lnsl > -lsocket -lresolv -lssl -lcrypto ../intl/libintl.a -lgen -lnsl > Undefined first referenced > symbol in file > RAND_status check_http.o > ld: fatal: Symbol referencing errors. No output written to check_http > make[2]: *** [check_http] Error 1 > make[2]: Leaving directory `/apps/src/ftp/nagios-plugins-1.4.0alpha1/plugins' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/apps/src/ftp/nagios-plugins-1.4.0alpha1' > make: *** [all] Error 2 > > This has worked fine on FreeBSD 4.10, however Solaris doesnt seem to like it.. > > Anybody seen this before or have any ideas? > > Cheers in advance > > Ben O'Hara > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > 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 -- Normally I am very careful before I ascribe [such] sinister motives to a government agency. Incompetence is the norm, and malevolence is much rarer. -- Bruce Schneier From bohara at gmail.com Wed Oct 20 09:22:19 2004 From: bohara at gmail.com (Ben O'Hara) Date: Wed Oct 20 09:22:19 2004 Subject: [Nagiosplug-devel] nagios Plusgins / Solaris 7 In-Reply-To: <20041020154248.GO747@Jos-Vissers-Computer.local> References: <2b36e6604102007294ea0de8b@mail.gmail.com> <20041020154248.GO747@Jos-Vissers-Computer.local> Message-ID: <2b36e6604102009156d4387ba@mail.gmail.com> On Wed, 20 Oct 2004 17:42:48 +0200, Jos Visser wrote: > Which version of OpenSSL is linked in? > Hi, OpenSSL is 0.9.7d installed from the sunfreeware package. I've attached a copy of the configure output. Ben -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nagios-plugins-configure-out.txt URL: From noreply at sourceforge.net Wed Oct 20 12:57:59 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Oct 20 12:57:59 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1030062 ] Bug in check_tcp.c Message-ID: Bugs item #1030062, was opened at 2004-09-17 12:45 Message generated for change (Comment added) made by jaymzh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1030062&group_id=29880 Category: None Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: Phil Dibowitz (jaymzh) Assigned to: Nobody/Anonymous (nobody) Summary: Bug in check_tcp.c Initial Comment: Release 1.3.1 In check_tcp.c it does: /* Do the SSL handshake */ if ((ssl = SSL_new (ctx)) != NULL) { SSL_set_fd (ssl, sd); if (SSL_connect(ssl) != -1) return OK; ERR_print_errors_fp (stderr); } Which doesn't work because anything <1 is a valid error code. In fact, I'm getting a problem with 0 as an error code. I've changed the code to look like: /* Do the SSL handshake */ if ((ssl = SSL_new (ctx)) != NULL) { SSL_set_fd (ssl, sd); if (SSL_connect(ssl) == 1) return OK; ERR_print_errors_fp (stderr); } - Phil ---------------------------------------------------------------------- >Comment By: Phil Dibowitz (jaymzh) Date: 2004-10-20 12:55 Message: Logged In: YES user_id=533101 Okay, I've attached a patch to fix this, as well as another SSL initialization. The two bugs are: - The bad checking of return codes - Using ONLY SSLv2 instead of SSLv23 which will use 3 and then fall back to 2 if need be. - Phil ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1030062&group_id=29880 From noreply at sourceforge.net Thu Oct 21 01:16:11 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Oct 21 01:16:11 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1030062 ] Bug in check_tcp.c Message-ID: Bugs item #1030062, was opened at 2004-09-17 12:45 Message generated for change (Comment added) made by jaymzh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1030062&group_id=29880 Category: None Group: Release (specify) Status: Open Resolution: None >Priority: 7 Submitted By: Phil Dibowitz (jaymzh) Assigned to: Nobody/Anonymous (nobody) Summary: Bug in check_tcp.c Initial Comment: Release 1.3.1 In check_tcp.c it does: /* Do the SSL handshake */ if ((ssl = SSL_new (ctx)) != NULL) { SSL_set_fd (ssl, sd); if (SSL_connect(ssl) != -1) return OK; ERR_print_errors_fp (stderr); } Which doesn't work because anything <1 is a valid error code. In fact, I'm getting a problem with 0 as an error code. I've changed the code to look like: /* Do the SSL handshake */ if ((ssl = SSL_new (ctx)) != NULL) { SSL_set_fd (ssl, sd); if (SSL_connect(ssl) == 1) return OK; ERR_print_errors_fp (stderr); } - Phil ---------------------------------------------------------------------- >Comment By: Phil Dibowitz (jaymzh) Date: 2004-10-21 01:12 Message: Logged In: YES user_id=533101 Okay, it didn't attach. Trying again. ---------------------------------------------------------------------- Comment By: Phil Dibowitz (jaymzh) Date: 2004-10-20 12:55 Message: Logged In: YES user_id=533101 Okay, I've attached a patch to fix this, as well as another SSL initialization. The two bugs are: - The bad checking of return codes - Using ONLY SSLv2 instead of SSLv23 which will use 3 and then fall back to 2 if need be. - Phil ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1030062&group_id=29880 From noreply at sourceforge.net Thu Oct 21 01:21:33 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Thu Oct 21 01:21:33 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1030062 ] Bug in check_tcp.c -- with patch Message-ID: Bugs item #1030062, was opened at 2004-09-17 12:45 Message generated for change (Settings changed) made by jaymzh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1030062&group_id=29880 Category: None Group: Release (specify) Status: Open Resolution: None Priority: 7 Submitted By: Phil Dibowitz (jaymzh) Assigned to: Nobody/Anonymous (nobody) >Summary: Bug in check_tcp.c -- with patch Initial Comment: Release 1.3.1 In check_tcp.c it does: /* Do the SSL handshake */ if ((ssl = SSL_new (ctx)) != NULL) { SSL_set_fd (ssl, sd); if (SSL_connect(ssl) != -1) return OK; ERR_print_errors_fp (stderr); } Which doesn't work because anything <1 is a valid error code. In fact, I'm getting a problem with 0 as an error code. I've changed the code to look like: /* Do the SSL handshake */ if ((ssl = SSL_new (ctx)) != NULL) { SSL_set_fd (ssl, sd); if (SSL_connect(ssl) == 1) return OK; ERR_print_errors_fp (stderr); } - Phil ---------------------------------------------------------------------- Comment By: Phil Dibowitz (jaymzh) Date: 2004-10-21 01:12 Message: Logged In: YES user_id=533101 Okay, it didn't attach. Trying again. ---------------------------------------------------------------------- Comment By: Phil Dibowitz (jaymzh) Date: 2004-10-20 12:55 Message: Logged In: YES user_id=533101 Okay, I've attached a patch to fix this, as well as another SSL initialization. The two bugs are: - The bad checking of return codes - Using ONLY SSLv2 instead of SSLv23 which will use 3 and then fall back to 2 if need be. - Phil ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1030062&group_id=29880 From noreply at sourceforge.net Fri Oct 22 14:10:53 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Fri Oct 22 14:10:53 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1052482 ] Check file for existence or age Message-ID: New Plugins item #1052482, was opened at 2004-10-22 16:09 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=1052482&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: Aaron Bostick (aaronbostick) Assigned to: Nobody/Anonymous (nobody) Summary: Check file for existence or age Initial Comment: This plugin will determine whether a file exists or not. You can have it return OK on either condition with the -n switch. Also, a failed check can return WARNING or CRITICAL if the -w or -c is specified. WARNING is the default. By adding the -a switch, the plugin also checks the age of the file in hours. If the file is younger than the number of hours specified, the plugin will return OK, and WARN or CRIT otherwise. With the -n option, the file is check to be *older* than the number of hours specified. The argument should be a an absolute path to the file you are interested in. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1052482&group_id=29880 From noreply at sourceforge.net Sat Oct 23 01:17:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Sat Oct 23 01:17:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Support Requests-1052667 ] cannot determine ORACLE_HOME for sid Message-ID: Support Requests item #1052667, was opened at 2004-10-23 15:16 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=1052667&group_id=29880 Category: Install Problem (example) Group: v1.0 (example) Status: Open Priority: 5 Submitted By: S.Kumar (kumar_ks_00) Assigned to: Nobody/Anonymous (nobody) Summary: cannot determine ORACLE_HOME for sid Initial Comment: hi, i installed nagios on fedora core2. nagios and all my services is working properly. when try to check my oracle database i got this error on nagios server. if i run check_oralce --db SID it's working on local server. my services.cfg file like this host_name db1 service_desc. check_oracle check_command check_nrpe!check_db my local oracle server nrpe.cfg file like this command[check_db] =/usr/local/nagios/libexec/check_oracle --db SID i got the error on web interface is "cannot determine ORACLE_HOME for sid" so pl. help how to use check_oracle plugin rgds, kumar ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397598&aid=1052667&group_id=29880 From noreply at sourceforge.net Mon Oct 25 10:33:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Mon Oct 25 10:33:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-New Plugins-1053921 ] Check time of one or more processes running Message-ID: New Plugins item #1053921, was opened at 2004-10-25 12:32 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1053921&group_id=29880 Category: Perl plugin Group: None Status: Open Resolution: None Priority: 5 Submitted By: bschrock (bschrock) Assigned to: Nobody/Anonymous (nobody) Summary: Check time of one or more processes running Initial Comment: This plugin checks how long a process has been running and if it (or multiple ones) are running over the warn and critical time generates an appropriate error. Perl Check Process Run Time Usage: check_proctime -p -w -c Time is in the format of xx:xx:xx each field represents hours:minutes:seconds. -p, --process=PROCESS Process run time to be checked -w, --warning=STRING (xx:xx:xx) Warning time threshold -c, --critical=STRING (xx:xx:xx) Critical time threshold -v, --version=STRING (xx:xx:xx) Critical time threshold -h, --help Prints this help message ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=541465&aid=1053921&group_id=29880 From noreply at sourceforge.net Tue Oct 26 20:27:13 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Tue Oct 26 20:27:13 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-1055054 ] [PATCH] Fix segfauly in check_nwstat.c Message-ID: Bugs item #1055054, was opened at 2004-10-26 20:26 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=1055054&group_id=29880 Category: None Group: Release (specify) Status: Open Resolution: None Priority: 5 Submitted By: Phil Dibowitz (jaymzh) Assigned to: Nobody/Anonymous (nobody) Summary: [PATCH] Fix segfauly in check_nwstat.c Initial Comment: The attached patch fixes a segfault in check_nwstat.c. If the script can't get netware version, it does: asprintf(&netware_version,""); Which despite what one would hope, actually sets the POINTER to NULL, per a long-standing, documented bug in the gnu library - which they keep for backwards compatibility, best I can tell. Anyway, in the cases where there's nothing to copy, I simply use a strdup which prevents the segfault. Please apply. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1055054&group_id=29880 From carlospeon at hotmail.com Tue Oct 26 21:00:00 2004 From: carlospeon at hotmail.com (=?iso-8859-1?B?Q2FybG9zIFBl824gQ29zdGE=?=) Date: Tue Oct 26 21:00:00 2004 Subject: [Nagiosplug-devel] check_mrtgtraf: add link to the mrtg graph Message-ID: Hi, here is a simple patch to add a link (really any text) to the plugin output, so you can click and go to the mrtg graph directly from nagios. 32a33 >char *mrtg_link = NULL; 178c179 < asprintf (&error_message, _("%s. In = %0.1f %s, %s. Out = %0.1f %s|%s %s\n"), --- > asprintf (&error_message, _("%s. In = %0.1f %s, %s. Out = %0.1f %s >%s|%s %s\n"), 181a183 > (mrtg_link == NULL) ? "" : mrtg_link, 209a212 > {"link", required_argument, 0, 'l'}, 229c232 < c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option); --- > c = getopt_long (argc, argv, "hVF:e:a:c:w:l:", longopts, >&option); 254a258,260 > case 'l': > /* link mrtg page */ > mrtg_link = optarg; > break; 340c346,348 < Critical threshold pair \",\"\n")); --- > Critical threshold pair \",\"\n\ > -l, --link\n\ > MRTG link \n")); Command definition example: # 'traffic_max' command definition define command{ command_name traffic_max command_line /usr/lib/nagios/plugins/check_mrtgtraf -F "$ARG1$" -e 10 -a MAX -w $ARG2$ -c $ARG3$ -l "$ARG4$" } Service example: # Trafico interno pix_principal define service{ use generic-service host_name pix_principal service_description Traf. Int. notification_period workhours check_command traffic_max!/var/www/mrtg/10.5.1.10_avaya_inc._-_p333t_10_100base-tx_port_22_on_unit_2.log!90000000,90000000!100000000,100000000!MRTG } Thanks, Carlos Peon Costa carlospeon at hotmail.com _________________________________________________________________ Un amor, una aventura, compa??a para un viaje. Reg?strate gratis en MSN Amor & Amistad. http://match.msn.es/ From noreply at sourceforge.net Wed Oct 27 00:10:01 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Oct 27 00:10:01 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1055119 ] Fix segfault in check_nwstat.c Message-ID: Patches item #1055119, was opened at 2004-10-27 00:09 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1055119&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Phil Dibowitz (jaymzh) Assigned to: Nobody/Anonymous (nobody) Summary: Fix segfault in check_nwstat.c Initial Comment: Since I wrote a patch for the bug I reported in bug 1055054, I thought perhaps I should post it here as well... >From the Bug Report: The attached patch fixes a segfault in check_nwstat.c. If the script can't get netware version, it does: asprintf(&netware_version,""); Which despite what one would hope, actually sets the POINTER to NULL, per a long-standing, documented bug in the gnu library - which they keep for backwards compatibility, best I can tell. Anyway, in the cases where there's nothing to copy, I simply use a strdup which prevents the segfault. Please apply. - Phil ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1055119&group_id=29880 From noreply at sourceforge.net Wed Oct 27 00:14:03 2004 From: noreply at sourceforge.net (SourceForge.net) Date: Wed Oct 27 00:14:03 2004 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-1055120 ] check_tcp.c : Fix bad SSL initialization problems Message-ID: Patches item #1055120, was opened at 2004-10-27 00:13 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=1055120&group_id=29880 Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Submitted By: Phil Dibowitz (jaymzh) Assigned to: Nobody/Anonymous (nobody) Summary: check_tcp.c : Fix bad SSL initialization problems Initial Comment: This is a patch for Bug ID 1030062. I've added the patch the Bug Report as well. Paraphrase of the bug report: There are two problems with the SSL Init Code: 1. In check_tcp.c, the code checks for a return value of -1 from SSL_connect and only then will it throw an error. However, the only non-error response is 1, and thus all other values should throw an error. In my case, this problem caused an bad initialization to go uncaught and more random things to happen later. 2. The code supports at most SSLv2, which is obsolete. The patch will use SSLv3, and if that doesn't work then fail to SSLv2. - Phil ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1055120&group_id=29880