forum : Monitoring database on same server where webapp is installed

You must be logged in to post Login Register

Monitoring database on same server where webapp is installed

UserPost

4:01 pm
January 22, 2010


hootsuite

New Member

Vancouver, BC

posts 1

1

I have installed Kontrollbase (webapp and client script) on the same box to test it out before using it in our production environment.  I can log into the webapp and I have added the box as a host that is to be monitored but when I try to view the information for that host there is no information.  Is there anything in particular I am supposed to do to monitor the same server the webapp is on?


I have ran the client script a few times as the kontrollbase system user to confirm that it works and it seems to output everything but that information is not visible in the webapp.


Thanks,

Kevin

4:17 pm
January 22, 2010


themattreid

Admin

Nevada

posts 52

2

Running it on the same server is fine. Here's the process:


1. setup the kontrollbase system user: “useradd -m kontrollbase” 

2. set a password for the kontrollbase user: “passwd kontrollbase”

3. setup ssh keys for the kontrollbase user so that the user running the cron scripts (discussed in the server scripts section of the documentation) can login to the local machine as the kontrollbase user without needing a password – you MUST use ssh-keys without passphrases for this to work correctly. 

4. in the webapp – set the host's ip_address to the machine's IP – either the usual one or 127.0.0.1, either will work as long as you can do “ssh kontrollbase@127.0.0.1″ or “ssh kontrollbase@whatever_ip” and it works when you are doing this as the user running the cronjob scripts. 

5. login to the machine as the user running the cronjob scripts (root or whoever you set it as) and go to the installation directory. Then run “cd bin” – now you should be in the directory with all of the kontrollbase perl scripts.

6. from the bin/ directory run “./kontroll-server_loop-5.0.x_linux-x86-2.0.1.pl” – it will output a lot of information about the steps it's taking. This is the part of the application that goes and loops through the servers you have setup and connects to the servers (local or otherwise) and passes variables to the client script (should be located in /home/kontrollbase/kontroll-client-5.0.x_linux-x86-2.0.1.pl on each server you are polling), the client script outputs an XML file that is read by the kontroll-stats-gather-5.0.x_linux-x86-2.0.1.pl script. This is then processed by the kontroll-reporter-5.0.x_linux-x86-2.0.1.pl script during the reporting process that you have setup in crontab. 

7. If you follow all of the steps in the documentation it should work. 

8. Documentation can also be found here: http://kontrollsoft.com/kontrollbase/userguide/toc.php

http://kontrollsoft.com http://themattreid.com

4:18 pm
January 22, 2010


themattreid

Admin

Nevada

posts 52

3

Post edited 12:26 am – January 23, 2010 by themattreid


http://kontrollsoft.com http://themattreid.com

4:19 pm
January 22, 2010


themattreid

Admin

Nevada

posts 52

4

Post edited 12:26 am – January 23, 2010 by themattreid


http://kontrollsoft.com http://themattreid.com

4:19 pm
January 22, 2010


themattreid

Admin

Nevada

posts 52

5

Post edited 12:26 am – January 23, 2010 by themattreid


http://kontrollsoft.com http://themattreid.com

4:22 pm
January 22, 2010


themattreid

Admin

Nevada

posts 52

6

Post edited 12:27 am – January 23, 2010 by themattreid


Google Chrome browser had some issues so we ended up with 4 or 5 of the same responses. Firefox is fine :)

http://kontrollsoft.com http://themattreid.com

 

About the kontrollsoft forum

Most Users Ever Online:

9


Currently Online:

6 Guests

Forum Stats:

Groups: 3

Forums: 12

Topics: 43

Posts: 93

Membership:

There are 540 Members

There has been 1 Guest

There is 1 Admin

There are 0 Moderators

Top Posters:

xstar – 16

Prabhat – 3

Brince – 3

j2ict – 2

jesper – 2

massoo – 2

Administrators: themattreid (52 Posts)