Как я могу сказать, сколько времени сервис IIS7 (веб-сайт) был остановлен (или когда он был остановлен)?

На моем вопросе ответили: https://forums.freebsd.org/viewtopic.php? f=3&t=19087&p=108748

Надежда это поможет кому-то еще :-)

И согласно просьбе это - ответ из ссылки выше (если это снова становится недоступным):

da0 является Вашим диском. Первую часть (раздел) на этом называют s1. fdisk говорит, что Вам создали ту часть, таким образом,/dev/da0s1 должен присутствовать. Это - то, что Вы форматируете с newfs:

# newfs /dev/da0s1
# mount -t ufs /dev/da0s1 /mnt/usbdisk
# ls -ltr /mnt/usbdisk
total 2
drwxrwxr-x  2 root  operator  512 Nov  6 18:11 .snap

С уважением

0
задан 6 December 2012 в 22:36
1 ответ

The short answer for the outage duration part is "not a GOOD way..." -- what you really need is a monitoring system that tells you when your server is down (and when it comes back up again).
The good ones will give you outage reports, percent uptime/availability, etc.

In the absence of a monitoring system you can use log files (when did the access log stop? When did it start showing activity again?), file access/change dates (logs, timestamps on uploaded files, etc.) to approximate things.
Your server's access log is probably the best bet, but the resolution is only as good as server activity (if you get 1-2 queries per hour you've got a pretty wide band for your start of outage).


For the cause, your server's logs should also show if the shutdown was intentional (orderly shutdown initiated by a user) or unintentional/unclean (some kind of crash error message).
You can also look at login records to see if anyone was on the system at the time the web server went down.

2
ответ дан 4 December 2019 в 14:19

Теги

Похожие вопросы