User Tools

Site Tools


linux:nagios_addingpartition

Adding Partitions to localhost

Edit your localhost.cfg:

vi /usr/local/nagios/etc/objects/localhost.cfg

Add the following to your localhost.cfg

...
 93
 94 define service{
 95         use                             local-service         ; Name of service template to use
 96         host_name                       dc.lan.darktemple.ch
 97         service_description             inetpub partition
 98         check_command                   check_local_disk!20%!10%!/inetpub
 99         }
100
101
...

Change the following line to add your partition:

...
98         check_command                   check_local_disk!20%!10%!/inetpub
...

Replace /inetpub with your custom partition

The Result:

linux/nagios_addingpartition.txt · Last modified: 2011/06/02 14:49 by skull@darktemple.ch