<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Re: [Nagios-users] Downtime and host not in configuration.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>This shouldn't happen with 2.0. Ethan creates a cached copy of the config files that both nagios and the cgis use.<BR>
<BR>
<BR>
--<BR>
Marc<BR>
<BR>
-----Original Message-----<BR>
From: Garrett, Matt M SITI-ITDIEEE <matt.garrett@shell.com><BR>
To: Nagios-Users (E-mail) <nagios-users@lists.sourceforge.net><BR>
Sent: Fri Dec 12 04:11:38 2003<BR>
Subject: [Nagios-users] Downtime and host not in configuration.<BR>
<BR>
Folks<BR>
<BR>
Sorry if this sounds real stupid.<BR>
<BR>
One of the admin guy's was trying to add downtime via the web pages.<BR>
All was going fine , until he tried to enter downtime for a host that did not exist in the nagios config files.<BR>
<BR>
The error message was<BR>
"Sorry, but you are not authorized to commit the specified command.<BR>
Read the section of the documentation that deals with authentication and authorization in the CGIs for more information.<BR>
<BR>
Return from whence you came<BR>
"<BR>
<BR>
While technically correct , in that he was not authorized to do the command , because the host was not in the config.<BR>
Is there any way to make nagios , give a better error message , like check if the host is in the config files and if not generate a suitable error.<BR>
<BR>
Just a idea.<BR>
<BR>
Matt<BR>
<BR>
<BR>
<BR>
Matthew Garrett<BR>
Unix System Support<BR>
Shell Information Technology International Limited<BR>
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom<BR>
<BR>
Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373<BR>
Email:<BR>
Internet: <A HREF="http://www.shell.com">http://www.shell.com</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>