Thursday 30 September 2010

Nagios - setting up a new host

1. Location --> /usr/local/nagios/etc/objects/ --> Setup new host

(I normally just copy another setup)

2. sudo cp host.cfg newhost.cfg

3. Then you have to setup the new host in
/usr/local/nagios/nagios.cfg
/usr/local/nagios/etc/objects/hostgroups.cfg
/usr/local/nagios/etc/objects/templates.cfg

3.1 Install nsclient++ on the new server

4. verify the configuration
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

5. Restart nagios
/etc/init.d/nagios restart

No comments:

Post a Comment