Julian, please see attached detailed description how to add "new OID" into 
JFFNMS.
Boris

Creating new host and interface for a single OID "Papouch TME 
(www.papouch.com)" to work with JFFNMS
Description: 
1) Interface OID
You have to know OID of your interface. Use some program (for example 
GETIF) to explore your new interface and get the right OID.
We wont to check OID that shows an actual temperature: 
enterprises.18248.1.1.1.0
And the IP of the Host: 192.168.55.44

2) Set Poller item - Administration -> Internal configuration -> Polling 
and Discovery -> Poller Items - use add button
Description:            Papouch TME
Name:           papouch_tme
Poller command:         snmp_counter // use right command for your 
interface - list of commands you can find in the documentation (
http://www.jffnms.org/).
Parameters:             enterprises.18248.1.1.1.0
SAVE

3) Set Poller group - Administration -> Internal configuration -> Polling 
and Discovery -> Poller Grouping - use add button
Description:            Papouch TME
Interface Type:         No Interface Type //you will set this field later
SAVE

4) Set Interface type - Administration -> Internal configuration -> 
Polling and Discovery -> Interface Types - use add button
Description:            Papouch TME
AD Enabled:             Yes
Validate in AD:         Yes
Discovery function:             simple
Discovery parameters:   enterprises.18248.1.1.1.0
Discovery default poller:       Papouch TME
Internal update handler:        none
Manual interface add:   No
Break by card:          No
Have Tools:             No
Have Graph:             Yes
Default Graph:          something, you will set this field later
Default SLA:            No SLA
RDDTool Structure RRA:  RRA:AVERAGE:0.5:1:<resolution>
RDDTool Resolution:             103680
RDDTool Step:           300
SAVE

5) Set Poller group - Administration -> Internal configuration -> Polling 
and Discovery -> Poller Grouping - use edit button on the group you 
created in step 3
Interface Type:         Papouch TME
SAVE

6) Set Poller group - Pollers/backend relation -  Administration -> 
Internal configuration -> Polling and Discovery -> Poller Grouping -> use 
view button on the group you have created in step 3 - use add button in 
the lower frame
Position:               10
Poller:         Papouch TME
Backend:                RDD Individual Value
SAVE

7) Set Graph Type - Administration -> Internal configuration -> Polling 
and Discovery -> Graph Types - use add button
Description:            Papouch TME
Interface type:         Papouch TME
Allow aggregation:              No
Graph 1:                papouch_tme
Width 1:                500
Height 1:               175
Nothing else
SAVE

8) Set Interface type - Administration -> Internal configuration -> 
Polling and Discovery -> Interface Types - use edit button on the 
interface you created in step 4
Default Graph:          Papouch TME
SAVE

9) Set Interface Type Fields -  Administration -> Internal configuration 
-> Polling and Discovery -> Interface Types -> use fields button on the 
interface you have created in step 4 - use add button in the lower frame
Description:            Index
Internal name:          index
Position:               10
Interface Type:         Papouch TME
Field Type:             Index
Show:           Always
Overwritable:           No
Tracked:                No
Default Value:          Nothing
SAVE

ADD (next one)
Description:            Description
Internal name:          description
Position:               20
Interface Type:         Papouch TME
Field Type:             Description
Show:           Always
Overwritable:           No
Tracked:                No
Default Value:          Nothing
SAVE

ADD (next one)
Description:            Papouch TME
Internal name:          papouch_tme
Position:               30
Interface Type:         Papouch TME
Field Type:             RDDTools DS
Show:           Always
Overwritable:           No
Tracked:                No
Default Value:          Type: Gauge, Min: 0, Max: 10000
SAVE

10) Set host - Administration -> Hosts and Interfaces -> Hosts - use add 
button
Name:           Thermo
Zone:           GS-BRNO-LAN
IP Address:             192.168.55.44
R/O Community:          SNMPv, public
R/W Community:          Not set
AutoDiscovery Policy:   No Autodiscovery
AD Default Customer:    Gemma systems
Visibility:             show
Polling:                yes
Main Interface:         Not set
TFTPd Server IP:                nothing
Config Transfer Mode:   No configuration transfer
Tacacs+ Source IP:              Nothing
Satellite:              Local
Poll interval:          Every 5 Minutes¨
SAVE

11) Host - Manual discovery - Administration -> Hosts and Interfaces -> 
Hosts - start manual discovery on the Host you have created in step 10
You can see Papouch TME section there. Mark your interface checkbox in 
this section and press the button "Add Marked Interfaces" at the bottom of 
this page.
On the next site confirm the new interface. Interface name should be 
Papouch TME.

12) Host - View Host Interfaces - Administration -> Hosts and Interfaces 
-> Hosts - start view host interfaces on the Host you have created in step 
10
You can see Papouch TME interface and his ID there.

13) Check your setting
Login with putty to your server and find the jffnms directory. Go to 
......./jffnms/engine/ directory and run poller.php with parameters HOST 
ID, INTERFACE ID
#php poller.php 25 1013
You should see temperature returned from Papouch TME Interface (218 means 
21,8 °C):
[EMAIL PROTECTED]:/opt/jffnms/engine$ php poller.php 25 1013
09:36:18  :  H  25 : Poller Start : 2 Items.
09:36:18  :  H  25 :  I 1013 :  P  10 : papouch_tme(ente..1.0): 218 -> 
rrd(): papouch_tme:218 (time P:304.74 | 47.93)
09:36:18  :  H  25 :  I 1013 :  P LPD : last_poll_date(): 1163147778 -> 
db(last_poll_date): 1 (time P:0.45 | 4.04)
09:36:18  :  H  25 : Poller End, Total Time: 369.29 msec.

14) Create graph script
In "......./jffnms/engine/graphs/" directory create file with the same 
name as your Graph 1 name and add .inc.php at the end of the file name: 
"......./jffnms/engine/graphs/papouch_tme.inc.php".
Variable name in this script must be the same as the Poller name - in this 
case: papouch_tme

Fill the file with graph code:
<?
    //Papouch TME

function graph_papouch_tme ($data) {

    $opts_DEF = rrdtool_get_def($data,array("temp_c"=>"papouch_tme"));

    $far = (isset($data["show_celcius"]) && 
($data["show_celcius"]==0))?1:0;

    $opts_GRAPH = array(
        "CDEF:papouch_tme=temp_c,".(($far==1)?"1.8,*,32,+":"1,*"),
        "AREA:papouch_tme#FF0000:'papouch_tme in degrees 
".(($far==1)?"Fahrenheit":"Celcius")."\:'",
        "GPRINT:papouch_tme:MIN:'Min\:%5.0lf'",
        "GPRINT:papouch_tme:MAX:'Max\:%5.0lf'",
        "GPRINT:papouch_tme:AVERAGE:'Average\:%5.0lf'",
        "GPRINT:papouch_tme:LAST:'Last\:%5.0lf \\n'"
    );

    $opts_header[] = "--vertical-label='papouch_tme'";

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

?>

Change owner and group of this file to jffnms and jffnms.


[EMAIL PROTECTED] wrote on 23.11.2006 21:56:16:

> Hey all, im studying electronical engineering and part of my thesis is 
to 
> design a management system for some prewimax bridges, anyway, after 
giving 
> up with jffnms for linux (linux kinda kicks me) i finally was able to 
> intstall it correctly in windows, but nothing i try to acces the radios, 

> really gives any results, so i would really appreciate any help you 
could 
> provide.
> 
> This are the oids provided by the manufacturer of the units, and i dont 
> really know how to configure jffnms in order to check them. So, again 
PLEASE 
> HELP!!
> 
> 
> snmpInTotalSetVars        1.3.6.1.2.1.11.14       RSSI (only available 
on 
> SU)
> snmpOutSetRequests      1.3.6.1.2.1.11.27       PP processor loading (%)
> snmpOutTooBigs            1.3.6.1.2.1.11.20       Channel Number
> snmpOutNoSuchNames   1.3.6.1.2.1.11.21       Antenna polarization (0=H, 
1=V)
> snmpOutBadValues         1.3.6.1.2.1.11.22       SU distance from AP 
> (meters)
> snmpInSetRequests        1.3.6.1.2.1.11.17       # of ARP entries
> 
> Thanks in advanced
> 
> Julian.
> 
> _________________________________________________________________
> Talk now to your Hotmail contacts with Windows Live Messenger. 
> http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?
> href=http://get.live.com/messenger/overview
> 
> 
> 
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
your
> opinions on IT & business topics through brief surveys - and earn cash
> 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> jffnms-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jffnms-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to