|
I got the error
"Can't enable watch of test: 520 enable error, unknown watch" when I try to run the following code (the code ran for a few years without any problem)
#!/usr/bin/perl
use Mon::Client;
use Sys::Hostname;
$host = hostname();
$service = "test";
@services = ('test','ping');
$c = new Mon::Client (
host => "moni",
port => 2233
);
$c->connect();
%s = $c->list_opstatus;
$c->enable_watch($host)
or die("Can't enable watch of $host: ", $c->error(), "\n");
what is wrong and how should I fix it?
Thanks for the help in advance |