Query for generating flap hosts details

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Query for generating flap hosts details

Post 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,
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Query for generating flap hosts details

Post 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?
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Re: Query for generating flap hosts details

Post 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,
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Query for generating flap hosts details

Post 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.
Locked