Skip to content
Snippets Groups Projects
Commit c769048c authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci Committed by Josiney de Souza
Browse files

collect-data.sh: Added $FIRST_EXECUTION test(1)


Since there's no bandwidth usage data, the server would return an error if
the XML of a ProInfo machine was sent without the net usage data. To avoid
this "false positive", the agent won't sent the collected XML if
$FIRST_EXECUTION has any value different from "".

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarKlismann Smoger Mottin <ksm09@inf.ufpr.br>
Signed-off-by: default avatarJosiney de Souza <josineys@c3sl.ufpr.br>
parent 8d320491
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ if ! ${XMLPARSER} "${SCRIPTSDIR}" "${XMLFILENAME}"; then
fi
date +"%F %T - New inventory collected."
if ! clientExec --inventory; then
if test ! "${FIRST_EXECUTION}" && ! clientExec --inventory; then
exit 7
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment