1. A computer-implemented method for failure prediction, implemented as an agent, wherein the agent is installed on a machine to be monitored, the computer-implemented method comprising: detecting service data on the machine; accessing a reference database, in which reference service data relating to previously detected failures and maintenance related events are stored; providing a failure pattern; analyzing the detected service data in view of the failure pattern, the analyzing comprising applying a correlation mechanism; generating a prediction for future failures as a result of the analyzed detected service data; and automatically triggering measures to avoid the predicted future failures, wherein automatically triggering measures comprises automatically adjusting parameters of the machine to be monitored.