Or you can simply go to the Agent folder c:\windows\xpeagent
1. hpdmagent.exe -v to check the version and capture the error message if there is any.
If there is no error from above step, try
hpdmagent.exe -i to reinstall the service, again to capture the error message if there is any.