Current time: 07-02-2024, 09:39 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monitoring Script
Author Message
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #1
Monitoring Script
Hallo,

kennt jemand von euch nen simples Monitoring Script, welches per Cron ausgeführt wird und checkt ob bestimmte Ports von einem/mehreren Servern erreichbar ist?

Ebenfalls soll an mich eine Email geschickt werden, falls ein Service / Port nicht erreichbar ist.

Eine Übersichtsseite, mit Status anzeige, wann die letzte Überprüfung statt gefunden hat und wie viel % der Server online war, wäre ebenfalls wünschenswert.


Grüße
01-24-2010 06:22 AM
Find all posts by this user Quote this message in a reply
nolimithosting Offline
Junior Member
*

Posts: 135
Joined: Sep 2008
Reputation: 0
Post: #2
RE: Monitoring Script
Wo ich das gerade lese. Ein endkundenfähiges interface für sowas suche ich auch noch :-)
01-24-2010 07:18 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #3
RE: Monitoring Script
nagios / munin etc...

am besten auf einem externen host laufen lassen...
01-24-2010 07:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #4
RE: Monitoring Script
Das ist mir zu umfangreich und zu mächtig.

Die Status Anzeige soll dann im übrigen auch auf meiner Website ausgegeben werden.


Grüße
01-24-2010 07:42 AM
Find all posts by this user Quote this message in a reply
nolimithosting Offline
Junior Member
*

Posts: 135
Joined: Sep 2008
Reputation: 0
Post: #5
RE: Monitoring Script
hmm da hat ich mal was... nur frag bitte nicht wo.. irgendwo in 2 TB datenmüll
01-24-2010 07:55 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #6
RE: Monitoring Script
Wäre super wenn du das findest und es wirklich das kann was ich benötige Wink


Grüße
01-24-2010 08:00 AM
Find all posts by this user Quote this message in a reply
nolimithosting Offline
Junior Member
*

Posts: 135
Joined: Sep 2008
Reputation: 0
Post: #7
RE: Monitoring Script
Ich kann die nacht mal schauen ob ich es irgendwo finde. wenn ja sag ich dir bescheid
01-24-2010 08:38 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #8
RE: Monitoring Script
super, danke dir.
01-24-2010 08:43 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #9
RE: Monitoring Script
naja lässt sich ja auch einfach mit einem Shell script lösen:

Code:
#!/bin/sh

echo -n "Webserver: "
netstat -tlnpe | grep ":80" > /dev/null 2>&1
if [ "$?" -eq 0 ]; then
        echo "up"
else
        echo "down"
fi

exit 0

so als idee...
01-24-2010 09:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #10
RE: Monitoring Script
Lässt es sich leider nicht -> Status Seite etc fehlt.

Aber ich hab jetzt was gefunden, wills mir mal anschaun, aber ich hab nen problem mit der open_basedir restriction.


Code:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/etc/debian_release) is not within the allowed path(s):

Ich hab noch nie die Pfäde von open_basedir anpassen müssen, hab folgendes probiert:

Code:
open_basedir = "/var/www/virtual/domain.de/:/usr/share/php/:/etc/debian_release"

aber das hilft leider nicht, mag mir jemand sagen wie ich richtig nen andern pfad hinzufüge?

Google hilft mir leider nicht wirklich.


Grüße
(This post was last modified: 07-15-2010 11:06 PM by Lucan.)
01-24-2010 10:33 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)