New NagiosXi deployment - NagiosXi services not set up
Posted: Mon Nov 17, 2014 11:32 am
Hi - I have just performed a fresh install of NagiosXi and it appears the nagiosxi service and sub-services have not been setup / installed.
The nagiosxi script in /etc/init.d looks completely commented out.
As a result all components in the "System Status" widget in the GUI underneath "Database Backend" are showing as red (Database Maintenance, Command Subsystem etc)
I performed an offline install on RHEL 6.4 (64bit). Access to the GUI seems fine however cannot add any hosts (config push simply perpetually attempts to deploy config without actually doing anything)
Where did I go wrong and how can I correct please?
The nagiosxi script in /etc/init.d looks completely commented out.
Code: Select all
#!/bin/sh
#
# chkconfig: 345 99 01
# description: NagiosXI subtasks
#
# $Id: nagiosxi,v 1.4 2010/06/14 13:33:48 root Exp $
#
PATH=PATH:/usr/local/bin/
stdserv="sysstat cmdsubsys eventman feedproc nom cleaner reportengine"
# See how we were called.
case "$1" in
start)
# Most scripts run frequently
RETVAL=0
#for ech in $stdserv; do true
# daemon -n $ech -r -u nagios.nagios -a 45 -o /usr/local/nagiosxi/var/${ech}.log -- /usr/bin/php -q /usr/local/nagiosxi/cron/${ech}.php
# RETVAL=$(( RETVAL || $? ))
#done
# DB maint runs a bit differently
#daemon -n dbmaint -r -u nagios.nagios -A 1 -L $(( 60 * 5 )) -o /usr/local/nagiosxi/var/dbmaint.log -- /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php
#RETVAL=$(( RETVAL || $? ))
# Recurring downtime script
;;
stop)
RETVAL=0
#for ech in $stdserv dbmaint; do true
# daemon -n $ech -r --stop -u nagios.nagios
# RETVAL=$(( RETVAL || $? ))
#done
;;
restart)
RETVAL=0
;;
status)
RETVAL=0
#for ech in $stdserv dbmaint; do true
# daemon -n $ech -r --running -u nagios.nagios
# RETVAL=$(( RETVAL || $? ))
#done
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
RETVAL=1
;;
esac
exit $RETVAL
I performed an offline install on RHEL 6.4 (64bit). Access to the GUI seems fine however cannot add any hosts (config push simply perpetually attempts to deploy config without actually doing anything)
Where did I go wrong and how can I correct please?