{"id":292,"date":"2010-05-26T13:18:53","date_gmt":"2010-05-26T11:18:53","guid":{"rendered":"http:\/\/blog.fh-kaernten.at\/wehr\/?p=292"},"modified":"2010-07-28T10:44:25","modified_gmt":"2010-07-28T08:44:25","slug":"fun-with-nagios-ndo-nagvis","status":"publish","type":"post","link":"https:\/\/blog.fh-kaernten.at\/wehr\/2010\/05\/26\/fun-with-nagios-ndo-nagvis\/","title":{"rendered":"Fun with Nagios + NDO + NagVis"},"content":{"rendered":"<p id=\"top\" \/>\n<p>Yesterday a student from another study course asked me if\u00a0I can help him to get <a href=\"http:\/\/www.nagios.org\/\">Nagios <\/a>with <a href=\"http:\/\/www.nagios-wiki.de\/nagios\/ndo\/start\">NDO <\/a>support and <a href=\"http:\/\/docs.nagvis.org\/1.4\/en_US\/index.html\">NagVis <\/a>up and running.\u00a0 The main focus of his study course are Network Technologies but for some\u00a0reason <em>nobody<\/em> could help him, hmm lol. So I did the job :-), once more. Nagios is the swiss army knife\u00a0 among the IT infrastructure monitoring systems. It follows the OpenSource Way of life, which promises a big community, a lot of contents concerning problems which could arise , in one word &#8211; \u00a0getting the system up an running should not be a\u00a0big deal. I thought&#8230;..<\/p>\n<p>Linux seems to be a dark horse @<a href=\"http:\/\/www.fh-kaernten.at\/netzwerktechnik-kommunikation\/studienueberblick.html\">Net<\/a>&#8230;.who would have thought it? So&#8230;.first we started with a short overview about Linux distros, and the essential stuff you should know about. Original he came up with <a href=\"http:\/\/www.novell.com\/de-de\/linux\/\">SUSE<\/a>, so first we did a s\\SUSE\\Ubuntu. The Lucid release should suit his needs. The students plan was to compile everything from scratch, humpf, after introducing him into <a href=\"http:\/\/www.nongnu.org\/synaptic\/\">synaptics <\/a>and the build- in-search-function we decided to give the precompiled stuff a try.<\/p>\n<p>It turns out that all needed packages are in universe. Some clicks later we had installed Nagios, MySQL and the Mysql-NDO Module.<\/p>\n<p>After configuring the nagios.cfg and the database accountings\/schema we got the core up and running.<\/p>\n<p>The next step would be to get <a href=\"http:\/\/www.nagios-wiki.de\/nagios\/ndo\/start\">ndo2db <\/a>up.\u00a0 Nd02DB acts as a persistence layer for storing Nagios events and configuration data in the database. The DB is the interface between Nagios and Nagvis. To get your data to the DB you have to run ndo2db in daemon mode and provide the ndomod.o for loading.<\/p>\n<p>The Nagios <a href=\"http:\/\/www.nagios-wiki.de\/nagios\/ndo\/installation\">How To<\/a> speaks about ..<\/p>\n<p><em>broker_module=\/usr\/local\/nagios\/ndo\/ndomod.o config_file=\/usr\/local\/nagios\/etc\/ndomod.cfg<\/em><\/p>\n<p>For at least ubuntu you have to change it to&#8230;.<\/p>\n<p><em>broker_module= \/usr\/lib\/ndoutils\/ndomod-mysql-3x.o<\/em><em> config_file=\/etc\/nagios\/ndomod.cfg<\/em><\/p>\n<p>Don&#8217;t forget to alter the <em>ndomod.cfg.<\/em><\/p>\n<p><em>Check that:<br \/>\n <\/em><\/p>\n<p style=\"padding-left: 30px;\"><a id=\"output_type\" name=\"output_type\">output_typ<code>=unixsocket<\/code><\/a><\/p>\n<p>We run into the problem that first we could not start the nd02db daemon. The problem was a combination between access rights to the *.o module and an sytax error in the <em>ndomod.cfg file.<\/em><\/p>\n<p>After resolving\u00a0it we were able to start the ng2db daemon and after that Nagios with the <em>ndomod-mysql-3x. \ud83d\ude42<\/em><\/p>\n<p>Next step was to bring NagVis online. Since NagVis GUI is written in PHP you have to make sure you have all essential PHP stuff installed<em>. <\/em>Check you configuration<em> <\/em><\/p>\n<p>\/etc\/nagvis\/nagvis.ini.php)<em> <\/em>for the DB schema name\/credentials<em>.<\/em><\/p>\n<p>If you encounter problems to reach NagVis via HTTP:<em> Make sure you have included the <\/em>\/etc\/nagvis\/apache.conf in your apache conf.d folder.<\/p>\n<p>NagVis uses basic authentication, so first you have to login to Nagios and then you could try to call ..\/nagios\/nagvis.<\/p>\n<p>Have fun.<\/p>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;\">\n<h3><a title=\"\u00dcbersetzung Who would have thought it?\" href=\"http:\/\/www.phrasen.com\/uebersetze,Who-would-have-thought-it,87769,e.html\">Who would have thought  it?<\/a><\/h3>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday a student from another study course asked me if\u00a0I can help him to get Nagios with NDO support and NagVis up and running.\u00a0 The main focus of his study course are Network Technologies but for some\u00a0reason nobody could help him, hmm lol. So I did the job :-), once more. Nagios is the swiss &hellip; <a href=\"https:\/\/blog.fh-kaernten.at\/wehr\/2010\/05\/26\/fun-with-nagios-ndo-nagvis\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fun with Nagios + NDO + NagVis<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-student-projects"],"_links":{"self":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":0,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fh-kaernten.at\/wehr\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}