Host state and response details

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
--JayJay--
Posts: 4
Joined: Sat Aug 23, 2014 7:08 am

Host state and response details

Post by --JayJay-- »

I have configured a Nagios (version 3) monitoring solution for a few hosts, with exim4 email notification on host down, unreachable, recovery state.
The nagios server is syslog server as well, for some important hosts to be monitored.
The nagios configuration is tweaked in the sense that nagios is sending the check_host_alive command to some hosts every 10 seconds.

So far so good.

I am missing a detailed view of the hosts being pinged every 10 seconds, and missing their response as well.

Is it possible to have this granularity, this "zoom functionality", with nagios 3 , out of the box?
Or can this be done with some add on , plugin? If so....which ones?

As I can 't get more detail out of nagios , than you can see in attached picture.
I would like to be able to see every command nagios sends, and every response -if any- as well........
Attachments
host detail view
host detail view
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Host state and response details

Post by slansing »

Well, I believe the most granular way to view data returned from plugins in the web interface would be through Home > Hosts/Services (then clicking on your object to get to the details page) The information shown should be exactly what is being returned by the plugin, so you shouldn't be missing out on any data that has actually been returned to Nagios.
--JayJay--
Posts: 4
Joined: Sat Aug 23, 2014 7:08 am

Re: Host state and response details

Post by --JayJay-- »

When Nagios (or the plugin) is pinging a host every 10 seconds, and gets an ICMP reply (or not).
Aren't these data/events logged one by one in a database?
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Host state and response details

Post by eloyd »

Generally speaking, Nagios only logs state changes. So if you want the specifics of a particular check, you can turn up some debugging in the nagios.cfg and you will see the individual checks (and results) in the nagios.log.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host state and response details

Post by tmcdonald »

JayJay, were you able to get the logging tweaked as per eloyd's suggestion?
Former Nagios employee
--JayJay--
Posts: 4
Joined: Sat Aug 23, 2014 7:08 am

Re: Host state and response details

Post by --JayJay-- »

debugging indeed generates the lines I wanted to see.
But it also generates load, which is substantial as I am running the nagios Core on a raspberrypi with limited resources.

I use fping in combination with tcpdump on a different Pi to record and store the ping and echo.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Host state and response details

Post by eloyd »

Debugging is usually only used for debugging. Is there a reason you need to see every result rather than just state changes? And can you go longer than 10 seconds between pings?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
--JayJay--
Posts: 4
Joined: Sat Aug 23, 2014 7:08 am

Re: Host state and response details

Post by --JayJay-- »

eloyd wrote: Is there a reason you need to see every result rather than just state changes? And can you go longer than 10 seconds between pings?
The nagios system is running in soho environment with frequent internet connection flapping, i.e. the internet router is rebooting at certain moments.

-the fping/tcpdump logfile is another source, besides nagios state changes, in case the internet connection is flapping.
So , maybe not strictly necessary, but a "second opinion" in case things go wrong.

-ping frequency could be lower than every 10 scnds., could be decreased to something between 30 and 60 seconds.
The ping frequency must be higher than it takes the internet router to reboot. Rule of thumb is that it can do that in less than 1 minute.
Last edited by --JayJay-- on Wed Sep 03, 2014 10:29 am, edited 1 time in total.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Host state and response details

Post by eloyd »

I'm curious why you're monitoring this so aggressively, though. And are you monitoring it from inside the environment or from the outside? The reason I ask is that, by understanding what you're trying to accomplish overall, we may be able to help you do things a more efficient way.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Host state and response details

Post by abrist »

I agree. A bit more information concerning the use case would help.
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.
Locked