From noreply at sourceforge.net Tue Jan 4 07:20:03 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Tue, 4 Jan 2011 06:20:03 +0000 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-3109810 ] check_snmp not processing command line flags correctly Message-ID: Bugs item #3109810, was opened at 2010-11-15 22:18 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3109810&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: Argument proccessing Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Carl Forsythe (cforsythe) Assigned to: Thomas Guyot-Sionnest (dermoth) Summary: check_snmp not processing command line flags correctly Initial Comment: Output of current plugin: ./check_snmp -V: check_snmp v1.4.15 (nagios-plugins 1.4.15) OS: CentOS 5.5 x86_64 Kernel: 2.6.18-194.11.4.el5 The check being run: ./check_snmp -H 192.168.100.204 -vvvv -P 2c -C ########## -o NS-ROOT-MIB::serverState.5.119.119.119.49.49 -R up /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] 192.168.100.204:161 NS-ROOT-MIB::serverState.5.119.119.119.49.49 NS-ROOT-MIB::serverState."www11" = INTEGER: outOfService(4) Processing oid 1 (line 1) oidname: NS-ROOT-MIB::serverState."www11" response: = INTEGER: outOfService(4) SNMP OK - 4 | NS-ROOT-MIB::serverState."www11"=4 It doesn't matter what I put after the -R, if I put up, down, left, right, green, blue etc. it always returns ok. Version: check_snmp v1859 (nagios-plugins 1.4.11) Works as expected, it was only after an update to the nagios plugins that the check_snmp plugin stopped working. Net-SNMP did not change. ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2011-01-04 06:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Thomas Guyot-Sionnest (dermoth) Date: 2010-12-21 06:12 Message: Thanks for your bug report I believe the problem you describe here has already been fixed in the development trunk. Please try a recent snapshot such as: http://nagiosplug.sourceforge.net/snapshot/nagios-plugins-master.tar.gz I'm marking this bug as pending in the mean time; it will close automatically after a week or so. ---------------------------------------------------------------------- Comment By: Ryan Steinmetz (rpsfa) Date: 2010-12-19 20:20 Message: This problem does not exist in 1.4.14 and appears to have been introduced in the 1.4.15 release. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3109810&group_id=29880 From jpope at batstrading.com Tue Jan 4 10:08:58 2011 From: jpope at batstrading.com (Jason Pope) Date: Tue, 4 Jan 2011 09:08:58 -0000 Subject: [Nagiosplug-devel] check_ping critical status In-Reply-To: <4D1CB92B.8000501@Kabano.net> References: <73A5FBFC740D564C9B1D944F79BB8F9602737916@BATSUKEXCH.bats.com> <4D1C94F8.6060404@op5.se><73A5FBFC740D564C9B1D944F79BB8F9602737972@BATSUKEXCH.bats.com> <4D1CB92B.8000501@Kabano.net> Message-ID: <73A5FBFC740D564C9B1D944F79BB8F96027379F7@BATSUKEXCH.bats.com> Fly, I used the same one that is in the commands.cfg file : check_ping -H $HOSTADDRESS$ -w 300.0,50% -c 500.0,100% -p 5 Regards, Jason Pope -----Original Message----- From: Flyinvap [mailto:Flyinvap at Kabano.net] Sent: 30 December 2010 16:54 To: nagiosplug-devel at lists.sourceforge.net Subject: Re: [Nagiosplug-devel] check_ping critical status Le 30/12/2010 16:36, Jason Pope a ?crit : > I did set my thresholds and on the command line it says critical but in > the status.dat and on nagios it shows as 1 and warning respectively Which command line do you use (with all arguments) ? Can you send your command definition ? -- Fly ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________________ 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 From mlitwin at stubhub.com Mon Jan 10 20:51:38 2011 From: mlitwin at stubhub.com (Litwin, Matthew) Date: Mon, 10 Jan 2011 12:51:38 -0700 Subject: [Nagiosplug-devel] Bug with check_disk? Message-ID: <213E0EC97FE58F469BB618245B3118BB54AD4F6771@DEN-MEXMS-001.corp.ebay.com> We recently increased the size of a volume and since then the check_disk plug-in seems to be returning some rather peculiar results and thinks the volume is full. srwp01dbs002:~$ /usr/local/nagios/libexec/check_disk -w 5 -c 10 -p /opt/oracle/ecomm_backup DISK CRITICAL - free space: /opt/oracle/ecomm_backup 0 MB (0% inode=-107400412356%);| /opt/oracle/ecomm_backup=2147483647MB;2147483647;2147483647;0;2147483647 srwp01dbs002:~$ df -h /opt/oracle/ecomm_backup Filesystem size used avail capacity Mounted on oraclepool/dbbackup 27T 8.5T 19T 32% /opt/oracle/ecomm_backup This is supplied by nagios-plugins 1.4.14 compiled on Solaris 10. Is this bug addressed in 1.4.15? I don't see mention of it in the release notes. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dermoth at aei.ca Tue Jan 11 06:04:23 2011 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Tue, 11 Jan 2011 00:04:23 -0500 Subject: [Nagiosplug-devel] Bug with check_disk? In-Reply-To: <213E0EC97FE58F469BB618245B3118BB54AD4F6771@DEN-MEXMS-001.corp.ebay.com> References: <213E0EC97FE58F469BB618245B3118BB54AD4F6771@DEN-MEXMS-001.corp.ebay.com> Message-ID: <4D2BE4D7.1040608@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11-01-10 02:51 PM, Litwin, Matthew wrote: > We recently increased the size of a volume and since then the check_disk > plug-in seems to be returning some rather peculiar results and thinks > the volume is full. > > > > srwp01dbs002:~$ /usr/local/nagios/libexec/check_disk -w 5 -c 10 -p > /opt/oracle/ecomm_backup > > DISK CRITICAL - free space: /opt/oracle/ecomm_backup 0 MB (0% > inode=-107400412356%);| > /opt/oracle/ecomm_backup=2147483647MB;2147483647;2147483647;0;2147483647 > > srwp01dbs002:~$ df -h > /opt/oracle/ecomm_backup > > > Filesystem size used avail capacity Mounted on > > oraclepool/dbbackup 27T 8.5T 19T 32% /opt/oracle/ecomm_backup > > > > This is supplied by nagios-plugins 1.4.14 compiled on Solaris 10. Is > this bug addressed in 1.4.15? I don?t see mention of it in the release > notes. We've updated gnulib in 1.4.15, and it's gnulib that provides the disk usage data to check_disk. Please have a try, and if you still experience the bug please send the full output of check_disk with "-vvv" added (debug verbosity). Thanks. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0r5MgACgkQ6dZ+Kt5BchbvIgCglcs8ila/J8kpTmNsspfJnBON 3NAAoMoeH1ICkW5xZzcQ8pEY1oyuVlbW =9BqQ -----END PGP SIGNATURE----- From joram.agten at gmail.com Tue Jan 18 10:05:08 2011 From: joram.agten at gmail.com (Joram Agten) Date: Tue, 18 Jan 2011 10:05:08 +0100 Subject: [Nagiosplug-devel] send_nsca Message-ID: Hello, 1. I had a problem with send_nsca and the delimiter character. I supplied -d ';' and then it took ' as delimiter. but there was no warning that I supplied more than one character. small possible improvement to the code (around line 480 in send_nsca.c) /* delimiter to use when parsing input */ else if(!strcmp(argv[x-1],"-d")){ if(x strlen(delimiter)) { printf("only %d delimiter character(s) allowed, got %d, '%s'\n", strlen(delimiter), strlen(argv[x]), argv[x]); return ERROR; } snprintf(delimiter,sizeof(delimiter),"%s",argv[x]); delimiter[sizeof(delimiter)-1]='\x0'; #ifdef DEBUG printf("delimiter='%s'\n",delimiter); #endif x++; } else{ return ERROR; } } 2. Is it possible to send multi line passive service checks? Thanks in advance Joram -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Tue Jan 18 10:37:42 2011 From: ae at op5.se (Andreas Ericsson) Date: Tue, 18 Jan 2011 10:37:42 +0100 Subject: [Nagiosplug-devel] send_nsca In-Reply-To: References: Message-ID: <4D355F66.2090302@op5.se> On 01/18/2011 10:05 AM, Joram Agten wrote: > Hello, > > 1. > I had a problem with send_nsca and the delimiter character. > I supplied -d ';' and then it took ' as delimiter. > but there was no warning that I supplied more than one character. > > small possible improvement to the code (around line 480 in send_nsca.c) > > /* delimiter to use when parsing input */ > else if(!strcmp(argv[x-1],"-d")){ > if(x if(strlen(argv[x])> strlen(delimiter)) { > printf("only %d delimiter character(s) allowed, got %d, '%s'\n", > strlen(delimiter), strlen(argv[x]), argv[x]); > return ERROR; > } > snprintf(delimiter,sizeof(delimiter),"%s",argv[x]); > delimiter[sizeof(delimiter)-1]='\x0'; > #ifdef DEBUG > printf("delimiter='%s'\n",delimiter); > #endif > x++; > } > else{ > return ERROR; > } > } > I'd suggest you find the send_nsca maintainer (Ethan) and send a proper patch to him, with nagios-devel at users.lists.sourcefourg.net on Cc. > 2. Is it possible to send multi line passive service checks? > AFAIK: No. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. From joram.agten at gmail.com Tue Jan 18 12:04:38 2011 From: joram.agten at gmail.com (Joram Agten) Date: Tue, 18 Jan 2011 12:04:38 +0100 Subject: [Nagiosplug-devel] send_nsca Message-ID: Hello, I had a problem with send_nsca and the delimiter character. I supplied -d ';' and then it took ' as delimiter. but there was no warning that I supplied more than one character. small possible improvement to the code (see patch) Thanks in advance Joram -------------- next part -------------- A non-text attachment was scrubbed... Name: delimiter_char_check_unified_diff.patch Type: application/octet-stream Size: 572 bytes Desc: not available URL: From noreply at sourceforge.net Fri Jan 21 21:01:29 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 21 Jan 2011 20:01:29 +0000 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-3163584 ] check_dns - server matching, fix bug id 2946553 Message-ID: Patches item #3163584, was opened at 2011-01-21 12:01 Message generated for change (Tracker Item Submitted) made by mattkent You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3163584&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: release-1.4.15 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Matthew Kent (mattkent) Assigned to: Nobody/Anonymous (nobody) Summary: check_dns - server matching, fix bug id 2946553 Initial Comment: Can't seem to attach a file to the original ticket but this is a fix for https://sourceforge.net/tracker/index.php?func=detail&aid=2946553&group_id=29880&atid=397597 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3163584&group_id=29880 From noreply at sourceforge.net Fri Jan 21 21:03:59 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 21 Jan 2011 20:03:59 +0000 Subject: [Nagiosplug-devel] [ nagiosplug-Bugs-2946553 ] check_dns returns incorrect state when specifying server Message-ID: Bugs item #2946553, was opened at 2010-02-05 05:59 Message generated for change (Comment added) made by mattkent You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2946553&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: General plugin execution Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: dicko (dicko82) Assigned to: Nobody/Anonymous (nobody) Summary: check_dns returns incorrect state when specifying server Initial Comment: Plugin Version (-V output): check_dns v1992 (nagios-plugins 1.4.13) Plugin Name: check_dns Plugin Commandline showing issues: /usr/lib/nagios/plugins/check_dns -H www.test.com -s 1.1.1.1 Operating System: Red Hat Enterprise Linux Server release 5.4 (Tikanga) An incorrect state is returned when checking that the dns server ( 1.1.1.1 ) can resolve the host www.test.com when the dns server is down. The following command is used /usr/lib/nagios/plugins/check_dns -H www.test.com -s 1.1.1.1 If the DNS server is unavailable the check still returns OK. This worked correctly on RHEL 5.3 but not in Rhel 5.4 It appears that the behaviour of nslookup has changed between bind-utils-9.3.4-10.P1.el5 and bind-utils-9.3.6-4.P1.el5 On RHEL 5.3 bind-utils-9.3.4-10.P1.el5, nslookup timed out when querying against a server that was not working. [root at nagios nagios]# nslookup www.rm.com 194.238.49.43 ;; connection timed out; no servers could be reached On RHEL 5.4 bind-utils-9.3.6-4.P1.el5, the same query against a non existent dns server returns an ip address. [root at nagios ~]# nslookup www.rm.com 1.1.1.1 Server: 10.34.1.11 Address: 10.34.1.11#53 Non-authoritative answer: Name: www.rm.com Address: 2.2.2.2 It appears that nslookup now makes best efforts to resolve the query even if it cant resolve it against the server specified. This results in an incorrect state being returned when using check dns to ensure that a specific mail server is working correctly. ---------------------------------------------------------------------- Comment By: Matthew Kent (mattkent) Date: 2011-01-21 12:03 Message: Can't seem to attach a file here, but I've got a patch to fix this in https://sourceforge.net/tracker/?func=detail&aid=3163584&group_id=29880&atid=397599 could use some help testing on various distributions. ---------------------------------------------------------------------- Comment By: lelutin (lelutin) Date: 2010-07-29 08:04 Message: On Ubuntu Lucid Lynx, the dnsutils package is version 9.7.0.dfsg.P1. If I try the nslookup command mentioned in the details of the bug, I don't get the same output: root at zaptop:~# nslookup www.rm.com 1.1.1.1 ;; connection timed out; no servers could be reached It seems like there could be a bug in the version shipped with RHEL 5.4. Maybe a patch didn't get backported or something. You should open a bug report against the RHEL package. ---------------------------------------------------------------------- Comment By: Thomas Guyot-Sionnest (dermoth) Date: 2010-07-28 06:27 Message: We'd really need a native dns check IMHO, shouldn't be very hard to do if we don't implement the TCP part of it or use an existing library.... ---------------------------------------------------------------------- Comment By: Ton Voon (tonvoon) Date: 2010-07-27 13:32 Message: Damn, that looks painful. It means we will have to parse the complete output to see if the answer section contains the IP address we originally requested. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2946553&group_id=29880 From akkerman at insula.org.ua Sat Jan 22 10:34:42 2011 From: akkerman at insula.org.ua (=?UTF-8?B?0JTQtdC90LjRgSDQnNCw0LbQsNGA?=) Date: Sat, 22 Jan 2011 11:34:42 +0200 Subject: [Nagiosplug-devel] Problems with base_name function in the check_procs test Message-ID: <4D3AA4B2.4030409@insula.org.ua> Hi! I'm using great chec_proc test with nagios-nrpe. And looks like I've found some bug in it. This is a problem: $ /usr/lib/nagios/plugins/check_procs -c 1: -C smtpcom-trackerd -vvv |grep tracker Ssl 1000 10094 1 520596 118808 0.6 23:06:36 smtpcom-tracker /usr/sbin/smtpcom-trackerd -c /etc/smtpcom/smtpcom.ymlproc#=0 uid=1000 vsz=520596 rss=118808 pid=10094 ppid=1 pcpu=0.60 stat=Ssl etime=23:06:36 prog=smtpcom-tracker args=/usr/sbin/smtpcom-trackerd -c /etc/smtpcom/smtpcom.yml PROCS CRITICAL: 0 processes with command name 'smtpcom-trackerd' So looks like base_name function convert /usr/sbin/smtpcom-trackerd to the smtpcom-tracker(without 'd' on the end). I've tried to make a patch but looks like I'm lack of programming skill. I have Debian Squeeze on that machine and 1.4.15 version of the nagios-plugins. From noreply at sourceforge.net Mon Jan 24 14:29:25 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Mon, 24 Jan 2011 13:29:25 +0000 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-3164725 ] check_icmp: option number of decimal places specification Message-ID: Feature Requests item #3164725, was opened at 2011-01-24 14:29 Message generated for change (Tracker Item Submitted) made by pantani You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=3164725&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: None Group: None Status: Open Priority: 5 Private: No Submitted By: T. Macek (pantani) Assigned to: Nobody/Anonymous (nobody) Summary: check_icmp: option number of decimal places specification Initial Comment: I think it is not necessary to have such a accurate output of rta in check_ping - tenths could be enough, couldn't be? Instead of "OK - x.x.x.x: rta 14.242ms, lost 0%" we could have only "OK - x.x.x.x: rta 14.2ms, lost 0%". At least we could have an option to recude the number of decimal places ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=3164725&group_id=29880 From noreply at sourceforge.net Tue Jan 25 05:35:50 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Tue, 25 Jan 2011 04:35:50 +0000 Subject: [Nagiosplug-devel] [ nagiosplug-Patches-3165076 ] Allow check_disk to identify the troubled partition Message-ID: Patches item #3165076, was opened at 2011-01-25 04:35 Message generated for change (Tracker Item Submitted) made by bakafish You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3165076&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: Jason Benguerel (bakafish) Assigned to: Nobody/Anonymous (nobody) Summary: Allow check_disk to identify the troubled partition Initial Comment: I'm submitting a small patch to check_disk that will show which partitions are actually causing the error state. This helps the human operator to quickly identify the exact issue. I made it so a single -v flag is required so it doesn't harm legacy code that may be parsing the original style of output. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397599&aid=3165076&group_id=29880 From noreply at sourceforge.net Wed Jan 26 13:54:04 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Wed, 26 Jan 2011 12:54:04 +0000 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-3088023 ] check_procs Process State Matching Message-ID: Feature Requests item #3088023, was opened at 2010-10-15 12:38 Message generated for change (Comment added) made by spacefreak You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=3088023&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: None Group: None Status: Open Priority: 5 Private: No Submitted By: J. Bern (j-bern) Assigned to: Nobody/Anonymous (nobody) Summary: check_procs Process State Matching Initial Comment: [Checked with 1.4.14 on CentOS 5.5] SUMMARY: Please provide state-matching options better suited for multi-character "stat" fields in the "ps" output. DETAILS: check_procs.c effectively does the state matching with a strstr(command_line_parameter,stat_field_of_ps_output). That's OK for platforms where the state is a single character, like the "S", "R", etc. mentioned in the plugin's online help. Linux, and supposedly several more platforms, however use multi-character not-fully-specified-order states: # ./check_procs -vv | grep '^Ma[t]ched:' | sed -e 's/.* \(stat=[^ ]*\) .*/\1/' | sort -u | tr '\n' ' ' stat=R stat=R+ stat=RN stat=Rs stat=S stat=S< stat=S+ stat=SLs stat=SN stat=Ss stat=S Feature Requests item #2458521, was opened at 2008-12-22 14:10 Message generated for change (Comment added) made by jmroth You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2458521&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: None Group: None Status: Open Priority: 5 Private: No Submitted By: Jan Ondrej (ondrejj) Assigned to: Nobody/Anonymous (nobody) Summary: Add performance data to check_procs plugin Initial Comment: check_procs plugin has no performance data. It can be nice to display performance data for number of processes or zombie processes. I have my own perfdata wrapper until this will be a part of nagios-plugins, but my wrapper has very limited functionality. You only need to display this at end of line from check_plugin: |procs=NUMBER_OF_PROCS;WARN_PROC_COUNT;CRITICAL_PROC_COUNT;0 Attaching my wrapper, which does this, but it's not a right way. :) ---------------------------------------------------------------------- Comment By: J.M. Roth (jmroth) Date: 2011-01-27 10:07 Message: here's a diff to add performance data to check_procs.c --- check_procs-old.c 2010-07-27 22:47:16.000000000 +0200 +++ check_procs.c 2011-01-27 10:02:08.000000000 +0100 @@ -301,6 +301,7 @@ if ( verbose >= 1 && strcmp(fails,"") ) printf (" [%s]", fails); + printf ("|procs=%d;%d;%d;%d:%d;%d:%d", procs, warn, crit, wmin, wmax, cmin, cmax); printf ("\n"); return result; } ---------------------------------------------------------------------- Comment By: GreenRover (greenrover) Date: 2009-03-06 14:09 Message: Her as the original check_procs.c /root/nagios-plugins-1.4.13/plugins/check_procs.c row 308 befor " printf ("\n");" add: printf (" | "); printf (ngettext ("process=%d", "processes=%d", (unsigned long) procs), procs); printf (";%d;%d", wmax, cmax); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2458521&group_id=29880 From paulg at greenwand.net Thu Jan 27 12:05:13 2011 From: paulg at greenwand.net (Paul Green) Date: Thu, 27 Jan 2011 11:05:13 +0000 Subject: [Nagiosplug-devel] check_log new feature Message-ID: <7efddfd43b1864e2150e30780fcc399b@imap1.greenwand.net> Hello, I would like to submit the attached changes for potential addition to the check_log script in the core pluggins. It adds the addition of an ignore option so that you can, for example, look for all "ERROR" within a log file (as per normal) but ignore "ProgramX" which is constantly whining and throwing errors when it shouldn't be. In my case a third party proprietary application in which the vendor neither care nor have the will to fix it. I've also taken the liberty to correct the comments at the top of the script to match the current command line options as well as the new ones. Cheers Paul -------------- next part -------------- A non-text attachment was scrubbed... Name: check_log.diff Type: text/x-patch Size: 3360 bytes Desc: not available URL: From noreply at sourceforge.net Thu Jan 27 13:37:04 2011 From: noreply at sourceforge.net (SourceForge.net) Date: Thu, 27 Jan 2011 12:37:04 +0000 Subject: [Nagiosplug-devel] [ nagiosplug-Feature Requests-2458521 ] Add performance data to check_procs plugin Message-ID: Feature Requests item #2458521, was opened at 2008-12-22 14:10 Message generated for change (Comment added) made by jmroth You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2458521&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: None Group: None Status: Open Priority: 5 Private: No Submitted By: Jan Ondrej (ondrejj) Assigned to: Nobody/Anonymous (nobody) Summary: Add performance data to check_procs plugin Initial Comment: check_procs plugin has no performance data. It can be nice to display performance data for number of processes or zombie processes. I have my own perfdata wrapper until this will be a part of nagios-plugins, but my wrapper has very limited functionality. You only need to display this at end of line from check_plugin: |procs=NUMBER_OF_PROCS;WARN_PROC_COUNT;CRITICAL_PROC_COUNT;0 Attaching my wrapper, which does this, but it's not a right way. :) ---------------------------------------------------------------------- Comment By: J.M. Roth (jmroth) Date: 2011-01-27 13:37 Message: Please forget my previous patch. I see there are several patches already listed: ID# 2918676 1106840 1396989 The oldest one is from 2005 :-\ Additionally, here is my current one against 1.4.15 --- check_procs-old.c 2010-07-27 22:47:16.000000000 +0200 +++ check_procs.c 2011-01-27 13:34:19.000000000 +0100 @@ -301,6 +301,35 @@ if ( verbose >= 1 && strcmp(fails,"") ) printf (" [%s]", fails); + printf ("|procs=%d", procs); + if (wmin == -1) { + if (wmax == -1) { + printf (";"); + } else { + printf (";:%d", wmax); + } + } else { + if (wmax == -1) { + printf (";%d:", wmin); + } else { + printf (";%d:%d", wmin, wmax); + } + } + if (cmin == -1) { + if (cmax == -1) { + printf (";"); + } else { + printf (";:%d", cmax); + } + } else { + if (cmax == -1) { + printf (";%d:", cmin); + } else { + printf (";%d:%d", cmin, cmax); + } + } + printf (";1"); + printf ("\n"); return result; } ---------------------------------------------------------------------- Comment By: J.M. Roth (jmroth) Date: 2011-01-27 10:07 Message: here's a diff to add performance data to check_procs.c --- check_procs-old.c 2010-07-27 22:47:16.000000000 +0200 +++ check_procs.c 2011-01-27 10:02:08.000000000 +0100 @@ -301,6 +301,7 @@ if ( verbose >= 1 && strcmp(fails,"") ) printf (" [%s]", fails); + printf ("|procs=%d;%d;%d;%d:%d;%d:%d", procs, warn, crit, wmin, wmax, cmin, cmax); printf ("\n"); return result; } ---------------------------------------------------------------------- Comment By: GreenRover (greenrover) Date: 2009-03-06 14:09 Message: Her as the original check_procs.c /root/nagios-plugins-1.4.13/plugins/check_procs.c row 308 befor " printf ("\n");" add: printf (" | "); printf (ngettext ("process=%d", "processes=%d", (unsigned long) procs), procs); printf (";%d;%d", wmax, cmax); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2458521&group_id=29880 From R.Finsterbusch at ecofys.com Fri Jan 28 14:14:52 2011 From: R.Finsterbusch at ecofys.com (Rene Finsterbusch) Date: Fri, 28 Jan 2011 14:14:52 +0100 Subject: [Nagiosplug-devel] Integer overflow when querying large counter values in check_nt Message-ID: <2E8C33AF93D1B241A07A27FC248F8CBCC19DAE@nl00-mail.Econcern.Corp> Hi all, Currently I am facing the issue, that warning and critical level defined as unsigned long: unsigned long warning_value=0L; unsigned long critical_value=0L; With that, it is working within a range from 0 to 4.294.967.295. So if you want to use check_nt to query e.g. the memory usage of a process (in bytes), you can't specify anything else than 4GB max. Could you please have a look at this and maybe put it to a float value? Greets from Cologne, and cheers for the great plugin, Rene -------------- next part -------------- An HTML attachment was scrubbed... URL: