<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi All ,<br><br>I am new to nagios configuration . I  successfully installed nagios on one of my linux server  and now monitoring two hosts . <br><br>For monitoring of remote hosts , I created a new config file by renaming localhost.cfg file under objects directory. <br><br>I renamed the entries "hostname" and "address"  and other entries under "DEFINE HOST" directive to point to the new server which I am planning to monitor . The settings looks like this<br><br>define host{<br>        use                     linux-server            ; Name of host template to use<br>                   
         ; This host definition will inherit all variables that are defined<br>                            ; in (or inherited by) the linux-server host template definition.<br>        host_name               node1<br>        alias                         node1<br>        address                   192.168.122.167<br>        }<br><br><br>define host{<br>       
 use                     linux-server            ; Name of host template to use<br>                                   ; This host definition will inherit all variables that are defined<br>                                   ; in (or inherited by) the linux-server host template definition.<br>        host_name          node2<br>        alias                   
 node2<br>        address              192.168.122.218<br>        }<br><br><br>Also modified "DEFINE SERVICE"  directive to monitor few services on both the remote hosts . Few of the settings looks like this<br><br>define service{<br>        use                             local-service         ; Name of service template to use<br>        host_name                       node1<br>       
 service_description             Current Users<br>    check_command            check_nrpe!check_users<br>        }<br><br><br>define service{<br>        use                             local-service         ; Name of service template to use<br>        host_name                       node2<br>        service_description             Current
 Users<br>    check_command            check_nrpe!check_users<br>        }<br><br>The checks are working fine . But my confusion here is in terms of scalabilty .<br>What if I want to monitor 100 servers and 5 services in each of the servers. Does that mean I need to create 100 "define host"  directives for each of these servers . Also , monitoring 5 services means i have to create 5 "define service" for each host , that means 500 "define service" directives.  <br>If this is the case , then it will be really painful to configure and manage if there are many servers to monitor. <br><br><br>Can't I use comma separated ip address and hosts like this<br><br>define host{<br>
        use                     linux-server            ; Name of host template to use<br>
                            ; This host definition will inherit all variables that are defined<br>
                            ; in (or inherited by) the linux-server host template definition.<br>
        host_name               node1,node2<br>
        alias                         node1<br>
        address                   192.168.122.167,192.168.122.218 <br>
        }<br><br><br>define service{<br>
        use                             local-service         ; Name of service template to use<br>
        host_name                       node1,node2<br>
        service_description             Current Users<br>
    check_command            check_nrpe!check_users<br>
        }<br><br>. Will it work . Have not tried yet. What you people suggest should be the approach  if somebody is planning to monitor more than 50 servers. <br><br>Any help will be highly appreciated <br><br>Thanks in Advance<br>Zaman<br><br></td></tr></table>