Services efficiency monitoring (ISPmanager)

From ISPWiki

Jump to: navigation, search

You can monitor the services efficiency using the watchdog utility included in the ISPmanager control panel package. Cron runs the utility periodically (5 minutes intervals are used as default), and the actions that will follow are different depending on the concrete service (see the description below)

If a service is inaccessible, the monitoring program will try to stop it with the appropriate command specified in the service parameters. If all the service processes that haven't been stopped with the standard procedure, use the command

killall -9 process-name

Once you've done this, watchdog will try to start the service with the proper command specified in the service parameters.

To view the monitoring system work detailed information, you can activate logging using syslog for the watchdog process.



To check the web-server effenciecy the monitoring program connects the server main IP on the port 80 and sends the following request:

GET / HTTP/1.1 Host: <IP>

in this case IP is the server's main IP-address. The response will start with "HTTP/1.1". The service is considered inaccessible then this kind of response is not received.


To check the server FTP efficiency (port 21), as well as the servers incoming (port 110) and outgoing (port 25) mail, use the same precedence rule. Monitoring program connects the server's mail IP on the appropriate port and sends the QUIT command. The respond message will start with 220, and with 221 for QUIT. In case you have any other response message or the connection time was more than 30 sec, the service is considered inaccessible


To check the MySQL database server efficiency the monitoring program calls the mysql_connect command with the user name and password specified in the first local MySQL data base server. In case the function returns the zero value and the error is different to "Access denied", the service is down.


To check the domain names server efficiency the monitoring program calls the dig command with the parameters:


in this case the IP is the server's main IP-address, and the DOMAIN is the last created domain] name. If there are no domain zones, instead of the DOMAIN should be specified localhost.

Was this helpful? Yes | No
Personal tools