Page 1 of 1

Query for generating flap hosts details

Posted: Fri Dec 06, 2013 7:46 am
by wiproltdwiv
Dear Team,
Please help us with the query for generating Flapping Host Details from XI, for Eg hosts which flapped for 5 times, 10 times & 20 times etc...

waiting for your revert

Regards,

Re: Query for generating flap hosts details

Posted: Fri Dec 06, 2013 10:24 am
by slansing
We need more specifics than that. What/how are you trying to query? Are you trying to see how many hosts/services were flapping in a given time frame?

Re: Query for generating flap hosts details

Posted: Mon Dec 09, 2013 12:14 am
by wiproltdwiv
Team, we are using below URL to get the complete flapping host details.
http://<ip>/nagiosxi/backend/?cmd=gethoststatus&is_flapping=1

same way pls help us on how to get the host/service details which is flapped for 5 times, 10 times etc..( hosts having 5 flaps, 10 flaps, .. )

in other words, we need to extract details for only (5, 10, 15...) times flapped host/service.

Regards,

Re: Query for generating flap hosts details

Posted: Mon Dec 09, 2013 10:27 am
by slansing
There is currently no way to extract this information as flapping is determined by the status of the last 21 check attempts What you are asking is be able to pick and choose hosts/services that have

A. either entered into a flapping state in the past "5, or 10 times"

B. Have stayed in a flapping state for a given amount of time? It sounds like?

I'm not sure about the feasibility of this, you could grep through the nagios logs and output <objectname> in a list as you should see FLAPPING information there.