Nagios Setup Errors
Hello, I'm trying to install Nagios 3.4.1 on a remote Ubuntu 12.04 server (built from minimal edition).
I'm following instructions on http://assets.nagios.com/downloads/n...rom_Source.pdf but on the very first step Code:
sudo apt-get install wget install build-essential apache2 php5-gd wget wibgd2-xpm libgd2-xpm-dev Code:
root@oemrserver:~# apt-get install wget install build-essential apache2 php5-gd wget wibgd2-xpm libgd2-xpm-dev libapache2-mod-php5 Would really appreciate some help on this, pls. |
Hmm, that's a very stupid command, how on earth is that in a document? I'd not use that any more.
from this - http://packages.ubuntu.com/quantal/nagios3 - I presume that you can just do a "sudo apt-get install nagios3 nagios3-cgi nagios3-core" and everything else will take care of itself. NB. Nagios is rubbish. |
Quote:
|
Well *I* think it's garbage but it's amazingly popular and does what most people want from it (as long as they do all the hard work themselves). How do you expect to know about things that are "about to fail" in the first place? That's not trivial.
|
I've just realized why I'm having issues with installing Nagios.
While I can access this virtual machine (the Ubuntu Server) from the LAN, the Ubuntu server cannot seem to access the internet. Even if I try pinging Code:
:~$ ping google.com From any PC on the LAN I can ping into the Ubuntu server and I can even SSH into it.Surprisingly, it tells me there are 10 security updates available:confused: |
Quote:
I haven't seen any software that can tell me when a host is "about to fail" but I am extremely sheltered and don't get out much... Good Luck. |
Thanks guys.
What I actually meant by "about to fail" was in relation to what some software already offer: - features like alerting when CPU temp goes too high, hard drive temp goes too high and the likes. |
one of the fundamental things about nagios is that it can monitor *any* value at all, by virtue of you having to go write a script to dig out the information you want and make that judgement call within your script. That's either a wonderful thing, or an awful thing, and I'm in the latter. So if you are happy bridging the gap between nagios dumbly running a script it's told and making that script do whatever it is that you want to base it on, then go nagios. It's just that Nagios need to be explicitly told to jump, or not, by independently written scirpts, and nagios itself is just totally dumb from there.
You can compare this to a decent SNMP aware tool like Zabbix (which I'm not actually familiar with) and you can directly tell the service to monitor this cpu oid, that disk space oid and report if they go above of below this or that, without that responsibility leaving the core platform at all. |
Quote:
I'm skipping Nagios and giving a go at Zabbix. I'm definitely not into having to code for every single thing I need. |
1 Attachment(s)
OK, so I installed Zabbix 1.8 (chose 1.8 so I could install it using apt) with the command
Code:
sudo apt-get install zabbix-server-mysql zabbix-frontend-php zabbix-agent However, now when I try to log into the frontend with http://192.168.0.107/zabbix instead of getting the zabbix login screen, I get Code:
You are not logged in. |
well if there's a mysql permissions error you obviously need to fix that. 5 seconds on google brought up this - http://www.zabbix.com/wiki/howto/ins...g_the_mysql_db, you really should have already found this yourself though...
|
terminal>
Code:
mysql -uzabbix -p -e "show databases;" |
Quote:
This is the result: Code:
~$ sudo mysql -uzabbix -p -e "show databases"; I went through http://www.zabbix.com/wiki/howto/ins...g_the_mysql_db and while Code:
service mysqld status Code:
mysqld: unrecognized service Code:
mysql> create database zabbix character set utf8; I then went ahead to set permissions: Code:
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'set-password-here'; Code:
mysql> use zabbix; Code:
mysql> use zabbix; |
I've used the same tutorial and got the same error.
I believe there's a typo. Try removing the second 'install' Quote:
|
All times are GMT -5. The time now is 07:17 PM. |