Beruflich Dokumente
Kultur Dokumente
1
Eur-Ing David Shephard CEng MIET CCDP® CCNP® CCIP®
Global Domain Expert, Networks and Infrastructure
16 DEC 2016 (V1.0 was 05FEB2015)
Centre of Excellence
Abstract
This document outlines the fundamental requirements to Deploy EZCACTI in a
VIRTUALBOX VM. This is a ZERO cost solution.
© Avid Technology (Europe) ltd. This document is the property of Avid. The information contained in this document has been provided to
the intended recipients for evaluation purposes only. The information contained in this document should not be discussed with any other
party or persons without the express prior written permission of Avid. If the intended recipient does not accept these terms, this document
and any copies should be returned to the nearest Avid office. If you are not the intended recipient, employee or agent you are hereby
notified that any dissemination or copying of this document is strictly prohibited. If you have received this document in error, please return
it to the nearest Avid Technology office ( www.avid.com ).
Centre of Excellence
2.2 HOW TO INSTALL APPLICATION ..................................................................................................................... 9
2.2.1 Static IP Address steps ....................................................................................................................... 10
2.3 EXTRA NECESSARY TOOLS ....................................................................................................................... 12
2.3.1 SSH client ........................................................................................................................................... 12
2.3.2 NANO Editor ...................................................................................................................................... 12
2.3.3 System time ......................................................................................................................................... 13
2.3.4 Shutdown and restart ......................................................................................................................... 13
2.3.4 Restart a service ................................................................................................................................. 13
2.3.6 SYSLOG Generator ............................................................................................................................ 13
2.3.6 Alternative SYSLOG Viewer............................................................................................................... 14
3.0 CONFIGURATION ..................................................................................................................................... 15
3.1 INITIAL SETUP ........................................................................................................................................ 15
3.1.2 Changing Title length in Graphs ........................................................................................................ 17
3.2 SETUP GRAPH TREES .................................................................................................................................. 19
3.2.1 setting a graph tree step-by step ........................................................................................................ 20
3.2.2 Setting a graph tree the quick way ..................................................................................................... 24
3.3 CONFIGURE A DEVICE ................................................................................................................................. 24
3.4 CONFIGURE DEVICE PRE-REQUISITES .......................................................................................................... 27
3.5 CONFIGURE DEVICE AND GRAPHS FOR A C4900M ...................................................................................... 31
3.5.1 Basic graphs and first steps ............................................................................................................... 31
3.5.2 Creating detailed data sources for graph sets. .................................................................................. 36
3.5.3 Creating graph sets from data sources. ............................................................................................. 44
3.6. CONFIGURE DEVICE AND GRAPHS FOR A C4948 ......................................................................................... 55
3.6.1 Basic graphs and first steps ............................................................................................................... 58
3.6.2 Creating detailed data sources for graph sets. .................................................................................. 61
3.6.3 Creating graph sets from data sources. ............................................................................................. 72
3.7. CONFIGURE DEVICE AND GRAPHS FOR A C4500-X ..................................................................................... 85
3.7.1 Basic graphs and first steps ............................................................................................................... 88
3.7.2 Creating detailed data sources for graph sets. .................................................................................. 91
3.6.3 Creating graph sets from data sources. ............................................................................................. 98
3.8. GRAPHS CREATION – THE QUICK WAY! .................................................................................................. 108
3.8.1 Viewing interfaces . .......................................................................................................................... 109
3.9. CONFIGURE DEVICE AND GRAPHS FOR A WINDOWS SERVER .................................................................... 112
3.10. CONFIGURE LOGGING SERVER............................................................................................................... 112
3.10.1 Cisco Switch Essential Logging Commands .................................................................................. 112
3.10.2 Cisco Switch Optional Logging Commands ................................................................................... 112
3.10.3 Configuring Centos Firewall ......................................................................................................... 113
3.10.4 Configuring and Viewing in CACTI ............................................................................................... 114
3.11 USING CACTI WITH DELL FORCE 10 DEVICES .................................................................................. 116
3.11.1 Importing and DELL/F10 MIB ...................................................................................................... 116
3.11.2 FORCE 10 Templates .................................................................................................................... 117
Revision history
Centre of Excellence
Version Name Date Comment
D.Shephard
Version 1.0 D.SHEPHARD 06 FEB 2015 First release
V1.1 D.SHEPHARD 16 DEC 2016
Add3.1.2 Changing Title length in Graphs
Add 3.11 Using CACTI with DELL
FORCE 10 Devices
Add 4.0 Additional functions
CACTI is an open-source SNMP solution, which has excellent support for Cisco switches
and Windows servers. There are several other open-source SNMP products.
In this initial document version does not consider loading MIB information for other vendor
switches.
In some cases the compiled (open-source) software can be found for Linux, Unix and
Windows, however, as with many open-source solutions the installation can be quite
Centre of Excellence
complex. The chosen solution eliminates most of the initial setup variables leaving the
administrator with just the setup of the devices to be monitored.
The basic elements are described in a little more detail below, but can be summarized as:
1. 64 bit VM hosting application
2. One static IP address
3. The application software
The testing for this document has in fact been executed on a MAC PRO running OSX 10.9.2
Mavericks.
Note: BEWARE of some silly issues with Virtual Box 4.3 for windows not
running as 64 bit due to BISO settings. Maybe go back to use V-Box 4.2.x
https://forums.virtualbox.org/viewtopic.php?f=6&t=57871
http://h30499.www3.hp.com/t5/Workstations-z-series-xw-series/How-to-
enable-virtualization-support-on-HP-Z820-Workstation/td-
p/5719065#.VXATr2RVhBc
Presently, VirtualBox runs on Windows, Linux, Macintosh, and Solaris hosts and
supports a large number of guest operating systems including but not limited to
Windows (NT 4.0, 2000, XP, Server 2003, Vista, Windows 7, Windows 8),
DOS/Windows 3.x, Linux (2.4, 2.6 and 3.x), Solaris and OpenSolaris, OS/2, and
OpenBSD.
https://www.virtualbox.org/wiki/Downloads
This EZCACTI solution needs a single CPU and just 20GB of (virtual) disk.
http://cactiez.cactiusers.org/docs/installation.html
http://blog.cactiusers.org/2012/10/14/cactiez-0-7-released/
http://community.spiceworks.com/how_to/show/2391-easy-cacti-with-cactiez
http://pathandy.com/cactiez/92-how-to-install-ezcacti
Centre of Excellence
CACTI using Google Chrome
Decide on a root password for the Centos based system, this must be AT LEAST 6
characters, but a short password will be highlighted as insecure and not advisable, but will be
accepted.
Decide on a Cacti password, this can be the same as the root password above if it is desired to
keep things simple. The SNMP system does not contain sensitive data so high security may
not be necessary, however it may be necessary to consider site policies for password
administration. In first access to Cacti you will be force to change from admin/admin
Centre of Excellence
Decide on a Static IP address and default gateway. Full DNS identification is not required
but may be desirable.
Obtain the details of the DNS server or servers, which will be required for a STATIC IP
install and when setting up CACTI at first login
https://www.virtualbox.org/wiki/Downloads
The URL below provides an in depth description on how to do this for a DYNAMIC IP
address. The steps for using a static IP address differ very slightly and are detail in section
2.2.1
MAKE SURE BEFORE YOU START VM THAT TOU MAKE ADAPTER INTEL, and
BRIDGED (it should automatically map to eth0) AND WITH custom mac address like
0800aabbccdd
also make sure that before a reboot after installing the basic EZ CACTI that you disconnect
the ISO form the “CD” drive
The It will be necessary to obtain a few tools and add some to the implementation, these are
described below.
http://en.wikipedia.org/wiki/Comparison_of_SSH_clients
http://serverfault.com/questions/368602/how-do-i-update-a-centos-servers-time-from-an-
authoritative-time-server
Centre of Excellence
yum install ntp
chkconfig ntpd on
ntpdate pool.ntp.org
service ntpd start
SHUTDOWN
/sbin/shutdown -h now
RESTART
/sbin/shutdown -r now
http://www.kiwisyslog.com/downloads.aspx
Centre of Excellence
Of course Google can provide many options depending on host O/S demands
http://www.kiwisyslog.com/downloads.aspx
http://pathandy.com/cactiez/93-setting-up-cactiez
One key required element is that the Cisco Switch must be configured with an SNMP
community to allow the READ ONLY access from CACTI. One simple Cisco CLI
command as shown below will permit an SNMP device using the community name aviddiva
to interrogate the Cisco switch for information.
Centre of Excellence
3.1 INITIAL SETUP
Things that will be needed in advance are the detail of Primary and Secondary DNS server.
Also the settings can be changed later if you don’t know or get them wrong.
FIRST PLUG-Ins
Setup all the plugins you think you will use. If you don't know what the plugin means, the
chances are, it is not required for your needs. I consider that this is not a large site
implementation do have not loaded BOOST – LARGE SITE PERFROMANCE BOOSTER
in the screenshot below.
This parameter needs to have the value increased from 45 to 60 to cope with the longer
names, also this will help with interface descriptions. It is also worth increasing
Centre of Excellence
The maximum number of characters to display for a data query field.
This change should be performed early on because it does not get applied retrospectively
DEFAULT INSTALL
Adjusted INSTALL
Graph trees can have multiple levels. The depth depends on the quantity and complexity of
the elements for be monitored. Hence it might be:
1. Geographic, e.g. LONDON, PARIS, NEW YORK, with sublevels for devices or
departments
2. Departmental, with sub levels for devices
3. Device based with sublevels for graph type, which is the basis of the screenshot
below.
Centre of Excellence
The device type will define what levels are appropriate. For a network switch
The screenshot below shows the default allocation of a single level tree.
The platform shown above is for a WIN XP 32 based Intel SR2500 server, it shows the
availability of CPU utilization for each core, and drive space. The OS version and the setup
of the local SNMP agent will define what data sources are presented to the SNMP
application.
The screenshot below shows a C4948-10GE (the older GREEN device with two X2
interfaces) with primary CPU & Uplink information on the first level, and secondary levels
containing details on all interface ports.
Centre of Excellence
3.2.1 setting a graph tree step-by step
This is the starting point. If using SAFARI the ADD button will be well hidden as black text
on dark blue banner!!!
SO CLICK ON ADD for next screen, adding the TREE NAME and press CREATE.
Centre of Excellence
Now to add some sub trees. The things we need to monitor are link speed and errors, I like to
see link speed and bits per second and bytes per seconds, so that will mean three sub –trees of
BITS/SEC
BYTES/SEC
ERRORS
I might decide to add some key interfaces to the main screen too.
So press ADD on the screen above and enter BITS/SEC in the title field;
Select Natural Ordering
Press CREATE
Centre of Excellence
And now for Errors
So press ADD on the screen above and enter ERRORS in the title field;
Select Natural Ordering
Press CREATE
Centre of Excellence
If we go back to GRAPH TREES w now see the new tree
The process cab be repeated for different switches, if that is the top-level tree item we want<
However the sun trees can also themselves have sub trees
So for example if we have a system with two Core C4500-X switches and four C4948E
switches we might have tree names of:
AVID C4500X-CORE01
AVID C4500X-CORE02
AVID C4948E-ACCESS01
AVID C4948E-ACCESS02
AVID C4948E-EDGE03
AVID C4948E-EDGE04
Or maybe the tree names will use the switches hostname based on rack position and floor
location.
TVC1CORE01R1P4F3
TVC1CORE02R2P4F3
TVC1ACCE01R1P6F3
TVC1ACCE02R2P6F3
TVC1EDGE03R1P4F6
TVC1EDGE04R1P9F7
Centre of Excellence
The form below is presented:
Screen shots below show and example for a Cisco Switch and example for a Windows server.
Make sure to use SNMP V2, otherwise it is not possible to use 64 bit counters which are
necessary for 10G interfaces (and beneficial for 1G interfaces)
Servers and workstations also need to be configured, and below are various URL that will
help with the necessary tasks.
HOW TO: Configure the Simple Network Management Protocol (SNMP) Service in
Windows Server 2003
http://support.microsoft.com/kb/324263
Centre of Excellence
Below is EXTRACT FROM:
http://www.schneider-
electric.us/sites/us/en/support/faq/faq_main.page?page=content&country=ITB&lang=en&id=
FA159596&locale=en_US&redirect=true
Solution:
1. In Windows XP and Windows 2003 click Start button, then go to Control Panel and
run Add or Remove Programs. In the Add or Remove Programs window,
click Add/Remove Windows Components to open Windows Components wizard. In
Windows 7 or Vista, click Start button, then go to Control Panel. Click on
Programs And Features link and then click on Turn Windows features on or off. If
you’re prompted with User Account Control dialog, click “Continue”.
2. In Components of Windows XP and 2003, click on the Management and
Monitoring Tools (make sure that you do not select or clear, tick or untick its check
box to change the existing selection), and then click Details. In Windows 7 or Vista,
locate Simple Network Management Protocol (SNMP).
3. Select and tick the check box of Simple Network Management Protocol or SNMP
feature.
4. Click OK. Also click Next if you’re in Windows XP or 2003. SNMP service will be
installed on the system. You may require inserting the Windows setup CD/DVD disc
into optical drive.
5. SNMP will start automatically after installation. But it’s recommended to verify the
service status from Services in Control Panel, and if it’s stopped, you can start the
SNMP service from there. Two new services will be created:
SNMP Service which is the main engine with agents that monitor the activity in the
network devices and report the information to the monitoring console workstation.
SNMP Trap Service which receives trap messages generated by local or remote
SNMP agents and forwards the messages to SNMP management programs running on this
computer.
Centre of Excellence
2. Click on the Agent tab, make sure all service boxes are checked, enter any relevant contact
information and location information here:
3. Click on the security tab, enter the appropriate read, and read-write community names to
the accepted community names list. In the lower box, click ""Accept SNMP packets from
these hosts"" and click the add button. The IP Address or Host Name of the ISX Central(or
Centre of Excellence
4. Click the Traps tab, and you can create your own trap community name and manually enter
the IP Address of NMS as a trap destination.
The first time you select data sources, data for all sources is shown, so this needs to be
narrowed down. Also when narrowed down it will appear not much data is available, but
there are a few further steps needed, to get the detailed information. For now we will just put
Centre of Excellence
In the host DROP DOWN select the C4900M
Information on the VLANS is pretty irrelevant, and G3/20 on this config is a routed link. In
fact the interfaces being offered here are all Layer 3 interfaces.
Centre of Excellence
Now go to GRAPH MANAGEMENT and select the host C4900M
Select CPU USAGE, FREE MEMORY and PROCMEM USAGE, in <Choose and action>
select the graph template you want (in this case C4900M example) and press <GO>
Centre of Excellence
press <CONTINUE>
then Click on the graphs TAB, select C4900M and we have our first graphs, with not much
data, because data sources are “new”.
Even if graphs are not placed on pages the data source is collected, and summarized
depending on the time that data has been collected for. So a graph create for a source which
has been collecting for 1 months will have a lots of data.
Centre of Excellence
INTERFACE EXAMPLE #1 INTERFACE EXAMPLE #2
If we have setup graph trees as mentioned above we will want to plot BITS/SEC,
BYTES/SEC and ERRORS. It is a key point to remember that we want 64 bit counters, and
will plot the information of branches of the desired root tree. The bit depth of 32 bit counters
is insufficient for 10Gbps interfaces.
Centre of Excellence
Centre of Excellence
Next to the graphs for BYTES/SEC, Press <PREVIOUS> to get back to first interfaces.
Centre of Excellence
This screen will allow us to delete, disable, create thresholds from the data, but we do not
need to do any of this for the basic graphing.
Centre of Excellence
Now press <NEXT>, select the interfaces that you want to graph, and also the tree destination
and press <GO>
Centre of Excellence
SELECT BYTES/SEC branch and press <CONTINUE>
Select NEXT for additional interfaces, use tick boxes to choose interfaces to graph, and press
<GO>
Select <NEXT> for additional interfaces, use tick boxes to choose interfaces to graph, and
press <GO>
Page of day up to 100 deep can be created, and data on this page can be shown by preset or
custom time intervals.
Centre of Excellence
There are two steps to creating graphs. Basic graphs got “presented” elements, and detailed
graphs
Now to add some sub trees. The things we need to look at are link speed and errors, I like to
see link speed and bits per second and bytes per seconds, so that will mean three sub –trees of
BITS/SEC
BYTES/SEC
ERRORS
I might decide to add some key interfaces to the main screen too.
Centre of Excellence
So press <ADD> on the screen above and enter BYTES/SEC
Select Natural Ordering
Press <CREATE>
The process cab be repeated for different switches, if that is the top-level tree item we want<
However the sub-trees can also themselves have sub trees
So for example if we have a system with two Core C4500-X switches and four C4948E
switches we might have tree names of:
AVID C4500X-CORE01
AVID C4500X-CORE02
AVID C4948E-ACCESS01
AVID C4948E-ACCESS02
AVID C4948E-EDGE03
AVID C4948E-EDGE04
Or maybe the tree names will use the switches hostname based on rack position and floor
location.
TVC1CORE01R1P4F3
TVC1CORE02R2P4F3
TVC1ACCE01R1P6F3
Centre of Excellence
Unless you have configured a device you will see NO data sources for the C4948E,
configuring devices is covered in section 3.3.
The basic graph sources offered are already enabled, so no need to do it again, but no harm
done if you do.
Centre of Excellence
Now go to GRAPH MANANAGEMENT and select the host C4948
Select CPU USAGE, FREE MEMORY and PROCMEM USAGE, in <Choose and action>
select the graph template you want (in this case C4948 example) and press <GO>
The select Destination branch I want to put these on the ROOT of this graph tree.
Press <CONTINUE>
Click on a graph and you will get data for Daily (5 Minute Average), Weekly (30 Minute
Centre of Excellence
Average), Monthly (2 Hour Average) and Yearly (1 Day Average). Obviously no data here
but it will collect over time. These collated average are available for EVERY GRAPH you
decide to plot.
Centre of Excellence
INTERFACE EXAMPLE #1 INTERFACE EXAMPLE #2
If we have setup graph trees as mentioned above we will want to plot BITS/SEC,
BYTES/SEC and ERRORS. It a key point to remember that we want 64 bit counters, and
will plot the information of branches of the desired root tree.
Select the CONSOLE tab, click on MANAGEMENT | DATA SOURCES | DEVICES and
select the desired switch then select CREATE GRAPHS (YES !!!).
Next to the graphs for ERRORS, press <PREVIOUS> to get back to first interfaces.
This screen will allow us to delete, disable create thresholds from the data, but we do not
need to do any of this for the basic graphing.
Centre of Excellence
click on GRAPH management, the screen looks very similar
Centre of Excellence
Centre of Excellence
Select the BITS/SEC branch and press <CONTINUE>
Select desired interfaces, PLACE on desired tree of C494 , and press <GO>.
Select NEXT for additional interfaces, use tick boxes to choose interfaces to graph, and press
<GO>.
Select NEXT for additional interfaces, use tick boxes to choose interfaces to graph, and press
<GO>
Centre of Excellence
Select BITS/SEC or other branch
Click on a graph and you will get data for Daily (5 Minute Average), Weekly (30 Minute
Average), Monthly (2 Hour Average) and Yearly (1 Day Average). Obviously no data here
but it will collect over time. These collated average are available for EVERY GRAPH you
decide to plot.
Centre of Excellence
This screen show searching for just one interface and then adding only the variables we want
to see.
Centre of Excellence
Clicking on the blue arrows will move items up or down the graph tree. Only one step at a
time is possible so for “large trees” moving around many interfaces is laborious /
After a few presses of the blue arrows the tree looks like this and the view has changed too
Centre of Excellence
Fill in the names and click <CREATE>
There are two steps to creating graphs. Basic graphs get “presented” elements, and detailed
graphs
Now to add some sub trees. The things we need to look at are link speed and errors, I like to
see link speed and bits per second and bytes per seconds, so that will mean three sub –trees of
BITS/SEC
BYTES/SEC
ERRORS
I might decide to add some key interfaces to the main screen too.
Centre of Excellence
So press <ADD> on the screen above and enter BYTES/SEC
Select Natural Ordering
Press <CREATE>
Centre of Excellence
If we go back to GRAPH TREES w now see the new tree
The process cab be repeated for different switches, if that is the top-level tree item we want<
However the sun trees can also themselves have sub trees
So for example if we have a system with two Core C4500-X switches and four C4948E
switches we might have tree names of:
AVID C4500X-CORE01
AVID C4500X-CORE02
AVID C4948E-ACCESS01
AVID C4948E-ACCESS02
AVID C4948E-EDGE03
AVID C4948E-EDGE04
Or maybe the tree names will use the switches hostname based on rack position and floor
location.
TVC1CORE01R1P4F3
TVC1CORE02R2P4F3
TVC1ACCE01R1P6F3
TVC1ACCE02R2P6F3
TVC1EDGE03R1P4F6
TVC1EDGE04R1P9F7
Unless you have configured a device you will see NO data sources for the C44500-X,
configuring devices is covered in section 3.3.
Centre of Excellence
Centre of Excellence
I will just choose the CPU and MEMORY information to go at top of graph tree, so click in
the tick box, set CHOOSE AN ACTION to Enable and click go, and then <CONTINUE>
Select CPU USAGE, FREE MEMORY and PROCMEM USAGE, in <Choose and action>
select the graph template you want (in this case C4948 example) and press <GO>
Press <CONTINUE>
Centre of Excellence
Then Click on the graphs TAB, select C4500-X and we have our first graphs, with not much
data
NO data collected Here is one that has been collected for two
months
Centre of Excellence
INTERFACE EXAMPLE #1 INTERFACE EXAMPLE #2
Select the CONSOLE tab, click on MANAGEMENT | DATA SOURCES | DEVICES and
select CREATE GRAPHS (YES !!!).
Centre of Excellence
Tick the box at the top to select all interfaces and then un-tick the interfaces you do not want.
MAKE SURE you select 64 bit counters BITS this time.
Next to the graphs for BYTES/SEC, Press PREVIOUS to get back to first interfaces
Press <CREATE>
Next to the graphs for ERRORS, Press PREVIOUS to get back to first interfaces
Click on GRAPH management, the screen looks very similar; this one is showing entries for
host C4500-X EXAMPLE only
The screen below shows the selection of all the interfaces and the setting of the destination
trees as C4948 EXAMPLE
If additional interfaces now press <NEXT>, select the interfaces that you want to graph, and
also the tree destination and press <GO>, repeating the above process.
Centre of Excellence
Select the desired interfaces. And press <GO>
Centre of Excellence
If additional interfaces now press <NEXT>, select the interfaces that you want to graph, and
also the tree destination and press <GO>, repeating the above process.
Page of day up to 100 deep can be created, and data on this page can be shown by preset or
custom time intervals.
There is a quick way to set a graph tree that make graphs for all the data sources you have
created. Creating data sources for C4948E for example is covered in section 3.6.2.
Note: Its is still necessary to create the data sources! See 3.5.2/3.6.2/3.7.2
GIVE IT A NAME
Centre of Excellence
GRAPH TREE {select desired e.g. TV-STATION} then ADD, then TREE-TYPE-HOST-
THEN HOST-IP
Then Select the host
Centre of Excellence
But probably not the one you want, you must search for the data. Enter the interface and
press <GO>
And the selected information will be displayed. As the sensors for Errors, Bits/sec (64 Bit)
and Bytes per second (64 bit) has been previously set up these are shown on the web page.
Centre of Excellence
3.10.1 Cisco Switch Essential Logging Commands
The five key commands are below. To be of any use, all log entries must be reference to the
REAL date and time, a reference to UPTIME is of little use. Also the switch must be
referenced to a reliable and accurate time source, and the switch must be told where to send
the LOGGING
logging trap debugging <<<< THIS IS THE DEFAULT LEVEL, WHAT TO SEND
logging host 10.10.10.10 <<<< THIS IS WHERE TO SEND
Note the as Logging is a low intensity service it may co exist on the same server as NTP, or it
may use a different shared platform.
Note some old switches will only send to a single logging server,
It is important to log key interfaces, a but also consider that some interfaces will routinely
change state, so using it on all interfaces is to be avoided, otherwise there may be too much
irrelevant information. The interface-level command will enable logging of status changes.
Applying to multiple interfaces does not have to be done individually. A RANGE command
can do multiple interfaces at the same time. Interfaces have to be in the same “slot”
Two helpful URLS that explain logging in more detail, which will not be duplicated here are:
http://www.cisco.com/c/en/us/td/docs/routers/crs/software/crs_r4-
Centre of Excellence
2/system_monitoring/command/reference/b_sysmon_cr42crs/b_sysmon_cr42crs_chapter_01
00.html#wp3359494668__tab_1365648
And
https://supportforums.cisco.com/document/24661/how-configure-logging-cisco-ios
The default Setup of EZCACTI already permits incoming SYSLOG as shown below by the
iptables command.
[root@localhost ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
DROP icmp -- anywhere anywhere icmp timestamp-request
http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
http://www.kiwisyslog.com/help/syslog/index.html?syslogportsused.htm
http://beginlinux.com/server/centos/using-a-simple-firewall-in-centos-6
Hence it is not necessary to configure the firewall to permit incoming messages on port UDP
514.
Centre of Excellence
Accessing the GUI is much easier using SSH that trying to scrabble around in the VM CLI on
the Virtual box. This will allow you to access all functions like copy paste.
ssh user@ipaddress
This should be done with a text editor (perhaps using NANO as described adobe) and the
RSYSLOG service has to be restarted
The command are shown below, and essentially it is just removing the # (comment out line)
character on two lines:
#$ModLoad imudp BECOMES $ModLoad imudp
#$ModLoad imtcp BECOMES $ModLoad imtcp
BEFORE - DEFAULT
#### MODULES ####
$ModLoad imuxsock # provides support for local system logging (e.g. via logger
command)
$ModLoad imklog # provides kernel logging support (previously done by rklogd)
#$ModLoad immark # provides --MARK-- message capability
Centre of Excellence
$UDPServerRun 514
$ModLoad imuxsock # provides support for local system logging (e.g. via logger
command)
$ModLoad imklog # provides kernel logging support (previously done by rklogd)
#$ModLoad immark # provides --MARK-- message capability
or
Centre of Excellence
3.11 Using CACTI with DELL FORCE 10 Devices
It is possible to connect to Dell/F10 devices with a default Cisco TEMPLATE which used the
RFC1213 MIB structure, however only Interface statistics are provide and it appears that the
full interface numbers are not presented, But as a quick & dirty setup up it is minimally
workable.
Each Family of DELL F10 devices appears to have a different MIB and they also vary by
software version, hence it is a little more challenging.
The Basic netwok port information can be accesses with the standard SNMP INTERFACES
MIB used by cvati
F10 MIBS
http://www.force10networks.com/CSPortal20/KnowledgeBase/Documentation.aspx
$CACTI/resource/snmp_queries/
Centre of Excellence
Centre of Excellence
THE RRD files are located in
/var/www/html/rra/
Finding a file
The example below will look for a file with the extension *.rrd form the root (or /)
downward
find / -name '*.rrd'
The example below will look for a file with the ace as part of the file name, form the root (or
/) downward
Mandatory arguments to long options are mandatory for short options too.
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
18G 1.5G 15G 10% /
tmpfs 499M 0 499M 0% /dev/shm
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
Centre of Excellence
This shows that the RRD files in this directory have used just 124MB of the allocated 20GB
of DISK allocated to this virtual machine
All the files are TXT files and not MIB files, a search for .MIB or .mib files shows none
exist. But the text files in this directory are exactly the same structure.
New MIB flies can be copied in here using CYBERDUCK s drag and drop between MAC
Finder, or FilesZilla with SFTP SSH File Transfer protocol
https://afnog.org/archives/2011-September/007020.html
https://wiki.bath.ac.uk/display/~ccsnjf/cacti+how-to
http://forums.cacti.net/viewtopic.php?f=6&t=4143
http://forums.cacti.net/about29019.html
The steps below show adding a user called “viewer” with a restricted set of functions. The
functions need to be defined in REAL PERMISSIONS, and the devices which can be seen
must be defined in GRAPH PERMISIONS. Most of the GRAPH SETTINGS can be lefts as
default/inherited.
TEXT HERE
Centre of Excellence
nano-2.0.9-7.el6.x86_64.rpm
https://winscp.net/eng/docs/guide_install
Centre of Excellence
FROM http://www.cacti.net/downloads/docs/html/data_storage.html
There are lots of different approaches for this task. Some may use an (SQL) database, others
flat files. Cacti uses RRDTool to store data.
RRD is the acronym for Round Robin Database. RRD is a system to store and display time-
series data (i.e. network bandwidth, machine-room temperature, server load average). It
stores the data in a very compact way that will not expand over time, and it can create
beautiful graphs. This keeps storage requirements at bay.
Likewise, rrdtool will perform some specific tasks. It performs consolidation to combine raw
data (a primary data point in rrdtool lingo) to consolidated data (a consolidated data point).
This way, historical data is compressed to save space. rrdtool knows different consolidation
Centre of Excellence
functions: AVERAGE, MAXIMUM, MINIMUM and LAST.
http://www.mad-hacking.net/documentation/linux/management/cacti/rrd-rra-settings.xml
http://paulgporter.net/2012/12/12/enhanced-cacti-graph/
3. Modify the Title field in the “Interface – Traffic (bits/sec)” Graph Template
Add some variables to the Title field and tell Cacti to name all of the graphs it creates
accordingly. Please note that you need to un-check the box for “Use Per-Graph Value (Ignore
this Value)”, otherwise it won’t be displayed. Here’s the string to paste in:
Template Title**
change to
Template Title**
Interface - Errors/Discards
|host_description| - Errors/Discards - |query_ifName|
change to
Centre of Excellence
|host_description| - Errors/Discards - |query_ifName| |query_ifAlias|
~END~
Note:
Note:
~END~ ~END~