external commands schedule downtime.

Patrick Morris patrick.morris at hp.com
Mon Jul 31 22:39:18 CEST 2006


On Mon, 31 Jul 2006, Justin Craig wrote:

> Interesting, what should it be?  This is the default as I have not changed
> it, and nagios.cmd does exist in usr/local/nagios/var/rw
> 
> On 7/31/06, Patrick Morris <patrick.morris at hp.com> wrote:
> >
> >On Mon, 31 Jul 2006, Justin Craig wrote:
> >
> >> such as schedule downtime for a host or service, or disabling
> >> notifications....  I understand this could be seperate issues, but I
> >have
> >> permission for "nagiosadmin" to be able to issue external commands et
> >al.
> >> When I try to schedule downtime, nagios tells me
> >>
> >> Error: Could not open command file 'usr/local/nagios/var/rw/nagios.cmd'
> >for
> >> update!
> >>
> >> The permissions on the external command file and/or directory may be
> >> incorrect.
> >
> >Take a look at the path.  It's wrong.

Without a slash at the beginning, it's a relative path.  It's only going
to be right if you're in the home directory.

For example, try typing "cd usr/local/nagios/var/rw" from /home.  It
won't work.

-------------------------------------------------------------------------
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
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list