Cacti: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
Created page with "Cacti is a monitoring system that stores its data in an RRDtool database. I am setting it up to monitor CDS Wireless network devices. I am using a server with Debian 7.0. I ..."
 
Brian Wilson (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Cacti is a monitoring system that stores its data in an RRDtool database.
Cacti is a monitoring system that stores its data in an RRDtool database.


I am setting it up to monitor CDS Wireless network devices.
I use it on [[Bellman]] to track server performance and to track latency on my Comcast Business connection.
Now I am setting it up to monitor Vastra network devices.


I am using a server with Debian 7.0. I installed it from packages, but downloaded and compiled Spine from source.
I am using a server with Debian. I installed it from packages, but downloaded and compiled Spine from source.
Installation was easy. Now I have to configure it to actually collect and display some data.
Installation was easy. Now I have to configure it to actually collect and display some data.


Line 16: Line 17:
* ether6 = Burnside
* ether6 = Burnside
* ether7 = MSH
* ether7 = MSH
== SNMPwalk ==
If you can't access your router with snmpwalk, you won't be able to use cacti. I start by trying snmpwalk.
snmpwalk -v 2c -c public mickey.cds1.net
Then I install the MIB, for example this one: http://www.mikrotik.com/download/Mikrotik.mib
== Cyberpower CP1500 UPS ==
The APC 725 [[Bellman]] was on died yesterday (6/30/15) so I moved the Cyberpower over from [[Laysan]] where it was not really doing me much good. (I don't use Laysan much right now.) The Cyberpower has a USB interface so I can add monitoring in Cacti.
I found some templates for Cacti in their forum. http://forums.cacti.net/viewtopic.php?f=12&t=50554
1. Add 'nut' to manage the Cyberpower, including low battery shutdowns.
See http://www.networkupstools.org/ddl/Cyber_Power_Systems/CP1500AVRLCD.html
and http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux/
apt-get install nut
In /etc/nut/ you must edit upsmon.conf and ups.conf
Set mode in nut.conf to "standalone".
# '''upsdrvctl start'''
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
Using subdriver: CyberPower HID 0.3
# '''service nut-server restart'''
2. Test it!
# '''upsc cp1500'''
Init SSL without certificate database
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 4446
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 14.0
battery.voltage.nominal: 12
device.mfr: CPS
device.model:  CP 1500C
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.7.2
driver.version.data: CyberPower HID 0.3
driver.version.internal: 0.38
input.transfer.high: 140
input.transfer.low: 90
input.voltage: 122.0
input.voltage.nominal: 120
output.voltage: 122.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 6
ups.mfr: CPS
ups.model:  CP 1500C
ups.productid: 0501
ups.realpower.nominal: 388
ups.status: OL
ups.test.result: Done and passed
ups.timer.shutdown: -60
ups.timer.start: 0
ups.vendorid: 0764
"Done and passed". I like that.
2. Add support for nut to Cacti. All you need is here: http://www.eric-a-hall.com/software/cacti-nut/
Follow the instructions carefully and you should be able to add graphs to the server running upsd.

Latest revision as of 19:37, 1 July 2015

Cacti is a monitoring system that stores its data in an RRDtool database.

I use it on Bellman to track server performance and to track latency on my Comcast Business connection. Now I am setting it up to monitor Vastra network devices.

I am using a server with Debian. I installed it from packages, but downloaded and compiled Spine from source. Installation was easy. Now I have to configure it to actually collect and display some data.

We are changing out an AT&T fibre link for a Comcast 150Mbps link, so I need to capture data now to get a before and after picture. That's my first priority.

Let's see, there is the link itself, and the connection downstream across the Mount St. Helena (MSH) link.

For starters, let's grab data from Mickey the router.

  • ether1 = Fibre
  • ether6 = Burnside
  • ether7 = MSH

SNMPwalk

If you can't access your router with snmpwalk, you won't be able to use cacti. I start by trying snmpwalk.

snmpwalk -v 2c -c public mickey.cds1.net

Then I install the MIB, for example this one: http://www.mikrotik.com/download/Mikrotik.mib

Cyberpower CP1500 UPS

The APC 725 Bellman was on died yesterday (6/30/15) so I moved the Cyberpower over from Laysan where it was not really doing me much good. (I don't use Laysan much right now.) The Cyberpower has a USB interface so I can add monitoring in Cacti.

I found some templates for Cacti in their forum. http://forums.cacti.net/viewtopic.php?f=12&t=50554

1. Add 'nut' to manage the Cyberpower, including low battery shutdowns. See http://www.networkupstools.org/ddl/Cyber_Power_Systems/CP1500AVRLCD.html and http://blog.shadypixel.com/monitoring-a-ups-with-nut-on-debian-or-ubuntu-linux/

apt-get install nut

In /etc/nut/ you must edit upsmon.conf and ups.conf Set mode in nut.conf to "standalone".

# upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.2
Network UPS Tools - Generic HID driver 0.38 (2.7.2)
USB communication driver 0.32
Using subdriver: CyberPower HID 0.3

# service nut-server restart

2. Test it!

# upsc cp1500
Init SSL without certificate database
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 4446
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 14.0
battery.voltage.nominal: 12
device.mfr: CPS
device.model:  CP 1500C
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.7.2
driver.version.data: CyberPower HID 0.3
driver.version.internal: 0.38
input.transfer.high: 140
input.transfer.low: 90
input.voltage: 122.0
input.voltage.nominal: 120
output.voltage: 122.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 6
ups.mfr: CPS
ups.model:  CP 1500C
ups.productid: 0501
ups.realpower.nominal: 388
ups.status: OL
ups.test.result: Done and passed
ups.timer.shutdown: -60
ups.timer.start: 0
ups.vendorid: 0764

"Done and passed". I like that.

2. Add support for nut to Cacti. All you need is here: http://www.eric-a-hall.com/software/cacti-nut/ Follow the instructions carefully and you should be able to add graphs to the server running upsd.