Re: [Nagios-users] enabling external commands

2006-02-05 Thread VINAY_SHARMA


Hi,

Try to run nagios from command propmt or in startup file like ...
nagios start -v

after you can use your nagios.cmd file for external command.i have same
problem before.


Thanks  regards
**
Vinay Sharma
Information Systems and Solutions-Associates
Advanex Inc (www.advanex.co.jp)
Fon   : 813-3822-5863
Fax : 813-5815-7881
Email   : [EMAIL PROTECTED]



   
  Yong Lee [EMAIL PROTECTED]  

  送信者:  宛先: 
nagios-users@lists.sourceforge.net
  [EMAIL PROTECTED]cc:  
   
  ceforge.net  件名: 
[Nagios-users] enabling external commands 

   

   
  2006/02/05 14:15  
   
  ylee へ返信してください
  

   

   




Hi all,

I hope someone can help me with a very puzzling problem.  I am trying to
enable external commands so that I can temporarily disable notifications
of a known problem.

I have the following setup in my configuration file:


check_external_commands=1
command_check_interval=1
command_file=/var/log/nagios/rw/nagios.cmd

However, everytime i want to use the disable command, I get the
message :

Sorry, but Nagios is currently not checking for external commands, so
your command will not be committed!

I am guessing that I probably have a file permission/selinux context
issue somewhere but I am having difficulty tracking this down.

Can anyone provide some clues as to what files i can look at ?

How does the cgi determine that I am do not have access to external
commands ?

Many thanks for any help you can provide,

Yong.



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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







---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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


[Nagios-users] enabling external commands

2006-02-04 Thread Yong Lee
Hi all,

I hope someone can help me with a very puzzling problem.  I am trying to
enable external commands so that I can temporarily disable notifications
of a known problem.  

I have the following setup in my configuration file:


check_external_commands=1
command_check_interval=1
command_file=/var/log/nagios/rw/nagios.cmd

However, everytime i want to use the disable command, I get the
message :

Sorry, but Nagios is currently not checking for external commands, so
your command will not be committed!

I am guessing that I probably have a file permission/selinux context
issue somewhere but I am having difficulty tracking this down.  

Can anyone provide some clues as to what files i can look at ?  

How does the cgi determine that I am do not have access to external
commands ?

Many thanks for any help you can provide,

Yong.



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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


Re: [Nagios-users] enabling external commands

2006-02-04 Thread Yong Lee
K,

In answer to my own post, it looks like the command cgi *requires* the
nagios.cfg file to be used as the main configuration file.  I was trying
to use my own 'maing' config file which was causing me the grief.  Now I
am seeing the error message : 

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.

My nagios user is : nagios, http is apache and the permissions on this
file are correctsigh...one step at a time...any ideas ?

Yong.


On Sat, 2006-02-04 at 21:15 -0800, Yong Lee wrote:
 Hi all,
 
 I hope someone can help me with a very puzzling problem.  I am trying to
 enable external commands so that I can temporarily disable notifications
 of a known problem.  
 
 I have the following setup in my configuration file:
 
 
 check_external_commands=1
 command_check_interval=1
 command_file=/var/log/nagios/rw/nagios.cmd
 
 However, everytime i want to use the disable command, I get the
 message :
 
 Sorry, but Nagios is currently not checking for external commands, so
 your command will not be committed!
 
 I am guessing that I probably have a file permission/selinux context
 issue somewhere but I am having difficulty tracking this down.  
 
 Can anyone provide some clues as to what files i can look at ?  
 
 How does the cgi determine that I am do not have access to external
 commands ?
 
 Many thanks for any help you can provide,
 
 Yong.
 
 
 
 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
 ___
 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
 



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
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