Which host variable controls duration?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
moose
Posts: 10
Joined: Wed Jun 05, 2013 5:44 pm

Which host variable controls duration?

Post by moose »

Some of my hosts show "N/A" in the duration column. Which variable do I set to get a time?
The Admin> System Profile shows the system time and PHP time are the same and correct. PHP time zone is also correct.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Which host variable controls duration?

Post by abrist »

Are they passive checked hosts who have not received any checks yet? Are they up? You can schedule an immediate check from the host details page.
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.
moose
Posts: 10
Joined: Wed Jun 05, 2013 5:44 pm

Re: Which host variable controls duration?

Post by moose »

I have five hosts.

1. localhost has a duration time and is OK.
2. Host Sim was up and had N/A duration. Sim was then shutdown, nagios reported DOWN and reported a correct down duration. Sim was just powered up and nagios is reporting UP duration correctly. the check is check-host-alive.
3. Host Star is up and has N/A duration. The check uses check_xi_mssql_database. the check runs correctly.
4+5. Hosts Sync and Workhorse is up and has N/A duration. The check uses check-host-alive. The checks run correctly.

What's weird is Sim had N/A duration, but switching it off and then on yielded a correct UP duration.
Unfortunately I cannot turn Star, Sync, and Workhorse on and off.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Which host variable controls duration?

Post by abrist »

Are you using check-host-alive for the host check on Star? If not, you really should, and make the mssql check a service check.
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.
moose
Posts: 10
Joined: Wed Jun 05, 2013 5:44 pm

Re: Which host variable controls duration?

Post by moose »

I can't use check-host-alive for Star because of a firewall. The ping times out.

I do use check-host-alive for Sync and workhorse and they have N/A duration. Does the blinking System Problem: "performance grapher is not running" have anything to do with this?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Which host variable controls duration?

Post by abrist »

moose wrote: Does the blinking System Problem: "performance grapher is not running" have anything to do with this?
Not exactly, but it may be indicative of other issues. To restart the perf grapher, run:

Code: Select all

service npcd stop
killall npcd
service npcd start
If you go to --> Home --> Monitoring Process --> Process Info
Which dots are red?
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.
moose
Posts: 10
Joined: Wed Jun 05, 2013 5:44 pm

Re: Which host variable controls duration?

Post by moose »

service npcd stop
returned NPCD was not running

killall npcd
returned npcd: no processes running

service npcd start
returned NPCD started.

Perf grapher is running. All dots green. TYVM.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Which host variable controls duration?

Post by abrist »

moose wrote:Perf grapher is running. All dots green. TYVM.
No problem, glad to help.
moose wrote:I do use check-host-alive for Sync and workhorse and they have N/A duration
Can you force an immediate check and see if the problem goes away?
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.
moose
Posts: 10
Joined: Wed Jun 05, 2013 5:44 pm

Re: Which host variable controls duration?

Post by moose »

I solved why the duration is N/A. I set the check-host-alive where I defined the host: Host Management> Common Settings> Check command.
Attaching check-host-alive to a host in the Service Management screen gives a duration.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Which host variable controls duration?

Post by abrist »

Great. Locking thread.
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