kamuibf
(usa Outra)
Enviado em 08/10/2013 - 09:58h
Segue a saída do comando:
[root@Nagios log]# /usr/bin/nagios -v /etc/nagios/nagios.cfg
-bash: /usr/bin/nagios: Arquivo ou diretório não encontrado
[root@Nagios log]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website:
http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/services.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/wifi.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/switch.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/printer.cfg'...
Processing object config directory '/usr/local/nagios/etc/check_mk.d'...
Processing object config file '/usr/local/nagios/etc/check_mk.d/check_mk_templates.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 467 services.
Checking hosts...
Checked 165 hosts.
Checking host groups...
Checked 13 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 4 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 99 commands.
Checking time periods...
Checked 6 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
[root@Nagios log]# clear
[root@Nagios log]# clear
[root@Nagios log]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website:
http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/services.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/wifi.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/switch.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/printer.cfg'...
Processing object config directory '/usr/local/nagios/etc/check_mk.d'...
Processing object config file '/usr/local/nagios/etc/check_mk.d/check_mk_templates.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 467 services.
Checking hosts...
Checked 165 hosts.
Checking host groups...
Checked 13 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 4 contacts.
Checking contact groups...
Checked 2 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 99 commands.
Checking time periods...
Checked 6 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check