Page 1 of 1

Reports and Flapping

Posted: Fri Oct 25, 2013 2:37 am
by wiproltdwiv
Hi,

we configured network links in nagios. where we can able to view the attached screen.

1.From the attached screen we are manually copy and paste it in excel to analyse the hosts.. ( is it possible to generate the same in excel or any other option to pull the report ?)

2.In the same attached screen shot. we found some host are flapping between states
i. is it possible to pull the report of flapping host for this network link hostgroup ?
ii. how we can enable or disable flapping ?

pls do the needful for the 3 queries

Re: Reports and Flapping

Posted: Fri Oct 25, 2013 12:55 pm
by abrist
In XI, you can get information from the backend API in XML format. Unfortunately, there is no way through backend url gets to query the status of specific hosts in a hostgroup. But you can use the backend to get all the necessary data in xml, you just need to do some parsing and organization:

Code: Select all

http://<ip>/nagiosxi/backend/?cmd=gethoststatus
http://<ip>/nagiosxi/backend/?cmd=gethoststatus&is_flapping=1
http://<ip>/nagiosxi/backend/?cmd=gethostgroupmembers&hostgroup=<hostgroup>

Re: Reports and Flapping

Posted: Mon Oct 28, 2013 1:24 am
by wiproltdwiv
yeah,

thanks :)

may i get the similar kind of parameters which are available in nagios to pull various reports. which would be helpful for us.

for ex like the below

?cmd=gethoststatus
?cmd=gethoststatus&is_flapping=1
?cmd=gethostgroupmembers&hostgroup=<hostgroup>

Re: Reports and Flapping

Posted: Mon Oct 28, 2013 4:07 pm
by slansing
I'd recommend having a look at this:

http://assets.nagios.com/downloads/nagi ... nd_API.pdf

Now you should be able to access the information you need. :)