What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Apache restart and ssl Passphrase on Linux System

Votes:

0

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

apache https linux linux-services prtg

Created on Sep 18, 2019 6:55:01 AM



1 Reply

Votes:

0

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.

Created on Sep 18, 2019 10:46:30 AM by  Dariusz Gorka [Paessler Support]




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.