Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

IMG 1010 - Upgrade From MRTG to Cacti Watcher

Prerequisite:

MRTG installed on GCEMS platform

 

Overview:

If MRTG is already installed on the GCEMS platform and user would like to upgrade to the Cacti Watcher Function, below is an upgrade procedure that should be followed. Previous MRTG Data will NOT be automatically picked up by Cacti. On an upgrade, users can choose to install Cacti and utilize it for all data collected after the upgrade is successful.

Related Topics:

IMG 1010 - Overview of Cacti Watcher

IMG 1010 - Installing Cacti

Procedure:

  • To begin the upgrade procedure you must Stop GCEMS if GCEMS is running

  • There is a file named dialogicPRIMRYcron located at /opt/dialogic/IMG/GateControlEMS/bin. This file needs to have the reference to MRTG commented out. Using either a vi editor or gedit comment out 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
#
  • Kill all http processes that are currently running. In order to do this you will need to grep for the processes that are running. See command below

# ps -ef | grep httpd
  • A screen like the following will appear.

root      3126     1  0 Nov12 ?        00:00:00 /www/bin/httpd -k start
daemon    3133  3126  0 Nov12 ?        00:01:23 /www/bin/httpd -k start
daemon    3134  3126  0 Nov12 ?        00:01:23 /www/bin/httpd -k start
daemon    3135  3126  0 Nov12 ?        00:01:39 /www/bin/httpd -k start
daemon    3136  3126  0 Nov12 ?        00:01:13 /www/bin/httpd -k start
daemon    3137  3126  0 Nov12 ?        00:01:24 /www/bin/httpd -k start
excelsw   3301     1  2 Nov12 ?        00:51:28 Xvnc :1 -desktop img2-dtran.cantata.com:1 (excelsw) -httpd /usr/share/vnc/classes -auth /home/excelsw/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /home/excelsw/.vnc/passwd -rfbport 5901 -pn
daemon    4555  3126  0 Nov12 ?        00:01:15 /www/bin/httpd -k start
daemon    4735  3126  0 Nov12 ?        00:01:30 /www/bin/httpd -k start
root      6165  2593  0 16:03 pts/1    00:00:00 grep http
  • In order to kill all the http processes you must become root user. Follow the command below to accomplish this

$ su
$ excel2 (root password)
# kill -9 3133 3134 3135 3136 3137 4555 4735   (NOTE: The process numbers will be different for your application)
  • Follow the installation procedure "Installing Cacti". See related topic above. Once finished you should have cacti running and graphs should be getting populated with cacti application. 

  • No labels