Alejandro Esmael

Basic Synology

Recommended Posts

Greetings All,

I came up with a few additional Synology datasources and a property source since I realized I was without this information. Let me know if you find them useful. I'm still exploring other SNMP data available via the Synology platform. Please note you must add the system.categories "synology" in addition to whatever else may be present (snmp,TCPUDP,etc.) as I haven't yet successfully configured the SNMP SysOID Maps for Synology devices; any assistance here would be greatly appreciated.

F4T3CX = Synology Disk Status (Individual disk failures and temperatures)

R977RE = Synology DiskStation Manager software upgrade availability

PR4DGP = PropertySource for gathering and displaying Model, Serial, and DSM Version in the info tab.

 

Respectfully,

Alejandro Esmael

  • Upvote 1

Share this post


Link to post
Share on other sites

Looks like you cannot use a SysOID map on this one as the system ID is "Linux", then you have to check for the DSM system MIB.  This can be done in a propertysource.  I cloned the one for snmpUptime, set applies to as "hasCategory("snmp") && isLinux()" and tweaked to check for the DSM system status OID (2R2Y3E):

// import the logicmonitor snmp helper class
import com.santaba.agent.groovyapi.snmp.Snmp;

// get the snmp host from the device properties
def host = hostProps.get('system.hostname');

// retrieve the value for the specified OID
try 
{
    oid_value = Snmp.get(host, ".1.3.6.1.4.1.6574.1.1.0");
}
catch (Exception ex)
{
    oid_value = null;
}

// output the value
if (oid_value)
{
    println "system.categories=SynologyDSM";
}

// return with a response code that indicates we ran successfully
return (0);

Edited by mnagel
Added locator
  • Upvote 1

Share this post


Link to post
Share on other sites

FWIW, I changed the diskstatus DP threshold in our copy from != 1 1 1 to > 1 1 3 -- I care about uninitialized disks, but not quite that much :).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now