Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
I'm trying to install nagios using centos 5 and consulting the fedora quickstart guide, it says i need to install gd gd-devel. Using the quickstart guide i enter the command, ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    8

    Linux nagios/apache woes

    I'm trying to install nagios using centos 5 and consulting the fedora quickstart guide, it says i need to install gd gd-devel. Using the quickstart guide i enter the command, but at the end when it says its ok, it automatically then exits (exiting on user command). What causes this? i was logged in as the root user and still it plays up.

    So any ideas as to what causes this?

  2. #2
    Just Joined!
    Join Date
    May 2009
    Posts
    9
    gd and gd-devel may be the two libraries you need to install for working with nagios. try ' yum search gd ' and install them using yum. It does not work , compile nagios from source. You may find this link useful humanlinux.blogspot.com/2009/04/nagios-instllation-steps.html

    Thanks

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    Thanks for the reply. It appears to have worked. A more pressing matter is getting apache to work now. Its an fqdn issue and someone else is looking into it. It'll probably get solved sooner or later. But i'll post if i need help.

    Anyway, kudos freemen, you've solved the problem by the looks of things.

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    Seems like i'm getting into more problems trying to install apache and nagios on centos 5. This time the problem appears to be apache not being able to find my fqdn. I've gone into /etc/hosts to tweak the file as shown below (NOTE I'VE blanked a few key fields for security purposes. Someone more experienced did it for me anyway):

    127.0.0.1 nagios localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    192.168.30.XXX <fqdn here>

    Restarted the HTTPD service and the same error message appears: Could not determine the server's fully qualified domain name (and then reverting to 127.0.0.1)

    i should also mention that i'm using VMWARE to set up centos and the networking is on a bridged connection. Which may also be a problem, but i'm just unsure. Oh and i'm using the fedora quickstart guide found on the nagios website.

    any advice? or what other files in linux i should tweak?

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    9
    Quote Originally Posted by johnway View Post
    Seems like i'm getting into more problems trying to install apache and nagios on centos 5. This time the problem appears to be apache not being able to find my fqdn. I've gone into /etc/hosts to tweak the file as shown below (NOTE I'VE blanked a few key fields for security purposes. Someone more experienced did it for me anyway):

    127.0.0.1 nagios localhost.localdomain localhost
    ::1 localhost6.localdomain6 localhost6
    192.168.30.XXX <fqdn here>

    Restarted the HTTPD service and the same error message appears: Could not determine the server's fully qualified domain name (and then reverting to 127.0.0.1)

    i should also mention that i'm using VMWARE to set up centos and the networking is on a bridged connection. Which may also be a problem, but i'm just unsure. Oh and i'm using the fedora quickstart guide found on the nagios website.

    any advice? or what other files in linux i should tweak?
    Hello,

    It may be an issue with the /etc/hosts file. Usually you can ignore this error. I got it worked . To resolve this error, you need to make the hostname which you have mentioned while installation. you can execute the command ' hostname localhost ' and try again, else ' hostname X ' X should be replaced by the hostname you mentioned. I still belive that you can ignore this error

  6. #6
    Just Joined!
    Join Date
    May 2009
    Posts
    9
    And are you getting the error, while starting the nagios service? service nagios start or /etc/init.d/nagios start.

  7. #7
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    The primary goal for now was to get apache up and running and hopefully by following the rest of the guide, nagios will also show up. I must have tried installing nagios/linux 3 times now at least. The first time i chose to ignore the error and continue, but when i got to the end of the guide it didn't work. Repeated process the second time and still no luck.

    I can ping the IP address and i have managed to get that annoying error message to disappear (I went to http.conf and added the servername in there which was the IP address), but whether i have truly solved the problem... i doubt it. I'm not entirely sure whether the file is wrong or i'm missing some details to getting it to work.

    I'll carry on with building up nagios, but tbh i see little point in doing this when the key component apache isn't working properly.

  8. #8
    Just Joined!
    Join Date
    May 2009
    Posts
    9
    What makes you belive that apache is not working?

    please follow this instructions

    1) /etc/init.d/httpd start
    2) open your browser and type http ://localhost/ , if you get the apache page, then great its working!

    else please paste the error message here.

    and there is no need to make any change in the apache config file for getting nagios into work. You can have the default confi file. Before starting the nagios make sure that apache service is started.

    please paste all the error messages here, so that i may be able to help you in a better way!

    goodluck
    Thanks

  9. #9
    Just Joined!
    Join Date
    May 2009
    Posts
    9
    ignore the space b/w http and ://localhost in the above post, coz i am not allowed to type a url in a post

  10. #10
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    Ok after going through the steps on the fedora guide. This time no messing with host files or anything. I've restarted nagios and httpd services to make sure. I enter the http code to see the webpage nagios/apache page and all i get on my browser is a page not found error.

    Typing in the ip address/nagios brings up the error that IE Couldn't display the webpage.

    Restarting http brings up the error "httpd: could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" But it starts and stops with "ok"


    Restarting nagios brought no problems.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...