Hello all,
I am working on a project which uses VLC.
I would like to make a web interface to control multiple streaming servers via SNMP.
And I don't know how to configure my SNMP agent.
In the source code (get from here: http://www.videolan.org/vlma/download.html), i could not find the implementation of SNMP Agent extension.
So how can VLC server communicate via SNMP.
I also saw the id like TRAFFIC_IN "1.3.6.1.4.1.2021.2016.11.4.1.2.10.116.114.97.102.102.105.99.95.105.110.1", but could not find the MIB file which declare this number.
I tried to run this small test (which i added inside the VLMa source code) :
----------
public static void main(String[] args) {
try {
InetAddress address = InetAddress.getByName("127.0.01");
VlServerReal server = new VlServerReal("localhost",address);
System.out.println("CHECK :" +server.checkVLC());
server.updateSnmpData();
System.out.println("currentCpuLoad: "+server.currentCpuLoad);
System.out.println("currentTrafficIn: "+server.currentTrafficIn);
System.out.println("currentTrafficOut: "+server.currentTrafficOut);
System.out.println("currentVlcCpu: "+server.currentVlcCpu);
System.out.println("currentVlcMem: "+server.currentVlcMem);
System.out.println("Address = "+address.toString());
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
------------
and get those errors:
-----------
snmp.SNMPGetException: OID 1.3.6.1.4.1.2021.2016.10.4.1.2.8.99.112.117.95.108.111.97.100.1 not available for retrieval
at snmp.SNMPv1CommunicationInterface.getMIBEntry(SNMPv1CommunicationInterface.java:409)
at VlServerReal.updateSnmpData(VlServerReal.java:104)
at Test.main(Test.java:15)
Exception in thread "main" java.lang.NullPointerException
at VlServerReal.updateSnmpData(VlServerReal.java:117)
at Test.main(Test.java:15)
---------------
It seems that MIB configuration is wrong
I highly appreciate any help from you.
Thank you for your time