-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2998 from stveit/feature/create-event-when-chassi…
…s-or-module-is-removed-manually Create event when chassis or module is removed manually
- Loading branch information
Showing
9 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Post event when a module or chassis is deleted via the status page or device history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
python/nav/etc/alertmsg/deviceState/deviceDeletedChassis-email.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Subject: Device has been removed as a chassis | ||
Device {{device}} has been removed from {{netbox}} as a chassis |
1 change: 1 addition & 0 deletions
1
python/nav/etc/alertmsg/deviceState/deviceDeletedChassis-sms.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Device {{device}} has been removed from {{netbox}} as a chassis |
2 changes: 2 additions & 0 deletions
2
python/nav/etc/alertmsg/deviceState/deviceDeletedModule-email.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Subject: Device has been removed as a module | ||
Device {{device}} has been removed from {{netbox}} as a module |
1 change: 1 addition & 0 deletions
1
python/nav/etc/alertmsg/deviceState/deviceDeletedModule-sms.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Device {{device}} has been removed from {{netbox}} as a module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- Add new deviceState alert | ||
INSERT INTO alerttype (eventtypeid,alerttype,alerttypedesc) VALUES | ||
('deviceState','deviceDeletedChassis','The device has been removed as a chassis.'); | ||
INSERT INTO alerttype (eventtypeid,alerttype,alerttypedesc) VALUES | ||
('deviceState','deviceDeletedModule','The device has been removed as a module.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters