![]() ![]() Look for httpd port 2812, modify the following entries. Open monit configuration file /etc/monitrc. By default, monit listens on 2812 port, but it needs to be set up. Monit provides a web interface for process monitoring. Set logfile syslog Set up monit web interface This can be altered as per your need by changing the below line.Ĭhange log file by editing the following line: ![]() The main configuration file is /etc/monitrcīy default, monit is set to check the services at an interval of 1 min. Once monit is installed, you can add programs and processes to the configuration file. Start monit by using the following command. Monit is able to do automatic maintenance, repair, and run meaningful causal actions in error situations. With Monit, system status can be viewed directly from the command line, or via the web browser. Then click Next > New Install > Next > FinishĪlso please, please… PLEASE change the default admin password.Monit is a free, open source process supervision tool for Linux like operating systems. Navigate browser to of the server you installed it on]/~cacti # directory, remove the "UserDir disabled" line above, and uncommentįinally all you need to do is restart httpd. # To enable requests to /~user/ to serve the user's public_html So we will deny it by default and only allow it # of a username on the system (depending on home directory # UserDir is disabled by default since it can confirm the presence Now time to update the apache settings to allow cacti. $database_password = "" Īdd the following to your crontab: */5 * * * * php /home/cacti/public_html/poller.php > /dev/null 2>&1 The following are the lines you’re looking for: $database_username = "cacti" As well you will need to uncomment $url_path and update it. Now update the config file to have the correct username and password to MySQL. $ chown -R cacti:cacti /home/cacti/public_html $ mv cacti-0.8.8a /home/cacti/public_html $ mysql -u root -p cacti GRANT ALL ON cacti.* TO IDENTIFIED BY '' Then go to Customize > WWW (HTTP) > Close > OK > Yes $ curl -O $ yum install php mysql-server php-mysql php-snmp php-gd php-ldap rrdtool net-snmp-utils Also I assume that you are working from a base installation of CentOS and know at least generally what you’re doing (for instance, if you have MySQL installed, you shouldn’t go about the process of installing mysql-server, starting it and doing the secure install). But everyone needs to remember how lazy I am when it comes to systems that should not be directly web-accessible (even though in about 2 weeks you’ll hear that people want access to it from the outside). Just as a general note before we begin the install process, yes I’m aware you could have used iptables instead of system-config-firewall and in fact it would be probably be better to use iptables. One of these days I’ll post up an install and configuration guide for Percona’s Cacti scripts but then again it did take me nearly a year to finish this post… Installing Cacti 0.8.8a As well it is extremely flexible when it comes to custom metric monitoring. It’s always nice to see what’s happening, but it’s even better to see the historical data so that you can use it to help give insight future needs. This level of insight crucial for sysadmins once you get above a few servers or when you have that nagging performance problem that “occasionally” happens. Cacti is a RRDTool based graphing solution for server performance monitoring. ![]() Of all of the tools I’ve been evaluating recently for server performance monitoring cacti has to be one of my favorites (mind you I loathe actual cacti, far too many spines have embedded themselves in my flesh…). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |