<div> </div>
<div>ok here is exactly what i get when i run the folwing command when i try to restart nagios</div>
<div>I guess this mean its working when i restart it using follwing command</div>
<div> </div>
<div><strong>> /etc/rc.d/init.d/nagios restart</strong><br>Running configuration check...done<br>Stopping network monitor: nagios<br>Waiting for nagios to exit . done.<br>Starting network monitor: nagios<br> </div>
<div>Then i try to run this bellow is it set up right i dont know you tell me guys</div>
<div> </div>
<div><strong>> nagios -v /etc/rc.d/init.d/nagios restart</strong><br><br>Nagios 2.4<br>Copyright (c) 1999-2006 Ethan Galstad (<a href="http://www.nagios.org">http://www.nagios.org</a>)<br>Last Modified: 05-31-2006<br>
License: GPL<br><br>Reading configuration data...<br><br>Error in configuration file '/etc/rc.d/init.d/nagios' - Line 31 (NULL variable)<br><br>***> The name of the main configuration file looks suspicious...<br>
<br>     Make sure you are specifying the name of the MAIN configuration file on<br>     the command line and not the name of another configuration file.  The<br>     main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'
<br><br>***> One or more problems was encountered while processing the config files...<br><br>     Check your configuration file(s) to ensure that they contain valid<br>     directives and data defintions.  If you are upgrading from a previous
<br>     version of Nagios, you should be aware that some variables/definitions<br>     may have been removed or modified in this version.  Make sure to read<br>     the HTML documentation regarding the config files, as well as the
<br>     'Whats New' section to find out what has changed.<br><br>Nagios 2.4<br>Copyright (c) 1999-2006 Ethan Galstad (<a href="http://www.nagios.org">http://www.nagios.org</a>)<br>Last Modified: 05-31-2006<br>License: GPL
<br><br>Reading configuration data...<br><br>Error: Cannot open main configuration file '/etc/nagios' for reading!<br><br>***> The name of the main configuration file looks suspicious...<br><br>     Make sure you are specifying the name of the MAIN configuration file on
<br>     the command line and not the name of another configuration file.  The<br>     main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'<br><br>***> One or more problems was encountered while processing the config files...
<br><br>     Check your configuration file(s) to ensure that they contain valid<br>     directives and data defintions.  If you are upgrading from a previous<br>     version of Nagios, you should be aware that some variables/definitions
<br>     may have been removed or modified in this version.  Make sure to read<br>     the HTML documentation regarding the config files, as well as the<br>     'Whats New' section to find out what has changed</div>

<div> </div>
<div> </div>
<div>thanks</div>
<div><br><br> </div>
<div><span class="gmail_quote">On 1/10/07, <b class="gmail_sendername">Jim Perrin</b> <<a href="mailto:jperrin@gmail.com">jperrin@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Be sure to copy the nagios list in your replies, not just me.<br><br>On 1/9/07, Nedim Bicic <<a href="mailto:nedo72@gmail.com">
nedo72@gmail.com</a>> wrote:<br>> I am running Nagios version 2.4<br>> I set them up by simply going to nagios.cfg edited out # for each object<br>> file ex: cfg_file=etc/nagios/host.cfg and so on then<br>> created the file in the nagios directory using touch and chown for full
<br>> permission<br>><br>> now when i add hosts and serives for each file and then go to webinterface<br>> nagios it works<br>> i can see several hosts and they are shown as being up<br>><br>> but when i try editing out # next to conacts group and dependencies and try
<br>> to restart nagios it keeps giving me an error " Reading etc/nagios main<br>> config file line 31 Null variable" soemthing like this.<br><br>Then you're not doing something properly. Without seeing the config
<br>file you're talking about, I have no way of knowing what you're<br>screwing up.<br><br>running nagios -v /path/to/your/nagios/etc/nagios.cfg is a good way to<br>help figure out what you're screwing up.<br>
<br><br>--<br>During times of universal deceit, telling the truth becomes a revolutionary act.<br>George Orwell<br></blockquote></div><br>