Problem with nagios host configuration
Florian Schaal
nagios at ra-schaal.de
Mon Jun 9 19:49:08 CEST 2008
Giovanni Mancuso schrieb:
define host{
use generic-host
host_name portal1
alias portal1
address 192.168.10.31
}
should work. you can´t just modify a template.
> Hi to all,
> i insert in my nagios.cfg the sequent line:
> cfg_file=/usr/local/nagios/etc/server/portal1.cfg
>
> and in this file the content is the sequent:
>
> cat /usr/local/nagios/etc/server/portal1.cfg
> define host{
> name portal1 ; The name of this host template
> use generic-host ; This template inherits other values
> from the generic-host template
> check_period 24x7 ; By default, Linux hosts are
> checked round the clock
> check_interval 5 ; Actively check the host every 5 minutes
> retry_interval 1 ; Schedule host check retries at 1
> minute intervals
> max_check_attempts 10 ; Check each Linux host 10 times (max)
> check_command check-host-alive ; Default command to check
> Linux hosts
> notification_period workhours ; Linux admins hate to be woken
> up, so we only notify during the day
> notification_interval 120 ; Resend notifications every 2 hours
> notification_options d,u,r ; Only send notifications for
> specific host states
> contact_groups admins ; Notifications get sent to the
> admins by default
> address 192.168.10.31
> }
>
>
> if i execute:
> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg |grep
> -i 'hosts'
> Checking hosts...
> Checked 1 hosts.
>
> It finds only localhost configuration host, but if i execute the strace
> of nagios -v i see that the script read the portal1 config file.
>
> Have you any idea???
>
> Sorry for my English
>
> Thanks
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> 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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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