Archived community.zenoss.org | full text search
Skip navigation
17151 Views 6 Replies Latest reply: Jul 29, 2009 11:31 AM by StrongD RSS
crock Rank: White Belt 12 posts since
Jul 21, 2008
Currently Being Moderated

Jun 3, 2009 11:20 AM

Customer modeller

Hi,

I'm trying to create a modeller plugin for a device I've got. It's only got an html page that I can scrape data from so I can't use snmp, portscan, nmap. This leaves me with python and cmd (as far as I can tell, I might be wrong).

I've checked a few zenpacks etc to see how they are doing this, 99% seem to be snmp based but there are a few cmd ones. I might also be wrong but they seem to use ssh to connect to a remote box and then run a command on there and parse the results.

What I want to do is pull the page (wget/curl) pick out the serial number etc and populate the various fields from here.

Is this possible? Is it documented somewhere on how to do this and am I just being thick and not finding it grin I've found loads of snmp modeller docs but nothing like what I'm trying to do.

Any help would be much appreciated.

Crock
  • Matt Ray Rank: Zen Master 2,484 posts since
    Apr 5, 2008
    Currently Being Moderated
    1. Jun 3, 2009 1:42 PM (in response to crock)
    Customer modeller
    Take a look at the Barracuda ZenPack. It does a screen scrape with
    Perl and uses that as the datasource.
    trac-zenpacks/wiki/ZenPacksPBnJSolutionsBarracudaWatcher

    Thanks,
    Matt Ray
    Zenoss Community Manager
    community.zenoss.com
    mray@zenoss.com


    _______________________________________________
    zenoss-zenpacks mailing list
    zenoss-zenpacks@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-zenpacks
  • Matt Ray Rank: Zen Master 2,484 posts since
    Apr 5, 2008
    Currently Being Moderated
    4. Jun 4, 2009 2:37 PM (in response to crock)
    Customer modeller
    Perhaps the Linux Monitor ZenPack would be a good look? It's using
    SSH to do the device modeling:
    http://dev.zenoss.com/trac/browser/trunk/zenpacks/ZenPacks.zenoss.LinuxMonitor

    Thanks,
    Matt Ray
    Zenoss Community Manager
    community.zenoss.com
    mray@zenoss.com

    _______________________________________________
    zenoss-zenpacks mailing list
    zenoss-zenpacks@zenoss.org
    http://lists.zenoss.org/mailman/listinfo/zenoss-zenpacks
  • StrongD Newbie 4 posts since
    May 25, 2009
    Currently Being Moderated
    6. Jul 29, 2009 11:31 AM (in response to crock)
    Some examples
    (1) IpServiceMap.py

    (2) ZenPacks.community.ZenODBC-1.0-py2.4.egg

    They all use PythonPlugin.

More Like This

  • Retrieving data ...