Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-12-2004, 02:46 PM   #1
LQ Newbie
Registered: Jan 2004
Location: Santo Domingo
Posts: 6

Rep: Reputation: 0
Nagios, Nagmin installation

I have spent a good week trying to install nagmin because it really looks usefull. It really seems a tool that anyone would like to have.

First of all, i would like to point out that the installation of the software is a really tedious process, because of the installation and configuration of all the requeriments that it has. i have already done every possible fill of needs, by satisfying every dependency that nagmin would require, mentioning: nagios with database support, apache, php, rrdtool, nmap, perl modules, snmp, dg, and any other thing that would come up while i was in the process of compilation and installation.

After Nagios was installed, i started the process for the compilation of nagmin. First of all, i don't know if you hace realized, but the latest version u guys have doesnt include the setup script you mention in the document for the installation. so i downloaded the previous version of nagmin and used its setup to compile the latest version. after again satisfying every dependencies that the software requiered i finally got to compile it (trust me, FINALLY). but funny things started to happen.

After the compilation, in webmin, mysql no longer shows the users list. if you click on users the list comes emtpy. I can still see the databases and the tables within them, but if i click any of the tables, for example: the command table in the nagios database, i get this message:
Table Command in database nagios

But, let's assume thats not a problem... the most interesting part is that if in webmin i go to the nagmin module, i get to see the database, but if i click it, interesting enough nothing comes up, just a browser error saying that the page cannot be displayed.

I checked the edit_dbase.cgi to see if anything unusual could be seen, but found nothing..

then i go to my nagios site //localhost/nagios/ and it comes up well, but when i click on any link, i get this error:

Error: Could not read host and service status information!

The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios.

Some other things you should check in order to resolve this error include:

Check the Nagios log file for messages relating to startup or status data errors.
Always verify configuration options using the -v command-line option before starting or restarting Nagios!
Make sure you've compiled the main program and the CGIs to use the same status data storage options (i.e. text file or database). If the main program is storing status data in a text file and the CGIs are trying to read status data from a database, you'll have problems.

Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be fouund at

if i do a ps -A i see that there isnt a nagios process running. then i start it by running its command and the nagios log gives me another error, which is:

[1094996457] Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (2) ->
No such file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file.

i am really stuck here and dont know what to do....

please help me.... i have gotten this far and i dont wanna leave the proyect unfinished... i have already received notifications from my boss to start using nagios without nagmin, but i want to show him that the compilation can be done and that nagmin is pretty cool to have...
Old 09-29-2004, 02:47 PM   #2
LQ Newbie
Registered: Sep 2004
Location: Chicago
Posts: 7

Rep: Reputation: 0
try /etc/rc.d/init.d/nagios start

if it gives you that error or doesn't show the PID in the terminal.. then go to /usr/local/nagios/var and edit the nagios.lock file

enter the process number.. in my case, i remembered that my PID was 3795, so i entered that in... and then ran
/etc/rc.d/init.d/nagios start


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
Nagios 2.0b1 Installation problem lewkh Linux - Software 1 12-21-2004 10:29 PM
Nagios and NagMIN problems pnh73 Linux - Software 7 11-20-2004 04:28 AM
my nagmin activation gives failure message sushilatlinux Linux - Software 0 10-26-2004 09:32 AM
About NAGIOS Redhat_guy Linux - Networking 3 06-30-2004 01:43 PM
Nagios Installation Problem . . . chrisk5527 Linux - General 2 03-04-2003 08:07 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 PM.

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