> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Paul Broadwith > Sent: Thursday, July 19, 2007 11:11 AM > To: Valdinger, Stephen (DOV, MSX); nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Permission Denied on check_nt > > Hi, > > > > The following command works fine in the terminal both for the nagios user > ('su nagios' from root) and for the root: > > > > /usr/lib/nagios/plugins/check_nt -H 192.168.100.20 -p 12489 -v > USEDDISKSPACE -l c -w 80 -c 90 > > > > Both produce the desired results.
That's a good sign and definitely narrows down what the issue could be. To be clear, can you provide the entire output from the unsuccessful check from nagios.log? As far as what else to check, are you certain that $USER1$ is /usr/lib/nagios/plugins and that $HOSTADDRESS$ is 192.168.100.20? It might be helpful to see the actual command that nagios is running by changing the command{} definition to be -- command_line echo "$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$" It won't actually run check_nt but you'll see what nagios would be doing. Did you change this check from some other configuration? I'd restart nagios either way and while doing so, verify that you don't have multiple nagios processes running. > > The second problem I have is when I try to change the scheduled time for > the next check on a service - the error I get is: > > > > Error: Could not stat() command file '/var/log/nagios/rw/nagios.cmd'! > > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > > An error occurred while attempting to commit your command for processing. Sounds like you either haven't completely followed the instructions on enabling external commands or that you have SELinux or some other permissions issue preventing the web server from accessing that file. You should verify that your configuration matches the nagios documentation for enabling external commands (using your rpm specific paths of course) and that you've restarted your web server if you changed it's group membership. -- Marc p.s. please always use non-html/rich text messages when sending to support lists. It's difficult to reply in context and really messes up the digests. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null