From ca-nunes at criticalsoftware.com Tue Aug 2 10:03:11 2011 From: ca-nunes at criticalsoftware.com (Claudio Nunes) Date: Tue, 2 Aug 2011 08:03:11 +0000 Subject: [Nagiosplug-devel] nagios creating a plugin Message-ID: <3C100959C1473D4E8F9600536EA7AE2F81DFF827@CBREXMB.critical.pt> Hi, I?m a begineer in Ngaios, I?m using Nagios to scan my entire network wich contains services with a illegal characther (the dollar symbol,"$"), i.e. myservice$system-guard I tried many ways to overcome this issue, Escaping the dollar symbol by introducing another dollar symbol or the escape slash (myservice\$system-guard, myservice$$system-guard or myservice\$$system-guard). Deleting the $ at nagios core configurator manager and at nagios.cfg file, after doing this check_nt plugin gives a error saying "could not parse arguments" None of them works. I?m desperately needing help to create a especificaly plugin to monitor this service. Any help please ________________________________ DISCLAIMER: This message is confidential and may contain privileged information. It is for use only by the people or entities to whom it is addressed. If you are not an intended recipient, you should not disclose, distribute, copy, print, rely on or otherwise make use of this message. If an addressing or transmission error has misdirected it to you we would be grateful if you would please notify the sender by return, before deleting it from your system. ________________________________ Are you controlling information disclosure? Decide what you need to keep secret and enforce it with csSECURE. See how at www.csSECURE.net. -------------- next part -------------- An HTML attachment was scrubbed... URL: From D.Mysliwietz at maerkischer-kreis.de Wed Aug 3 16:18:40 2011 From: D.Mysliwietz at maerkischer-kreis.de (Mysliwietz Dietmar) Date: Wed, 3 Aug 2011 16:18:40 +0200 Subject: [Nagiosplug-devel] check_snmp Message-ID: Hi, I use check_snmp in V 1.4.15 with Nagios V 3.2.3. In one check I use 6 OIDs, seperated by commas. That works OK. If I use the -u parameter to give units for each OID then I have a problem: - it works fine with 4 units, seperated by commas - it will not work with more than 4 units. The result in nagios it's then like '/)(%& OK - ....' instaed of 'SNMP OK - ....' Can you imagine what happens there? Thank you very much for an answer to sender-mail-address. With greetings from Germany. Dietmar. From noreply at sourceforge.net Thu Aug 4 14:53:01 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Thu, 04 Aug 2011 14:53:01 +0200 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-3386170 ] check_snmp: fix for unit and label parameters on 64bit Message-ID: Patches item #3386170, was opened at 2011-08-04 14:53 Message generated for change (Tracker Item Submitted) made by mampfred You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3386170&group_id=29880 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Martin Rohrbach (mampfred) Assigned to: Nobody/Anonymous (nobody) Summary: check_snmp: fix for unit and label parameters on 64bit Initial Comment: Patch against Plugin Version (-V output): v1.4.15 (nagios-plugins 1.4.15) Plugin Name: check_snmp Example Plugin Commandline: -u a,b,c,d,e (see below) Tested on operating system: SLES 11 SP 1 (Linux 2.6.32.29-0.3-default #1 SMP 2011-02-25 13:36:59 +0100 x86_64 x86_64 x86_64 GNU/Linux) Tested on architecture: x86_64 Tested with compiler: gcc When parising the -u and -l parameters, the alloc is done without using sizeof(char *). This corrupts the stack whenever there's more than 4 paremeters to either of the parameters as you can see in the test output below where the "SNMP" is garbled. The patch fixes this for both parameters and renames one of the helper functions to a sensible name (thisarg => trimstring). bash# ./check_snmp -V check_snmp v1.4.15 (nagios-plugins 1.4.15) bash# uname -a Linux kobarid 2.6.32.29-0.3-default #1 SMP 2011-02-25 13:36:59 +0100 x86_64 x86_64 x86_64 GNU/Linux Garbled "SNMP" string before fix (last line): bash# ./check_snmp -H mary.unix.db.de -C nasfiler -o .1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.4.0 -v -v -v -u a,b,c,d,e /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] mary.unix.db.de:161 .1.3.6.1.4.1.789.1.2.2.4.0 .1.3.6.1.4.1.789.1.2.2.4.0 .1.3.6.1.4.1.789.1.2.2.4.0 .1.3.6.1.4.1.789.1.2.2.4.0 .1.3.6.1.4.1.789.1.2.2.4.0 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 Processing oid 1 (line 1) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 Processing oid 2 (line 2) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 Processing oid 3 (line 3) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 Processing oid 4 (line 4) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 Processing oid 5 (line 5) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 cg;6? OK - 3 a 3 b 3 c 3 d 3 e | iso.3.6.1.4.1.789.1.2.2.4.0=3 iso.3.6.1.4.1.789.1.2.2.4.0=3 iso.3.6.1.4.1.789.1.2.2.4.0=3 iso.3.6.1.4.1.789.1.2.2.4.0=3 iso.3.6.1.4.1.789.1.2.2.4.0=3 With fix: bash# ./check_snmp_64bit_fix -H mary.unix.db.de -C nasfiler -o .1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.4.0 -v -v -v -u a,b,c,d,e /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] mary.unix.db.de:161 .1.3.6.1.4.1.789.1.2.2.4.0 .1.3.6.1.4.1.789.1.2.2.4.0 .1.3.6.1.4.1.789.1.2.2.4.0 .1.3.6.1.4.1.789.1.2.2.4.0 .1.3.6.1.4.1.789.1.2.2.4.0 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 iso.3.6.1.4.1.789.1.2.2.4.0 = INTEGER: 3 Processing oid 1 (line 1) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 Processing oid 2 (line 2) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 Processing oid 3 (line 3) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 Processing oid 4 (line 4) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 Processing oid 5 (line 5) oidname: iso.3.6.1.4.1.789.1.2.2.4.0 response: = INTEGER: 3 SNMP OK - 3 a 3 b 3 c 3 d 3 e | iso.3.6.1.4.1.789.1.2.2.4.0=3 iso.3.6.1.4.1.789.1.2.2.4.0=3 iso.3.6.1.4.1.789.1.2.2.4.0=3 iso.3.6.1.4.1.789.1.2.2.4.0=3 iso.3.6.1.4.1.789.1.2.2.4.0=3 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3386170&group_id=29880 From noreply at sourceforge.net Thu Aug 4 14:58:20 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Thu, 04 Aug 2011 14:58:20 +0200 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-3386172 ] check_snmp: fix for multiple non numeric OIDs Message-ID: Patches item #3386172, was opened at 2011-08-04 14:58 Message generated for change (Tracker Item Submitted) made by mampfred You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3386172&group_id=29880 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Bugfix Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Martin Rohrbach (mampfred) Assigned to: Nobody/Anonymous (nobody) Summary: check_snmp: fix for multiple non numeric OIDs Initial Comment: Patch against Plugin Version (-V output): v1.4.15 (nagios-plugins 1.4.15) Plugin Name: check_snmp Example Plugin Commandline: -u a,b,c,d,e (see below) Tested on operating system: SLES 11 SP 1 (Linux 2.6.32.29-0.3-default #1 SMP 2011-02-25 13:36:59 +0100 x86_64 x86_64 x86_64 GNU/Linux) Tested on architecture: x86_64 Tested with compiler: gcc When multiple OIDs are specified and the first one is numeric while another one is not, an error is encountered because is_numeric is not reset in the loop. The fix does just that. bash# ./check_snmp -V check_snmp v1.4.15 (nagios-plugins 1.4.15) bash# uname -a Linux kobarid 2.6.32.29-0.3-default #1 SMP 2011-02-25 13:36:59 +0100 x86_64 x86_64 x86_64 GNU/Linux bash# ./check_snmp -H mary.unix.db.de -C nasfiler -o .1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.25.0 -w @1:2, -c @4:6, No valid data returned bash# ./check_snmp_numeric_fix -H mary.unix.db.de -C nasfiler -o .1.3.6.1.4.1.789.1.2.2.4.0,.1.3.6.1.4.1.789.1.2.2.25.0 -w @1:2, -c @4:6, SNMP OK - 3 "The system's global status is normal. " | iso.3.6.1.4.1.789.1.2.2.4.0=3 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3386172&group_id=29880 From noreply at sourceforge.net Thu Aug 4 15:37:23 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Thu, 04 Aug 2011 15:37:23 +0200 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-3003419 ] check_snmp converts negative values to positive Message-ID: Bugs item #3003419, was opened at 2010-05-18 17:59 Message generated for change (Comment added) made by mampfred You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3003419&group_id=29880 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Parsing problem Group: v1.4.14 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Matt Rose (oesor) Assigned to: Nobody/Anonymous (nobody) Summary: check_snmp converts negative values to positive Initial Comment: When thresholds are defined, check_snmp converts negative integer snmp get values to positive: root at ops-00:/usr/local/nagios/libexec# ./check_snmp -V check_snmp v1.4.14 (nagios-plugins 1.4.14) root at ops-00:/usr/local/nagios/libexec# ./check_snmp -H 192.168.1.100 -o DEVICE-MIB::CurrentNoiseFloor.0 -w=~:-85 -c=~:-80 -vvvv /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 192.168.1.100:161 DEVICE-MIB::CurrentNoiseFloor.0 DEVICE-MIB::CurrentNoiseFloor.0 = INTEGER: -97 Processing line 1 oidname: DEVICE-MIB::CurrentNoiseFloor.0 response: = INTEGER: -97 SNMP CRITICAL - *97* | DEVICE-MIB::CurrentNoiseFloor.0=97 root at ops-00:/usr/local/nagios/libexec# ./check_snmp -H 192.168.1.100 -o DEVICE-MIB::CurrentNoiseFloor.0 -vvvv /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] 192.168.1.100:161 DEVICE-MIB::CurrentNoiseFloor.0 DEVICE-MIB::CurrentNoiseFloor.0 = INTEGER: -97 Processing line 1 oidname: DEVICE-MIB::CurrentNoiseFloor.0 response: = INTEGER: -97 SNMP OK - -97 | DEVICE-MIB::CurrentNoiseFloor.0=-97 ---------------------------------------------------------------------- Comment By: Martin Rohrbach (mampfred) Date: 2011-08-04 15:37 Message: I agree with the fix from nobody42. The threshold problem looks similar, the string for that is defined in lib/utils_base.h: /* All possible characters in a threshold range */ #define NP_THRESHOLDS_CHARS "0123456789.:@~" That should probably include a "-" as well. ---------------------------------------------------------------------- Comment By: Jan Sach () Date: 2011-06-23 13:32 Message: Also when defining warning and critical tresholds it doesn't work correctly when it comes to negative numbers: It is possible to set the negative infinity and negative integer - for example "~:-20" or set the negative infinity and positive integer: "~:15". That works as it should. But the combined treshold "-10:30" wrongly puts the value "-8" outside these limits, causing a warning or critical state (and the value "+8" is correctly considered to be inside). (note: I fixed the negative to positive perfdata converting bug using the advice in the 1st comment, but i ran into this treshold problem) I think it is important when fixing this bug to fix the tresholds parsing as well. The tresholds with both negative and positive limits are handy for temperature measurement, power to batteries (which could be negative when running from batteries and positive when charging them), etc. ---------------------------------------------------------------------- Comment By: Nobody (nobody42) Date: 2011-03-19 14:49 Message: The bug is located in line 404 of actual code 404 ptr = strpbrk (show, "0123456789"); should be changed to 404 ptr = strpbrk (show, "-0123456789"); 403 if (thlds[i]->warning || thlds[i]->critical || calculate_rate) { 404 ptr = strpbrk (show, "0123456789"); 405 if (ptr == NULL) Can someone fix please ? ---------------------------------------------------------------------- Comment By: Matt Rose (oesor) Date: 2010-05-18 18:20 Message: s/thresholds are defined/thresholds are triggered/ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3003419&group_id=29880 From michael.r.burgess at dom.com Fri Aug 5 13:42:11 2011 From: michael.r.burgess at dom.com (Michael R Burgess) Date: Fri, 5 Aug 2011 07:42:11 -0400 Subject: [Nagiosplug-devel] FW: check_nt issue Message-ID: From: Michael R Burgess (Services - 1) Sent: Thursday, August 04, 2011 1:58 PM To: 'nagiosplug-devel at lists.sourceforge.net' Subject: check_nt issue Using Nagios I to monitor a windows service that has a $ in the service name. Example: check_nt!SERVICESTATE! -d SHOWALL -l "service$name" Nagios cannot find the service "service". It doesn't realize that the service name is "service$name" How do I get nagios to see the $ as part of the name of the service? Thanks, Mike Burgess IT Analyst Dominion Credit Union 804-771-3573 CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and/or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at babar.us Fri Aug 5 13:49:28 2011 From: nagios at babar.us (Olivier 'Babar' Raginel) Date: Fri, 5 Aug 2011 13:49:28 +0200 Subject: [Nagiosplug-devel] FW: check_nt issue In-Reply-To: References: Message-ID: <20110805114928.GA13439@mail.babar.us> On Fri, Aug 05, 2011 at 07:42:11AM -0400, Michael R Burgess wrote: > Using Nagios I to monitor a windows service that has a $ in the service name. > > Example: check_nt!SERVICESTATE! -d SHOWALL -l "service$name" > > Nagios cannot find the service "service". It doesn't realize that the > service name is "service$name" How do I get nagios to see the $ as > part of the name of the service? Use $$ as per the documentation? -- Babar. From michael.r.burgess at dom.com Fri Aug 5 15:30:41 2011 From: michael.r.burgess at dom.com (Michael R Burgess) Date: Fri, 5 Aug 2011 09:30:41 -0400 Subject: [Nagiosplug-devel] FW: check_nt issue In-Reply-To: <20110805114928.GA13439@mail.babar.us> References: <20110805114928.GA13439@mail.babar.us> Message-ID: Sorry for not looking deeper into the documentation. Finally found it here http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=413&expand=false&showdesc=true Actually needed two backslashes and a second $. So service$name would be service\\$$name. Thanks again! -----Original Message----- From: Olivier 'Babar' Raginel [mailto:nagios at babar.us] Sent: Friday, August 05, 2011 7:49 AM To: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] FW: check_nt issue On Fri, Aug 05, 2011 at 07:42:11AM -0400, Michael R Burgess wrote: > Using Nagios I to monitor a windows service that has a $ in the service name. > > Example: check_nt!SERVICESTATE! -d SHOWALL -l "service$name" > > Nagios cannot find the service "service". It doesn't realize that the > service name is "service$name" How do I get nagios to see the $ as > part of the name of the service? Use $$ as per the documentation? -- Babar. ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________________ Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net Unsubscribe at 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 CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and/or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you. From noreply at sourceforge.net Sat Aug 20 18:41:26 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Sat, 20 Aug 2011 16:41:26 +0000 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-3395359 ] check_mysql_performance: add threshold support Message-ID: Patches item #3395359, was opened at 2011-08-20 16:41 Message generated for change (Tracker Item Submitted) made by djinnii You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3395359&group_id=29880 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Enhancement Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jinn Koriech (djinnii) Assigned to: Nobody/Anonymous (nobody) Summary: check_mysql_performance: add threshold support Initial Comment: This patch * adds threshold support to the check_mysql_performance check * cleans up help text Plugin Name: check_mysql_performance 1.00 [http://www.capside.com] Example Plugin Commandline: $ ./check_mysql_performance --perfdata \"Com_select,Created_tmp_disk_tables=0:1;0:2,Created_tmp_tables=0:2;0:3,Slow_queries=0:1;0:2,Select_full_join,Select_full_range_join=0:0.3;0:0.4,Select_range_check,Select_scan=0:3.5;0:4.5,Sort_merge_passes,Sort_range,Sort_rows=0:10000;0:20000,Sort_scan=0:3;0:4\" --extra-opts 10.0.0.200 Tested on: Debian GNU/Linux 6.0 \\n \\l Tested on achitecture: amd64 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3395359&group_id=29880 From Samuel.Kidman at panres.com Fri Aug 26 10:10:09 2011 From: Samuel.Kidman at panres.com (Samuel Kidman) Date: Fri, 26 Aug 2011 16:10:09 +0800 Subject: [Nagiosplug-devel] Adaptive Latency Checking Script Message-ID: <2017228CAF598D4F8B68E7555B95876101B6EB38@pr-pro-exch01-3.SMY.local> Hello I was just wondering if anyone knows if anything is out there that checks latency and sets threshholds by itself? Ie. The check continuously checks latency to a host and notices if the latency goes up significantly (say, by a percentage of the 'normal' value) I've tried to write something like this myself but I get stuck on two things: 1. How do you make it allow for situations where the latency increases to a new level for a long period of time? 2. How do you detect what the 'good' value is? Assume that the measured latency will always keep the same value (on average) if nothing else is affecting it. That is, there is some unknown value for the latency that is considered 'normal', the script works out this value during it's operation and then uses that value to work out if the measured latency is too high. Regards, Sam Kidman IT Support Officer -------------------------- T: 08 9225 0944 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 18659 bytes Desc: image001.jpg URL: From dermoth at aei.ca Fri Aug 26 13:51:38 2011 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 26 Aug 2011 07:51:38 -0400 Subject: [Nagiosplug-devel] Adaptive Latency Checking Script In-Reply-To: <2017228CAF598D4F8B68E7555B95876101B6EB38@pr-pro-exch01-3.SMY.local> References: <2017228CAF598D4F8B68E7555B95876101B6EB38@pr-pro-exch01-3.SMY.local> Message-ID: <4E5788CA.5050901@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11-08-26 04:10 AM, Samuel Kidman wrote: > Hello Hi > I was just wondering if anyone knows if anything is out there that > checks latency and sets threshholds by itself? Ie. The check > continuously checks latency to a host and notices if the latency goes up > significantly (say, by a percentage of the ?normal? value) > > > > I?ve tried to write something like this myself but I get stuck on two > things: > > > > 1. How do you make it allow for situations where the latency > increases to a new level for a long period of time? > > 2. How do you detect what the ?good? value is? I would build something like it based on RRD's aberrant Behaviour Detection. See: http://oss.oetiker.ch/rrdtool/doc/rrdtool.en.html#IAberrant_Behavior_Detection http://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html#IAberrant_Behavior_Detection_with_Holt_Winters_Forecasting http://oss.oetiker.ch/rrdtool/doc/rrdgraph_examples.en.html#IAberrant_Behaviour_Detection http://cricket.sourceforge.net/aberrant/rrd_hw.htm RRD are generally for graphing, but you should be able to get the relevant data suitable for a script with "rrd fetch" as well - or by using directly RRD's API if available in the language you write your plugin in. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEUEARECAAYFAk5XiMMACgkQ6dZ+Kt5BchYaNACXV4aPGzEqhZERkxc8BmAkS9KQ SwCfe3M9Hu5TyV3G+fTWPfxWjLGtZ2I= =jZzB -----END PGP SIGNATURE----- From dermoth at aei.ca Fri Aug 26 14:33:46 2011 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 26 Aug 2011 08:33:46 -0400 Subject: [Nagiosplug-devel] check_snmp In-Reply-To: References: Message-ID: <4E5792AA.7090009@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11-08-03 10:18 AM, Mysliwietz Dietmar wrote: > Hi, > > I use check_snmp in V 1.4.15 with Nagios V 3.2.3. > > In one check I use 6 OIDs, seperated by commas. That works OK. > > If I use the -u parameter to give units for each OID then I have a problem: > - it works fine with 4 units, seperated by commas > - it will not work with more than 4 units. > The result in nagios it's then like '/)(%& OK - ....' instaed of 'SNMP OK - ....' > > Can you imagine what happens there? > Would you be able to provide us with the exact command you run - or the nagios service command & command definition? If you have to replace the oid's with something else please let me know what type they are - COUNTER, GAUGE, STRING, etc... Thanks - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5XkqoACgkQ6dZ+Kt5BchYtJgCg+iUFn7OYkQ+e6weuA2uztpGR olUAn0LPZmucYWQ4c7xEqm4yTVLIB16y =EU9t -----END PGP SIGNATURE----- From noreply at sourceforge.net Mon Aug 29 15:51:35 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Mon, 29 Aug 2011 15:51:35 +0200 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-3400197 ] check_oracle: use user's .bash_profile (sudo env problem) Message-ID: Patches item #3400197, was opened at 2011-08-29 15:51 Message generated for change (Tracker Item Submitted) made by fkrueger2 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3400197&group_id=29880 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Enhancement Group: release-1.4.15 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Frederic Krueger (fkrueger2) Assigned to: Nobody/Anonymous (nobody) Summary: check_oracle: use user's .bash_profile (sudo env problem) Initial Comment: In case there is a ~/.bash_profile for the user running the plugin, it is being included before any of the script is run. This is a problem occuring when sudo is being used. May need a selinux fix if we are unlucky ;o) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3400197&group_id=29880 From noreply at sourceforge.net Tue Aug 30 13:57:24 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Tue, 30 Aug 2011 07:57:24 -0400 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-3400197 ] check_oracle: use user's .bash_profile (sudo env problem) Message-ID: Patches item #3400197, was opened at 2011-08-29 09:51 Message generated for change (Comment added) made by dermoth You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3400197&group_id=29880 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Enhancement Group: release-1.4.15 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Frederic Krueger (fkrueger2) Assigned to: Nobody/Anonymous (nobody) Summary: check_oracle: use user's .bash_profile (sudo env problem) Initial Comment: In case there is a ~/.bash_profile for the user running the plugin, it is being included before any of the script is run. This is a problem occuring when sudo is being used. May need a selinux fix if we are unlucky ;o) ---------------------------------------------------------------------- >Comment By: Thomas Guyot-Sionnest (dermoth) Date: 2011-08-30 07:57 Message: I don't think that would be a wise thing to do; in some case there will be no bash_profile, and in the worst case bash_profile could invoke scripts the user don't want to run on a script run. Also the profile script name will be different is the shell is a plain sh, which can be the case on BSD and Solaris and even some linux systems that have both shells installed. I think your issue has more to to with proper sudo configuration and it would be much better to document the required sudo configuration for this check. Were you able to identify the missing environment variable that prevents this check to run? Is is just incomplete PATH or is there any Oracle-specific environment variables that need to be passed? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3400197&group_id=29880 From rnygren at frhg.org Tue Aug 30 20:09:16 2011 From: rnygren at frhg.org (Nygren, Ray) Date: Tue, 30 Aug 2011 11:09:16 -0700 Subject: [Nagiosplug-devel] FW: SERVICESTATE fails with $ imbedded in registry name In-Reply-To: <5E3E345918590D4D86333A4FCCF51A900D1305C9@EXCHVS.frhg.org> References: <5E3E345918590D4D86333A4FCCF51A900D1305C9@EXCHVS.frhg.org> Message-ID: <5E3E345918590D4D86333A4FCCF51A900D1305CA@EXCHVS.frhg.org> Micorsoft puts a $ in the SQL server services but your code truncates the service registry name after the $ check_command check_nt!SERVICESTATE! -d SHOWALL -l MSSQL$HEMS returns service not found MSSQL$ Is there any solution? I tried single quotes, double quotes, \ and back tick with same error I even renamed the service without $ and still no go.(Not display name but registry name) Ray Nygren Database Administrator (530) 740-1940 X3801 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 9771 bytes Desc: image001.gif URL: From rnygren at frhg.org Tue Aug 30 20:13:47 2011 From: rnygren at frhg.org (Nygren, Ray) Date: Tue, 30 Aug 2011 11:13:47 -0700 Subject: [Nagiosplug-devel] FW: SERVICESTATE fails with $ imbedded inregistry name Message-ID: <5E3E345918590D4D86333A4FCCF51A900D1305CB@EXCHVS.frhg.org> Version 3.2.3 nagios debian linux and plugins 1.4.15 Micorsoft puts a $ in the SQL server services but your code truncates the service registry name after the $ check_command check_nt!SERVICESTATE! -d SHOWALL -l MSSQL$HEMS returns service not found MSSQL$ Is there any solution? I tried single quotes, double quotes, \ and back tick with same error I even renamed the service without $ and still no go.(Not display name but registry name) Ray Nygren Database Administrator (530) 740-1940 X3801 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 9771 bytes Desc: image001.gif URL: From mike-nagios at 5dninja.net Tue Aug 30 22:51:55 2011 From: mike-nagios at 5dninja.net (Mike Lindsey) Date: Tue, 30 Aug 2011 13:51:55 -0700 Subject: [Nagiosplug-devel] FW: SERVICESTATE fails with $ imbedded inregistry name In-Reply-To: <5E3E345918590D4D86333A4FCCF51A900D1305CB@EXCHVS.frhg.org> References: <5E3E345918590D4D86333A4FCCF51A900D1305CB@EXCHVS.frhg.org> Message-ID: <4E5D4D6B.5090700@5dninja.net> On 8/30/11 11:13 AM, Nygren, Ray wrote: > > Version 3.2.3 nagios debian linux and plugins 1.4.15 > > Micorsoft puts a $ in the SQL server services but your code truncates > the service registry name after the $ > > check_command check_nt!SERVICESTATE! -d SHOWALL -l MSSQL$HEMS > > returns service not found MSSQL$ > > Is there any solution? I tried single quotes, double quotes, \ and > back tick with same error > > I even renamed the service without $ and still no go.(Not display name > but registry name) > > Try double $$. $ is a special character for both Nagios, and most likely, your shell. So, you should escape it for Nagios, by adding a second dollar sign. You should also include the whole last bit in single quotes. ie: check_command check_nt!SERVICESTATE!-d SHOWALL -l 'MSSQL$HEMS' -- Mike Lindsey -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.r.burgess at dom.com Wed Aug 31 13:34:08 2011 From: michael.r.burgess at dom.com (Michael R Burgess) Date: Wed, 31 Aug 2011 07:34:08 -0400 Subject: [Nagiosplug-devel] FW: SERVICESTATE fails with $ imbedded in registry name In-Reply-To: <5E3E345918590D4D86333A4FCCF51A900D1305CA@EXCHVS.frhg.org> References: <5E3E345918590D4D86333A4FCCF51A900D1305C9@EXCHVS.frhg.org> <5E3E345918590D4D86333A4FCCF51A900D1305CA@EXCHVS.frhg.org> Message-ID: Here is the source I found: http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=413&expand=false&showdesc=true Actually need two backslashes and a second $. So service$name would be service\\$$name. From: Nygren, Ray [mailto:rnygren at frhg.org] Sent: Tuesday, August 30, 2011 2:09 PM To: nagiosplug-devel at lists.sourceforge.net Subject: [Nagiosplug-devel] FW: SERVICESTATE fails with $ imbedded in registry name Micorsoft puts a $ in the SQL server services but your code truncates the service registry name after the $ check_command check_nt!SERVICESTATE! -d SHOWALL -l MSSQL$HEMS returns service not found MSSQL$ Is there any solution? I tried single quotes, double quotes, \ and back tick with same error I even renamed the service without $ and still no go.(Not display name but registry name) Ray Nygren Database Administrator (530) 740-1940 X3801 [cid:image001.gif at 01CC67B0.54F020F0] CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and/or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 9771 bytes Desc: image001.gif URL: