tayun has asked for the wisdom of the Perl Monks concerning the following question:
I got the error
"problem enabling host (enable_watch) (Bad file descriptor)" 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','diskspace', 'ora-listener','ping'); $c = new Mon::Client ( host => "moni", port => 2233 ); $c->connect(); %s = $c->list_opstatus; $c->enable_watch($host) || die "problem enabling host (enable_watch) ($!)\n";
what is wrong and how should I fix it?
Thanks for the help in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with enable_watch
by ikegami (Patriarch) on Jan 29, 2010 at 22:00 UTC | |
by tayun (Initiate) on Feb 01, 2010 at 16:35 UTC | |
by ikegami (Patriarch) on Feb 01, 2010 at 17:14 UTC |