06.12.2012 Aufrufe

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

Technische Dokumentation zum Unix-Verbund ... - Dr. Hubert Feyrer

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

B.31 Monitoring/launcher.pl 326<br />

}<br />

= split(/\s+/, $l);<br />

if ($iscksum ne $shouldcksum) {<br />

print TMPREPORT "$host: ckecksum of $file is $iscksum,<br />

should be $shouldcksum\n";<br />

}<br />

if ($isperm ne $shouldperm) {<br />

print TMPREPORT "$host: permissions of $file is $isperm,<br />

should be $shouldperm\n";<br />

}<br />

if ($isowner ne $shouldowner) {<br />

print TMPREPORT "$host: owner of $file is $isowner,<br />

should be $shouldowner\n";<br />

}<br />

if ($isgroup ne $shouldgroup) {<br />

print TMPREPORT "$host: group of $file is $isgroup,<br />

should be $shouldgroup\n";<br />

}<br />

}else{<br />

print REPORT "Unknown host/file $host/$file in $TMPDIR/$prefix.perms?!?\n";<br />

}<br />

}<br />

close(IN);<br />

close(TMPREPORT);<br />

if (-s "daily-report.$REPORT.$$") {<br />

print REPORT "############################################",<br />

"###############################\n";<br />

print REPORT "############################################",<br />

"###############################\n";<br />

print REPORT "###\n";<br />

print REPORT "###\n";<br />

print REPORT "### Permission checks - POSSIBLE SECURITY BREACH!!!\n";<br />

print REPORT "###\n";<br />

print REPORT "###\n";<br />

open(IN, "daily-report.$REPORT.$$") || die;<br />

while(){<br />

print REPORT "$_";<br />

}<br />

close(IN);<br />

print REPORT "\n";<br />

print REPORT "\n";<br />

}<br />

unlink "daily-report.$REPORT.$$";<br />

###########################################################################<br />

sub report_sulog<br />

{<br />

open(TMPREPORT,">daily-report.$REPORT.$$") or die;<br />

open(IN,"sort +2 $TMPDIR/$prefix.sulog|") || die;<br />

while(){<br />

print TMPREPORT $_;<br />

#print REPORT $_ if /-(root|dummy)$/;<br />

}<br />

close(IN);<br />

close(TMPREPORT);<br />

if (-s "daily-report.$REPORT.$$") {<br />

print REPORT "############################################",<br />

"###############################\n";<br />

print REPORT "############################################",<br />

"###############################\n";<br />

print REPORT "###\n";<br />

print REPORT "###\n";<br />

print REPORT "### su-log\n";<br />

print REPORT "###\n";<br />

print REPORT "###\n";<br />

(c) 1996-2003 <strong>Hubert</strong> <strong>Feyrer</strong> Stand: 21. Oktober 2003

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!