[Openvas-commits] r1324 - trunk/openvas-compendium

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Sep 10 14:54:04 CEST 2008


Author: timb
Date: 2008-09-10 14:54:03 +0200 (Wed, 10 Sep 2008)
New Revision: 1324

Modified:
   trunk/openvas-compendium/ChangeLog
   trunk/openvas-compendium/openvas-compendium.tex
Log:
Added details about automatically updating


Modified: trunk/openvas-compendium/ChangeLog
===================================================================
--- trunk/openvas-compendium/ChangeLog	2008-09-10 11:23:22 UTC (rev 1323)
+++ trunk/openvas-compendium/ChangeLog	2008-09-10 12:54:03 UTC (rev 1324)
@@ -1,3 +1,7 @@
+2008-09-10  Tim Brown <timb at nth-dimension.org.uk>
+
+	* openvas-compendium.tex: Added details about automatically updating.
+
 2008-08-29  Jan-Oliver Wagner <jan-oliver.wagner at intevation.de>
 
 	* openvas-compendium.tex: Added descritions to KB entries taken

Modified: trunk/openvas-compendium/openvas-compendium.tex
===================================================================
--- trunk/openvas-compendium/openvas-compendium.tex	2008-09-10 11:23:22 UTC (rev 1323)
+++ trunk/openvas-compendium/openvas-compendium.tex	2008-09-10 12:54:03 UTC (rev 1324)
@@ -769,6 +769,8 @@
 \xname{configuring-nvt-feeds}
 \section{Configuring NVT Feeds}
 
+\compendiumauthor{Jan-Oliver Wagner and Tim Brown}
+
 This section explains how NVT Feed Services work in general and how you can use
 a Feed Service to keep up-to-date with the latest NVTs.
 
@@ -838,6 +840,32 @@
 
 However, the NVTs are signed with the OpenVAS Transfer Integrity certificate.
 
+\xname{automatically-updating-an-nvt-feed}
+\subsection{Automatically Updating an NVT Feed}
+
+\item Create a script called "openvas-update" and save it somewhere such as "/usr/local/bin":
+\begin{verbatim}
+	#!/bin/sh
+
+	temp=`tempfile`
+	openvas-nvt-sync 2>&1> $temp
+	if [ $? -ne  0 ]
+	then
+		cat $temp
+	fi
+	rm $temp
+	if [ -f /var/lib/run/openvasd.pid ]
+	then
+		pid=`cat /var/lib/run/openvasd.pid`
+		kill -1 $pid 2>/dev/null
+	fi
+\end{verbatim}
+
+\item Update your crontab to contain a line such as:
+\begin{verbatim}
+	25 4 * * *	root	/usr/local/bin/openvas-update
+\end{verbatim}
+
 \xname{managing-nvt-signatures}
 \section{Managing NVT signatures}
 \compendiumauthor{Jan-Oliver Wagner}
@@ -919,7 +947,7 @@
 the criteria, the script is trusted fully and may execute all functions. If no
 signature file exists, the script is not executed at all.
 
-Again, pleas note the difference to Nessus: For Nessus signatures, three levels
+Again, please note the difference to Nessus: For Nessus signatures, three levels
 were distinguished: no signature, a bad signature and a good signature. Plugins
 with no signature were still executed, but in a "restricted" mode where no
 functions that were regarded critical could be executed. OpenVAS explicitly only



More information about the Openvas-commits mailing list