Page 1 of 1

Where define a host Linux?

Posted: Thu Apr 30, 2015 7:43 am
by xerez
Hi, I feel a little silly, but where I have define a Linux host?

I read in the documentation that for monitoring windows, could use "windows.cfg", but for Linux (http://nagios.sourceforge.net/docs/3_0/ ... linux.html) not says nothing. And this doc is very short...

Thanks!

Re: Where define a host Linux?

Posted: Thu Apr 30, 2015 9:02 am
by ssax
You can put it in any file you want as long as it's included in the /usr/local/nagios/etc/nagios.cfg file.

You could create a new file and add this line in your nagios.cfg (put it next to the other ones in there)

Code: Select all

cfg_file=/usr/local/nagios/etc/objects/linux.cfg
Make sure to:

Code: Select all

chown nagios.nagios /usr/local/nagios/etc/objects/linux.cfg
chmod 774 /usr/local/nagios/etc/objects/linux.cfg
service nagios restart

Re: Where define a host Linux?

Posted: Wed May 06, 2015 4:30 am
by xerez
Thanks!

Re: Where define a host Linux?

Posted: Wed May 06, 2015 9:27 am
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!