External Commands not working
Jason King
jking at informs.com
Tue Mar 6 19:32:21 CET 2007
You have to make sure "check_external_commands" option in the nagios.cfg
file is set to 1. Otherwise nagios never checks to see if an external
command has been issued.
Jason
Justin Craig wrote:
> My external commands are not working. Can someone provide assistance?
>
> Below is some of my cgi.cfg info:
>
> cgi.cfg
> nagios_check_command=/usr/local/nagios/libexec/check_nagios
> /usr/local/nagios/var/status.dat 5 '/usr/local/nagios/bin/nagios'
> use_authentication=1
> authorized_for_system_commands=nagiosadmin
>
> And my nagios.cfg is set to check for external commands.
>
> Also, I have in my httpd.conf file:
>
>
> ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
>
> <Directory "/usr/local/nagios/sbin">
> # SSLRequireSSL
> Options ExecCGI
> AllowOverride AuthConfig
> Order allow,deny
> Allow from all
> # Order deny,allow
> # Deny from all
> # Allow from 127.0.0.1 <http://127.0.0.1>
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /usr/local/nagios/etc/htpasswd.users
> Require valid-user
> </Directory>
>
> Alias /nagios "/usr/local/nagios/share"
>
> <Directory "/usr/local/nagios/share">
> # SSLRequireSSL
> Options None
> AllowOverride AuthConfig
> Order allow,deny
> Allow from all
> # Order deny,allow
> # Deny from all
> # Allow from 127.0.0.1 <http://127.0.0.1>
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /usr/local/nagios/etc/htpasswd.users
> Require valid-user
> </Directory>
> #
>
>
>
> Let me know your thoughts and any commands to run that would help
> troubleshoot this?
>
>
>
> --
> - Justin
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
-------------------------------------------------------------------------
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