{"id":7217,"date":"2013-07-08T07:30:00","date_gmt":"2013-07-08T05:30:00","guid":{"rendered":"http:\/\/nolabnoparty.com\/?p=7217"},"modified":"2014-05-04T13:15:57","modified_gmt":"2014-05-04T11:15:57","slug":"installing-nagios-mobile-centos","status":"publish","type":"post","link":"https:\/\/nolabnoparty.com\/en\/installing-nagios-mobile-centos\/","title":{"rendered":"Installing Nagios Mobile on CentOS"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 10px auto 5px; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"nagiosmobile01\" alt=\"nagiosmobile01\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/07\/nagiosmobile01.jpg\" width=\"602\" height=\"202\" border=\"0\" \/><\/p>\n<p>How to install the Nagios Mobile interface to display the <strong>network status<\/strong> directly on your mobile phone.<\/p>\n<p>Keeping the network up and running is the main duty of every system administrator and with Nagios is possible to have all the info directly on <strong>mobile devices<\/strong>.<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Linux CentOS 6 minimal<\/li>\n<li>Working Nagios environment<\/li>\n<li>Nagios Mobile web interface<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>Procedure<\/h2>\n<p>From the <a href=\"http:\/\/www.nagios.org\/download\/frontends\/#mobile\" target=\"_blank\" rel=\"noopener\">Nagios Frontend<\/a> web page, download the <strong>Nagios Mobile interface<\/strong> you like and unpack it.<\/p>\n<p><span style=\"color: #0000a0;\"># wget http:\/\/assets.nagios.com\/downloads\/exchange\/nagiosmobile\/nagiosmobile.tar.gz<br \/>\n# tar \u2013vxzf nagiosmobile.tar.gz<br \/>\n# cd nagiosmobile<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border: 0px;\" title=\"nagiosmobile02\" alt=\"nagiosmobile02\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/07\/nagiosmobile02.jpg\" width=\"600\" height=\"246\" border=\"0\" \/><\/p>\n<p>Edit the <em>include.inc.php<\/em> file and set the <strong>files path<\/strong> to match the correct location.<\/p>\n<pre class=\"brush: shell; gutter: true\">$STATUS_FILE\u00a0 = &quot;\/var\/nagios\/status.dat&quot;;\r\n$COMMAND_FILE = &quot;\/var\/nagios\/rw\/nagios.cmd&quot;;\r\n$CGI_FILE = &quot;\/etc\/nagios\/cgi.cfg&quot;;\r\n$OBJECTS_FILE = &quot;\/var\/nagios\/objects.cache&quot;;\r\n$BASE_URL = &#039;\/nagiosmobile&#039;;\r\n$TTL = 30;\r\n$USER = &#039;&#039;;<\/pre>\n<p><span style=\"color: #0000a0;\"># vi include.inc.php<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"nagiosmobile03\" alt=\"nagiosmobile03\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/07\/nagiosmobile03.jpg\" width=\"600\" height=\"214\" border=\"0\" \/><\/p>\n<p>Edit the <em>INSTALL.php<\/em>\u00a0file and set the <strong>target directory<\/strong> for the installer.<\/p>\n<pre class=\"brush: shell; gutter: true\">\/\/target directory where nagiosmobile&#039;s web files will be stored\r\ndefine(&#039;TARGETDIR&#039;,&quot;\/usr\/local\/nagiosmobile&quot;);<\/pre>\n<p><span style=\"color: #0000a0;\"># vi INSTALL.php<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"nagiosmobile04\" alt=\"nagiosmobile04\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/07\/nagiosmobile04.jpg\" width=\"600\" height=\"168\" border=\"0\" \/><\/p>\n<p><strong>Run<\/strong> the installer.<\/p>\n<p><span style=\"color: #0000a0;\"># .\/INSTALL.php<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"nagiosmobile05\" alt=\"nagiosmobile05\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/07\/nagiosmobile05.jpg\" width=\"600\" height=\"175\" border=\"0\" \/><\/p>\n<p>Edit the configuration file <em>\/etc\/httpd\/conf.d\/nagiosmobile.conf<\/em> and set the directory location of your <strong>htpasswd.users<\/strong> file.<\/p>\n<pre class=\"brush: shell; gutter: true\">AuthUserFile \/etc\/nagios\/htpasswd.users<\/pre>\n<p><span style=\"color: #0000a0;\"># vi \/etc\/httpd\/conf.d\/nagiosmobile.conf<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"nagiosmobile06\" alt=\"nagiosmobile06\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/07\/nagiosmobile06.jpg\" width=\"600\" height=\"119\" border=\"0\" \/><\/p>\n<p>To access the Nagios Mobile web interface, from your <strong>browser<\/strong> type the address:<\/p>\n<blockquote><p>http:\/\/IP_server\/nagiosmobile<\/p><\/blockquote>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"nagiosmobile07\" alt=\"nagiosmobile07\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/07\/nagiosmobile07.jpg\" width=\"539\" height=\"448\" border=\"0\" \/><\/p>\n<p>To access Nagios system <strong>using mobile devices <\/strong>like Android and iPhone, you can find some useful apps directly on their stores. In this example the screenshot has been taken from the Android app <strong>aNag<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"nagiosmobile08\" alt=\"nagiosmobile08\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2013\/07\/nagiosmobile08.jpg\" width=\"281\" height=\"500\" border=\"0\" \/><\/p>\n<p>To access your Nagios system from outside you can use the <strong>VPN connection<\/strong> or, better solution,\u00a0 a <strong>dedicated Public IP<\/strong>.<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/images\/firma.jpg\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to install the Nagios Mobile interface to display the network status directly on your mobile phone. Keeping the network up and running is the main duty of every system administrator and with Nagios is possible to have all the info directly on mobile devices.<\/p>\n","protected":false},"author":3,"featured_media":7209,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"linkedin_93tdZWzMZc_93tdZWzMZc":"","facebook_2879994398731222_17841400390232720":"","twitter_113568041_113568041":"","mastodon_115463926174894442_115463926174894442":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[898,901,902],"tags":[672,634,624],"class_list":["post-7217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring-en","category-nagios-en","category-plugins-en","tag-mobile-en","tag-monitoring-en","tag-nagios-en","has_thumb"],"_links":{"self":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/7217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/comments?post=7217"}],"version-history":[{"count":0,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/7217\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media\/7209"}],"wp:attachment":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media?parent=7217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/categories?post=7217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/tags?post=7217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}