This is my first attempt at leveraging zenoss and I am still on the fence. Therefore, I thought that I would ask for some advice...
Zenoss = version 3.0
OS = Ubuntu 10.04 LTS (up to date)
Zenoss was installed via apt-get and seemed to install just fine.
Post the installation and subsequent "discovery" and then moving devices around into appropriate /Device/ classes my devices have started to disappear.
The problem is that when I use "IE, FF, or Chrome" my devices which originally totaled 30 now only total 6 devices in the device view (http://10.20.30.202:8080/zport/dmd/itinfrastructure) BUT in the network view (http://10.20.30.202:8080/zport/dmd/networks) the proper number of device "30" show up with links that can take me to the actual device, BUT I can not see it in the devices view???.
So we have a number of missing devices???
I have followed the suggestion in the below article to:
But, still no joy,,, I have restarted the services (/etc/init.d/zenoss-stack restart) and even rebooted the box. Again, no joy...
How can I manually refresh the database or rebuild it without having to delete the devices and start again - which would really, really, suck...
Thanks in advance.
That article's a bit inaccurate. Try running:
zencatalog run --createcatalog --forceindex
If that doesn't get them back, it isn't a catalog issue. Do you see the correct total of devices in the left pane tree on the Infrastructure page? Or does that say 6 as well? That is, do you see "DEVICE CLASSES (30)" but only six rows are visible? Or does it say "DEVICE CLASSES (6)"?
Ian, thank you very much for the reply.
"DEVICE CLASSES (6)" and in the network view it shows 30. Device classes is "not correct".
I used the command you suggested "zencatalog run --createcatalog --forceindex" as the user zenoss - is that correct? ( i assume yes).
Ok.. So, things are now even weirder. Now DEVICE CLASSES is (0) "zero", Crazy as in the network view all 30 devices show up and are working perfectly.
Any ideas on where I should look next or how one can correct this odd situation?
Any thoughts on what would cause this on a clean install?
Thanks in advance,
zencatalog run debug is not a valid command, actually, which is why you're getting the traceback (though we should print usage or something, of course). Can you confirm that you ran zencatalog run --createcatalog --forceindex?
Thank you for the response.
Yes the command was run as per the suggestion and noted above:
"I used the command you suggested "zencatalog run --createcatalog --forceindex" as the user zenoss - is that correct? ( i assume yes)."
Any thoughts on a way to recover from this problem?
Did you change the Production States/State Conversions in Advanced, Settings from their default values of:
And now you see the count in the left column but not in the device view on the right? I did this and changed the names and numeric value, then none of my devices displayed. If so, try changing the Production State filter to display it. It looks like there is a bug that the filter is always the default settings and if you change them, it won't show the device. I made a script to pass to zendmd to force a device to a certain state (after I changed it and it disappeared), prodstate being Production in this example:
I have the same issue after upgrading to 3.0, on Debian 5.0.5
In my case the servers that are missing from the device-list were 'dev' servers, and I notice that there is no 'dev' option from the drop down list of production state, which is presumably why they never show up.
I confirmed this by accessing a device via the network lists and changing the production state to test, and it was then available in the device list with the correct filter applied.
So my question is what happened to 'dev' as I don't see any references to it now in the updated documentation.
Or alternatively how to I add dev to the options for the production state drop down list.
In addition I have
In the Production States/State Conversions list in Advanced, Settings mentioned in the previous post.
Okay, so, good point all on the Production State combo being fixed on the default values! Oversight; I believe it is dynamic where it is used elsewhere (device status page, for one). I made a ticket and proposed it for 3.0.2: http://dev.zenoss.org/trac/ticket/7117.
suntzu, I'm a little stumped. Let's try just searching for devices raw. Fire up zendmd and run:
from Products.Zuul.interfaces import ICatalogTool ICatalogTool(dmd.Devices).search('Products.ZenModel.Device.Device').total
Hopefully that'll give you the right number of devices.
I would like to thank you very much for your help and support on this problem.
Sadly, I ended up blowing away the install and starting again. Thus far things are going smooth. If I run into the "weird error" again, I will give this recommendation a try.
Again, thanks for the help.
I having the same issue, with the same setup.
Have 42 devices, only 28 visable... untill I try the command line fix... then 0 devices are visable.
I ran the zendmd command, and it reports 0 devices.
Okay, let's figure this out. I've still not been able to reproduce this bug myself, so I'm sort of glad somebody else is.
Just to confirm, you had the wrong number of devices, then you ran:
zencatalog run --createcatalog --forceindex
And then you had 0 devices in the UI, and no devices in the catalog?
Can you please check $ZENHOME/etc/zencatalog.log? That nothing got indexed confuses me; hopefully there's a traceback or something to explain it.