+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
Wireless Networks Thread, does anybody use Nagios here, i need help regarding check_snmp to monitor Server in Technical; hi gatt, somehow i dont have hostgroups.cfg. but my nagios works fine: is it necessary to create .cfg file for ...
  1. #16

    Join Date
    Nov 2007
    Posts
    59
    Thank Post
    5
    Thanked 4 Times in 4 Posts
    Rep Power
    14
    hi gatt,
    somehow i dont have hostgroups.cfg. but my nagios works fine:

    is it necessary to create .cfg file for each hosts with all the services. Isnt there anyway where we can have a single cfg file with list of services and another file for each host which will pull the services details from the services cfg file.

    currently i have something like this:

    host1.cfg
    define host
    define service a
    define service b
    define service c
    define service d
    define service e
    define service f
    define service g


    host2.cfg
    define host
    define service a
    define service b
    define service c
    define service d
    define service e
    define service f
    define service g


    host3.cfg
    define host
    define service a
    define service b
    define service c
    define service d
    define service e
    define service f
    define service g


    host4.cfg
    define host
    define service a
    define service b
    define service c
    define service d
    define service e
    define service f
    define service g

  2. #17

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,539
    Thank Post
    830
    Thanked 609 Times in 412 Posts
    Rep Power
    432
    Yes and no..
    You can setup "generic" services linked to a hostgroup, that way any server assigned that hostgroup will automatically monitor those services.

    See: HowTos/Nagios - CentOS Wiki

    However.. I that these override any similar definitions - classic example was with HTTP! if I defined it to monitor port 80, i could not change one server to monitor port 8080!

    You still, however, need to create a config file for each server you want to monitor and add it to the hostgroup - there is no getting out of that one I'm afraid.

    The advantage of using generic services is that all you need in your serverXX.cfg files is the hostname, alias and IP address and any additonal services you want to monitor.

    I, personally, found it easier to put everything in the serverXX.cfg file and copy/paste/edit as needed....

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [PHP] PHP Server Monitor
    By zag in forum Web Development
    Replies: 40
    Last Post: 22nd May 2013, 12:05 PM
  2. My Little Server Monitor
    By ICTNUT in forum Wired Networks
    Replies: 310
    Last Post: 20th March 2013, 03:51 PM
  3. NAGIOS Server
    By Jawloms in forum Wireless Networks
    Replies: 6
    Last Post: 6th August 2010, 02:31 PM
  4. Server monitor software?
    By zag in forum Windows
    Replies: 17
    Last Post: 30th July 2010, 01:43 PM
  5. Free SQL Server Monitor
    By ICTNUT in forum Windows
    Replies: 2
    Last Post: 8th August 2008, 04:04 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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