Hi people!
The reason I am sending this e-mail is that I am not sure how I can organize the Nagios 3 structure. I just made a tree layout (shown below) showing how I thought about the organization (folders and files). The environment consists in several customers, my own network and some other services that I can use someday, like to monitor web pages, etc. I must organize the files in order facilitate the management, because I will update, change, delete and insert new services, customers, configurations and stuff. I also have some questions regarding host dependency, service dependency, host escalation and service escalation. These questions are after the tree layout. objects (main folder) | | |--hosts (folder) | |--host_groups (folder) | | |--hostgroup1.cfg | | |--hostgroup2.cfg | | |--hostgroupn.cfg | | | |--own_corp (folder) | | |--corp_host1.cfg | | |--corp_host2.cfg | | |--corp_hostn.cfg | | | |--customers (folder) | |--customer1 (folder) | | |--cus1_host1.cfg | | |--cus1_host2.cfg | | |--cus1_hostn.cfg | | | |--customer2 (folder) | | |--cus2_host1.cfg | | |--cus2_host2.cfg | | |--cus2_hostn.cfg | | | |--customern (folder) | |--cusn_host1.cfg | |--cusn_host2.cfg | |--cusn_hostn.cfg | |--services (folder) | |--services_groups (folder) | | |--servicegroup1 | | |--servicegroup2 | | |--servicegroupn | | | |--services (folder) | |--service1 | |--service2 | |--servicen | | |--contacts (folder) | |--contactgroups (folder) | | |--contactgroup1.cfg | | |--contactgroup2.cfg | | |--contactgroupn.cfg | | | |--contacts (folder) | |--contact1.cfg | |--contact2.cfg | |--contacrn.cfg | | |--timeperiods (folder) | |--timeoeriod1.cfg | |--timeperiod2.cfg | |--timeperiodn.cfg | | |--commands (folder) | |--command1.cfg | |--command2.cfg | |--commandn.cfg | | |--templates (folder) #used just for reference |--serviceGroups.cfg |--services.cfg |--servicedependencies.cfg |--servicesescalations.cfg |--hostgroups.cfg |--hosts.cfg |--hostdependencies.cfg |--hostescalations.cfg |--contactgroups.cfg |--contacts.cfg |--timeperiods.cfg |--commands.cfg Questions: What is the better way to organize the host dependencies in order to get easy the management? Maybe, is better to create a main file for each customer (within the customer folder) and fill it out with the dependency statements. Or maybe I can use dependencies statements within each host cfg file or if you have a new idea... And about service dependency? It might has cases that some service will have dependencies in a specific case and in other case, the same service will not have this dependency. How to manage it? Do I create two services with the same function, but with different dependencies? Where should I store this information (what folder/file)? Now, about host escalation, should I create a file within each customer folder or should I put the escalation information within the host file, just adding statements? I ask it because there will have some cases that I will use the escalation to a host group and sometime to a specific host. What is the better way to manage it? And regarding service escalation, how can I manage it? Maybe, there will have some cases that I have to escalate a service to a specific customer and, regarding the same service, I have not to escalate for other customers. e.g.: If a web service goes down, I want to escalate for the customer X in 1 hour and for customer Y, I want to escalate only after 3 hours and the rest, I dont want to escalate. The last doubt I have regards the contacts. I will have some cases that the customer desires to be informed or escalated automatically, for example, if the customer has a support team on site (field ops). In these cases, how can I manage the contacts? I put it centralized or I create contact files within each customer folder? Is there some suggestion? As you can see, my real doubt is about how to organize the cfg files to turn easy the management and to maintain using the better way to do so. I really appreciate if you can solve my doubts. It will solve problems like if I change a host name, I have to update all references in other statements that make references to it, including other files. I am thinking about to make a script to validate the changes before putting it in production. It will avoid miss configurations like to forget to delete some old reference to an inexistent host. I know, there are a lot of questions I really appreciate any hint and information. I have to say that I want to use centreon 2 and some application like nagvis to create layout maps. I did not installed it now because I could not run the statusmap module on centreon 2 with nagios 3. And about NagiosQL? Is it a good one? Thanks in advance -- Ronaldo A. Bueno Filho -- Essa mensagem foi verificada contra vírus e conteúdo malicioso pelo Lisa Antivírus. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
