Remove Agent

To remove the Nodelizer Agent, run OS specific commands as given below :

For Package supported Linux distros :

Debian based – Debian, Ubuntu :

  • sudo dpkg -r rptmonitor (will not remove config file at location /etc/rptmonitor/)

    OR

    sudo dpkg -P rptmonitor (will erase config file as well)

  • Logs are not being removed by default, so you may need to remove them manually from

    • default location : /var/log/rptmonitor/ or custom location (if you have opt for different location)

RHEL based – CentOS, Red Hat, Fedora, CloudLinux, Amazon, openSUSE :

  • sudo rpm -ev rptmonitor (config file won’t be removed)

  • You may need to remove the config file and logs manually from locations

    • Config file : /etc/rptmonitor/
    • Log files : /var/log/rptmonitor/ or custom location (if you have opt for different location)
For other Linux distros :
  1. Stop rptmonitor service:

    sudo python /usr/local/bin/rptmonitor/monitor.py stop
  2. Remove agent directory (config will be deleted as well) :

    sudo rm -R /usr/local/bin/rptmonitor
  3. You may need to remove the logs manually from

    • Default Location: /tmp/ or custom location (if you have opt for different location)
For Mac OS X+ :
  1. Stop rptmonitor service:

    sudo python /usr/local/bin/rptmonitor/monitor.py stop
  2. Unload & remove launchd plist :

    sudo launchctl unload -w /Library/LaunchDaemons/com.nodelizer.rptmonitor.plist

    sudo rm /Library/LaunchDaemons/com.nodelizer.rptmonitor.plist

  3. Remove agent directory :

    sudo rm -R /usr/local/bin/rptmonitor (config will be deleted as well)

  4. You may need to remove the logs manually from location: /tmp/ or custom location (if you have opt for different location)

For FreeBSD 8+ :
  1. Stop rptmonitor service :

    sudo /usr/local/etc/rc.d/rptmonitor stop
  2. Remove agent script from startup directory :

    sudo rm /usr/local/etc/rc.d/rptmonitor
  3. Manually edit system config file :

    sudo vi /etc/rc.conf

    Remove the entry for rptmonitor service(below line) from the file:

    rptmonitor_enable=”YES”

  4. Remove agent directory (config will be deleted as well) :

    sudo rm -R /usr/local/bin/rptmonitor
  5. You may need to remove the logs manually from location: /tmp/ or custom location (if you have opt for different location)

For VMWare:
  1. Command to remove VIB package :

    esxcli software vib remove --vibname=rptmonitor
  2. After removing VIB, manually remove agent-python-files by running below cmd from location /sbin :

    rm -R rptmonitor
  3. To remove config file, run below cmd from location /etc :

    rm -R rptmonitor
  4. To remove the agent log files, remove the directory: /var/log/rptmonitor/
For XenServer :

As per the Control Domain VM OS, run the below commands to uninstall the python agent :

  • When Control Domain VM is default(redhat-derived) XenServer or a Linux distro supporting rpm/deb Package installation :

    1. Run below command to uninstall the pkg :

      For default(redhat-derived) XenServer, CentOS, Red Hat, Fedora, CloudLinux, Amazon, openSUSE:

      sudo rpm -ev rptmonitor #(config file won’t be removed)

      For Debian, Ubuntu:

      sudo dpkg -r rptmonitor #(will not remove config file)

      OR

      sudo dpkg -P rptmonitor #(will erase config file as well)

    2. You may need to remove the config file and logs manually from locations :

      /etc/rptmonitor/ & /var/log/rptmonitor/ respectively.

  • When Control Domain VM is a Linux distro that does not support rpm/deb package :

    1. Stop rptmonitor service :

      sudo python /usr/local/bin/rptmonitor/monitor.py stop
    2. Remove agent directory :

      sudo rm -R /usr/local/bin/rptmonitor #(config will be deleted as well)

    3. You may need to remove the logs manually from location :

      /tmp/

  • When Control Domain VM is a FreeBSD 8+ OS :

    1. Stop rptmonitor service :

      sudo /usr/local/etc/rc.d/rptmonitor stop
    2. Remove agent script from startup directory :

      sudo rm /usr/local/etc/rc.d/rptmonitor
    3. Manually edit system config file :

      sudo vi /etc/rc.conf

      And remove the entry for rptmonitor service(below line) from the file :

      rptmonitor_enable=”YES”

    4. Remove agent directory :

      sudo rm -R /usr/local/bin/rptmonitor #(config will be deleted as well)

    5. You may need to remove the logs manually from location :

      /tmp/