Adding hosts and services

Nedim Bicic nedo72 at gmail.com
Sun Feb 4 20:29:10 CET 2007


On 2/1/07, Nedim Bicic <nedo72 at gmail.com> wrote:
>
> yeah i totally forgot about this
>
> let me ask you in order for nagios to see and compile these host files and
> services for example for
> I would uncomment bellow line in nagios.cfg
>
> #cfg_dir=/etc/nagios/routers
>
> create this extension in nagios give it full permission on the directory
> folder and file and it hould work ??
>
> does that sound about right??
>
> thanks
>
>
>
> On 2/1/07, Josh Yost <Josh.Yost at epsiia.com> wrote:
> >
> > Nedim Bicic wrote:
> > > yeah i can create subdirectory for hosts and services and make a
> > pointer in
> > > nagios.cfg but let me ask you could you have multiple host.cfg files
> > and
> > > service.cfg files on the local host
> > >
> > > for example splitting hosts into areas and serivces into regions
> > >
> > > also my cpu is spiking in terms of processing i wonder if thats caused
> >
> > > by my
> > > updated of host and services that are in the same files.???
> > >
> >
> > Hi,
> > If you define a cfg_dir, then it reads anything in that dir w/ a .cfg
> > extension.  So yes, you can split it into as many files as you like.
> >
> > From the nagios.cfg:
> >
> > # You can also tell Nagios to process all config files (with a .cfg
> > # extension) in a particular directory by using the cfg_dir
> > # directive as shown below:
> >
> > #cfg_dir=/etc/nagios/servers
> > #cfg_dir=/etc/nagios/printers
> > #cfg_dir=/etc/nagios/switches
> > #cfg_dir=/etc/nagios/routers
> >
> >
> > - Josh
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070204/564989a5/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list