{"id":1491,"date":"2020-12-15T09:37:06","date_gmt":"2020-12-15T15:37:06","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1491"},"modified":"2020-12-15T09:37:06","modified_gmt":"2020-12-15T15:37:06","slug":"nagios-add-user","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2020\/12\/nagios-add-user\/","title":{"rendered":"Nagios Add User"},"content":{"rendered":"\n<p>Yes, I&#8217;m a creature of habit. I started using Nagios back in 2005 and it was awful. I mean it &#8220;worked&#8221;, but I had no idea what I was doing. Reinstalling, installing, configuring, new jobs&#8230; each time I was learning from my previous mistakes and making it better. It&#8217;s now at the point I can perform most of the work without actually referencing anything else. But the point of this blog is for my own notes, so here goes.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SSH to your nagios server. I use putty from my primary Windows desktop.<\/li><li>Switch to root<ul><li><code>sudo su -<\/code><\/li><\/ul><\/li><li>Create the new web user account and password<ul><li><code>htpasswd \/usr\/local\/nagios\/etc\/htpasswd.users MYNEWUSER<\/code><\/li><\/ul><\/li><li>Enter the password twice<\/li><\/ul>\n\n\n\n<p>Sometimes you&#8217;ll receive an error message about &#8220;You do not have permission to view information for any of the services you requested&#8221;. So we&#8217;ll have to edit the cgi.cfg.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SSH to your nagios server<\/li><li><code>sudo su -<\/code><\/li><li><code>nano \/usr\/local\/nagios\/etc\/cgi.cfg<\/code><\/li><li>Add the MYNEWUSER wherever necessary<ul><li><code>authorized_for_system_information=nagiosadmin,userhere,MYNEWUSER<\/code><\/li><\/ul><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Yes, I&#8217;m a creature of habit. I started using Nagios back in 2005 and it was awful. I mean it &#8220;worked&#8221;, but I had no idea what I was doing. Reinstalling, installing, configuring, new jobs&#8230; each time I was learning from my previous mistakes and making it better. It&#8217;s now at the point I can &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2020\/12\/nagios-add-user\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Nagios Add User<\/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-1491","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1491","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=1491"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1491\/revisions"}],"predecessor-version":[{"id":1492,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1491\/revisions\/1492"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}