Change default Kaltura monit login

From snippet wiki
Jump to navigation Jump to search

After a fresh kaltura installation it runs its own monit tool. Sadly enough it neither asks for any personal login information, nor disables remote access!

So you have to set a new login withing /opt/kaltura/app/configurations/monit/monit.conf and change the default login at the end:

...
allow admin:monit
...

To any user/password pair you like and restart the monit process by running:

# /etc/init.d/kaltura-monit restart
Shutting down monit:                                       [  OK  ]
Starting monit: Starting monit daemon with http interface at [*:2812]
                                                           [  OK  ]

Now you have to update that login information in the gui by a simple edit in /opt/kaltura/app/admin_console/views/scripts/index/monit.phtml where you find an iframe with embedded login information to port 2812:

<iframe width="100%" height="550" src="//admin:monit@<?php echo $_SERVER['SERVER_NAME'];?>:2812" frameborder="0" class="auto-height"></iframe>