I've been trying to suss out why the server won't automatically shutdown on me and I think it might be because it is finding devices connected to my network when pinging.
Below is part of the log while in FAKE mode
Code
Jan 23 19:19:23 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range(): NICNR_PINGRANGE: 1'
Jan 23 19:19:23 Servi autoshutdown.sh[13230]: Jan 23 19:19:23: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range(): PINGLIST: /tmp/autoshutdown/pinglist'
Jan 23 19:19:23 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range(): PINGLIST: /tmp/autoshutdown/pinglist'
Jan 23 19:19:23 Servi autoshutdown.sh[13230]: Jan 23 19:19:23: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range(): RANGE: '2..254''
Jan 23 19:19:23 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range(): RANGE: '2..254''
Jan 23 19:19:23 Servi autoshutdown.sh[13230]: Jan 23 19:19:23: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range(): CLASS: '192.168.0''
Jan 23 19:19:23 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range(): CLASS: '192.168.0''
Jan 23 19:19:23 Servi autoshutdown.sh[13230]: Jan 23 19:19:23: : local6 autoshutdown[13230]: INFO: 'FAKE-Mode: retrieve list of active IPs for 'enp3s0' ...'
Jan 23 19:19:23 Servi root: autoshutdown[13230]: INFO: 'FAKE-Mode: retrieve list of active IPs for 'enp3s0' ...'
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.17 as active host.'
Jan 23 19:19:36 Servi root: autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.17 as active host.'
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.66 as active host.'
Jan 23 19:19:36 Servi root: autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.66 as active host.'
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.101 as active host.'
Jan 23 19:19:36 Servi root: autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.101 as active host.'
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.87 as active host.'
Jan 23 19:19:36 Servi root: autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.87 as active host.'
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.122 as active host.'
Jan 23 19:19:36 Servi root: autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.122 as active host.'
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.157 as active host.'
Jan 23 19:19:36 Servi root: autoshutdown[13230]: INFO: 'FAKE-Mode: Found IP 192.168.0.157 as active host.'
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range() -> RETURN: 6'
Jan 23 19:19:36 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _ping_range() -> RETURN: 6'
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): call _ping_range -> CNT: 1 '
Jan 23 19:19:36 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): call _ping_range -> CNT: 1 '
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_net_status not called -> CNT: 1 '
Jan 23 19:19:36 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_net_status not called -> CNT: 1 '
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_ul_dl_rate not called -> CNT: 1 '
Jan 23 19:19:36 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_ul_dl_rate not called -> CNT: 1 '
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_hddio not called -> CNT: 1 '
Jan 23 19:19:36 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_hddio not called -> CNT: 1 '
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_processes not called -> CNT: 1 '
Jan 23 19:19:36 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_processes not called -> CNT: 1 '
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_loadaverage not called -> CNT: 1 '
Jan 23 19:19:36 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_loadaverage not called -> CNT: 1 '
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_plugin not called -> CNT: 1 '
Jan 23 19:19:36 Servi root: autoshutdown[13230]: DEBUG: 'FAKE-Mode: _check_system_active(): _check_plugin not called -> CNT: 1 '
Jan 23 19:19:36 Servi autoshutdown.sh[13230]: Jan 23 19:19:36: : local6 autoshutdown[13230]: INFO: 'FAKE-Mode: sleep for 180s.'
Jan 23 19:19:36 Servi root: autoshutdown[13230]: INFO: 'FAKE-Mode: sleep for 180s.'
Alles anzeigen
I might be wrong but it finds 6 ip's however only 1 has access to the server (there is also a 2nd pc which has access), I'm not sure how to determine what the others are. I have a smart tv, smart display, tablet and two mobiles on the same network, which presumably are the others. I'm guessing because those are found it won't shutdown?