You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is probably because I had a "/" in one of the host names in my csv. I cannot seem to get this host deleted. It looks like I cannot apply a new configuration until I get rid of it. Any ideas of a files I can change to get this out of there? Thanks in advance for your help!
- APPLYING NAGIOS CONFIGURATION (csv2nag -y all)
sudo: unable to resolve host OquawkaNAS
Creating hosts file local-nodes/dev/Master50/5revcrel.13.cfg
/usr/bin/csv2nag: line 619: local-nodes/dev/Master50/5revcrel.13.cfg: No such file or directory
THIS FILE WAS CREATED BY THE CSV2NAG SCRIPT
DON'T MODIFY THIS FILE. ALL CHANGES WILL BE OVERWRITTEN
define host {
use hsttmpl-contacts
host_name Master50/5revcrel.13
alias Master50/5revcrel.13
address 10.0.0.205
/usr/bin/csv2nag: line 628: 3: Bad file descriptor
/usr/bin/csv2nag: line 630: local-nodes/dev/Master50/5revcrel.13.cfg: No such file or directory
hostgroups dev
}
/usr/bin/csv2nag: line 798: 3: Bad file descriptor
Creating hostgroups file local_hostgroups.cfg
ERROR: Couldn't find Master50/5revcrel.13.cfg
Was this script run with hosts TYPE first?
Aborting
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
Checking services...
Error: There are no services defined!
Checked 0 services.
Checking hosts...
Error: There are no hosts defined!
Checked 0 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 3 contacts.
Checking contact groups...
Checked 1 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 50 commands.
Checking time periods...
Checked 2 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: 2
***> One or more problems was encountered while running the pre-flight check...
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.
Total Warnings: 0, Total Errors: 2
- SCHEDULING NAGIOS RESTART
NAGCTL ERROR: Config error. Nagios restart request not sent.
The text was updated successfully, but these errors were encountered:
Thanks for your quick response! I successfully got my hosts updated after deleting the hosts in the file at the exact path: "/volume1/@appstore/Synagios/nagios-chroot/etc/nagios3/objects/local/setup/local_hosts.setup"
I know this is probably because I had a "/" in one of the host names in my csv. I cannot seem to get this host deleted. It looks like I cannot apply a new configuration until I get rid of it. Any ideas of a files I can change to get this out of there? Thanks in advance for your help!
- APPLYING NAGIOS CONFIGURATION (csv2nag -y all)
sudo: unable to resolve host OquawkaNAS
Creating hosts file local-nodes/dev/Master50/5revcrel.13.cfg
/usr/bin/csv2nag: line 619: local-nodes/dev/Master50/5revcrel.13.cfg: No such file or directory
THIS FILE WAS CREATED BY THE CSV2NAG SCRIPT
DON'T MODIFY THIS FILE. ALL CHANGES WILL BE OVERWRITTEN
define host {
use hsttmpl-contacts
host_name Master50/5revcrel.13
alias Master50/5revcrel.13
address 10.0.0.205
/usr/bin/csv2nag: line 628: 3: Bad file descriptor
/usr/bin/csv2nag: line 630: local-nodes/dev/Master50/5revcrel.13.cfg: No such file or directory
hostgroups dev
}
/usr/bin/csv2nag: line 798: 3: Bad file descriptor
Creating hostgroups file local_hostgroups.cfg
ERROR: Couldn't find Master50/5revcrel.13.cfg
Was this script run with hosts TYPE first?
Aborting
- NAGIOS CONFIGURATION CHECK (nagios -v /etc/nagios/nagios.cfg)
sudo: unable to resolve host OquawkaNAS
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 directory '/etc/nagios3/objects/local'...
Processing object config file '/etc/nagios3/objects/local/local_hostextinfo.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_hostesc.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_serviceesc.cfg'...
Processing object config directory '/etc/nagios3/objects/local/setup'...
Processing object config file '/etc/nagios3/objects/local/local_servicetemplates.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_servicegroups.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_servicedeps.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_timeperiods.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_hostgroups.cfg'...
Processing object config directory '/etc/nagios3/objects/local/local-nodes'...
Processing object config directory '/etc/nagios3/objects/local/local-nodes/dev'...
Processing object config file '/etc/nagios3/objects/local/local_serviceextinfo.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_hosttemplates.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_commands.cfg'...
Processing object config directory '/etc/nagios3/objects/local/versions'...
Processing object config file '/etc/nagios3/objects/local/local_contacts.cfg'...
Processing object config file '/etc/nagios3/objects/local/local_hostdeps.cfg'...
Processing object config directory '/etc/nagios3/objects/local/setup.known_good'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Error: There are no services defined!
Checked 0 services.
Checking hosts...
Error: There are no hosts defined!
Checked 0 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 3 contacts.
Checking contact groups...
Checked 1 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 50 commands.
Checking time periods...
Checked 2 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: 2
***> One or more problems was encountered while running the pre-flight check...
Total Warnings: 0, Total Errors: 2
- SCHEDULING NAGIOS RESTART
NAGCTL ERROR: Config error. Nagios restart request not sent.
The text was updated successfully, but these errors were encountered: