Problems with RHEL6 epel nagios-4.4.3
Posted: Mon Feb 04, 2019 10:01 am
I have my nagios server set to use yum-cron to auto apply updates
It upgraded 4.3.4-7.el6.x86_64 to 4.4.3-1.el6.x86_64 from epel
First problem is it has broken the service script /etc/init.d/nagios as an extra if test was introduced without a closing fi directive
This causes the following to happen
$ sudo service nagios status
/etc/init.d/nagios: line 153: syntax error near unexpected token `}'
/etc/init.d/nagios: line 153: `}'
printstatus_nagios ()
{
if status_nagios; then <------------ This line was added it has no closing fi
status_nagios $1 $2
RETVAL=$?
if [ $RETVAL = 0 ]; then
echo "nagios (pid $NagiosPID) is running..."
else
echo "nagios is not running"
fi
return $RETVAL
}
I commented out the new line and the service script then runs and allows you to start nagios
But when I login as nagiosadmin I can only see my nagios host, not the servers I had it set up to monitor
I have checked my cgi.cfg and its unchanged (a new one was delivered in the new version but its there as cgi.cfg.rpmnew)
The error message I get is :
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
Has anything else been changed in 4.4.3 that requires new config to be added for nagiosadmin to be able to see the hosts that were configured?
Alec Keeler
It upgraded 4.3.4-7.el6.x86_64 to 4.4.3-1.el6.x86_64 from epel
First problem is it has broken the service script /etc/init.d/nagios as an extra if test was introduced without a closing fi directive
This causes the following to happen
$ sudo service nagios status
/etc/init.d/nagios: line 153: syntax error near unexpected token `}'
/etc/init.d/nagios: line 153: `}'
printstatus_nagios ()
{
if status_nagios; then <------------ This line was added it has no closing fi
status_nagios $1 $2
RETVAL=$?
if [ $RETVAL = 0 ]; then
echo "nagios (pid $NagiosPID) is running..."
else
echo "nagios is not running"
fi
return $RETVAL
}
I commented out the new line and the service script then runs and allows you to start nagios
But when I login as nagiosadmin I can only see my nagios host, not the servers I had it set up to monitor
I have checked my cgi.cfg and its unchanged (a new one was delivered in the new version but its there as cgi.cfg.rpmnew)
The error message I get is :
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.
Has anything else been changed in 4.4.3 that requires new config to be added for nagiosadmin to be able to see the hosts that were configured?
Alec Keeler