Raised This Month: $12 Target: $400
 3% 

[Any] Classy Crash Logger


Post New Thread Reply   
 
Thread Tools Display Modes
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 09-14-2010 , 19:15   Re: [Any] Classy Crash Logger
Reply With Quote #21

I have a database table called servers, which has all our servers with serverid/ip/port in it.

I've adjusted your version to add a entry in a table and then match it to my serverid. This way i know which server was restarted instead of a single server. Included the source.
Attached Files
File Type: sp Get Plugin or Get Source (crashlogger.sp - 434 views - 2.4 KB)
snelvuur is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 09-15-2010 , 13:08   Re: [Any] Classy Crash Logger
Reply With Quote #22

Hi Snelvuur, can you explain how to make that table? Maybe help us with an SQL script?
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 09-15-2010 , 18:38   Re: [Any] Classy Crash Logger
Reply With Quote #23

CREATE TABLE IF NOT EXISTS `servers` (
`serverid` int(5) NOT NULL auto_increment,
`ip` varchar(255) NOT NULL,
`port` varchar(255) NOT NULL,
PRIMARY KEY (`serverid`),
UNIQUE KEY `ip` (`ip`,`port`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=34 ;

this would be sufficient, i am working on some other project where i add this plugin to it, which i will give out at a later stage (still has to many bugs to be released)

so make sure you have a entry for each server with ip and port, you still need to make a php for it though.

if you have any other questions just ask.
snelvuur is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-07-2010 , 09:55   Re: [Any] Classy Crash Logger
Reply With Quote #24

I wanted this for my l4d and l4d2 instances too, but whenever you stop the game in l4d2 for instance, it restarts to the default map and it writes then a entry in the db, which is then wrong ofcourse.

Any idea's on how to tackle that?
snelvuur is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 10-07-2010 , 11:42   Re: [Any] Classy Crash Logger
Reply With Quote #25

I see a lot of entries in our log but no useful data.

http://www.pulpfortress.com/crashlogger/

Anyone have an idea what's wrong?
Also i don't recall our server crashing this much, are normal reboots logged as well?
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-07-2010 , 11:51   Re: [Any] Classy Crash Logger
Reply With Quote #26

If you restart the server (even for a update) it will also make a entry.

If your using my version then the php would need a adjustement.
snelvuur is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 10-07-2010 , 12:59   Re: [Any] Classy Crash Logger
Reply With Quote #27

Our server crashed last night, should i not see some information about the crash?
__________________
eraserhead is offline
Send a message via Skype™ to eraserhead
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-07-2010 , 13:04   Re: [Any] Classy Crash Logger
Reply With Quote #28

You will only see the date when it restarted.
snelvuur is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-07-2010 , 17:26   Re: [Any] Classy Crash Logger
Reply With Quote #29

Quote:
Description:
Logs server (re)starts to a mysql database and displays a log on a user friendly web page.
No more picking through long log files!

Notes:
This plugin does not log to the database when the map changes, only when the server starts or restarts.
When the plugin loads, it logs.
__________________
DarthNinja is offline
snelvuur
Veteran Member
Join Date: Jun 2008
Location: Netherlands
Old 10-07-2010 , 20:18   Re: [Any] Classy Crash Logger
Reply With Quote #30

It does log it when the map changes with l4d2 for instance..
snelvuur is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode