Errors after installation
Gary Hartl
ghartl at gmail.com
Tue Nov 25 21:21:44 CET 2008
Hi all;
I've installed Nagaios 3.0.3 on a FreeBSD system (6.0-release) sparc64
Installed from freebsd package tree.
I copied the sample configs to be used as normal configs and i get the
following errors when i try tofire it up (during the preflight)
Error: Service check command 'check_local_load' specified in service
'Current Load' for host 'localhost' not defined anywhere!
Error: Service check command 'check_local_users' specified in service
'Current Users' for host 'localhost' not defined anywhere!
Error: Service check command 'check_http' specified in service 'HTTP' for
host 'localhost' not defined anywhere!
Error: Service check command 'check_ping' specified in service 'PING' for
host 'localhost' not defined anywhere!
Error: Service check command 'check_local_disk' specified in service 'Root
Partition' for host 'localhost' not defined anywhere!
Error: Service check command 'check_ssh' specified in service 'SSH' for host
'localhost' not defined anywhere!
Error: Service check command 'check_local_swap' specified in service 'Swap
Usage' for host 'localhost' not defined anywhere!
Error: Service check command 'check_local_procs' specified in service 'Total
Processes' for host 'localhost' not defined anywhere!
I'm assuming that my localhost.cfg isn't configured correctly but I'm new to
nagios so I couldn't tell ya to begin with.
I have included a copy of my localhost.cfg file below.
All help appreciated.
Gary
Localhost.cfg
############################################################################
###
############################################################################
###
#
# HOST DEFINITION
#
############################################################################
###
############################################################################
###
# Define a host for the local machine
define host{
use freebsd-server ; Name of host
template to use
; This host
definition will inherit all variables that are defined
; in (or inherited
by) the freebsd-server host template definition.
host_name localhost
alias localhost
address 127.0.0.1
}
############################################################################
###
############################################################################
###
#
# HOST GROUP DEFINITION
#
############################################################################
###
############################################################################
###
# Define an optional hostgroup for FreeBSD machines
define hostgroup{
hostgroup_name freebsd-servers ; The name of the hostgroup
alias FreeBSD Servers ; Long name of the group
members localhost ; Comma separated list of hosts that
belong to this group
}
############################################################################
###
############################################################################
###
#
# SERVICE DEFINITIONS
#
############################################################################
###
############################################################################
###
# Define a service to "ping" the local machine
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
# Define a service to check the disk space of the root partition
# on the local machine. Warning if < 20% free, critical if
# < 10% free space on partition.
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description Root Partition
check_command check_local_disk!20%!10%!/
}
# Define a service to check the number of currently logged in
# users on the local machine. Warning if > 20 users, critical
# if > 50 users.
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description Current Users
check_command check_local_users!20!50
}
# Define a service to check the number of currently running procs
# on the local machine. Warning if > 250 processes, critical if
# > 400 users.
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description Total Processes
check_command check_local_procs!250!400!RSZDT
}
# Define a service to check the load on the local machine.
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description Current Load
check_command
check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
}
# Define a service to check the swap usage the local machine.
# Critical if less than 10% of swap is free, warning if less than 20% is
free
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description Swap Usage
check_command check_local_swap!20!10
}
# Define a service to check SSH on the local machine.
# Disable notifications for this service by default, as not all users may
have SSH enabled.
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description SSH
check_command check_ssh
notifications_enabled 0
}
# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may
have HTTP enabled.
define service{
use local-service ; Name of
service template to use
host_name localhost
service_description HTTP
check_command check_http
notifications_enabled 0
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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