Nutella Peanut-Butter Marshmallow

    comlog-system-monitor-sftp

    1.1.0 • Public • Published

    Watch a SFTP Server

    Installation via

    $ npm install -s comlog-system-monitor-sftp

    Usage

    var Service = require('comlog-system-monitor-sftp');
     
    var csmf = new Service({
        host: 'sftp.mydomain.org', // Required if not localhost
        user: 'myuser', // Required if not localhost
        password: 'mypassword', // Required if not localhost
        port: 21, // Optional
        interval: 60000 // Optional 1 Minute
    });
     
    csmf.on('error', function(err) {
        console.error(err);
    });
     
    // bind event
    csmf.on('down', function() {
        console.info('SFTP Server is donw');
    });
     
    // bind event
    csmf.on('up', function() {
        console.info('SFTP Server is up');
    });
     
    csmf.start()

    Keywords

    none

    Install

    npm i comlog-system-monitor-sftp

    DownloadsWeekly Downloads

    7

    Version

    1.1.0

    License

    COMLOG GmbH

    Unpacked Size

    4.31 kB

    Total Files

    4

    Last publish

    Collaborators

    • comlog.gmbh