IMG 1010 - Revert back to MRTG from Cacti
Prerequisite:
Cacti is installed and running on IMG
Overview:
If CACTI is already installed on the GCEMS platform and user would like to revert back to MRTG monitoring, below is a procedure that when executed will revert back to using MRTG.
Â
Related Topics:
IMG 1010 - Overview of Cacti Watcher
IMG 1010 - Upgrade From MRTG to Cacti Watcher
Â
Procedure:
To begin the procedure you must Stop GCEMS if GCEMS is running
There is a file named dialogicPRIMARYcron located at /opt/dialogic/IMG/GateControlEMS/bin. This file needs to have the reference to MRTG uncommented. Using either a vi editor or gedit uncomment the following line.
#*/5 * * * * env LANG=C /usr/local/mrtg/bin/mrtg /opt/dialogic/common/mrtg_bin/cantatamrtg.cfg -- logging /opt/dialogic/common/log/mrtg.log > /dev/null 2>&1 |
The file should look like the following after being commented out.
#######################################################################
#
# StartGCEMS was run in PRODUCTION/PRIMARY mode
#
######################################################################
# This script checks to see if each GCEMS component is running.
# If not, it is restarted.
#
* * * * * /opt/dialogic/IMG/GateControlEMS/bin/StartGCEMS -p -a > /dev/null 2>&1
#
# This script activates MRTG statistics gathering.
*/5 * * * * env LANG=C /usr/local/mrtg/bin/mrtg /opt/dialogic/common/mrtg_bin/cantatamrtg.cfg -- logging /opt/dialogic/common/log/mrtg.log > /dev/null 2>&1
#
# This script activates BACKUP File zip processing to happen daily at 12:30 AM.
30 0 * * * /opt/dialogic/IMG/GateControlEMS/bin/cantataBackupZip
# |
Located in /etc is a file named crontab. Using a VI editor or gedit utility comment out the reference to cacti. See file below with the line commented out
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
#*/5 * * * * cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null
2>&1 |
Verify that Cacti has stopped logging by going to /www/htdocs/cacti/rra and checking the timestamps on the files. Verify they are not getting updated.# cd /www/htdocs/cacti/rra
# ls -la |
Go to /opt/dialogic/IMG/GateControlEMS and edit the Defaults file using VI editor or Gedit so that the line stating Cacti support now reads CACTI_SUPPORT:0
The Apache database must now be linked to MRTG instead of Cacti. Follow steps below to accomplish this. A link will be created linking Apache to MRTG
$ su
$ excel2 (root password)
# cd /www/htdocs
# ln -s /opt/dialogic/common/mrtg_logs /www/htdocs/mrtg_logs |
In order to log into MRTG use the following link
http://<IP ADDRESS OF GCEMS HOST>/mrtg_logs/systemindex.html
Â