<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="lt">
	<id>https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=Watch_disk_space</id>
	<title>Watch disk space - Versijų istorija</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eofnet.lt/w//index.php?action=history&amp;feed=atom&amp;title=Watch_disk_space"/>
	<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=Watch_disk_space&amp;action=history"/>
	<updated>2026-04-23T18:18:58Z</updated>
	<subtitle>Šio puslapio versijų istorija projekte</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.eofnet.lt/w//index.php?title=Watch_disk_space&amp;diff=8586&amp;oldid=prev</id>
		<title>\dev\null: Naujas puslapis: Scriptas skirtas pranesti apie mazejancia disko vieta  &lt;SyntaxHighLight lang=&quot;bash&quot;&gt; #!/bin/bash # Watch disk space by percent per mounted volume, and report if it exceeds the pe...</title>
		<link rel="alternate" type="text/html" href="https://wiki.eofnet.lt/w//index.php?title=Watch_disk_space&amp;diff=8586&amp;oldid=prev"/>
		<updated>2018-01-18T06:50:33Z</updated>

		<summary type="html">&lt;p&gt;Naujas puslapis: Scriptas skirtas pranesti apie mazejancia disko vieta  &amp;lt;SyntaxHighLight lang=&amp;quot;bash&amp;quot;&amp;gt; #!/bin/bash # Watch disk space by percent per mounted volume, and report if it exceeds the pe...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Naujas puslapis&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Scriptas skirtas pranesti apie mazejancia disko vieta&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SyntaxHighLight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# Watch disk space by percent per mounted volume, and report if it exceeds the percentage that provided in this script configuration&lt;br /&gt;
# (c) 2018 justinas@eofnet.lt&lt;br /&gt;
DISK=/tmp # mount point to watch&lt;br /&gt;
PERCENT=90 # if disk is over 90 percentage then do the command&lt;br /&gt;
COMM=&amp;quot;rm -f /tmp/*&amp;quot;&lt;br /&gt;
MAIL=&amp;quot;justinas@eofnet.lt&amp;quot;&lt;br /&gt;
SPACE=`df -h $DISK|grep $DISK|awk '{print $5}'|awk -F\% '{print $1}'`&lt;br /&gt;
if [ &amp;quot;$SPACE&amp;quot; -ge &amp;quot;$PERCENT&amp;quot; ]; then&lt;br /&gt;
echo &amp;quot;Server status `hostname` $DISK space running low&amp;quot;|mail -n -s &amp;quot;Server status `hostname`&amp;quot; $MAIL&lt;br /&gt;
$COMM&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/SyntaxHighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripts]]&lt;/div&gt;</summary>
		<author><name>\dev\null</name></author>
	</entry>
</feed>