kepi / IcingaChromedStatus

Extension for Chrome which shows status of Icinga or Nagios
https://chrome.google.com/extensions/detail/imaieifkljkcdepgaeommbdgihollphm
MIT License
32 stars 14 forks source link

my nagios has 23 hosts, but plugin only displaying 21 #12

Closed winksmith closed 10 years ago

winksmith commented 12 years ago

i have no idea as to why, but if i go to the nagios host page it shows 23 hosts. the plugin is only displaying 21 entries. i went to the host details page and the entries between the missing two hosts is completely unremarkable.

kepi commented 12 years ago

Can you please check extension settings if you don't have on advanced tab some regexp's for ignoring hosts? Do you have Hide acknowledged option turned on or not?

Also can you wrote me exact name of those hosts so I can see if there isn't some stupid bug on my side with specific names?

winksmith commented 12 years ago

there is no regex. all filter options remain unclicked. hosts:

    173.255.206.137
    apcpdu-rack8
    appbuild-co5-1
    appbuild-co5-2
    appbuild-vm1
    appbuild-vm2.ems.endace.com
    appqa-atest-01
    appqa-loghost
    appqa-vh-01
    bastet.kicks-ass.org
    ben.geek.nz
    dag
    helios
    ipmi-sys7000-5
    ipmi-sysx5-1
    localhost
    ninjabox24
    soho
    splinter
    stereo
    sys7000-5
    sysbuild-1
    www.google.com

only two are unmatched:

    dag
    appqa-loghost

these two hosts are seemingly the same as all the others hosts.

kepi commented 12 years ago

If it isn't too sensitive information for you and you are able to download your status.cgi page and send it to my email (you should see it in extension page) it will be great help.

You can do it i.e. with commandline wget with:

wget --user=yourusername --password=yourpass https://pat-to-your/icinga/cgi-bin/status.cgi

Or if this is some non-production and not too important icinga installation, you can provide me with temporary access.

winksmith commented 12 years ago

i don't think there's anything sensitive in there, but i'm double checking before sending it to you. stay tuned.

i can tell you that when i go to /nagios/ and click on hosts all 23 are there. when i run nagios/cgi-bin/status.cgi, the two hosts missing are NOT in that list. sounds like a server issue! what could cause that? the host seemed to be configured exactly the same:

Active Checks: ENABLED Passive Checks: ENABLED
Obsessing: ENABLED
Notifications: ENABLED
Event Handler: ENABLED
Flap Detection: ENABLED

that aside, the site i'm connecting to is nagios not icinga if that matters.

kepi commented 12 years ago

Interesting. Nagios should be ok. Do you have any services enabled for those 2 missing servers? I'm not sure why they will not be in status.cgi. We can try to ask on icinga or nagios maillist if you will not find anything odd in your installation.

kepi commented 12 years ago

Hi winksmith, do you have any news about this? Should I try to contact icinga developers if they have some idea? Without access to your installation I can't do much more now.

winksmith commented 12 years ago

i thought i had lost this email! but there it was in my inbox. sorry for the delay.

seeing it here, poked me in the ass to look again. indeed, what's happening is that there are no services for the host. it shows up in the hosts table (/nagios/cgi-bin/status.cgi?hostgroup=all), but not in the status view (/nagios/cgi-bin/status.cgi). i'm adding bogus services (e.g. ping) which i hope will make everything nice.

thanks.

On Wed, Jul 11, 2012 at 10:40:54AM -0700, Kepi wrote:

Hi winksmith, do you have any news about this? Should I try to contact icinga developers if they have some idea? Without access to your installation I can't do much more now.

Mark Smith mark@winksmith.com mark@tux.org

kepi commented 12 years ago

Thanks for more info. I run into this issue when I start with icinga status development but I added ping service same as you and then forgot it :)

I'm leaving this opened as I like to fix it sometime in future.

kepi commented 11 years ago

It is already working in my dev version. Will be fixed in next release.

kepi commented 11 years ago

Hi sorry for long delay. I just start to rewrite it too much :) and don't have so much time I hoped for.

If you are willing to try to fix this in your own code, please locate your chrome directory with extensions (on linux it is ~/.config/google-chrome/Default/Extensions/) and there is directory imaieifkljkcdepgaeommbdgihollphm/0.1.2_0

Here you can find file background.html, edit it with some code editor (vim or i.e. notepad on windows). Just try to replace line 67

url = url+'?host=all';

with

url = url+'?host=all&limit=0';

Then just reload extension (restart browser or in extension page in chrome deactivate it and activate).