Hi,
You have to show me more of the output of the poller.
The poller is ok, but the rrd backend is imporatant, because its the one that stores the poller value in the RRD Files.
Did you added the field in the Interfce Types screen? you have to define the RRDTool DS.
Javier
Tjerk Nan wrote:
Hello,
I'm currently trying to create my own graphs. I use snmp_poller to get the # of multicast packets. The poller gives this result:
H 9 : I 145 : P 70 : snmp_counter:multicast(.1.3...99): 197186 -> buffer(): 456 (time P:21.51 | 0.85)
15:20:51 : H 9 : I 146 : P 70 : snmp_counter:multicast(.1.3..100): 0 -> buffer(): 457 (time P:6.63 | 0.89)
15:20:51 : H 9 : I 147 : P 70 : snmp_counter:multicast(.1.3..101): 14 -> buffer(): 458 (time P:44.76 | 0.86)
So it does work. The poller seems to be fine. It's name is "multicast".
My graphcode is based on packets.inc.php. I replaced some values and the final result:
The RRDTool files for Interface ID 57 (from Host ID 3), has not been created by the Poller Process yet.
The RRDTool files for Interface ID 62 (from Host ID 3), has not been created by the Poller Process yet.
The RRDTool files for Interface ID 55 (from Host ID 3), has not been created by the Poller Process yet.
...Noting.
My code (quite silly, line2 should be erased but this was for testing purposes):
--------------
function graph_multicast ($data) {
$opts_DEF = rrdtool_get_def($data,array(input=>"multicast",output=>"outputerrors"));
$opts_GRAPH = array(
"AREA:input#00CC00:'Input packets '", //"GPRINT:input:MAX:'Max\:%4.0lf %spackets/s'", "GPRINT:input:AVERAGE:'Average\:%4.0lf %spackets/s'", "GPRINT:input:LAST:'Last\:%4.0lf %spackets/s\\n'",
"LINE2:output#0000FF:'Output packets'", //"GPRINT:output:MAX:'Max\:%4.0lf %spackets/s'", "GPRINT:output:AVERAGE:'Average\:%4.0lf %spackets/s'", "GPRINT:output:LAST:'Last\:%4.0lf %spackets/s'");
$opts_header[] = "--vertical-label='packets per Second'";
return array ($opts_header, array_merge($opts_DEF,$opts_GRAPH)); ---------------------------------------------------------------
If I replace multicast with inputerrors, the graph will show, because that graph is running well. But it seems
that it can't find any data with the name "multicast" in the buffer.
Any suggestions?
with regards,
Tjerk Nan
------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ jffnms-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jffnms-users
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Javier Szyszlican, Project Leader, JFFNMS [EMAIL PROTECTED]
I hope JFFNMS or I were helpful to you, if you can, please donate at http://jffnms.org/donate
------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ jffnms-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jffnms-users
