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
Reports and Flapping
-
wiproltdwiv
- Posts: 281
- Joined: Sat Sep 08, 2012 12:52 am
Reports and Flapping
You do not have the required permissions to view the files attached to this post.
Re: Reports and Flapping
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>Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
wiproltdwiv
- Posts: 281
- Joined: Sat Sep 08, 2012 12:52 am
Re: Reports and Flapping
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>
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>
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Reports and Flapping
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.
http://assets.nagios.com/downloads/nagi ... nd_API.pdf
Now you should be able to access the information you need.