Created
July 4, 2013 19:07
-
-
Save akesterson/5929695 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@radar:~# nagios3 -v /etc/nagios3/nagios.cfg | |
Nagios Core 3.2.3 | |
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors | |
Copyright (c) 1999-2009 Ethan Galstad | |
Last Modified: 10-03-2010 | |
License: GPL | |
Website: http://www.nagios.org | |
Reading configuration data... | |
Read main config file okay... | |
Processing object config file '/etc/nagios3/commands.cfg'... | |
Processing object config directory '/etc/nagios-plugins/config'... | |
Processing object config file '/etc/nagios-plugins/config/procs.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/games.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/dummy.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/mailq.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/apt.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/ntp.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/ssh.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/http.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/users.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/news.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/dhcp.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/ifstatus.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/radius.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/nt.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/load.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/pgsql.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/ftp.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/mail.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/ping.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/telnet.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/check_nrpe.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/ldap.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/disk-smb.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/breeze.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/rpc-nfs.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/fping.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/disk.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/hppjd.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/mrtg.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/mysql.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/flexlm.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/dns.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/tcp_udp.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/snmp.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/netware.cfg'... | |
Processing object config file '/etc/nagios-plugins/config/real.cfg'... | |
Processing object config directory '/etc/nagios3/conf.d'... | |
Processing object config file '/etc/nagios3/conf.d/extinfo_nagios2.cfg'... | |
Processing object config file '/etc/nagios3/conf.d/contacts_nagios2.cfg'... | |
Processing object config file '/etc/nagios3/conf.d/generic-host_nagios2.cfg'... | |
Processing object config file '/etc/nagios3/conf.d/services_nagios2.cfg'... | |
Processing object config file '/etc/nagios3/conf.d/hostgroups_nagios2.cfg'... | |
Processing object config file '/etc/nagios3/conf.d/generic-service_nagios2.cfg'... | |
Processing object config file '/etc/nagios3/conf.d/timeperiods_nagios2.cfg'... | |
Processing object config file '/etc/nagios3/conf.d/localhost_nagios2.cfg'... | |
Processing object config directory '/etc/nagios3/objects'... | |
Processing object config file '/etc/nagios3/objects/templates.cfg'... | |
Processing object config file '/etc/nagios3/objects/windows_hosts.cfg'... | |
Processing object config file '/etc/nagios3/objects/nagios_services.cfg'... | |
Processing object config file '/etc/nagios3/objects/linux_hosts.cfg'... | |
Processing object config file '/etc/nagios3/objects/nagios_hostgroup.cfg'... | |
Error: Could not find any hostgroup matching 'linuxhosts' (config file '/etc/nagios3/objects/linux_hosts.cfg', starting on line 76) | |
Error processing object config files! | |
***> One or more problems was encountered while processing the config files... | |
Check your configuration file(s) to ensure that they contain valid | |
directives and data defintions. If you are upgrading from a previous | |
version of Nagios, you should be aware that some variables/definitions | |
may have been removed or modified in this version. Make sure to read | |
the HTML documentation regarding the config files, as well as the | |
'Whats New' section to find out what has changed. | |
root@radar:~# cat /etc/nagios3/conf.d/hostgroups_nagios2.cfg | |
# Some generic hostgroup definitions | |
# A simple wildcard hostgroup | |
define hostgroup { | |
hostgroup_name all | |
alias All Servers | |
members * | |
} | |
# A list of your Debian GNU/Linux servers | |
define hostgroup { | |
hostgroup_name debian-servers | |
alias Debian GNU/Linux Servers | |
members localhost | |
} | |
# A list of your web servers | |
define hostgroup { | |
hostgroup_name http-servers | |
alias HTTP servers | |
members localhost | |
} | |
# A list of your ssh-accessible servers | |
define hostgroup { | |
hostgroup_name ssh-servers | |
alias SSH servers | |
members localhost | |
} | |
define hostgroup { | |
hostgroup_name Linux Hosts | |
alias linuxhosts | |
} | |
define hostgroup { | |
hostgroup_name Windows Hosts | |
alias winhosts | |
} | |
root@radar:~# cat /etc/nagios3/objects/templates.cfg | |
# MANAGED BY PUPPET | |
# Windows host definition template | |
define host{ | |
name windows-server | |
use generic-host | |
check_period 24x7 | |
check_interval 5 | |
retry_interval 1 | |
max_check_attempts 10 | |
check_command check-host-alive | |
notification_period 24x7 | |
notification_interval 30 | |
notification_options d,r | |
contact_groups admins | |
hostgroups winhosts | |
register 0 | |
} | |
# Linux host definition template | |
define host{ | |
name linux-box | |
use generic-host | |
check_period 24x7 | |
check_interval 5 | |
retry_interval 1 | |
max_check_attempts 10 | |
check_command check-host-alive | |
notification_period 24x7 | |
notification_interval 30 | |
notification_options d,r | |
contact_groups admins | |
hostgroups linuxhosts | |
register 0 | |
} | |
root@radar:~# grep -n '.*' /etc/nagios3/objects/linux_hosts.cfg | tail -n 20 | |
64: address 192.168.100.202 | |
65: hostgroups linuxhosts | |
66:} | |
67: | |
68:define host { | |
69: host_name bamboo | |
70: alias bamboo.aklabs.net | |
71: use linux-box | |
72: address 192.168.100.206 | |
73: hostgroups linuxhosts | |
74:} | |
75: | |
76:define host { | |
77: host_name lighttpd | |
78: alias lighttpd.aklabs.net | |
79: use linux-box | |
80: address 192.168.100.205 | |
81: hostgroups linuxhosts | |
82:} | |
83: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment