<div>Hi i got nagios 2.4</div>
<div> </div>
<div>I want to monitor disk space available on 30 servers i have does any one have a code so i can define the command in check_commands.cfg,</div>
<div> </div>
<div>i tried the bellow code and changing the host_name to whatever server but gives me the disk space of my localhost still dont know why cause its the same format isnt it</div>
<div>unless i am suppose to create another define command as general service, but ping service works which is wiered.</div>
<div> </div>
<div>also for any future addtionall services do i have to define them globaly in the checkcommands.cfg? OR IS THERE ANOTHER FILE THAT I USE TO DEFINE A SERVICE</div>
<div> </div>
<div>thanks</div>
<div> </div>
<div>define service{<br> use generic-service ; Name of service template to use<br> <strong>host_name localhost</strong><br> service_description Root Partition
<br> is_volatile 0<br> check_period 24x7<br> max_check_attempts 4<br> normal_check_interval 5<br> retry_check_interval 1
<br> contact_groups gmaster<br> notification_options w,u,c,r<br> notification_interval 960<br> notification_period 24x7<br> check_command check_local_disk!20%!10%!/
<br> }</div>