A class for performing SNMP V2 queries on Asterisk

see \OSS_SNMP\MIBS\https://wiki.asterisk.org/wiki/display/AST/Asterisk+MIB+Definitions
copyright Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland
author Barry O'Donovan

 Methods

Returns the number of calls currently active on the Asterisk PBX.

callsActive() : int

The number of calls currently active on the Asterisk PBX.

Returns

intThe number of calls currently active on the Asterisk PBX.

Returns the total number of calls processed through the Asterisk PBX since last restart.

callsProcessed() : int

The total number of calls processed through the Asterisk PBX since last restart.

Returns

intThe total number of calls processed through the Asterisk PBX since last restart.

Returns the path for the control socket for giving Asterisk commands

controlSocket() : string

The control socket for giving Asterisk commands.

Returns

stringThe control socket for giving Asterisk commands

Returns the number of modules currently loaded into Asterisk.

modules() : int

Number of modules currently loaded into Asterisk.

Returns

intThe number of modules currently loaded into Asterisk

Returns the process ID of the Asterisk instance

pid() : int

The process id of the running Asterisk process.

Returns

intThe process ID of the Asterisk instance

Returns the time ticks (100th sec) since the Asterisk config was reload

reloadTime() : int

Time ticks since Asterisk was last reloaded.

Returns

intTime ticks since the Asterisk config was reload

Returns the Subversion (SVN) revision of Asterisk

tag() : int

SubVersion revision of the version of Asterisk that the SNMP Agent was compiled to run against -- this is typically 0 for release-versions of Asterisk.

Returns

intThe SVN revision of Asterisk

Returns the time ticks (100th sec) since Asterisk was started

uptime() : int

Time ticks since Asterisk was started.

Returns

intTime ticks since Asterisk was started

Returns the version of Asterisk

version() : string

Text version string of the version of Asterisk that the SNMP Agent was compiled to run against.

Returns

stringThe version of Asterisk

 Constants

 

OID_ASTERISK_CALLS_ACTIVE

OID_ASTERISK_CALLS_ACTIVE 

 

OID_ASTERISK_CALLS_PROCESSED

OID_ASTERISK_CALLS_PROCESSED 

 

OID_ASTERISK_CONTROL_SOCKET

OID_ASTERISK_CONTROL_SOCKET 

 

OID_ASTERISK_MODULES

OID_ASTERISK_MODULES 

 

OID_ASTERISK_PID

OID_ASTERISK_PID 

 

OID_ASTERISK_RELOAD_TIME

OID_ASTERISK_RELOAD_TIME 

 

OID_ASTERISK_UP_TIME

OID_ASTERISK_UP_TIME 

 

OID_ASTERISK_VERSION_STRING

OID_ASTERISK_VERSION_STRING 

 

OID_ASTERISK_VERSION_TAG

OID_ASTERISK_VERSION_TAG