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:
 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...
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
|All times are GMT -5. The time now is 01:19 AM.|