Hi Chrisitan,
thanks to your advice (update) I could fix my issue. In fact I think I
just messed up my config of the alert (I put only the public RSA key in
the "Known Hosts"-Field of the Report instead of the right syntax host
protocol public_key). With the new version of openvasmd the log output
of the alert scripts got extended and they put an error line in
/var/log/messages so I could see my mistake (I got exit code 6):
EXIT_CODE=$?
if [ $EXIT_CODE -eq 1 ]
then
logger "SCP alert: sshpass failed with exit code ${EXIT_CODE}:
Invalid command line argument"
elif [ $EXIT_CODE -eq 2 ]
then
logger "SCP alert: sshpass failed with exit code ${EXIT_CODE}:
Conflicting arguments given"
elif [ $EXIT_CODE -eq 3 ]
then
logger "SCP alert: sshpass failed with exit code ${EXIT_CODE}:
General runtime error"
elif [ $EXIT_CODE -eq 4 ]
then
logger "SCP alert: sshpass failed with exit code ${EXIT_CODE}:
Unrecognized response from ssh (parse error)"
elif [ $EXIT_CODE -eq 5 ]
then
logger "SCP alert: sshpass failed with exit code ${EXIT_CODE}:
Invalid/incorrect password"
elif [ $EXIT_CODE -eq 6 ]
then
logger "SCP alert: sshpass failed with exit code ${EXIT_CODE}: Host
public key is unknown."
elif [ $EXIT_CODE -ne 0 ]
then
logger "SCP alert: sshpass failed with exit code ${EXIT_CODE}"
fi
It also seems that the script at
/usr/local/share/openvas/openvasmd/global_alert_methods/2db07698-ec49-11e5-bcff-28d24461215b$
does not get called, since my alert is now working but my selfmade
output (see last mail) is not getting done. I wonder where the actual
alert-script is processed..
regards,
Niklas
>>> Christian Fischer <[email protected]> 11.05.2017
08:10 >>>
Hi,
On 10.05.2017 16:27, Niklas Klein wrote:
> openvas-manager 6.0.9
the changelog of the new openvas-manager 6.0.10 released a few days
ago
shows two entries concerning SCP and alerts:
http://wald.intevation.org/frs/shownotes.php?release_id=895
Might worth to update your components to the latest releases to see if
your issue is already fixed.
Regards,
--
Christian Fischer | PGP Key: 0x54F3CE5B76C597AD
Greenbone Networks GmbH | http://greenbone.net
Neumarkt 12, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460
Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss