Hi, we have a linux system monitored by PRTG and sometimes we get a http failure, so an apache restart is necessary. I would love to do that automaticaly with PRTG. Is there a way?

The thing is a normal start of the apache doesn't do it, we need to input a ssl passphrase.

Anybody can help with that? Thanx in advance Susie


Article Comments

Hi there,

A go to solution is not available for this issue as far as I know. Maybe other users are troubled with the same issue and found a solution.

From my perspective the best option would be to write a script on the Core Server (Bash or Python), which gets the current status of the sensor:
https://www.paessler.com/manuals/prtg/live_single_object_status#sensor_details
This call must be done authenticated:
https://www.paessler.com/manuals/prtg/http_api#authentication

Afterwards check the "statustext", when the value is not "Up", then fire the command to restart the Apache Server.
This script should run every X minutes, you can achieve this by using crontab:
https://www.adminschoice.com/crontab-quick-reference

Best regards.


Sep, 2019 - Permalink