cancel
Showing results for 
Search instead for 
Did you mean: 

netsight alarm definition file

netsight alarm definition file

Wendelin_Bluell
New Contributor
Netsight 6.2 - Console - Alarms Manager

In which file are the alarms saved? Is it possible to edit this file?

6 REPLIES 6

JohanHendrikx
Contributor II
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

Johan Hendrik System Architect Audax

Wendelin_Bluell
New Contributor
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".

Frank_Thomas
Extreme Employee
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 | 000000 |
| 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 | 000000 |
+----+-----------------------------+---------+------+----------+------------+---------+---------+---------------+----------+---------+---------------+---------------+-----------+------------+---------+-----------+-------------+-------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------+---------------+--------------------------------------------------------------+--------+-------------------+-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)Why would you want to edit this from here and not the alarm manager?

JohanHendrikx
Contributor II
That I don't know.I think in the netsight database.
Johan Hendrik System Architect Audax
GTM-P2G8KFN