Adding Linux host to cacti for monitoring
From Notes_Wiki
Home > CentOS > CentOS 6.x > Monitoring tools > Cacti > Adding Linux host to cacti for monitoring
To add a linux host to cacti for monitoring use following steps:
- Configure SNMP server on Linux machine as explained at SNMP server configuration for Linux hosts
- Login into cacti web interface as admin
- Go to Console -> Devices and choose Add from top right corner
- Enter name in description and address / FQDN in Hostname
- Choose host template as 'Generic SNMP Enabled host'
- Click create
- On the same page after clicking create under 'Associated Graph Templates' section add following templates:
- ucd/net - CPU Usage
- ucd/net - Memoery Usage
- Unix - Load average
- Unix - Logged in users
- Unix - ping latency
- Unix - procesess
- and then click Save button.
- Click on 'Create Graphs for this host' link at top-right from page resulting after 'save'.
- Choose all graph templates by clicking at top-most check-box on right side
- Choose interesting interfaces by clicking on corresponding check-boxes from below table
- In 'Select a graph type:' drop down at bottom right choose 'In/Out Bytes with Total Bandwitdh'
- Click Create
- Again click Create on next page
- Go to Console Graph Trees
- Click on Add at top right corner
- Type name for tree, preferably same as name written in description while adding device.
- Click create
- Now click on Console -> 'Graph management'. Select Host in host drop-down menu so that only graphs related to chosen host appear.
- Select all graphs for this new host using check-box at top right corner
- From Choose an action drop-down menu choose 'Place on a tree (<description>)' to place all graphs for this host on tree created for this host.
- Then click go and then continue on next page.
- Now go to 'Graphs' and in Tree-mode click on name of new host added to see its graphs.
Note that it may take 15-20m before any reasonable current value is shown. The graphs are really useful only after at least a weeks data is collected to see if any patterns emerge.
Home > CentOS > CentOS 6.x > Monitoring tools > Cacti > Adding Linux host to cacti for monitoring