Page 1 of 1
Which host variable controls duration?
Posted: Thu Jun 06, 2013 1:22 pm
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.
Re: Which host variable controls duration?
Posted: Thu Jun 06, 2013 1:40 pm
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.
Re: Which host variable controls duration?
Posted: Thu Jun 06, 2013 2:09 pm
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.
Re: Which host variable controls duration?
Posted: Thu Jun 06, 2013 2:36 pm
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.
Re: Which host variable controls duration?
Posted: Thu Jun 06, 2013 2:50 pm
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?
Re: Which host variable controls duration?
Posted: Thu Jun 06, 2013 3:05 pm
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?
Re: Which host variable controls duration?
Posted: Thu Jun 06, 2013 3:40 pm
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.
Re: Which host variable controls duration?
Posted: Thu Jun 06, 2013 4:17 pm
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?
Re: Which host variable controls duration?
Posted: Thu Jun 06, 2013 11:08 pm
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.
Re: Which host variable controls duration?
Posted: Fri Jun 07, 2013 9:38 am
by abrist
Great. Locking thread.