Results 1 to 5 of 5
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
03-03-2014 #1
- Join Date
- Mar 2014
- Posts
- 2
Net-SNMP truncates log file when restarted
I wanted my Net-SNMP app to not truncate my log file when restarted. I don't know how to use the option -A for snmptrapd in order for it to not truncate its log file whenever the application is restarted.
Help will be very much appreciated. Thank you!
-
03-03-2014 #2
- Join Date
- Dec 2013
- Location
- Victoria, B.C. Canada
- Posts
- 2,103
How it is started will vary with your platform so you should post some platform info but in the mean time, if it is being started from an rc script you can run the command below and see if snmpd shows up. If it does edit the files it is in to add the -A to the command line. The command will show all the scripts being run by init.
Code:for each in {1..6}; do echo /etc/rc${each}.d; ls /etc/rc${each}.d; done
-
03-03-2014 #3
- Join Date
- Mar 2014
- Posts
- 2
We restart it using this command:
Code:/etc/init.d/snmptrapd restart
-
03-03-2014 #4
- Join Date
- Dec 2013
- Location
- Victoria, B.C. Canada
- Posts
- 2,103
Open /etc/init.d/snmptrapd in an editor as root or sudo and add the -A to the OPTIONS variable.
-
03-07-2014 #5
- Join Date
- Feb 2014
- Posts
- 6