I wanted to get input from the group on if anyone had come up with a good way to navigate users to Nagvis maps specific to their login.
We monitor customer networks as well as our and I would like for our staff to be able to view all maps but have customers only see their own maps. At the moment each network group would have a corresponding host called site map. So a host might be called SiteB-Mesh-Sitemap which is the member of the sitemap template. The sitemap template just has a dummy check bound to it, but more importantly it has a management url that can link us to our map Here is an example of the management url, as long as your Sitemap shares the name of your mapname it will magically link. http://opsview-server/nagvis/nagvis/index.php?map=$HOSTNAME$ So that is one way to link a user to a site specific map but they have to know to click on the SiteMap "Manage By Sitemap" so that's hardly intuitive. I would prefer to replace the default Nagios Maps link with a page that would find maps you were eligible to see. The big trick is how to link a user to only maps he has rights to. At the moment Nagvis only allows you to specify users or EVERYONE, so instead of trying to keep up with users on a per map basis I would move or hide the main nagvis menu I guess first thing would be I would have to figure out who was logged on, not sure how to do this yet as I haven't dealt with user authentication in perl previously. Once I determine who the contact is I would need a index of maps and mapped hosts (maybe parse nagvis config files and build the index periodically?) I would need a list of authorized hosts (at least this is in a database already) The intersection of authorized hosts and mapped hosts would represent maps the user was eligible to view. I think this is all possible I just wanted to see if anyone else was working on this already. Also looking at the current news for Nagvis they reference a merlin MySQL backend so I'll have to see if there is anything useful there. Taken from http://www.nagvis.org/ "Secondly we added the backend called MerlinMy. This backend connects NagVis to merlin <http://www.op5.org/community/projects/merlin> MySQL databases. The merlin database will be used as backend for Ninja a new webinterface for Nagios." James Whittington VC3, Inc.
_______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/listinfo/opsview-users
