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 ...
-
4th July 2011, 11:55 AM #16
- Rep Power
- 12
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
-
-
IDG Tech News
-
4th July 2011, 12:32 PM #17 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: 
Similar Threads
-
By zag in forum Web Development
Replies: 40
Last Post: 22nd May 2013, 12:05 PM
-
By ICTNUT in forum Wired Networks
Replies: 310
Last Post: 20th March 2013, 03:51 PM
-
By Jawloms in forum Wireless Networks
Replies: 6
Last Post: 6th August 2010, 02:31 PM
-
Replies: 17
Last Post: 30th July 2010, 01:43 PM
-
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
-
Forum Rules