Can nagios be configured to send notifications using web services? - web-services

From reading this article , it looks like Nagios Core is configured out of the box to send out notifications using email.
The Helpful Resources section does mention alternate notification mechanisms. I was wondering if there is a way to configure Nagios to send out notifications using web services.
Has anyone tried this before. Could someone please point me to some useful resources/links online.

Nagios can be configured to call any script (see service_notification_commands in contact definitions and command definitions in command.cfg), so, just provide a script which then calls a webservice (e.g., using wget, curl or any other technology).
See https://serverfault.com/a/480587/237109.

Related

Check details of SMS in RingCentral

I am using Python SDK for sending SMS via programing. I will be integrating the application with a web application. SMS is working fine with Python SDK.
Is there any way to check the history of SMS that I have send using the Python SDK?
How can be done with an API where I get all the details of my SMS history.
So far I can check the details from RingCentral online account and get the details. But I want to get it via API. What is the option on that?
Call Log is one of the the way to check the history
https://developers.ringcentral.com/api-reference
You can find the endpoints to check sms history in the Call Log and "Messages" sections.
Alternately you can get the history in RingCentral App's Settings section in logs.

How to integrate service now with nagios core?

i have installed the nagios core. and i want integrate the service now with nagios core open source.
I didnt find any documents regarding. could you help me with that.
Either just send an email to service now who will process it, or write a command that calls the service now api.
E.g. an event handler
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/eventhandlers.html
An email should be enough I would think....

Does StackDriver support Syslog protocol?

Does StackDriver support Syslog protocol? if so, can someone share an example?
For context, I'm looking to write logging entries to StackDriver using Syslog protocol. I've looked through the documentation and haven't a way to do so. So, far the closes approach seems to be using StackDriver agent. However, I want to leverage API Gateways such as Apigee, which support Syslog protocol through Message Logging Policy.
I know that REST API could be leveraged to send these entries. However, I'm trying to avoid creating additional HTTP layers.
Any help is appreciated. Thanks in advance!
It's not supported. Confirmed by the team. I have ended up implementing a Node.js wrapper of the REST API using service account credentials for OAuth. I will publish the package in NPM for anyone who wants to leverage same.

Invoking a web service API by using Text Message

Now I am creating an iOS application. I also implemented some web services. My requirement is : "The user should be able to call a web service API by Sending a Text Message(SMS)". After a lot of research I found out that there a provider called Clickatell(http://www.clickatell.com/). But I don't know how can I configure it? Please help me in configuring this. Or Is there any other APIs or SMS gateways providing this service?
Disclaimer, I do developer evangelism part time at Nexmo.
Here are a few SMS APIs that I've used (I've not really used Clickatell, but I've gone through the signup process, and the following APIs seem a lot simpler to use):
Nexmo
Twilio
Tropo
All three APIs are straight forward REST/HTTP APIs.
You can call the API directly from your mobile application, however, you should consider if you really want to then compile your API credentials into your application. It may be better to host a kind pf proxy that your application uses - here's some example code used as a verification service, but it's essentially the same concept: https://github.com/Nexmo/Verify
I would suggest to take a look at Mogreet's new Developer Web Site
Very easy to use REST/HTTP APIs and very powerful. It supports sending SMS/MMS with awesome quality for all media types.

how to publish and discover a java web service

I am new to developing web services using java. I have an academic project where I need to do dynamic service composition. For that I can't directly create a service-client for a particular service because if I do so then that client will call that particular service only. Client need to search various web services and then out of those services select any one at run time and also call that service at run time.
I was able to develop the web service(JAX-WS) using Eclipse(indigo), I also created the client for that web service and every thing is working fine. Now my problem is that while creating the client I am hard coding the client to call that particular web service only(since I am creating the client using the WSDL file of the service). However I actually need to call any one of the searched service, but for that I need to publish the service some where then discover it and then call it.
I tried publishing the service to juddiv3. But on juddiv3 I could only publish the sample service supplied with the juddiv3. When I try to publish service created by me then it is not getting displayed in the group of published services.
Is there any other UDDI server which I could install on my local machine and then publish and discover the service from that. Also I was not able to figure out how to create a client that will modify itself at run time to call any one service out of various searched services.
Kindly provide the necessary steps and code.
Thanks
You can use jUDDI (http://juddi.apache.org/ ).
juddi is based on UDDI v2.0, v 3.0 .
Here, you can publish as well as discover your web service.
For integration, you have to make some application which integrates with jUDDI.
But I think for your academic project, and for your purpose, jUDDI is best suitable! ( :) )
jUDDI has a boat load of examples in the source code trunk. You may want to check them out. It's difficult to guess what the problem is from the little information you've provided. Consider contacting the jUDDI team for further assistance. http://svn.apache.org/repos/asf/juddi/trunk/juddi-examples/. There's also additional document for working with UDDI in the jUDDI user's guide, which is at the jUDDI web site
You cannot directly publish on jUDDI. You need to create publisher entities in jUDDI server also. You'll find Rename4Sales and Rename4Marketing examples in 'Classes' folder in the standalone server's juddi application. Use these XMLs as your basis and create your own entity. You also need to configure the server's login credentials.
I suggest you follow the tutorials on jUDDI blog.