Hi,

I have noticed that my Windows 2000 Servers doesn´t disply the Physical Memory 
values. As far as I know is a problem with the Client OS that have no support 
for this OIDs.

I'm trying to develop my own interface, I'm already able to discover and poll 
the Physical memory but Im not able to view any graph.
First of all I have to install SNMP4W2K in your Windows 2000 Machines to get 
the OIDs to the physical memory values, search the web and you will find it.


My discovery function (working fine):
<?
        function discovery_memoryW2K ($ip,$rocommunity,$hostid,$param) {

                $memory = array();

                $description    = "Real Memory (W2K)";
                $size           = snmp_get ($ip, $rocommunity, 
".1.3.6.1.2.1.25.2.2.0");
                $mem_total      = snmp_get ($ip, $rocommunity, 
".1.3.6.1.2.1.25.2.2.0");
                $mem_used       = snmp_get ($ip, $rocommunity, 
".1.3.6.1.4.1.311.1.1.3.1.1.1.29.0");

                list($size,$aux)= explode(" ", $size);
                $mem_free = $mem_total - $mem_used;


                $memory[1]["interface"] = "Physical Memory";
                $memory[1]["mem_size"]  = $size;
                $memory[1]["mem_total"] = $mem_total;
                $memory[1]["mem_used"]  = $mem_used;
                $memory[1]["mem_free"]  = $mem_free;

                if ($size > 0) {
                        $memory[1]["admin"] = "up";
                        $memory[1]["oper"] = "up";
                } else {
                        $memory[1]["admin"] = "down";
                        $memory[1]["oper"] = "down";
                }

                $memory[1]["description"] = "Physical Memory on Windows 2000 
computers";

                return $memory;
        }
?>

I have configured a new interface with the following options:

AD Enabled: True
Validate in AD: True
Discovery Function: memoryW2K
Discovery Parameters: none
Discovery Default Poller: Memory W2K
Have Graph: True
Default Graph: Memory Usage W2K

Interface: Memory W2K
Index______________index__________10_____Index___________Never Show 
Size_______________mem_size_______20_____Description_____Always 
Show___Overwritable___Tracked 
Description________description____30_____Description_____Always 
Show___Overwritable 
Usage Threshold____mem_threshold__40_____Other___________Not in 
Dis.___Overwritable___Default: 80 
Memory Total_______mem_total______10_____RRDTool DS______Never 
Memory Used________mem_used_______20_____RRDTool DS______Never 
Memory Free________mem_free_______30_____RRDTool DS______Never

Poller Grouping: Memory W2K
10_____Memory Total_____Temporal Buffer
20_____Memory Used_____Temporal Buffer
30_____No Poller_________RRDTool All DSs

Poller ítems:
Memory Total____mem_total___snmp_counter___.1.3.6.1.2.1.25.2.2.0
Memory Used_____mem_used____snmp_counter___.1.3.6.1.4.1.311.1.1.3.1.1.1.29.0


My Graph Function:
<?

function graph_memw2k_util ($data) {

        $opts_DEF = rrdtool_get_def($data,array(
                                        mem_total_b=>"mem_total",
                                        mem_used_b=>"mem_used"));

        $opts_GRAPH = array(
                "CDEF:mem_total=mem_total_b",
                "CDEF:mem_used=mem_used_b",

                "CDEF:mem_free=mem_total,mem_used,-",
                "CDEF:mem_free_p=mem_free,100,*,mem_total,/",
                "CDEF:mem_used_p=mem_used,100,*,mem_total,/",

                "LINE3:mem_total#FF0000:'Total Memory\:    '",
                "GPRINT:mem_total:MAX:'%6.0lf %sB\\n'",

                "AREA:mem_used#FF8800:'Used Memory  '",
                "GPRINT:mem_used:MAX:'Max\: %6.2lf %sB'",
                "GPRINT:mem_used_p:MAX:'(%2.0lf %%)'",

                "GPRINT:mem_used:AVERAGE:'Average\: %6.2.lf %sB'",
                "GPRINT:mem_used_p:AVERAGE:'(%2.0lf %%)'",

                "GPRINT:mem_used:LAST:'Last\: %6.2lf %sB'",
                "GPRINT:mem_used_p:LAST:'(%2.0lf %%)\\n'",

                "STACK:mem_free#00CC00:'Free Memory '",
                "GPRINT:mem_free:MAX:'Max\: %6.2lf %sB'",
                "GPRINT:mem_free_p:MAX:'(%2.0lf %%)'",

                "GPRINT:mem_free:AVERAGE:'Average\: %6.2lf %sB'",
                "GPRINT:mem_free_p:AVERAGE:'(%2.0lf %%)'",

                "GPRINT:mem_free:LAST:'Last\: %6.2lf %sB'",
                "GPRINT:mem_free_p:LAST:'(%2.0lf %%)\\n'",

        );

        $opts_header[] = "--vertical-label='Used Memory'";

        return array ($opts_header, @array_merge($opts_DEF,$opts_GRAPH));
}
?>



I always receive the same message when I open the Performance graph of the 
Memory interface: " The RRDTool files for Interface ID 2309 (from Host ID 4), 
has not been created by the Poller Process yet" I goes to host and the target 
Server its being polled every 5 minutes correctly.
I dont know if the problem is with the poller or with the graph function, is 
there any way to debug that?

Im using jffnms 0.8.3 over Debian 3.1. (RRDTool version 1.0.49)

I hope this helps and somebody could help me solving this issue.

Thanks in advance,
Felipe




La informacion incluida en el presente correo electronico es SECRETO 
PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del destinatario 
arriba mencionado. Si usted lee este mensaje y no es el destinatario señalado, 
el empleado o el agente responsable de entrega del mensaje al destinatario, o 
ha recibido esta comunicacion por error, le informamos que esta totalmente 
prohibida cualquier divulgacion, distribucion o reproduccion de esta 
comunicacion. En tal caso, rogamos que nos lo notifique inmediatamente, 
reenviando el mensaje original a la direccion arriba mencionada. Gracias.

The information contained in this e-mail is LEGALLY PRIVILEDGED AND 
CONFIDENTIAL and is intended only for the use of the addressee named above. If 
the reader of this message is not the intended recipient or the employee or 
agent responsible for delivering the message to the intended recipient, or you 
have received this communication in error, please be aware that any 
dissemination, distribution or duplication of this communication is strictly 
prohibited, and please notify us immediately and return the original message to 
us at the address above. Thank you.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to