{"id":1346,"date":"2017-08-24T09:03:44","date_gmt":"2017-08-24T14:03:44","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1346"},"modified":"2017-08-24T09:08:31","modified_gmt":"2017-08-24T14:08:31","slug":"install-cacti-ubuntu-17-04","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2017\/08\/install-cacti-ubuntu-17-04\/","title":{"rendered":"Install Cacti Ubuntu 17.04"},"content":{"rendered":"<p>Yeah I know, I&#8217;m usually not one to use a non-LTS ubuntu installation. But I needed to utilize some of the newest tech, so it happened to be on my test machine. And I needed Cacti and LDAP authentication.<\/p>\n<p><strong>Either way, do the usual updates first:<\/strong><br \/>\n<code>apt-get update && apt-get dist-upgrade<\/code><\/p>\n<p><strong>Install Cacti from the repo (good enough, although AZ would tell me not to)<\/strong><br \/>\n<code>apt-get install cacti-spine<\/code><br \/>\nThere are some wizard questions it asks here, just fill them out.<br \/>\n<code>apt-get install php-ldap<\/code><\/p>\n<p><strong>Configure Cacti<\/strong><br \/>\nhttp:\/\/theserversIP\/cacti<br \/>\nLogin with your admin account &#8211; in my case I forgot I had set the password to my root one, so that&#8217;s what I used.<\/p>\n<p><strong>To reset the admin account password back to the default of &#8216;admin&#8217;:<\/strong><\/p>\n<blockquote><p><code>mysql -u root -p cacti<\/code><br \/>\n<code>update user_auth set password=md5('admin') where username='admin';<\/code><br \/>\nProfit<\/p><\/blockquote>\n<p>LDAP Settings:<\/p>\n<blockquote><p>I should note that these work on a Server 2012 R2 Std Active Directory domain with Cacti running version 0.8.8h PHP 7.0.22.<br \/>\n(Configuration > Settings > Authentication)<br \/>\n<code>Select LDAP Authentication<\/code><br \/>\nI picked Guest user &#8220;guest&#8221; and User Template &#8220;admin&#8221; because I just wanted to get this to work for testing &#8211; just allowing all users admin access is NOT a good idea.<\/p><\/blockquote>\n<blockquote><p>Server: FQDN or IP of a domain controller<br \/>\nPort Standard: 389<br \/>\nPort SSL (not used): 636<br \/>\nProtocol Version: Version 3<br \/>\nEncryption: None (plain text ftw)<br \/>\nReferrals: Disabled<br \/>\nMode: Specific Searching<br \/>\nDistinguished Name (DN): blank<br \/>\nRequire Group Membership: unchecked<\/p>\n<p>Group Distinguished Name (DN): CN=Information Technology,OU=Groups,OU=LocalUsers,DC=DOMAINNAME,DC=LOCAL<br \/>\nGroup Member Attribute: member<br \/>\nGroup Member Type: Distinguished Name<\/p>\n<p>Search Base: OU=LocalUsers,DC=DOMAINNAME,DC=LOCAL<br \/>\nSearch Filter: (&#038;(objectclass=user)(objectcategory=user)(userPrincipalName=<username>*))<br \/>\nSearch Distinguished Name (DN): svc.cactildap@domainname.local (this is your ldap service account)<br \/>\nSearch Password: ******* (this is your ldap service account password)<\/p><\/blockquote>\n<p>I should note that the Search Filter could replace &#8220;userPrincipalName&#8221; with sAMAccountName, but this one worked for me. I should also note you should have a service account created for your LDAP lookups &#8211; I create a new svc account for each one (svc.cactildap@domain.tld) so if account lockouts happen etc, AND I have this logon to permissions set to just the domain controllers and my cacti box.<\/p>\n<p>I then opened my browser to the http:\/\/theserversIP\/cacti and used my login svc.cactildap with the password to test. I just used my bsdman account and it worked &#8211; no need to add the domain\\user or user@domain.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yeah I know, I&#8217;m usually not one to use a non-LTS ubuntu installation. But I needed to utilize some of the newest tech, so it happened to be on my test machine. And I needed Cacti and LDAP authentication. Either way, do the usual updates first: apt-get update &#038;&#038; apt-get dist-upgrade Install Cacti from the &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2017\/08\/install-cacti-ubuntu-17-04\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install Cacti Ubuntu 17.04<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1346","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1346"}],"version-history":[{"count":2,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1346\/revisions"}],"predecessor-version":[{"id":1348,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1346\/revisions\/1348"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}