REST API: explained to a newby
Posted: Tue Dec 08, 2015 9:39 am
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
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