Monitoring Cisco VTS Infrastructure using Monit
Monit is used to collect status of all the services that are running on the VTS and VTSR VMs as well as compute nodes running VTF. The Policy Plane monitoring details are displayed in a dashboard under Monitor. The Data Plane and Control Plane monitoring details are displayed underMonitor Site.
-
VTC—60 seconds
-
VTSR—As entered in the vtsr_template.cfg file while installing VTSR.
-
VTF—30 seconds
Note |
For VTC and VTF, the intervals are fixed and you cannot change these values. |
This means that, when an event happens, the Cisco VTS UI will show the appropriate status only after this interval has passed.
About Monit Username and Passwords
- For Policy Plane (VTC)—Monit is packaged as part of VTC. Monit, when installed, will have a default username and password.
The default monit credentials for VTC when installed are:
- Username—monit-ro
-
Password—monit-ro
- For Control Plane (VTSR)—Monit is packaged as part of VTSR.
The default credentials for VTSR is entered while installing VTSR, by modifying the below two properties in vtsr_template.cfg: Upon logging into Cisco VTS for the first time after installation, the admin needs to enter this default username and password in the VTC GUI at Administration > Site Monitoring Settings > Monit Settings to view the VTSR monitoring information in the Monit Dashboard.#VTSR_OPER_USERNAME="monit-ro-oper" # Password needs an encrypted value # Example : "openssl passwd -1 -salt <salt-string> <password>" #VTSR_OPER_PASSWORD="$1$cisco$b88M8bkCN2ZpXgEEc2sG9/"
Note
See the Installing VTSR section in the Cisco VTS 2.6.3 Installation Guide, for details.
- For Data Plane (VTF)—Monit is packaged as part of VTF.
The default monit credentials for VTFs are:
- Username—monit-ro
-
Password—monit-ro
-
For Data Plane (VTF) deployed via OpenStack Platform Director (OSPD)—When VTF is installed via OSPD, the Monit related properties need to be updated in the neutron-cisco-vts.yaml file. See the Installing Cisco VTS 2.6.3 Components in OpenStack using Red Hat Enterprise Linux OpenStack Directodocument for details.
Changing Monit Password Subsequently
/opt/vts/bin/update_monit_credentials.sh.
-
To change password for Policy Plane, run:
/opt/vts/bin/update_monit_credentials.sh policy-plane <monit-username> <monit-password>
-
To change password for Data Plane, run:
/opt/vts/bin/update_monit_credentials.sh data-plane <monit-username> <monit-password> <site id>
-
To change password for Control Plane, run:
/opt/vts/bin/update_monit_credentials.sh control-plane <monit-username> <monit-password> <site id>
For VTC, the username cannot be changed. The default is monit-ro.
In HA mode, the password has to be changed on the Master.
To change Monit password for VTF deployed via OSPD, update the following properties under Monit-Configuration section in the neutron-cisco-vts.yaml file. See the Installing Cisco VTS 2.6.3 Components in OpenStack using Red Hat Enterprise Linux OpenStack Directordocument for details.
Metrics Collected using Monit-D
Monit runs in VTC Master, VTC Slave, VTSR Master, VTSR slave, and all the VTFs. The VTS UI Monitoring page displays the monitoring status, on-demand.
-
VTC—60 seconds. -
VTSR—Based on what is configured in the template.cfg file during installation.
-
VTF—30 seconds.
Metrics Collected for VTC
-
Process: The following VTS processes can be monitored.
-
Corosync
-
Pacemaker
-
Filebeat
-
Logstash
-
Collectd
-
Monit
-
Nso
-
Ntpd
-
Sshd
-
Solr
-
Nginx
-
Nodejs
-
Tomcat
-
Vtsweb
-
-
File System
-
Root
-
Boot
-
-
Network
-
Management
-
Underlay
-
Metrics Collected for VTSR
-
Process—The following VTSR processes can be monitored. -
Confd
-
Rc
-
Dl
-
cfg_dl
-
redis
-
stunnel
-
pacemaker
-
corosync
-
logstash
-
monit
-
filebrat-god
-
filebeat
-
Setting up Monit Credentials
You must set up the credentials for the Policy Plane (VTC), Control Plane (VTSR), and Data Plane (VTF), to enable you to access the metrics collected by Monit via the Cisco VTS UI. See Monitoring Cisco VTS Infrastructure using Monit for details about Monit credentials for VTC, VTSR, and VTF.
Setting up Policy Plane Credentials
To set up the credentials to enable accessing Policy Plane metrics:
Procedure
Step 1 |
Go to Global Settings > Monitoring Settings. |
||
Step 2 |
Click the Policy Plane tab. |
||
Step 3 |
Enter the credentials.
|
Setting up Control Plane Credentials
To set up the credentials to enable accessing Control Plane metrics:
Procedure
Step 1 |
Go to Administration > Site Monitoring Settings. |
Step 2 |
Click the Control Plane tab. |
Step 3 |
Enter the Username and Password that was set during Monit setup. |
Setting up Data Plane Credentials
To set up the credentials to enable accessing Data Plane metrics:
Procedure
Step 1 |
Go to Administration > Site Monitoring Settings. |
Step 2 |
Click the Data Plane tab. |
Step 3 |
Enter the Username and Password that was set during Monit setup. |
Viewing Metrics Collected by Monit
The Policy Plane metrics collected by Monit is displayed in Cisco VTS > Monitor UI. The Data Plane and Conrol Plane metrcis are displayed in Cisco VTS > Monitor Sites UI.
Viewing Policy Plane Metrics
To view the metrics collected for Policy Plane (VTC):
Procedure
Step 1 |
Go to Monitor. |
||
Step 2 |
Click the Policy Plane tab.
|
Viewing Control Plane Metrics
To view the metrics collected for Control Plane (VTSR):
Procedure
Step 1 |
Go to Monitor. |
||
Step 2 |
Click the Control Plane tab.
|
Viewing Data Plane Metrics
To view the metrics collected for Data Plane (VTF):
Procedure
Step 1 |
Go to Monitor. |
||
Step 2 |
Click the Data Plane tab.
|
||
Step 3 |
Select the VTF IP address from the drop-down list.
|