Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nagios and Adding More Computer [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bugg_tb
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 282
Location: Leeds, UK

PostPosted: Tue May 22, 2007 11:44 am    Post subject: Nagios and Adding More Computer [Solved] Reply with quote

Hi Guys, I've installed Nagios and got it running and checking my localhost which works fine and as expected.

When I add any other hosts they just don't appear anywhere apart from on the Status Map where I can see there hostname but they haven't collected any information. They aren't listed with any of the other tables relating to the systems themselves or the groups they are assigned to.
Here is some of my config files:
Code:

# Generic host definition template
define host{
        name                                       generic-host
        notifications_enabled                 1
        event_handler_enabled             1
        flap_detection_enabled              1
        process_perf_data                    1
        retain_status_information          1
        retain_nonstatus_information     1

        register                        0       
        }

# 'localhost' host definition
define host{
        name                    localhost
        use                      generic-host

        host_name            localhost
        alias                     nagios server
        address                127.0.0.1
        check_command   check-host-alive
        check_period        24x7 
        contact_groups     linux-admins 
        max_check_attempts      10
        notification_interval        120
        notification_period          24x7
        notification_options         d,u,r
        register                          1
        }

define host{
        use                     generic-host

        host_name               idb
        alias                        idb server
        address                   ip.ad.dr.ess
        check_command      check-host-alive
        check_period           24x7                    ; new
        contact_groups        linux-admins    ; new
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        register                1
        }


Code:



# 'linux-boxes' host group definition
define hostgroup{
       hostgroup_name  linux-boxes
       alias           Linux Servers
#    contact_groups  <edit-this>
       members         idb,localhost
    }

define hostgroup{
        hostgroup_name  Live-Boxes
        alias           Live Computers
        members    idb
        }



So above is my hosts file and my hostgroups file with the relavant entries

In Nagios you can see the localhost but not idb when everything appears ok and it doesn't complain on restart.

Cheers

Tom
_________________
Remember, even at a Mensa convention someone is the dumbest person in the room!


Last edited by bugg_tb on Tue May 22, 2007 12:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
bugg_tb
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 282
Location: Leeds, UK

PostPosted: Tue May 22, 2007 12:37 pm    Post subject: Reply with quote

Been a dunce, it wasn't closing cleanly and not updating on restart, although it wasn't showing any errors.

Tom
_________________
Remember, even at a Mensa convention someone is the dumbest person in the room!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum