Luc,
Not sure how to do the perl version I will make a ticket to track
adding an example of this to to the wiki. You should be able to make
the request by passing a perl hash to an xml-rpc proxy object in perl
(of course I don't know what library you should use :( )
-EAD
On Aug 22, 2006, at 11:16 AM, Luc Fortin wrote:
I just used the script that was on the zenoss wiki. After some
playing around with the connection strings, it seems that we had to
specify the username password pair at the front of the URL and /
zport/dmd/ZenEventManager at the end of the URL. This is over port
8080.
Later today, one of my collegues managed to get the proxy server
going, so we can now use the script posted on the wiki as is.
I'm now trying to get a perl version working, since most of our
scripts are Perl already and our expertise is in Perl and not
Python. After trying multiple XML-RPC Perl clients/
implementations, I still can get the event to register. Would you
have a Perl example that we could use as a base ? I know that it
has to do with the format of the data that is being sent to the RPC
server.
Thanks
On 8/21/06, Duncan McGreggor <[EMAIL PROTECTED]> wrote:
On Aug 21, 2006, at 2:55 PM, Luc Fortin wrote:
> I'd like to know if there is a way to send "alerts" to zenoss. I
> have a system that is not viewable from the zenoss system, but I
> have a way to send file based triggers to another machine on the
> same subnet as the zenoss box. Is there a way that I can write a
> script to send the alerts to zenoss?
>
> I've write to write up a quick script to use xml::rpc as described
> on the wiki, but that does not seem to work. I get python errors
> back from the script while trying to connect to the server.
Luc,
Using the XML-RPC API is the way to do what you want. It should work
-- can you send the errors you got? You may want to send your script,
too...
d
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users