Nagios Mobile Install Core/XI

Information and discussions relating to the Nagios Mobile addon.

Nagios Mobile Install Core/XI

Postby mikew » Fri Feb 17, 2012 7:44 am

After installing these on several different types of systems I documented it in case someone else could benefit.

Installation
The installation is assuming that you are installing on CentOS, have compiled your Nagios install and are using PHP 5.1 or greater. This install will include instructions on how to use apc to cache your status data for faster page loads.

Code: Select all
   cd /tmp
   wget http://assets.nagios.com/downloads/exchange/nagiosmobile/nagiosmobile.tar.gz
   tar zxvf nagiosmobile.tar.gz

   cd /nagiosmobile   
   ./INSTALL.php


If you see errors on the location of files you will need to modify the path in /usr/local/nagiosmobile/include.inc.php.
Install several requirements.

Code: Select all
   yum install php-pear php-devel httpd-devel pcre-devel



Edit /etc/php.ini
Code: Select all
extension=apc.so
apc.enabled= 1


Install APC
Code: Select all
   pear install pecl/apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
Enable internal debugging in APC [no] :

You will be asked a number of questions, just take the defaults.


Modify /etc/httpd/conf.d/nagiosmobile.conf to either use Nagios Core or Nagios XI, comment out the lines you will not use. The example is set up for Nagios XI.

Code: Select all
#modify this file to fit your apache configuration
Alias /nagiosmobile "/usr/local/nagiosmobile"
<Directory "/usr/local/nagiosmobile">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
#  Allow from 127.0.0.1
######use the below lines for Nagios XI
AuthName "Nagios Monitor XI"
  AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
######Use the below lines for a SOURCE install of Nagios Core
#   AuthName "Nagios Access"
#   AuthType Basic
#   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
</Directory>


Edit /usr/local/nagiosmobile/include.inc.php if the installation of nagiosmobile showed any errors. For example, this system is using a RAM disk so the status.dat location had to be modified.

Code: Select all
#status_file=/usr/local/nagios/var/status.dat
status_file=/ramdisk/status.dat


Restart your web server.
Code: Select all
service httpd restart



Usage
NagiosMobile can now be accessed at http://nagios_ip/nagiosmobile.

That should make it easier for those of you using CentOS.
Mike Weber

Nagios Training/Consulting
User avatar
mikew
 
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: Nagios Mobile Install Core/XI

Postby pouda » Thu Apr 26, 2012 7:38 am

work very well on my nagios XI

Thnaks you very much for this nice guide ..

:)
pouda
 
Posts: 105
Joined: Wed Sep 14, 2011 9:47 am

Re: Nagios Mobile Install Core/XI

Postby pouda » Thu Apr 26, 2012 7:41 am

do you know if Nagios xi is using APC too ? if not how to enable it ? or if it's a bad idea to do it ... let me know ;-)
pouda
 
Posts: 105
Joined: Wed Sep 14, 2011 9:47 am

Re: Nagios Mobile Install Core/XI

Postby mguthrie » Thu Apr 26, 2012 9:49 am

Nagios XI is using a DB backend, which is actually still preferable than using APC. The reason for APC with Nagios Mobile is that it's fetching it's data from the status.dat file and the objects.cache file so that it works with any Nagios install, and parsing status info from large files is much slower than pulling from a database.

I tried some experiments with XI and APC a while back, but because of the more advanced filtering that is done in XI it had unpredictable results.
mguthrie
 
Posts: 4384
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios Mobile Install Core/XI

Postby pouda » Thu Apr 26, 2012 10:10 am

Ok no problem ... it's clear for me ... :)
pouda
 
Posts: 105
Joined: Wed Sep 14, 2011 9:47 am

Re: Nagios Mobile Install Core/XI

Postby pouda » Fri Apr 27, 2012 7:01 am

Hi i've a little problem wit one of nagios server ..

i would install apc service for faster webpage...

it's a remote installation and i need to set http_proxy variable ... i found the way to solve this issue but!!
The proxy need an authentication and!!! i wrote ..

Code: Select all
pear config-set http_proxy http://rworobel@dmvstafr.fr.fto:password@proxy.dmv-stainless.com:8080
pear list-all


i retreived this message
http-proxy.jpg


The problem is coming that in username i've an @-sign ...but i didn't find how to escape this character by something else...

Someone could help me ?

Thanks bye.
pouda
 
Posts: 105
Joined: Wed Sep 14, 2011 9:47 am

Re: Nagios Mobile Install Core/XI

Postby mguthrie » Fri Apr 27, 2012 9:19 am

For posts like this, I would suggest starting a new thread. However, it looks like you might need to use a hex value for that character so that it's url encoded.
http://www.w3schools.com/tags/ref_urlencode.asp
mguthrie
 
Posts: 4384
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios Mobile Install Core/XI

Postby ryanam » Tue Nov 05, 2013 3:28 am

I didn't get any error on setup... I am being prompted for authentication when I try to access the site on myipad though.

It's not accepting the nagiosadmin user account.

What auth is it asking me for?
ryanam
 
Posts: 21
Joined: Mon Oct 21, 2013 4:57 am

Re: Nagios Mobile Install Core/XI

Postby grantdoug » Fri May 20, 2016 12:58 pm

On Nagios Core 4.1.1, Nagios Mobile is providing a grossly inaccurate summary. In reality our Production Nagios tactical overview is completely green - no issues. Yet Nagios Mobile displays 74 problems.

What's up with that, do you think? As a ski resort operation with seasonal variations in equipment monitoring schedules, in Nagios we rely heavily on exclusion periods. For example, all of our skier gate devices have monitoring checks set to off-season, starting again in November. Would that affect it?

IMG_6210.PNG
Nagios Mobile Production
grantdoug
 
Posts: 31
Joined: Wed Jan 20, 2016 4:33 pm


Return to Nagios Mobile

Who is online

Users browsing this forum: No registered users and 2 guests