(self)
return config
Returns default collector settings.
Returns default collector settings.
Returns default collector settings .
def get_default_config(self):
        """
        Returns default collector settings.
        """

        config = super(UPSCollector, self).get_default_config()
        config.update({
            'path':             'ups',
            'ups_name':         'cyberpower',
            'bin':              '/bin/upsc',
            'use_sudo':         False,
            'sudo_cmd':         '/usr/bin/sudo',
        })
        return config
def get_default_config ( self ) : config = super ( UPSCollector , self ) . get_default_config ( ) config . update ( { 'path' : 'ups' , 'ups_name' : 'cyberpower' , 'bin' : '/bin/upsc' , 'use_sudo' : False , 'sudo_cmd' : '/usr/bin/sudo' , } ) return config