Apache restart and ssl Passphrase on Linux System
Modified on 2025-06-10 16:06:11 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Important: We no longer maintain this article. The information might be out of date.
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
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
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