<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
My guess is Nagios is trying to parse cgi.cfg as an object
configuration file.<br>
IIRC, cgi.cfg should be in the same place as nagios.cfg, and NOT
entered into the nagios.cfg as part of either a cfg_file or cfg_dir
directive.<br>
<br>
As Jim said, it would help if you post the relevant portions of your
nagios.cfg file.<br>
<br>
Andy.<br>
<br>
Jim Avery wrote:
<blockquote
cite="mid765d77c80702260529o7072d546jecad5a878d61a890@mail.gmail.com"
type="cite">
<pre wrap="">On 26/02/07, Michael Weiner <a class="moz-txt-link-rfc2396E" href="mailto:hunter@userfriendly.net"><hunter@userfriendly.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am experiencing two issues, which i am having trouble getting around. The
first issue, and probably the most concerning is that whenever i define the
cgi.cfg in nagios.cfg and run nagios -v /etc/nagios/nagios.cfg it fails
complaining about the first unremarked line in the file
</pre>
</blockquote>
<pre wrap=""><!---->
It would help greatly if you could post the relevant portion of your
nagios.cfg and cgi.cfg files, and the exact error you get when you run
"nagios -v /etc/nagios/nagios.cfg".
I would strongly recommend that you consider installing Nagios and the
plugins from the source tarball which can be found at
<a class="moz-txt-link-freetext" href="http://www.nagios.org">http://www.nagios.org</a> rather than from .rpm . The .rpm install is
quite different to a source tarball install - it puts various bits of
Nagios in various different directories and makes it more difficult to
support. Also, it will install a version which has embedded perl
enabled - something you might find you don't want in the future.
If you install from source tarball, it may take you a little longer
than an rpm install, but you will learn more about Nagios while you do
the install, and will find that if you want to try some of the various
excellent add-ons for Nagios in the future, they are easier to get
working if you have done a standard install from tarball.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
<a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
!DSPAM:37,45e2e0b9103003857517878!
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Andy Shellam
NetServe Support Team
the Mail Network
"an alternative in a standardised world"
p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834</pre>
</body>
</html>