LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-19-2012, 06:48 AM   #1
\/4A
Member
 
Registered: Aug 2012
Posts: 118

Rep: Reputation: Disabled
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 
libapache2-mod-php5
it seems to give me the following error
Code:
root@oemrserver:~# apt-get install wget install build-essential apache2 php5-gd wget wibgd2-xpm libgd2-xpm-dev libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package install
E: Unable to locate package wibgd2-xpm
root@oemrserver:~#
I believe I already have PHP5 and Apache installed on the server.

Would really appreciate some help on this, pls.
 
Old 09-19-2012, 06:59 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.

Last edited by acid_kewpie; 09-19-2012 at 07:01 AM.
 
1 members found this post helpful.
Old 09-19-2012, 07:08 AM   #3
\/4A
Member
 
Registered: Aug 2012
Posts: 118

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
NB. Nagios is rubbish.
Seriously?? What would you recommend - I just need something simple and especially something that would alert me of server problems like hardware about to fail.
 
Old 09-19-2012, 07:14 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 09-19-2012, 08:30 AM   #5
\/4A
Member
 
Registered: Aug 2012
Posts: 118

Original Poster
Rep: Reputation: Disabled
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
ping: unknown host google.com
Same thing with any IP number.

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
 
Old 09-19-2012, 11:41 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by \/4A View Post
Seriously?? What would you recommend - I just need something simple and especially something that would alert me of server problems like hardware about to fail.
I replaced Icinga+Cacti at our shop with Zabbix and it's been wonderful.

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.

Last edited by Habitual; 09-19-2012 at 06:23 PM.
 
1 members found this post helpful.
Old 09-20-2012, 02:25 AM   #7
\/4A
Member
 
Registered: Aug 2012
Posts: 118

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-20-2012, 02:54 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.

Last edited by acid_kewpie; 09-20-2012 at 02:56 AM.
 
1 members found this post helpful.
Old 09-20-2012, 03:40 AM   #9
\/4A
Member
 
Registered: Aug 2012
Posts: 118

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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.
Looks like I'm on your side, Chris.
I'm skipping Nagios and giving a go at Zabbix. I'm definitely not into having to code for every single thing I need.
 
Old 09-20-2012, 07:20 AM   #10
\/4A
Member
 
Registered: Aug 2012
Posts: 118

Original Poster
Rep: Reputation: Disabled
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
went through the whole process, setup admin and frontend passwords, etc.. and process completed.
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.
You cannot view this URL as a guest. You must login to view this page.
If you think this message is wrong, please consult your administrators about getting the necessary permissions.

    mysql_connect(): Access denied for user 'zabbix'@'localhost' (using password: YES) [include/db.inc.php:58]
Even if I click on Login, the same page reloads. I've attached a screenshot.
Attached Thumbnails
Click image for larger version

Name:	zabbix_error.PNG
Views:	38
Size:	30.1 KB
ID:	10731  
 
Old 09-20-2012, 07:25 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
1 members found this post helpful.
Old 09-20-2012, 07:57 AM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
terminal>
Code:
mysql -uzabbix -p -e "show databases;"
should tell you if the mysql permission is good, or not.
 
1 members found this post helpful.
Old 09-20-2012, 09:16 AM   #13
\/4A
Member
 
Registered: Aug 2012
Posts: 118

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
terminal>
Code:
mysql -uzabbix -p -e "show databases;"
should tell you if the mysql permission is good, or not.
Thanks.
This is the result:
Code:
~$ sudo mysql -uzabbix -p -e "show databases";
Enter password:
+--------------------+
| Database           |
+--------------------+
| information_schema |
| test               |
| zabbix             |
+--------------------+
Is there a way I can set the permissions error(s) through Webmin?

I went through http://www.zabbix.com/wiki/howto/ins...g_the_mysql_db and while
Code:
service mysqld status
resulted in
Code:
mysqld: unrecognized service
I went straight to
Code:
mysql> create database zabbix character set utf8;
to see if the database existed and yes it did!

I then went ahead to set permissions:
Code:
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'set-password-here';
mysql> quit;
and then skipped to see if the database was working:
Code:
mysql> use zabbix;
mysql> show tables;
mysql> quit;
The result:
Code:
mysql> use zabbix;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+-----------------------+
| Tables_in_zabbix      |
+-----------------------+
| acknowledges          |
| actions               |
| alerts                |
| applications          |
| auditlog              |
| auditlog_details      |
| autoreg_host          |
| conditions            |
| config                |
| dchecks               |
| dhosts                |
| drules                |
| dservices             |
| escalations           |
| events                |
| expressions           |
| functions             |
| globalmacro           |
| graph_theme           |
| graphs                |
| graphs_items          |
| groups                |
| help_items            |
| history               |
| history_log           |
| history_str           |
| history_str_sync      |
| history_sync          |
| history_text          |
| history_uint          |
| history_uint_sync     |
| hostmacro             |
| hosts                 |
| hosts_groups          |
| hosts_profiles        |
| hosts_profiles_ext    |
| hosts_templates       |
| housekeeper           |
| httpstep              |
| httpstepitem          |
| httptest              |
| httptestitem          |
| ids                   |
| images                |
| items                 |
| items_applications    |
| maintenances          |
| maintenances_groups   |
| maintenances_hosts    |
| maintenances_windows  |
| mappings              |
| media                 |
| media_type            |
| node_cksum            |
| nodes                 |
| opconditions          |
| operations            |
| opmediatypes          |
| profiles              |
| proxy_autoreg_host    |
| proxy_dhistory        |
| proxy_history         |
| regexps               |
| rights                |
| screens               |
| screens_items         |
| scripts               |
| service_alarms        |
| services              |
| services_links        |
| services_times        |
| sessions              |
| slides                |
| slideshows            |
| sysmaps               |
| sysmaps_elements      |
| sysmaps_link_triggers |
| sysmaps_links         |
| timeperiods           |
| trends                |
| trends_uint           |
| trigger_depends       |
| triggers              |
| user_history          |
| users                 |
| users_groups          |
| usrgrp                |
| valuemaps             |
+-----------------------+
88 rows in set (0.02 sec)

mysql> quit
Bye

Last edited by \/4A; 09-20-2012 at 09:41 AM.
 
Old 01-04-2013, 05:58 AM   #14
zeroquaranta
LQ Newbie
 
Registered: Feb 2010
Posts: 22

Rep: Reputation: 0
I've used the same tutorial and got the same error.
I believe there's a typo.
Try removing the second 'install'

Quote:
Originally Posted by \/4A View Post
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 
libapache2-mod-php5
it seems to give me the following error
Code:
root@oemrserver:~# apt-get install wget install build-essential apache2 php5-gd wget wibgd2-xpm libgd2-xpm-dev libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package install
E: Unable to locate package wibgd2-xpm
root@oemrserver:~#
I believe I already have PHP5 and Apache installed on the server.

Would really appreciate some help on this, pls.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Nagios wmi checkevents not reporting errors? 4Paul4 Linux - Software 2 10-18-2011 01:00 AM
[SOLVED] nagios.cfg errors. worm5252 Linux - Server 3 12-17-2009 08:39 PM
Nagios setup investmentbnker75 Linux - General 1 08-10-2008 04:22 AM
Nagios contiually gives errors regarding 'audit' by the kernel ille.pugil42 Linux - Software 2 03-12-2007 02:37 PM
How to setup Nagios katmai90210 Linux - Networking 2 06-19-2005 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration