[ZBX-2555] Simple check doesn't send correct sendtoclose string for pop3 Created: 2010 Jun 15  Updated: 2017 May 30  Resolved: 2010 Jul 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Server (S)
Affects Version/s: 1.8.2
Fix Version/s: 1.8.3, 1.9.0 (alpha)

Type: Incident report Priority: Major
Reporter: Mark Eissler Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 5.x


Attachments: Text File simple.c.patch    
Issue Links:
Duplicate
duplicates ZBX-2553 Simple check ignores server replies Closed

 Description   

When checking the status of a pop3 daemon, the connection isn't closed cleanly since no "sendtoclose" string is supplied (in simple.c). The correct string is "QUIT\n".

I am attaching a patch.



 Comments   
Comment by Mark Eissler [ 2010 Jun 15 ]

The patch file was produced with "diff -urNad" command. Let me know if more context, etc. is required.

Comment by Aleksandrs Saveljevs [ 2010 Jul 01 ]

Fixed in pre-1.8.3 in r13126.

Comment by Andris Mednis [ 2014 Jun 16 ]

https://tools.ietf.org/html/rfc1939 says: "All commands are terminated by a CRLF pair."
So, the closing string is "QUIT\r\n". Fixed as part of solving ZBX-8040.

Comment by Mark Eissler [ 2014 Jun 17 ]

I no longer have a zabbix installation, so someone else is going to have to patch and regression test.

Generated at Fri Mar 29 13:38:24 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.