| Anonymous | Login | Signup for a new account | 2013-05-24 23:12 EDT |
| Main | My View | View Issues | Change Log | Roadmap |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0000226 | [Nagios Plugins] Other / Unknown | major | always | 2011-06-10 07:23 | 2012-09-18 09:11 | ||
| Reporter | qha | View Status | public | ||||
| Assigned To | |||||||
| Priority | normal | Resolution | open | ||||
| Status | closed | ||||||
| Summary | 0000226: check_smtp ignores arguments starting with first (second) non option | ||||||
| Description |
check_smtp stops processing arguments on the first non option (or on the second one if hostname is not given with -H or --hostname). This is not particularly helpful, I'd have expected a usage message and return code STATE_UNKNOWN if optind points to remaining arguments after processing options and possibly trying to take hostname from the remaining arguments. Instead I received return code STATE_OK after check_smtp checked only the first message from the server and how soon it arrived ignoring the response checks I'd specified later. In my case I'd been particularly clumsy in defining the services in Nagios but I'm sure this could be triggered by fairly hard to spot mistakes. |
||||||
| Additional Information |
To reproduce: /usr/lib64/nagios/plugins/check_smtp -H mx.example.com -f nagios@example.com -C rcpt to: no-such-local-part@example.com -R 550 5.1.1 -6 will result in: SMTP OK - 0,125 sec. response time|time=0,124762s;;;0,000000 and return code 0. |
||||||
| Tags | No tags attached. | ||||||
| OS | Centos | ||||||
| OS Version | 5.5 | ||||||
| Attached Files | |||||||
|
|
|||||||
Notes |
|
|
(0000326) qha (reporter) 2011-08-19 07:19 |
Apologies for bumping this isssue, but I still haven't seen any message about it on nagiosplug-devel. |
|
(0000366) Inny (reporter) 2011-10-30 06:50 |
Please encapsulate any arguments containing spaces in parentheses, this should resolve your issue. Ex.: ./check_smtp -H mx.example.com -f nagios@example.com -C "rcpt to: no-such-local-part@example.com" -R 550 -6 |
|
(0000367) qha (reporter) 2011-10-31 03:21 |
Yes, that is how I got my service to work the way I intended. This bug is about making check_smtp help me catch such mistakes by flagging them with status unknown instead of ignoring any arguments supplied that it doesn't understand. |
|
(0000520) calestyo (reporter) 2012-07-31 18:58 |
Forwarded to: https://sourceforge.net/tracker/?func=detail&aid=3552833&group_id=29880&atid=397597 [^] |
| Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group |