Need help

nemir nemiria nemir at hotmail.com
Thu Sep 13 06:03:43 CEST 2007


Been using nagios since 1.0,  and I think the methodology has shifted a 
little, but I am still old skool.


>I finally got Nagios working and into the web panel.


Excellent!  :-)


>Now, how on earth do I ADD new services to monitor???

In your nagios implementation there should be a series of config files 
underneath the etc directory.

In there will be something called nagios.cfg.


There will be a bunch of config files specified thus:

cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/dependencies.cfg
cfg_file=/usr/local/nagios/etc/escalations.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg



These files are what you use to configure nagios.


In the hosts file you can specify a host like this:

# 'SydInt01' host definition
define host{
        use                     generic-host            ; Name of host 
template to use

        host_name               SydInt01
        alias                   SydB2
        address                 172.30.20.244
        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   480
        notification_period     24x7
        notification_options    d,u,r
        contact_groups          npsadmins


Once the host is defined, you specify the services in the services.cfg.  For 
example:

define service{
        use                             generic-service         ; Name of 
service template to use

        host_name                       SydInt01
        service_description             PING
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              11
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  fw
        notification_interval           120
        notification_period             24x7
        notification_options            c,r
        check_command                   check_ping!1000.0,20%!5000.0,100%
        }


I hope this helps some.

Let me know if you have any more questions.

_________________________________________________________________
Get more out of your e-mail. Update to Windows Live Hotmail today! 
http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=778&referral=HotmailTagline&URL=http://g.msn.com/8HMBEN/14811??PS= 


-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- 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