@@ -31,7 +31,7 @@ The can be easily extended to any other custom notification type.
31
31
This guide assumes you have a working net-snmp, apache, php and mysql installation with default apache files stored
32
32
in /var/www/.
33
33
34
- 1 . Set traphandler
34
+ 1.Set traphandler
35
35
36
36
First, edit file ` /etc/snmp/snmptrapd.conf ` and add traphandler for default files to traphandler.php:
37
37
@@ -42,7 +42,7 @@ agentaddress my_ip_address:162
42
42
traphandle default /usr/bin/php /var/www/traphandler.php
43
43
```
44
44
45
- 2 . Prepare and edit config file
45
+ 2.Prepare and edit config file
46
46
47
47
Now go to /var/www/ directory and copy config.dist.php to config.php:
48
48
```
@@ -51,13 +51,13 @@ cp /var/www/config.dist.php /var/www/config.php
51
51
and edit the config file to match your settings.
52
52
53
53
54
- 3 . Set mod_rewrite
54
+ 3.Set mod_rewrite
55
55
56
56
mod_rewrite is required for snmptraps. Example here:
57
57
58
58
http://phpipam.net/documents/prettified-links-with-mod_rewrite/
59
59
60
- 4 . Import database schema
60
+ 4.Import database schema
61
61
62
62
Now you have to import chema for mysql database with following command:
63
63
@@ -81,7 +81,7 @@ mysql -u root -p snmptraps < db/SCHEMA.sql
81
81
That should be it, fire up browser and login. Default user/pass is Admin/snmptraps.
82
82
83
83
84
- 5 . Send test message and debugging
84
+ 5.Send test message and debugging
85
85
86
86
To test snmptrap you can use the following command:
87
87
0 commit comments