autoshutdown not working

  • Hi,
    Installed OMV on a HP Gen8.
    autoshutdwon doesn't seem to be working.
    Configured through gui, then closed gui.
    Even with debug and 1 min intervals it seems to see various other machines on my network as active clients.


    root@gen8:/etc# cat autoshutdown.conf
    # This configuration file is auto-generated.
    # WARNING: Do not edit this file, your changes will be lost.
    ENABLE="true"
    CYCLES=1
    SLEEP=60
    RANGE=""
    SHUTDOWNCOMMAND="shutdown -h now"
    CHECKCLOCKACTIVE="false"
    UPHOURS="6..20"
    NSOCKETNUMBERS="21,22,80,139,445,3689,6991,9091,49152"
    ULDLCHECK="true"
    ULDLRATE=50
    LOADAVERAGECHECK="false"
    LOADAVERAGE=40
    HDDIOCHECK="true"
    HDDIO_RATE=401
    SYSLOG="true"
    VERBOSE="false"
    FAKE="true"


    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: ------------------------------------------------------'
    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: new supervision cycle started - check active hosts or processes'
    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_clock is inactive. Setting CNT=0'
    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_system_active() is running - NICNR_CHECKSYSTEMACTIVE: 2'
    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _ping_range(): NICNR_PINGRANGE: 2'
    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _ping_range(): PINGLIST: /tmp/autoshutdown/pinglist'
    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _ping_range(): RANGE: '2..254''
    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _ping_range(): CLASS: '192.168.1''
    Nov 23 21:26:49 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: retrieve list of active IPs for 'eth0' ...'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: Found IP 192.168.1.65 as active host.'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: Found IP 192.168.1.66 as active host.'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: Found IP 192.168.1.77 as active host.'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: Found IP 192.168.1.86 as active host.'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: Found IP 192.168.1.88 as active host.'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: Found IP 192.168.1.133 as active host.'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: Found IP 192.168.1.244 as active host.'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: Found IP 192.168.1.254 as active host.'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _ping_range() -> RETURN: 8'
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_system_active(): call _ping_range -> CNT: 1 '
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_net_status not called -> CNT: 1 '
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_ul_dl_rate not called -> CNT: 1 '
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_hddio not called -> CNT: 1 '
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_processes not called -> CNT: 1 '
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_loadaverage not called -> CNT: 1 '
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_plugin not called -> CNT: 1 '
    Nov 23 21:27:02 gen8 logger: autoshutdown[2762]: INFO: 'FAKE-Mode: sleep for 60s.'


    Some of these IP addresses are IP cameras and printers. Nothing is actually using the server as far as I'm aware.
    Is there anything else that could be giving these false positives?


    Thanks

  • Your range is empty. So autoshutdown searches for the whole class. Thats why there are so many "active" hosts.


    Hi,
    I took that out after it had already failed as another thread I found said to.
    It was previously the defaut 2..254 and still have the same effect.
    All the machines that wil be accessing this are in that range.
    The IP addresses above are all on my network so if I am looking for usage that is where I need to be looking, but for whatever reason it thinks every device on my network is active with this box.
    Is there anything that could be causing this?

  • Also, if I look at a different thread and errror message, NOT MINE,
    the diag message is much different and specifically mentions a port.
    Which makes me think this is just not working properly rather than
    finding an active connection?


    Oct 28 21:32:01 NAS logger:
    autoshutdown[3771]: INFO: ' _check_net_status(): Found active connection
    on port 22 (SSH) from 192.168.178.27'

  • It was previously the defaut 2..254 and still have the same effect.
    All the machines that wil be accessing this are in that range.


    Yes, that is correct. All IP´s in that range WILL BE SCANNED. So what if you just insert maybe "2"?


    autoshutdown[3771]: INFO: ' _check_net_status(): Found active connection
    on port 22 (SSH) from 192.168.178.27'


    That is only mentioned in the socket check (that check will be performed after the IP check). If something is connected to a specific port, it´ll appear here as well.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!