\n";
print " \n";
print " \n";
# hosts
$sth = $dbh->prepare("select ind,hostname,ip from hosts order by hostname");
$sth->execute;
while ($ref = $sth->fetchrow_arrayref()) {
print " $ref->[1] ($ref->[2]) \n";
}
print " \n";
print " \n";
print " \n";
print " \n";
# services
$sth = $dbh->prepare("select distinct service_ind, description from services");
$sth->execute;
while ($ref = $sth->fetchrow_arrayref()) {
print " $ref->[1] \n";
}
print " \n";
print " \n";
print " \n";
print " \n";
#checks
$sth = $dbh->prepare("select description,beding,wert,ind from checks");
$sth->execute;
while ($ref = $sth->fetchrow_arrayref()) {
print " $ref->[0] ($ref->[1] $ref->[2]) \n";
}
print " \n";
print " \n";
print " \n";
print " \n";
# alerts
$sth = $dbh->prepare("select description,alert_type,ind from alerts");
$sth->execute;
while ($ref = $sth->fetchrow_arrayref()) {
print " $ref->[0] ($ref->[1]) \n";
}
print " \n";
print " \n";
print " ja nein \n";
print " \n";
print " \n";
print "