= Icinga Hands - On - Cont= Through this hands-on you see * How to add a host * How to add a service * How to monitor disk space * How to check files * How to add an agent == How to add a host == === How to add a host template === Before adding hosts, the host templates have to be added. These templates should have the details on how host needs to be checked. [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/host_template28.png, 600)]] === Add a host === Add the hosts after adding host template: [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/add_hosts30.png, 600)]] == How to add a Service == === How to add a service template === Before adding services, the service templates has to be added, [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/service_template32.png, 600)]] === Add a Service === After, services can be added as following as per requirements: [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/iCinga/service33.png, 600)]] == How to check disk space == Before adding the service to check the disk space in a host, add the service template for the diskspace with necessary commands as following image [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/icinga_handson_cont/diskspace_service.png, 600)]] And after, Please add the service to the host to monitor the diskspace as follows [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/icinga_handson_cont/diskcheck1.png, 600)]] [[Image(https://ws.learn.ac.lk/raw-attachment/wiki/NSM2021/Agenda/icinga_handson_cont/diskcheck2.png, 600)]] == How to check files == == How to add an Agent==