Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

how do I add a host in icinga-web? Do I need to modify access.xml and rebuild the cache? Or can I have a configuration similar to icinga/nagios?

share|improve this question
    
Never Mind! One can use standard configs from /usr/local/icinga/ –  Dieter Aug 26 '11 at 11:59

1 Answer 1

To add a host, you must define it first, e.g linux.cfg:

define host {
    use                 linux-server
    host_name           s80
    address             x.x.x.x
    check_command       check-icmp
    contact_groups      admin
}

(Do the sames for all services which you want to monitor)

Insert full path to this file into icinga.cfg:

cfg_file=/usr/local/icinga/etc/hosts/linux.cfg

Verify your configuration with:

# /usr/local/icinga/bin/icinga -v /usr/local/icinga/etc/icinga.cfg 

and restart Icinga:

# /etc/init.d/icinga reload
share|improve this answer

protected by Sven Feb 2 at 3:10

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.