![]() I will be creating another guide soon as well but using CentOS instead of Ubuntu.īig thanks to the following authors/websites, they proved invaluable.Ubuntu is distributed on three types of images described below. I am still very limited in my knowledge, but have had a good time learning linux, cacti and nagios. If you require assistance of any kind in relation to my guide, just post here and I will do my best to help out. I hope this can help a few of you out there. I am happy to learn and welcome feedback. Paste the script that is found in this page - look in the "NDO database configuration" section: Ĭacti: Nagios: Webmin: PhpMyAdmin: Let me know if I did anything wrong here, duplicated steps, could do things a better way. usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgĬp src/ndomod-3x.o /usr/local/nagios/bin/ndomod.oĬp config/ndomod.cfg /usr/local/nagios/etc/ndomod.cfgĬhmod go+r /usr/local/nagios/etc/ndo2db.cfgĬhmod go+r /usr/local/nagios/etc/ndomod.cfg Ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios configure -with-nagios-user=nagios -with-nagios-group=nagios Htpasswd -c /usr/local/nagios/etc/ers nagiosadmin Nano /usr/local/nagios/etc/objects/contacts.cfg Settings > Misc > Subnet to scan - enter the subnet you want to scan Insert: /usr/local/nagios/var/rw/nagios.cmd to "Nagios Command File Path" box Settings > NPC tab > check Remote Commands Plugin Management > Install All Plugins (click blue arrow) and then Enable All Plugins you want to use (green arrow) User Management > admin > check Plugin Management > Save Settings > Poller > change Poller Type to Spine > Save Patch -p1 -N Path > Spine Poller File Path = /usr/local/spine/spine > Save ![]() Update the sql settings in this file to reflect correct settings Mv /tmp/cacti-spine-0.8.7g/ /usr/local/spineĬp /usr/local/spine/ /usr/local/spine/nf Verify in phpmyadmin that the cacti db is no longer emptyĪdd the following line to the end of the file:Ĭode: Select all */5 * * * * cactiuser php5 /var/www/cacti/poller.php > /dev/null 2>&1 Spine Mysql –u root –p cacti < /var/www/cacti/cacti.sql ![]() Select "Create database with same name and grant all privileges" Login to phpmyadmin via Click on the Priveledges tab > Add a new User Take all the defaults all the way through the installation In vCenter, right click VM and choose Guest > Install/Upgrade VMware tools Login to webmin via Webmin > Webmin Configuration > Install theme > from local fileīrowse to /tmp and choose theme-stressfree-2.10.tar.gz Passwd (this sets the root password, needed for webmin to work, so if you don't want webmin you can skip this part)Īpt-get install php5-gd php5-mysql php5-cgi php5-snmp -yĪpt-get install snmp snmpd libnet-snmp-perl libsnmp-perl -yĪpt-get install linux-headers-$(uname -r) -yĪpt-get install libldap2-dev libsnmp-dev -yĪpt-get install libconfig-inifiles-perl libcrypt-des-perl libdigest-hmac-perl libdigest-sha1-perl libgd-gd2-perl -yĪdd the following lines at the end of the file Postfix Configuration - mail name: Your FQDN Software selection: OpenSSH server, LAMP server, Mail server Install security updates automatically (This is my preference, not necessarily your preference) Partition Disk: Guided - use entire disk and set up LVM (LVM makes it easier to resize in the future) NDOUtils 1.4b7 (b9 is reported to be very buggy and in fact didn't work for me, so this is why I chose b7) Getting postfix setup correctly to use gmail to send notifications to email and sms (using providers email addresses, ie Machine (This is simply what I used, you can change this to your liking) *NOTE* The TKL lamp stack is based on Ubuntu 10.04.1 LTS, so there may be some variations not noted in my instructions. This will skip you forward to the VMware Tools step. If you aren't comfortable enough installing an OS in your VM environment or on your dedicate machine, then I recommend taking a look at this excellent website run by a great group of people: I don't really go into how to use or configure Cacti or Nagios, I just get you to the point where they are all working and configured at what I consider the minimum. This guide isn't 100% complete yet, but the bulk of it is done and tested, so I wanted to share this in case someone out there is looking for such a guide to help them out. I am a beginner Linux user and I found it somewhat difficult to find information that was tailored to a beginner, so this is the compilation of all the research I did in order to obtain my desired end result. The purpose for this is to have trending data, monitoring and alerting all from within 1 GUI, Cacti. I have put together what I feel is a very straight forward guide that walks you through installing Cacti and Nagios on the same machine with every command needed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |