Page 1 of 1

NagVis

Posted: Tue Mar 12, 2013 11:47 am
by MPIvan
Hi to all :) ...
Im stating to install NagVis but i have some problems ... i think i need some or miss some of the requirements, like MKlivestatus or something. So just to be clear ... im using Ubuntu Server 12.04 LTS (Clean installation) and nagios is working great on it ! I need simple explanation (tutorial) on how to install NagVis on a simple way :) ... TNX IN ADVANCED TO ALL OF THE NAGIOS SUPPORT TEAM !!!

Re: NagVis

Posted: Tue Mar 12, 2013 1:23 pm
by sreinhardt
Have you checked out the nagvis documentation? http://docs.nagvis.org/1.7/en_US/index.html

Re: NagVis

Posted: Wed Mar 13, 2013 6:45 am
by MPIvan
Yes i did but i have problem with MKlivestatus .... and other parameters so i will try again ... i have changed and do something and i think i can handle ... i will inform you what i did

Re: NagVis

Posted: Wed Mar 13, 2013 9:49 am
by slansing
Great, please let us know how it goes, and if you resolve this issue if you have a chance please let us know what you did so that others can search the forum and find a fix. Thanks!

Re: NagVis

Posted: Wed Mar 13, 2013 10:50 am
by MPIvan
here is one problem i have start the ./install.sh and the question
Livestatus Socket (/usr/local/nagios/var/rw/live) MISSING |
| Valid socket formats are: tcp:127.0.0.1:7668 or unix:/path/to/live |
| Please enter your MKLivestatus socket:

that i have no idea what to do and after i use tcp and it continue, and at the end it says:
Its location is: /usr/local/nagvis/etc/nagvis.ini.php |
| - Configure NagVis via browser |
| <http://localhost/nagvis/config.php> |
| - Initial admin credentials: |
| Username: admin |
| Password: admin |
when i when on localhost/nagvis/config.php ----- Not Found....

any idea so i have no idea what to do next i guess i missing some other things ...

Re: NagVis

Posted: Wed Mar 13, 2013 11:21 am
by slansing

Code: Select all

<http://localhost/nagvis/config.php>
Enter your Nagios server's IP.

Re: NagVis

Posted: Wed Mar 13, 2013 1:51 pm
by MPIvan
Yes i did that but nothing ... i finally get something ... i guess the missing socket was the problem ... or if i understand as i should the "livecheck" and "livestatus.o" files are the key of the error i have ... so i copy the files (then somewhere say that i have to restart the nagios so the socket to be taken in action (or something like that :) )) so i did that and restart the Apache and here is now the error i have opening http://ip-nagios/nagvis/config.php
The attribute socket in section backend_live_1 in main configuration file does not match the correct format. Please review your configuration.
any why i install some of the php module i restart apache and some how its work .... although there is too much errors coming up ... i can't delete map or i can't delete hosts or some other errors, and after some errors it will allow me to delete the host but not the map ... on trying to delete a map im still getting errors .... but im confused so i will start tomorrow again from the beginning and see what do i need exactly ... and when i do i will post here step by step ... this is fun by the why :D

Re: NagVis

Posted: Wed Mar 13, 2013 1:57 pm
by slansing
Excellent, if you plan on completely reworking your installation instead of going forward from this point we will still be glad to help. Yes it can be fun to play find the missing package, or what not :).

Re: NagVis

Posted: Fri Mar 15, 2013 6:13 am
by MPIvan
AND THERE IT IS :) .... the problem was that i dont have all the php modules installed ... so here is what i did ...

This is just for my problem:
1. Installing those modules :D ....
apt-get install php5-sqlite
apt-get install php-net-socket
apt-get install php5-mysql
or apt-get install php5-sqlite php-net-socket php5-mysql

and Nagios suggest that you have to have this also
php5-gd
php5-gettext
php5-mbstring
php5-session
php5-json (Builtin since PHP 5.2)
php5-pdo and pdo-sqlite (New in 1.5, for default Authentication/Authorisation module)

and i guess i have this :).

2. Next is Graphviz
apt-get install graphviz

3. And important one is MK Livestatus
And here is the tricky part (not really :) )
you download MKLivestatus
wget http://mathias-kettner.com/download/mk- ... 0p4.tar.gz
unzip
tar xzf mk-livestatus-1.1.6p1.tar.gz
cd mk-livestatus-1.1.6p1

and
./configure && make
make install

when it ends you configure nagios.cfg file (and this is everything documented in MK Livestatus page, but someone have to read to the end) to tell the nagios where to look for livestatus.o (and this is my problem or solving my problem with Livestatus Socket)
nano nagios.cfg
broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live
event_broker_options=-1

after editing nagios.cfg i restart nagios and apache too when you restart in /usr/local/nagios/var/rw/ ... will have the directory live and in it livestatus.o
after all this i download the nagvis
and follow the instruction in nagvis documentation

tar xvzf nagvis-1.7*.tar.gz /tmp
cd /tmp/nagvis-1.7*
chmod +x install.sh
./install.sh

after the installation is done ... restart nagios and apache and there it is

http://ip-address-nagios/nagvis

i hope it help for someone ! And if any body have problems pls write i will try and i be glad to help ! tnx for help on nagios support tema also !!

Re: NagVis

Posted: Fri Mar 15, 2013 10:05 am
by sreinhardt
Awsome, thanks for the guide!