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; and generating a prediction for future failures as a result of the analyzed detected service data.