netsight alarm definition file
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-05-2015 04:38 AM
Netsight 6.2 - Console - Alarms Manager
In which file are the alarms saved? Is it possible to edit this file?
In which file are the alarms saved? Is it possible to edit this file?
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-06-2015 10:59 AM
You have to define the alarms in the :\Program Files\Extreme Networks\NetSight\services\trapd (windows enviorment )
The enty must like:
EVENT extremePortMauChangeTrap .1.3.6.1.4.1.1916.1.4.13.2.0.1 "Status Alarms" Warning
FORMAT $1 $3
SDESC
"SFP removed or inserted on switch"
EDESC
The enty must like:
EVENT extremePortMauChangeTrap .1.3.6.1.4.1.1916.1.4.13.2.0.1 "Status Alarms" Warning
FORMAT $1 $3
SDESC
"SFP removed or inserted on switch"
EDESC
Johan Hendrik
System Architect
Audax
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-06-2015 04:56 AM
Thank you. I do define alarms for a third party device. For instance an alarm for "SFP plugged out" and one for "SFP plugged in". And "SFP plugged in" clears the "SFP plugged out". This definitions are now in my demo system. How to ADD this to the Netsight system of my customer? If I could edit the alarms definitions I just could copy/add "my alarms".
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-05-2015 01:54 PM
Alarms are defined in the netsight database in the table nsalarmdefs
Example
mysql> SELECT * FROM nsalarmdefs limit 2;+----+-----------------------------+---------+------+----------+------------+---------+---------+---------------+----------+---------+---------------+---------------+-----------+------------+---------+-----------+-------------+-------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+--------------------------------------------------------------+--------+-------------------+-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ID | NAME | ENABLED | TYPE | SEVERITY | MAXENABLED | MAXSENT | NUMSENT | RESETINTERVAL | ACTIONID | GROUPID | MATCHSEVERITY | MATCHCATEGORY | MATCHTYPE | MATCHEVENT | MATCHIP | MATCHVIEW | MATCHPHRASE | MATCHLOGMGR | CUSTOMACTIONPROCESSINGXML | ACTIONDATA | ACTIONSCRIPT | ALARMSEVERITY | CLEARDATA | SYSTEM | THRESHOLDIMPLNAME | THRESHOLDCONFIG | DATA |
+----+-----------------------------+---------+------+----------+------------+---------+---------+---------------+----------+---------+---------------+---------------+-----------+------------+---------+-----------+-------------+-------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+--------------------------------------------------------------+--------+-------------------+-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1 | Spanguard | 1 | 2 | 0 | 0 | 1 | 0 | 3600000 | 0 | NULL | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NULL |$deviceIp $message $null $alarmName $eventType ($eventSeverity) for $deviceIpCtx$messagetrue ~ISAAC~'~CUSTOM~/usr/local/Enterasys_Networks/NetSight/scripts/alarms/spanguard.pl'/usr/local/Enterasys_Networks/NetSight/scripts/alarms' | NULL | 3 | true | 0 | NULL | NULL | 0 0 0 0 0 0 |
| 8 | NOTIFY LeftHandStorageNodes | 1 | 3 | 0 | 0 | 1 | 0 | 3600000 | 0 | 10 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NULL |Date/Time:
$time
Message:
$eventTitle: $message
Device Information:
- Device: $deviceIp
- Device NickName: $deviceNickName
- sysName: $sysName
- sysLocation: $sysLocation
- sysContact: $sysContact
- sysDescription: $sysDescr
- sysUptime: $sysUpTime
- chassisId: $chassisId
- bootProm: $deviceBootProm
- firmware: $deviceFirmware
- chassisType: $chassisType
- status: $deviceStatus
Trap Information:
- Trap Name: $trapName
- Trap OID: $trapOid
- Trap Date: $time
- Trap Args: $trapArgs $eventType ($eventSeverity) for $deviceIpCtxtrue ~EMAIL~8' | NULL | 0 | true | 0 | NULL | NULL | 0 0 0 0 0 0 |
+----+-----------------------------+---------+------+----------+------------+---------+---------+---------------+----------+---------+---------------+---------------+-----------+------------+---------+-----------+-------------+-------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+--------------------------------------------------------------+--------+-------------------+-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)Why would you want to edit this from here and not the alarm manager?
Example
mysql> SELECT * FROM nsalarmdefs limit 2;+----+-----------------------------+---------+------+----------+------------+---------+---------+---------------+----------+---------+---------------+---------------+-----------+------------+---------+-----------+-------------+-------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+--------------------------------------------------------------+--------+-------------------+-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ID | NAME | ENABLED | TYPE | SEVERITY | MAXENABLED | MAXSENT | NUMSENT | RESETINTERVAL | ACTIONID | GROUPID | MATCHSEVERITY | MATCHCATEGORY | MATCHTYPE | MATCHEVENT | MATCHIP | MATCHVIEW | MATCHPHRASE | MATCHLOGMGR | CUSTOMACTIONPROCESSINGXML | ACTIONDATA | ACTIONSCRIPT | ALARMSEVERITY | CLEARDATA | SYSTEM | THRESHOLDIMPLNAME | THRESHOLDCONFIG | DATA |
+----+-----------------------------+---------+------+----------+------------+---------+---------+---------------+----------+---------+---------------+---------------+-----------+------------+---------+-----------+-------------+-------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+--------------------------------------------------------------+--------+-------------------+-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 1 | Spanguard | 1 | 2 | 0 | 0 | 1 | 0 | 3600000 | 0 | NULL | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NULL |
| 8 | NOTIFY LeftHandStorageNodes | 1 | 3 | 0 | 0 | 1 | 0 | 3600000 | 0 | 10 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | NULL |
$time
Message:
$eventTitle: $message
Device Information:
- Device: $deviceIp
- Device NickName: $deviceNickName
- sysName: $sysName
- sysLocation: $sysLocation
- sysContact: $sysContact
- sysDescription: $sysDescr
- sysUptime: $sysUpTime
- chassisId: $chassisId
- bootProm: $deviceBootProm
- firmware: $deviceFirmware
- chassisType: $chassisType
- status: $deviceStatus
Trap Information:
- Trap Name: $trapName
- Trap OID: $trapOid
- Trap Date: $time
- Trap Args: $trapArgs
+----+-----------------------------+---------+------+----------+------------+---------+---------+---------------+----------+---------+---------------+---------------+-----------+------------+---------+-----------+-------------+-------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+--------------------------------------------------------------+--------+-------------------+-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)Why would you want to edit this from here and not the alarm manager?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-05-2015 09:38 AM
That I don't know.I think in the netsight database.
Johan Hendrik
System Architect
Audax
