Hi list,
In addition to the
effort of David Lima i've added 2 more counters in his SNMP informant disk
poller : Read & Write queue length.
Watch out to replace
the id's if they are already in use !
--
-- Dumping data for table `pollers`
--
-- Dumping data for table `pollers`
--
INSERT INTO
`pollers` VALUES (10027, 'inf_d_read_queue', 'Vecozo Inform Read Queue Poller',
'snmp_counter', '.1.3.6.1.4.1.9600.1.1.1.1.8.<index>');
INSERT INTO `pollers` VALUES (10028, 'inf_d_write_queue', 'Vecozo Inform Write Queue Poller', 'snmp_counter', '.1.3.6.1.4.1.9600.1.1.1.1.9.<index>');
INSERT INTO `pollers` VALUES (10028, 'inf_d_write_queue', 'Vecozo Inform Write Queue Poller', 'snmp_counter', '.1.3.6.1.4.1.9600.1.1.1.1.9.<index>');
-- Dumping data for table `pollers_poller_groups`
--
INSERT INTO `pollers_poller_groups` VALUES (10024, 40, 5, 10027,
32);
INSERT INTO `pollers_poller_groups` VALUES (10025, 40, 6, 10028, 32);
INSERT INTO `pollers_poller_groups` VALUES (10025, 40, 6, 10028, 32);
-- Dumping data for table `graph_types`
--
INSERT INTO `graph_types` VALUES (10014, 'Disk Queue Graph Type', 39,
'inf_ldisk_queue', '', 500, 150, 0, 0, 0);
-- Graph script
---
---
inf_ldisk_queue.inc.php
<?php
/* SNMP Informant Disk Graph. This file is part of JFFNMS.
* This program is licensed under the GNU GPL, full terms in the LICENSE file
*/
/* SNMP Informant Disk Graph. This file is part of JFFNMS.
* This program is licensed under the GNU GPL, full terms in the LICENSE file
*/
function graph_inf_ldisk_queue ($data) {
$opts_DEF =
rrdtool_get_def($data,array("read_queue"=>"inf_d_read_queue","write_queue"=>"inf_d_write_queue"));
$opts_GRAPH =
array(
"CDEF:ldisk_rate_total=read_queue,write_queue,+",
"CDEF:write_queue_graph=write_queue,-1,*",
"CDEF:ldisk_rate_total=read_queue,write_queue,+",
"CDEF:write_queue_graph=write_queue,-1,*",
"COMMENT:' Disk Total
'",
"GPRINT:ldisk_rate_total:MAX:'Max\:%8.2lf %s '",
"GPRINT:ldisk_rate_total:AVERAGE:'Average\:%8.2lf %s '",
"GPRINT:ldisk_rate_total:LAST:'Last\:%8.2lf %s \\n'",
"GPRINT:ldisk_rate_total:MAX:'Max\:%8.2lf %s '",
"GPRINT:ldisk_rate_total:AVERAGE:'Average\:%8.2lf %s '",
"GPRINT:ldisk_rate_total:LAST:'Last\:%8.2lf %s \\n'",
"AREA:read_queue#0000CC:'Disk Read Queue
'",
"GPRINT:read_queue:MAX:'Max\:%8.2lf %s '",
"GPRINT:read_queue:AVERAGE:'Average\:%8.2lf %s '",
"GPRINT:read_queue:LAST:'Last\:%8.2lf %s \\n'",
"GPRINT:read_queue:MAX:'Max\:%8.2lf %s '",
"GPRINT:read_queue:AVERAGE:'Average\:%8.2lf %s '",
"GPRINT:read_queue:LAST:'Last\:%8.2lf %s \\n'",
"AREA:write_queue_graph#FF0000:'Disk Write Queue
'",
"GPRINT:write_queue:MAX:'Max\:%8.2lf %s '",
"GPRINT:write_queue:AVERAGE:'Average\:%8.2lf %s '",
"GPRINT:write_queue:LAST:'Last\:%8.2lf %s \\n'"
);
"GPRINT:write_queue:MAX:'Max\:%8.2lf %s '",
"GPRINT:write_queue:AVERAGE:'Average\:%8.2lf %s '",
"GPRINT:write_queue:LAST:'Last\:%8.2lf %s \\n'"
);
$opts_header[] =
"--vertical-label='Disk Queue'";
return array ($opts_header,
@array_merge($opts_DEF,$opts_GRAPH));
}
}
?>
Met vriendelijke groet,
Sebastian van Dijk
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ jffnms-users mailing list jffnms-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jffnms-users