"How are you" test for monit inserted
This commit is contained in:
9
conman.c
9
conman.c
@ -1864,6 +1864,15 @@ static void writeToLogFiles(SConnection *self, char *buffer)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* response for monit check */
|
||||
if (strstr(pPtr,"How are you") == pPtr)
|
||||
{
|
||||
SCWrite(self,"I am fine",eError);
|
||||
NetReadRemove(pServ->pReader,self->pSock);
|
||||
self->iEnd = 1;
|
||||
free(pPtr);
|
||||
return 1;
|
||||
}
|
||||
/* check for username and password */
|
||||
pUser = strtok(pPtr," \t");
|
||||
pPassword = strtok(NULL," \t\r\n");
|
||||
|
Reference in New Issue
Block a user