Skip to content

Instantly share code, notes, and snippets.

@yalla
yalla / cacti_graph_template_bmi_hs22_6-core_cpu_gt.xml
Created September 23, 2011 12:52
24-core CPU template for Cacti
<cacti>
<hash_000021aeee4e0ca11a898bbc3d5d2b516e0ed6>
<name>BMI HS22 6-Core CPU GT</name>
<graph>
<t_title></t_title>
<title>|host_description| - CPU Load</title>
<t_image_format_id></t_image_format_id>
<image_format_id>1</image_format_id>
<t_height></t_height>
<height>120</height>
@yalla
yalla / HOST-RESOURCE-MIB-CPUs.pl
Created August 11, 2011 12:00
Generic HOST-RESOURCES-MIB::hrProcessorLoad Cacti script - gives all CPU-load in a single call. Needs data-, data-input-methode- and graph-tepmplates.
#!/usr/bin/perl
use Net::SNMP;
# base_oid ist HOST-RESOURCES-MIB::hrProcessorLoad
my $base_oid = ".1.3.6.1.2.1.25.3.3.1.2";
($session, $error) = Net::SNMP->session(
-hostname => "$ARGV[0]",
-version => "2",