In the world of open source, when it comes to monitoring, Nagios is the most preferred choice. But managing multiple Nagios screens can be a daunting task. while looking for a simple solution i came across NagCen.
NagiosCenter is a centralized viewer to show data of several (more than one) Nagios server spreaded in different networks. It uses therefore a parser in python and also an PHP Mysql Web-fronted.
SSH is the most trusted protocol used in today’s world for remote logins and secure file transfers from one machine to another. There are three different ways of authetication when trying to login with SSH protocol:
One of the very worst scenarios for a system administrator is when they forget a password for the root account. That is the same case when a Database admin does the same for the root account for Mysql Database. So to help here, these are the following steps which one can perform to recover the root password back for Mysql database.
Changing Mysql password is one of the very essential & critical task which you need to do while taking care of the database. By default “root” comes up with admin privileges and no password for root. Just to be clear, this root user is different from what your Linux/Unix system root user is, so changing password for this user, won’t change password for root user for operating system.
Mysql stores the password in the “user” table in “mysql” database. To change/update a password, we need to update that table data. That can be done either at the OS level with “mysqladmin” command or either at the Mysql level with sql command.
Deployments are a critical phase of any project. In the “stone age”, developers used to simply scp the files required into production. And there used to be issues when you are dealing with multiple http servers. Keeping all the servers in sync was always the issue.
Then capistrano came into picture. It made deployment of ruby/rails apps very easy. Me and a few other people went ahead and modified it to deploy code into production for php apps as well. But it was a tricky job since capistrano was originally designed to work for ruby/rails apps. Here is a sample capistrano code that sucks out code from svn and pushes it to multiple web servers – and then runs some specific post deployment tasks on them.