ICMP Plugin Typo line 81 #1025
Labels
bug 🐛
Something isn't working
next release/in dev image 🚀
This is coming in the next release or was already released if the issue is Closed.
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
Hello,
there is a typo mistake on line 81 in front/plugins/icmp_scan/icmp.py
It create a '[Ad-hoc events] Events executed: run with param ICMP' and by checking log
mylog('verbose', [f'[{pluginName}] ip: "{device['devLastIP']}" is_online: "{is_online}"'])
this should be
mylog('verbose', [f'[{pluginName}] ip: "{device["devLastIP"]}" is_online: "{is_online}"'])
That not a lot of trouble :)
Expected Behavior
22:54:49 [2025-03-21 22:54:49+01:00] START Run: ICMP
22:54:49 [Plugins] Executing: python3 /app/front/plugins/icmp_scan/icmp.py
22:54:49 [ICMP] In script
22:54:49 [Database] Opening DB
22:54:49 [ICMP] Devices to PING: 64
22:54:50 [ICMP] DEBUG OUTPUT : PING A.B.C.D (A.B.C.D) 56(84) bytes of data.
64 bytes from A.B.C.D: icmp_seq=1 ttl=64 time=0.515 ms
64 bytes from A.B.C.D: icmp_seq=2 ttl=64 time=0.622 ms
64 bytes from A.B.C.D: icmp_seq=3 ttl=64 time=0.336 ms
Steps To Reproduce
Just run the plugin, and check error logs:
22:53:38 [Plugins] Executing: python3 /app/front/plugins/icmp_scan/icmp.py
22:53:38 File "/app/front/plugins/icmp_scan/icmp.py", line 81
mylog('verbose', [f'[{pluginName}] ip: "{device['devLastIP']}" is_online: "{is_online}"'])
^^^^^^^^^
SyntaxError: f-string: unmatched '['
app.conf
docker-compose.yml
What installation are you running?
Production (netalertx)
app.log
Not needed
Debug enabled
The text was updated successfully, but these errors were encountered: