Hi Everybody,
I really looked hard here if there was somebody before me with this problem but there wasnt.
I have an Ethernet thermometer (TME) with snmp features from Papouch from http://www.papouch.com/en/products.asp?dir=thermometers
and on the website are some mibs http://www.papouch.com/shop/scripts/soft/tme_mib.zip
but i cant get it to work..
Is there anybody who can point me in the right direction to solve this problem or has a template already done or want to help me or do it for me??
Thanks in advanced and any help is welcome!
Greetz
//edit
report.<b style="color:black;background-color:#a0ffff">papouch</b>.temp.sensor.name=TempSensor
report.<b style="color:black;background-color:#a0ffff">papouch</b>.temp.sensor.columns=PapouchCurTemp
report.<b style="color:black;background-color:#a0ffff">papouch</b>.temp.sensor.type=nodeSnmp
report.<b style="color:black;background-color:#a0ffff">papouch</b>.temp.sensor.command=--title="<b style="color:black;background-color:#a0ffff">Papouch</b> Temperature Sensor" \
DEF:tempRaw={rrd1}:PapouchCurTemp:AVERAGE \
CDEF:temp=tempRaw,10,/ \
LINE2:temp#0000ff:"Temperature (degrees C)" \
GPRINT:temp:AVERAGE:" Avg \\: %5.2lf %s\\n" \
<group name="<b style="color:black;background-color:#a0ffff">papouch</b>-temp-sensor" ifType="ignore">
<mibObj <b style="color:black;background-color:#ffff66">oid</b>=".1.3.6.1.4.1.18248.1.1.2" instance="0" alias="papouchCurTemp" type="integer" />
</group>
Is this usefull in anyway??
Who can help this n00b
//edit2
i found al this fancy stuff but got no clue what to do with it.
http://www.papouch.com/shop/scripts/pdf/tme_en.pdf
MIB table
Temperature as number
Name: int_temperature
Object ID: 1.3.6.1.4.1.18248.1.1.1
GET address: 1.3.6.1.4.1.18248.1.1.1.0
Description: The measured temperature value in degrees Celsius as an integer – the
measured value multiplied by ten. (For example, 56.9°C is expressed as 569.)
Temperature as string
Name: string_temperature
Object ID: 1.3.6.1.4.1.18248.1.1.2
GET address: 1.3.6.1.4.1.18248.1.1.2.0
Description: The measured value as a text string. (For example, "+22,4".)
Device name
Name: device_name
Object ID: 1.3.6.1.4.1.18248.1.1.3
GET address: 1.3.6.1.4.1.18248.1.1.3.0
Papouch TME Template temperature
Moderators: Developers, Moderators
read http://docs.cacti.net/node/70 on how to make a snmp template.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Sun Apr 01, 2007 4:18 am
I already tried that but with no success.. so there is something i do wrong there, any idea what a common mistake or something??BSOD2600 wrote:read http://docs.cacti.net/node/70 on how to make a snmp template.
Greetz
What did you try? post it.
snmpwalk 1.3.6.1.4.1.18248.1.1 and post the results.
snmpwalk 1.3.6.1.4.1.18248.1.1 and post the results.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Sun Apr 01, 2007 4:18 am
I tried it step for step. Got the graph but no value.BSOD2600 wrote:What did you try? post it.
snmpwalk 1.3.6.1.4.1.18248.1.1 and post the results.
C:\Documents and Settings\Administrator>c:\net-snmp/bin/snmpwalk.exe -v 1 -c pub
lic 192.168.1.254 1.3.6.1.4.1.18248.1.1
SNMPv2-SMI::enterprises.18248.1.1.1.0 = INTEGER: 246
SNMPv2-SMI::enterprises.18248.1.1.2.0 = STRING: "+24.6"
SNMPv2-SMI::enterprises.18248.1.1.3.0 = STRING: "TME"
C:\Documents and Settings\Administrator>
thnx for helping i really appreciate it.
Ah, no snmpwalking then; just a simple snmp get value. In that case, I suggest you use the PHP script server. Like my Speedfan script (in signature).
The php script server template would be the following
ss_papouch_temp:
You'd still need to make a data input method, data template and graph template (follow the guide I linked above). Manually run the above script using the PHP script server and it should spit out something close to 264. You'll need to use/create a CDEF in for the graph template to divide the result by 10 (and convert from C to F if you want).
The php script server template would be the following
ss_papouch_temp:
Code: Select all
<?php
/* do NOT run this script through a web browser */
if (!isset($_SERVER["argv"][0]) || isset($_SERVER['REQUEST_METHOD']) || isset($_SERVER['REMOTE_ADDR'])) {
die("<br><strong>This script is only meant to run at the command line.</strong>");
}
$no_http_headers = true;
/* display No errors */
error_reporting(0);
include_once(dirname(__FILE__) . "/../lib/snmp.php");
if (!isset($called_by_script_server)) {
include_once(dirname(__FILE__) . "/../include/config.php");
array_shift($_SERVER["argv"]);
print call_user_func_array("ss_papouch_temp", $_SERVER["argv"]);
}
function ss_papouch_temp($hostname, $snmp_community, $snmp_version, $snmp_port, $snmp_timeout, $snmpv3_auth_username, $snmpv3_auth_password)
{
$snmpv3_auth_username = "";
$snmpv3_auth_password = "";
$snmpv3_auth_protocol = "";
$snmpv3_priv_passphrase = "";
$snmpv3_priv_protocol = "";
if ($snmp_version == 3) {
$snmpv3_auth_username = $snmpv3_auth_username;
$snmpv3_auth_password = $snmpv3_auth_password;
$snmpv3_auth_protocol = "";
$snmpv3_priv_passphrase = "";
$snmpv3_priv_protocol = "";
$snmp_community = "";
}
$result = "";
$oids = array(
"temp" => ".1.3.6.1.4.1.18248.1.1.0"
);
for ($i=0;$i<(count($oids));$i++) {
$row = each($oids);
$var = (cacti_snmp_get($hostname, $snmp_community, $row["value"], $snmp_version, $snmpv3_auth_username, $snmpv3_auth_password, $snmp_port, $snmp_timeout, read_config_option("snmp_retries"), SNMP_POLLER));
$result = is_numeric($var) ? ($result . $row["key"] . ":" . $var . " ") : ($result . $row["key"] . ":NaN ");
}
return trim($result);
}
?>
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 5 guests