Nagios

Hi,

Does anybody know of an interface from Nagios to Servoy ?

I am desiging a ITSM system and would like to be able tot receive events from Nagios.

One way would be to have nagios send an email and trap that using the exchange plugin from It2Be.
I am already using that plugin to receive/send/reply emails from/to customers

Regards,

Hi Hans,

I’m not so much into Nagios, but checking out the website, I came across the add-ons.
Viewing the api-chapter I found: SOAP - Nagios Exchange

Seems to me that this could work using the webservice plugin (Paul Bakker’s plugin) for Servoy…

Hope this helps

EDIT: or this JSON - Nagios Exchange using the new webservice possibilities of Servoy.

I don’t think SOAP is the same as REST. Servoy uses REST.

Hi Robert

I meant 2 different things: SOAP as in a Servoy-triggered situation using Paul’s plugin: Plugin 4: dynamic WebService Invoker - Classic Servoy - Servoy Community

or the JSON possibilities to have a Nagios-triggered situation using the 5.0 REST webservice plugin of Servoy

Thanks Guys,

I’ll look into this.

Regards,

mboegem:
Hi Robert

I meant 2 different things: SOAP as in a Servoy-triggered situation using Paul’s plugin: Plugin 4: dynamic WebService Invoker - Classic Servoy - Servoy Community

or the JSON possibilities to have a Nagios-triggered situation using the 5.0 REST webservice plugin of Servoy

Hi Marc,

Paul’s plugin can’t deal with complex type, which is the case of the Nagios web service, if I look at the wsdl here
http://www.i-xs.de/nagiosws/nagiosws.wsdl
so this won’t work.

As for JSON, the web sercices capabilities of Servoy are so that Servoy can act as a Web service server, not as a client.

To emulate a REST client, you will have to use the http plugin (although I’m not sure if you will be able to do more thant GET and POST with it, for other http methods like PUT/DELETE, you will probably have to create you own plugin using the apache HttpClient or HttpCommons).

EDIT: I just saw that you can use the put() method with the http plugin, post with a Poster object and get of course…
No sign of delete, though.

ptalbot:
Paul’s plugin can’t deal with complex type, which is the case of the Nagios web service, if I look at the wsdl here
http://www.i-xs.de/nagiosws/nagiosws.wsdl
so this won’t work.

Unfortunately, I’m not so familiar with different types and haven’t looked very deep into the specifications of this extension as well.

As for the JSON extension, this way the JSON is generated from Nagios through this extension to Servoy, so I guess Servoy should be server indeed.

Maybe Hans can explain a bit more on his thoughts of data exchange.
Nagios pushing data seems easy using JSON, but on the other side: if the Servoy webservice is down due to maintenance Nagios can not push this data…