Op Screen: Hosts up 48/49

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Op Screen: Hosts up 48/49

Post by cellact »

Hi,
I'm having a weird little issue.
All my hosts are up (Host Status Summary = 49 Up) but the Op Screen insists that one of them is Down and shows 48/49 Up.

Any ideas?

Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Op Screen: Hosts up 48/49

Post by lmiltchev »

Usually it takes some time before the tactical overview section is updated (Unhandled Hosts down section gets updated first).
Did you try refreshing the page? Did you try using a different browser? What does "Tactical Overview" menu show?
Be sure to check out our Knowledgebase for helpful articles and solutions!
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Re: Op Screen: Hosts up 48/49

Post by cellact »

I did try refreshing, logging out and in and from different browers. it comes up the same.

Tactical Overview and Operations Center both show 100% Up.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Op Screen: Hosts up 48/49

Post by scottwilkerson »

Can you run the following from the command line and see if it comes back with a result

Code: Select all

echo "SELECT count(*) as total from nagios_hoststatus WHERE last_hard_state='1';" |  mysql -pnagiosxi nagios
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Re: Op Screen: Hosts up 48/49

Post by cellact »

Sure,

Code: Select all

# echo "SELECT count(*) as total from nagios_hoststatus WHERE last_hard_state='1';" |  mysql -pnagiosxi nagios
total
1
I think the last host I changed status to was done via 'submit passive check result'. maybe that helps.

Weird stuff - I just submitted a down state and then again an up state and now it shows 47/49 hosts up!
What's happening? :shock:

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Op Screen: Hosts up 48/49

Post by scottwilkerson »

In XI can you go to Home -> All Host Problems and see if there are any there

The Opscreen only show unhandled hosts in the host view, but lists the total in the Tactical overview
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Op Screen: Hosts up 48/49

Post by scottwilkerson »

I am not 100% sure if this is related to your problem but we did find a bug in the code which should display things more accurately.

You can download the new component at
http://assets.nagios.com/downloads/nagi ... screen.zip

Just re-install through Admin -> Manage Components
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Re: Op Screen: Hosts up 48/49

Post by cellact »

Hi,
Thanks a lot - that helped me find the wrong line (94) in merlin.php

Code: Select all

$query="SELECT count(*) as total from nagios_hoststatus WHERE last_hard_state='1'";
Should be:

Code: Select all

$query="SELECT count(*) as total from nagios_hoststatus WHERE current_state!=0";
And the same for line 140 (Services)

Cheers!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Op Screen: Hosts up 48/49

Post by scottwilkerson »

That's correct, that was the changes.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked