nagios -v <configuration file>

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

nagios -v <configuration file>

Postby ddolecki108 » Thu Apr 20, 2017 4:02 pm

Line 18 which is throwing the error is here: https://pastebin.com/LNuaMiPQ

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/objects/production.cfg

Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data...

Error in configuration file '/usr/local/nagios/etc/objects/production.cfg' - Line 18 (NULL value)

***> The name of the main configuration file looks suspicious...

Make sure you are specifying the name of the MAIN configuration file on
the command line and not the name of another configuration file. The
main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'

***> 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.
ddolecki108
 
Posts: 14
Joined: Wed Apr 19, 2017 3:21 pm

Re: nagios -v <configuration file>

Postby dwhitfield » Thu Apr 20, 2017 4:14 pm

Please run tar -zcvf /tmp/supporttar.tar.gz /usr/local/nagios/etc and attach the file. If you are concerned about security, you can PM it to me. If you choose to PM, please make sure you update the thread so it shows back up on our support dashboard.

It looks like you don't have that command defined.

Also, is there any reason you are running such an old version?

UPDATE: tar received and shared with tech
Last edited by dwhitfield on Thu Apr 20, 2017 4:34 pm, edited 1 time in total.
Reason: pm received
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 3252
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: nagios -v <configuration file>

Postby ddolecki108 » Thu Apr 20, 2017 4:52 pm

Sent zip file.
ddolecki108
 
Posts: 14
Joined: Wed Apr 19, 2017 3:21 pm

Re: nagios -v <configuration file>

Postby mcapra » Fri Apr 21, 2017 1:18 pm

You're supposed to run nagios -v against nagios.cfg, not against individual objects.

Does the output of this look ok?
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Former Nagios employee - https://github.com/mcapra/
User avatar
mcapra
 
Posts: 2579
Joined: Thu May 05, 2016 3:54 pm


Return to Nagios Core

Who is online

Users browsing this forum: mcapra, sartecat, tmattingly and 17 guests