REST API: explained to a newby

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eagle_wen
Posts: 1
Joined: Tue Dec 08, 2015 3:59 am

REST API: explained to a newby

Post by eagle_wen »

Hi,

I'm new within Nagios but a customer of me is planning to use it to monitor his complete IT-infrastructure.

My company has a Security Management Platform and we want our system to connect to Nagios.
Because I'm new to Nagios I don't know where to begin with searching this forum, I tried it already but got overwhelmed by all the info in here :-)

I'm aware of macro's that can be written in Nagios to check the state of devices and services. I'm also aware of the existence of an API within Nagios...till that far is my knowledge of Nagios :-)

What I want to do is:

1. Scan Nagios for all configured items and to know if an item is a device, server or service. By scanning Nagios and getting this info I can create on our system an object for each item in Nagios.

2. if a device/server/service is sending an SNMPtrap to Nagios, Nagios should send me this event in a very basic way. I'm not interested in the detail of the SNMP-trap...just the basic 'there is something wrong' event is enough. For instance: when a network switch is going to a broadcast level of 100% for a too long period, this switch is telling Nagios he is to busy. The message to our system would be very basic: system is not OK, so without to know there is something wrong with the bandwidth.

By looking at the macros I have seen that for instance the variables $hostState$ and $ServiceState$ are interesting for me. These would give me enough details. But I don't have a clue how Nagios could send me this info.

Do I have to poll Nagios for this, can I read a database, can it work with triggers,...? A lot of questions :-)

We are developing within Java, don't know this is important but I say it anyhow

So if someone could get me on the right track I would be very grateful

Bye

Werner
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: REST API: explained to a newby

Post by tmcdonald »

I'm thinking this is too much information for a forum post - have you heard of our Quickstarts? We offer a free, one-hour session for new users to answer questions they might have about the software. We set up a WebEx session and get you on the phone so we can cover much more information much more quickly. If you are interested, please use the following page to get started:

https://www.nagios.com/services/quickstart/
Former Nagios employee
Locked