Hi Raymond!
Whoooops.. Thanks. I've updated the script to 1.1 in the wiki now.
Kind regards,
Dennis
Whoooops.. Thanks. I've updated the script to 1.1 in the wiki now.
Kind regards,
Dennis
04/10/2008 06:32:11.115: Unknown Object Identifier (Index out of range: 04/10/2008 06:32:11 (staIproEstabTim)) No log handling enabled - turning on stderr logging .iso.org.dod.internet.private.enterprises.lancom-systems.adsl-systems.iad-annex-b.lancom-1722.sta.staIpro.staIproRip.staIproRipLanTable.staIproRipLanEntry.staIproRipLanNetw.INTRANET: Unknown Object Identifier (Index out of range: INTRANET (staIproRipLanNetw)) No log handling enabled - turning on stderr logging
04/10/2008 06:32:11.115: Unknown Object Identifier (Index out of range: 04/10/2008 06:32:11 (staIproEstabTim)) No log handling enabled - turning on stderr logging .iso.org.dod.internet.private.enterprises.lancom-systems.adsl-systems.iad-annex-b.lancom-1722.sta.staIpro.staIproRip.staIproRipLanTable.staIproRipLanEntry.staIproRipLanNetw.INTRANET: Unknown Object Identifier (Index out of range: INTRANET (staIproRipLanNetw)) No log handling enabled - turning on stderr logging
sub get_zabbix_description
{
my $raw_oid = shift(@_);
my $pos;
# Step back 2 positions for a description string and key
$pos = length($raw_oid);
for (my $i=0; $i<$zabbix_right;$i++) {
$pos = rindex($raw_oid,'.', $pos - 1);
}
return substr($raw_oid, $pos + 1);
}
Printer-MIB::prtAlertSeverityLevel.1.221 = INTEGER: warning(4) Printer-MIB::prtAlertTrainingLevel.1.221 = INTEGER: untrained(3) Printer-MIB::prtAlertGroup.1.221 = INTEGER: generalPrinter(5) Printer-MIB::prtAlertGroupIndex.1.221 = INTEGER: 1 Printer-MIB::prtAlertLocation.1.221 = INTEGER: 3 Printer-MIB::prtAlertCode.1.221 = INTEGER: subunitPowerSaver(23) Printer-MIB::prtAlertDescription.1.221 = STRING: "Power Saver On" Printer-MIB::prtAlertTime.1.221 = Timeticks: (637316646) 73 days, 18:19:26.46
<zabbix_export version="1.0" date="04.06.08" time="13:00">
<hosts>
<host name="Template_Xerox_DocuPrintN2125">
<status>3</status>
<item type="1" key="1.221" value_type="0">
<description>1.221</description>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.43.18.1.1.2.1.221</snmp_oid>
<snmp_port>161</snmp_port>
</item>
<item type="1" key="1.221" value_type="0">
<description>1.221</description>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.43.18.1.1.3.1.221</snmp_oid>
<snmp_port>161</snmp_port>
</item>
<item type="1" key="1.221" value_type="0">
<description>1.221</description>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.43.18.1.1.4.1.221</snmp_oid>
<snmp_port>161</snmp_port>
</item>
<item type="1" key="1.221" value_type="0">
<description>1.221</description>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.43.18.1.1.5.1.221</snmp_oid>
<snmp_port>161</snmp_port>
</item>
<item type="1" key="1.221" value_type="0">
<description>1.221</description>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.43.18.1.1.6.1.221</snmp_oid>
<snmp_port>161</snmp_port>
</item>
<item type="1" key="1.221" value_type="0">
<description>1.221</description>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.43.18.1.1.7.1.221</snmp_oid>
<snmp_port>161</snmp_port>
</item>
<item type="1" key="1.221" value_type="1">
<description>1.221</description>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.43.18.1.1.8.1.221</snmp_oid>
<snmp_port>161</snmp_port>
</item>
<item type="1" key="1.221" value_type="0">
<description>1.221</description>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<snmp_community>public</snmp_community>
<snmp_oid>.1.3.6.1.2.1.43.18.1.1.9.1.221</snmp_oid>
<snmp_port>161</snmp_port>
</item>
</host>
</hosts>
</zabbix_export>
Comment