Hi michal,<br><br>see below my ifconfig result :<br><br>eth0 Link encap:Ethernet HWaddr 00:09:6B:A3:74:4B<br> inet addr:192.168.2.13 Bcast:192.168.2.255 Mask:255.255.255.0<br> inet6 addr: fe80::209:6bff:fea3:744b/64 Scope:Link<br>
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br> RX packets:594773 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:535227 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000<br>
RX bytes:67559645 (64.4 MiB) TX bytes:217992551 (207.8 MiB)<br> Interrupt:185<br><br>lo Link encap:Local Loopback<br> inet addr:127.0.0.1 Mask:255.0.0.0<br> inet6 addr: ::1/128 Scope:Host<br>
UP LOOPBACK RUNNING MTU:16436 Metric:1<br> RX packets:1187110 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:1187110 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:0<br>
RX bytes:191364585 (182.4 MiB) TX bytes:191364585 (182.4 MiB)<br><br>James,<br><br>thanks a lot for your advice, I will have a look to the net SNMP daemon wich is map to a AMI command<br><br>regards<br><br>Mickael<br>
<br><br><br><br><br><div class="gmail_quote">2009/11/28 Mr. James W. Laferriere <span dir="ltr"><<a href="mailto:babydr@baby-dragons.com" target="_blank">babydr@baby-dragons.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hello Mickael ,<br>
<div><br>
On Fri, 27 Nov 2009, mickael ropars wrote:<br>
> Michal,<br>
><br>
> in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0<br>
><br>
> l0 which is the loopback interface<br>
> eth0, eth1 : ethernet interface<br>
> sit0 : use for PTP tunneling (use for IPv6)<br>
><br>
> so no information on the digium interface.<br>
><br>
> my IF MIB has also those interfaces<br>
><br>
> I found one the solution to get status of the cards, and all snmp data. the<br>
> solution is argus :<br>
> <a href="http://argus.tcp4me.com/" target="_blank">http://argus.tcp4me.com/</a><br>
><br>
> with this tools you can have a complete view of your system.<br>
> regards<br>
> Mickael<br>
<br>
</div> While Argus is quite good at monitoring systems and is rather easy to<br>
manage . In the case of Asterisk monitoring it uses the Asterisk Management<br>
Interface (ie: AMI) not snmp .<br>
<br>
I was( and still am) hoping that the same information available to the<br>
administrator thru the AMI can/will be made available thru snmp polling & traps<br>
. It should not be too difficult to make net-snmp's daemon make those<br>
connections to AMI locally on the asterisk server & then report that data back<br>
to the snmp client . But everytime I've tried to expand snmpd's functionality<br>
I've hit nothing but failures .<br>
<br>
Twyl , JimL<br>
<div><div></div><div><br>
> 2009/11/27 michal kalinowski <<a href="mailto:michal.kalinowski@interia.pl" target="_blank">michal.kalinowski@interia.pl</a>><br>
>> Check this command "snmpwalk -c your_community -v 1 localhost interfaces"<br>
>><br>
>> in my system it's looks like that:<br>
>><br>
>> IF-MIB::ifNumber.0 = INTEGER: 4<br>
>> IF-MIB::ifIndex.1 = INTEGER: 1<br>
>> IF-MIB::ifIndex.2 = INTEGER: 2<br>
>> IF-MIB::ifIndex.3 = INTEGER: 3<br>
>> IF-MIB::ifIndex.4 = INTEGER: 4<br>
>> IF-MIB::ifDescr.1 = STRING: lo<br>
>> IF-MIB::ifDescr.2 = STRING: eth0<br>
>> IF-MIB::ifDescr.3 = STRING: eth1<br>
>> IF-MIB::ifDescr.4 = STRING: sit0<br>
>> IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)<br>
>> IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)<br>
>> IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)<br>
>> IF-MIB::ifType.4 = INTEGER: tunnel(131)<br>
>> IF-MIB::ifMtu.1 = INTEGER: 16436<br>
>> IF-MIB::ifMtu.2 = INTEGER: 1500<br>
>> IF-MIB::ifMtu.3 = INTEGER: 1500<br>
>> IF-MIB::ifMtu.4 = INTEGER: 1480<br>
>> IF-MIB::ifSpeed.1 = Gauge32: 10000000<br>
>> IF-MIB::ifSpeed.2 = Gauge32: 10000000<br>
>> IF-MIB::ifSpeed.3 = Gauge32: 1000000000<br>
>> IF-MIB::ifSpeed.4 = Gauge32: 0<br>
>> IF-MIB::ifPhysAddress.1 = STRING:<br>
>> IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70<br>
>> IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71<br>
>> IF-MIB::ifPhysAddress.4 = STRING:<br>
>> IF-MIB::ifAdminStatus.1 = INTEGER: up(1)<br>
>> IF-MIB::ifAdminStatus.2 = INTEGER: down(2)<br>
>> IF-MIB::ifAdminStatus.3 = INTEGER: up(1)<br>
>> IF-MIB::ifAdminStatus.4 = INTEGER: down(2)<br>
>> IF-MIB::ifOperStatus.1 = INTEGER: up(1)<br>
>> IF-MIB::ifOperStatus.2 = INTEGER: down(2)<br>
>> IF-MIB::ifOperStatus.3 = INTEGER: up(1)<br>
>> IF-MIB::ifOperStatus.4 = INTEGER: down(2)<br>
>> IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00<br>
>> IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00<br>
>> IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00<br>
>> IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00<br>
>> IF-MIB::ifInOctets.1 = Counter32: 37919437<br>
>> IF-MIB::ifInOctets.2 = Counter32: 0<br>
>> IF-MIB::ifInOctets.3 = Counter32: 1491657594<br>
>> IF-MIB::ifInOctets.4 = Counter32: 0<br>
>> IF-MIB::ifInUcastPkts.1 = Counter32: 335932<br>
>> IF-MIB::ifInUcastPkts.2 = Counter32: 0<br>
>> IF-MIB::ifInUcastPkts.3 = Counter32: 162961409<br>
>> IF-MIB::ifInUcastPkts.4 = Counter32: 0<br>
>> IF-MIB::ifInNUcastPkts.1 = Counter32: 0<br>
>> IF-MIB::ifInNUcastPkts.2 = Counter32: 0<br>
>> IF-MIB::ifInNUcastPkts.3 = Counter32: 131166<br>
>> IF-MIB::ifInNUcastPkts.4 = Counter32: 0<br>
>> IF-MIB::ifInDiscards.1 = Counter32: 0<br>
>> IF-MIB::ifInDiscards.2 = Counter32: 0<br>
>> IF-MIB::ifInDiscards.3 = Counter32: 0<br>
>> IF-MIB::ifInDiscards.4 = Counter32: 0<br>
>> IF-MIB::ifInErrors.1 = Counter32: 0<br>
>> IF-MIB::ifInErrors.2 = Counter32: 0<br>
>> IF-MIB::ifInErrors.3 = Counter32: 0<br>
>> IF-MIB::ifInErrors.4 = Counter32: 0<br>
>> IF-MIB::ifInUnknownProtos.1 = Counter32: 0<br>
>> IF-MIB::ifInUnknownProtos.2 = Counter32: 0<br>
>> IF-MIB::ifInUnknownProtos.3 = Counter32: 0<br>
>> IF-MIB::ifInUnknownProtos.4 = Counter32: 0<br>
>> IF-MIB::ifOutOctets.1 = Counter32: 37919437<br>
>> IF-MIB::ifOutOctets.2 = Counter32: 0<br>
>> IF-MIB::ifOutOctets.3 = Counter32: 3525337520<br>
>> IF-MIB::ifOutOctets.4 = Counter32: 0<br>
>> IF-MIB::ifOutUcastPkts.1 = Counter32: 335932<br>
>> IF-MIB::ifOutUcastPkts.2 = Counter32: 0<br>
>> IF-MIB::ifOutUcastPkts.3 = Counter32: 38811075<br>
>> IF-MIB::ifOutUcastPkts.4 = Counter32: 0<br>
>> IF-MIB::ifOutNUcastPkts.1 = Counter32: 0<br>
>> IF-MIB::ifOutNUcastPkts.2 = Counter32: 0<br>
>> IF-MIB::ifOutNUcastPkts.3 = Counter32: 0<br>
>> IF-MIB::ifOutNUcastPkts.4 = Counter32: 0<br>
>> IF-MIB::ifOutDiscards.1 = Counter32: 0<br>
>> IF-MIB::ifOutDiscards.2 = Counter32: 0<br>
>> IF-MIB::ifOutDiscards.3 = Counter32: 0<br>
>> IF-MIB::ifOutDiscards.4 = Counter32: 0<br>
>> IF-MIB::ifOutErrors.1 = Counter32: 0<br>
>> IF-MIB::ifOutErrors.2 = Counter32: 0<br>
>> IF-MIB::ifOutErrors.3 = Counter32: 0<br>
>> IF-MIB::ifOutErrors.4 = Counter32: 0<br>
>> IF-MIB::ifOutQLen.1 = Gauge32: 0<br>
>> IF-MIB::ifOutQLen.2 = Gauge32: 0<br>
>> IF-MIB::ifOutQLen.3 = Gauge32: 0<br>
>> IF-MIB::ifOutQLen.4 = Gauge32: 0<br>
>> IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero<br>
>> IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero<br>
>> IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero<br>
>> IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero<br>
>><br>
>> here You have information about interface descryptions, status, speed,<br>
>> type, etc.<br>
>><br>
>> BR,<br>
</div></div>>> Micha?<br>
<div><div></div><div>>> 2009/11/27 Mr. James W. Laferriere <<a href="mailto:babydr@baby-dragons.com" target="_blank">babydr@baby-dragons.com</a>>:<br>
>>> Hello Micha (& all) ,<br>
>>><br>
>>> On Fri, 27 Nov 2009, michal kalinowski wrote:<br>
>>>><br>
>>>> Your Digium card is for linux standard interface like eth0 (ethernet),<br>
>>>> check IF-MIB.txt and OID from there.<br>
>>>> BR,<br>
>>>> Micha?<br>
>>><br>
>>> When doing a snmpwalk of the IF-MIB & having a (*) installed there<br>
>> is<br>
>>> no mention of an interface associated with this card . Now it is quite<br>
>>> possible that Digium in there wisdom has added the necessary components<br>
>> to<br>
>>> their drivers that inserts the necessary components into the IF tables<br>
>> thus<br>
>>> allowing snmp's IF-MIB to see a known interface .<br>
>>><br>
>>> If this is the case where in the driver (or code base) might I<br>
>> find<br>
>>> this revelation . I'd sure like to have statistics & traps being dumped<br>
>> for<br>
>>> this card .<br>
>>><br>
>>> (*)<br>
>>> 01:09.0 Communication controller: Tiger Jet Network Inc. Tiger3XX<br>
>> Modem/ISDN<br>
>>> interface<br>
>>><br>
>>> Tia , JimL<br>
>>><br>
>>>> 2009/11/27 mickael ropars <<a href="mailto:mropars@gmail.com" target="_blank">mropars@gmail.com</a>>:<br>
>>>>><br>
>>>>> Everuthing is working fine, but I have another question to SNMP users:<br>
>>>>><br>
>>>>> There is no hardware info in the MIB.<br>
>>>>><br>
>>>>> How can you do to send alarm (when one interface is down for exemple),<br>
>> is<br>
>>>>> there no way to check its status?<br>
>>>>><br>
>>>>> NB: I am using a Digium card<br>
>>>>><br>
>>>>> regards<br>
>>>>><br>
>>>>> Mickael<br>
>>>>><br>
>>>>> 2009/11/27 mickael ropars <<a href="mailto:mropars@gmail.com" target="_blank">mropars@gmail.com</a>><br>
>>>>>><br>
>>>>>> Hi all,<br>
>>>>>><br>
>>>>>> I am currently not able to configure SNMP for asterisk, but I am not<br>
>>>>>> able<br>
>>>>>> to acess to the asterisk MIB (the asterisk MIB is in<br>
>>>>>> /usr/share/snmp/mibs/)<br>
>>>>>><br>
>>>>>><br>
>>>>>> Does somebody has an example of smnpd.conf file wich is working ?<br>
>>>>>><br>
>>>>>> regards<br>
>>>>>><br>
>>>>>> Mickael<br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>>>>><br>
>>>>> asterisk-users mailing list<br>
>>>>> To UNSUBSCRIBE or update options visit:<br>
>>>>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
>>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>>>><br>
>>>> asterisk-users mailing list<br>
>>>> To UNSUBSCRIBE or update options visit:<br>
>>>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
>>>><br>
>>><br>
>>> --<br>
>>> +------------------------------------------------------------------+<br>
>>> | James W. Laferriere | System Techniques | Give me VMS |<br>
>>> | Network&System Engineer | 3237 Holden Road | Give me Linux |<br>
>>> | <a href="mailto:babydr@baby-dragons.com" target="_blank">babydr@baby-dragons.com</a> | Fairbanks, AK. 99709 | only on AXP |<br>
>>> +------------------------------------------------------------------+<br>
>>> _______________________________________________<br>
>>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>>><br>
>>> asterisk-users mailing list<br>
>>> To UNSUBSCRIBE or update options visit:<br>
>>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
>>><br>
>><br>
>> _______________________________________________<br>
>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>><br>
>> asterisk-users mailing list<br>
>> To UNSUBSCRIBE or update options visit:<br>
>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
>><br>
><br>
<br>
</div></div>--<br>
<div><div></div><div>+------------------------------------------------------------------+<br>
| James W. Laferriere | System Techniques | Give me VMS |<br>
| Network&System Engineer | 3237 Holden Road | Give me Linux |<br>
| <a href="mailto:babydr@baby-dragons.com" target="_blank">babydr@baby-dragons.com</a> | Fairbanks, AK. 99709 | only on AXP |<br>
+------------------------------------------------------------------+<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>