ok this is how far i got with the documentation but same error keeps coming
up when i try to put in external command ex: comment in host:

Error: Could not open command file '/var/log/nagios/rw/nagios.cmd' for
update!

ok and here is what i have for my permission set since thats indicating to
be the problem

*> ls -al*
total 612
drwxr-xr-x  4 nagios nagios     4096 Jan 22 12:20 .
drwxr-xr-x  6 root   root       4096 Jan 21 04:02 ..
drwxr-xr-x  2 nagios nagios     4096 Jan 22 00:00 archives
-rw-rw-r--  1 nagios nagios      238 Jan 21 09:18 comments.dat
-rw-------  1 nagios nagios    16161 Jan  2 09:45 dead.letter
-rw-rw-r--  1 nagios nagios      239 Nov  1 19:59 downtime.dat
-rw-rw-r--  1 nagios nagios    24965 Jan 22 12:12 nagios.log
-rw-------  1 nagios nagios    18260 Jan  2 13:34 nagios.tmpXc4VgH
-rw-r--r--  1 nagios nagios   146210 Jan 22 11:53 objects.cache
-rw-------  1 nagios nagios   180872 Jan 22 11:53 retention.dat
drwxrwsr-x  2 nagios nagiocmd   4096 Jan 22 11:53 rw
-rw-rw-r--  1 nagios nagios   173636 Jan 22 12:20 status.dat
*> cd rw*
*> ls*
nagios.cmd
*> ls -al*
total 16
drwxrwsr-x  2 nagios nagiocmd 4096 Jan 22 11:53 .
drwxr-xr-x  4 nagios nagios   4096 Jan 22 12:21 ..
prw-rw----  1 nagios nagiocmd    0 Jan 22 11:53 nagios.cmd


everything is how it suppose to be as shown in the manual

need help nagios.cmd file is there just can not edit anything and i have
external_command enables and interval check set to -1


thanks





















On 1/22/07, Marc Powell <[EMAIL PROTECTED]> wrote:



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Nedim Bicic
> Sent: Sunday, January 21, 2007 5:33 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] nagios.cmd external
>
> Hi all, i have nagios 2.4
>
> I need want to change and input settings via the web interface like
> scheduale downtime etc, which i read that the external command does
this i
> enabled it in nagiod.cfg =1
> but i aslo found out that you need to create a nagios.cmd file and
give it
> directory permission , located in one of the folders that keeps this
log
>
> my question is how do i create this file and make it point to external
> command so when i do isue an extenal command on web interface

Please read the documentation for the section titled 'External
Commands'. It answers all your questions.

--
Marc


-------------------------------------------------------------------------
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@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

-------------------------------------------------------------------------
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@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

Reply via email to