Posted on 2010-02-05 11:13:42.744689-08 by tayun
Problem with enabl_watch in Module
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
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.