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
NagVis
NagVis
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 !!!
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
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: NagVis
Have you checked out the nagvis documentation? http://docs.nagvis.org/1.7/en_US/index.html
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: NagVis
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NagVis
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
here is one problem i have start the ./install.sh and the question
that i have no idea what to do and after i use tcp and it continue, and at the end it says:
any idea so i have no idea what to do next i guess i missing some other things ...
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:
when i when on localhost/nagvis/config.php ----- Not Found....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 |
any idea so i have no idea what to do next i guess i missing some other things ...
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NagVis
Code: Select all
<http://localhost/nagvis/config.php>Re: NagVis
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

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 whyThe attribute socket in section backend_live_1 in main configuration file does not match the correct format. Please review your configuration.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NagVis
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
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
....
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 !!
This is just for my problem:
1. Installing those modules
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 !!
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: NagVis
Awsome, thanks for the guide!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.