FastNetMon

Monday, 8 March 2010

Скрипт для фикса "не видения" ISPManager'ом БД MySQL

#!/usr/bin/perl

use strict;
use warnings;

my $result = `/usr/local/ispmgr/sbin/mgrctl -m ispmgr db`;

if ($result && $result =~ /Fatal error: Invalid action db/) {
system ("killall -9 ispmgr");
# print "Found ISPManager MySQL error! Restart ISPManager!\n";
}


Добавляем скрипт в крон через 5-30 минут и живем счастливо.

No comments :

Post a Comment

Note: only a member of this blog may post a comment.