Archived community.zenoss.org | full text search
Skip navigation
24513 Views 1 Reply Latest reply: Oct 15, 2009 12:41 PM by Ryan Matte RSS
sjacobs Rank: White Belt 63 posts since
Aug 26, 2009
Currently Being Moderated

Oct 15, 2009 12:05 PM

XML-RPC Unable to clear event

Hey

 

I seem to have a problem with XML-RPC.

 

Via XML-RPC i can create events. However i also want to Clear events from XML-RPC and that does not seem to work

Create events works with this command...

 

Create events :

$serv = RPC::XML::Client->new('http://<user>:<passowrd>@<servername>:8080/zport/dmd/ZenEventManager');
%evt = ('device' => 'TEST', 'component' => 'Webinject', 'summary' => 'TEST' , 'severity' => 5);
$args = RPC::XML::struct->new(%evt);
$serv->simple_request('sendEvent', $args);

But this does not work ... and is this even the correct way? I know I know that normally zenoss should create events but i have a script that currently mails when something is wrong that i want to report to zenoss....

Please help ...

Clear events:

$serv = RPC::XML::Client->new('http://<user>:<passowrd>@<servername>:8080/zport/dmd/ZenEventManager');
%evt = ('device' => 'TEST', 'component' => 'Webinject', 'summary' => 'TEST' , 'severity' => 1);
$args = RPC::XML::struct->new(%evt);
$serv->simple_request('sendEvent', $args);

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points