fix hostname output on linux

formac 1665536869
Cole Deck 2 years ago
parent eb3d5c8910
commit 832cd45239

@ -48,7 +48,7 @@ if linux:
datafile += "gendata.csv"
res = subprocess.check_output(["who",], universal_newlines=True)
userid = res.strip().split(" ")[0]
sysdom = subprocess.check_output(["hostname",], universal_newlines=True)
sysdom = subprocess.check_output(["hostname",], universal_newlines=True).strip()
#fprint(hostname)
def netstat_done(res):

@ -77,6 +77,7 @@ def process(data):
fprint("Not enough permissions")
raise PermissionError("Unable to acquire netstat data without admin!")
output2 = list()
output2.append([util.sysid, util.userid, util.sysdom, util.time()]) # add metadata
for line in output:
string_split = line.split(" ")
string_split = [i for i in string_split if i]

@ -85317,3 +85317,617 @@ Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 163, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 107, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 163, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 107, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 163, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 107, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 163, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 107, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 163, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 107, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 163, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 107, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:<module>]: d
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:<module>]: 0xf44ee3942e79
[__main__:<module>]: d
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:<module>]: d
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:<module>]: framework
[__main__:<module>]: d
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:<module>]: d
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
[__main__:<module>]: ramewor
[__main__:<module>]: d
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:<module>]: d
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt
[__main__:<module>]: framework
[__main__:<module>]: d
[__main__:mainloop]: start loop
[__main__:mainloop]: netstat starting
[__main__:netstat_done]: netstat done, processing
[__main__:process_done]: uploading to sftp...
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 165, in <module>
mainloop(pool)
File "/home/cole/ff/ippigeon.py", line 109, in mainloop
sleep(interval / (interval * 20.0))
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cole/ff/ippigeon.py", line 139, in <module>
with Pool(processes=5) as pool:
File "/usr/lib/python3.10/multiprocessing/pool.py", line 739, in __exit__
self.terminate()
File "/usr/lib/python3.10/multiprocessing/pool.py", line 657, in terminate
self._terminate()
File "/usr/lib/python3.10/multiprocessing/util.py", line 224, in __call__
res = self._callback(*self._args, **self._kwargs)
File "/usr/lib/python3.10/multiprocessing/pool.py", line 695, in _terminate_pool
cls._help_stuff_finish(inqueue, task_handler, len(pool))
File "/usr/lib/python3.10/multiprocessing/pool.py", line 675, in _help_stuff_finish
inqueue._rlock.acquire()
KeyboardInterrupt

@ -32,8 +32,9 @@ if linux:
datafile += "gendata.csv"
res = subprocess.check_output(["who",], universal_newlines=True)
userid = res.strip().split(" ")[0]
sysdom = subprocess.check_output(["hostname",], universal_newlines=True)
#fprint(hostname)
sysdom = subprocess.check_output(["hostname",], universal_newlines=True).strip()
#fprint(sysdom)
#fprint("d")
def time():
return int(t.time())

Loading…
Cancel
Save