Adding LinkUp/LinkDown when a region is started or stoped.

Those two events could be used to compute the region availibility
This commit is contained in:
sacha
2010-04-23 10:51:27 -04:00
parent f8d49e0a30
commit 7eda9364fd
2 changed files with 7 additions and 3 deletions

View File

@@ -350,11 +350,9 @@ namespace OpenSim
if (scene.SnmpService != null)
{
scene.SnmpService.ColdStart(1,scene);
scene.SnmpService.LinkDown(scene);
}
// it should be a LinkDown event
// Maped inside opennms
// bad...
if (scene.SnmpService != null)
{
scene.SnmpService.Warning("Loading prins", scene);
@@ -439,6 +437,7 @@ namespace OpenSim
if (scene.SnmpService != null)
{
scene.SnmpService.Warning("The region is operational", scene);
scene.SnmpService.LinkUp(scene);
}
scene.StartTimer();