source: npl/monitoring/net_snmp/post.net_snmpd @ 128fde4

gcc484perl-5.22
Last change on this file since 128fde4 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 385 bytes
Line 
1#!/bin/bash
2#(c) DatuX 2007
3if [ ! -e /var/log/snmpd.log.1.gz ]; then
4 #mag fout gaan bij eerste installatie:
5 logrotate -f /etc/logrotate.d/snmpd &>/dev/null
6fi
7
8
9if ! grep agentXSocket /etc/snmp/snmpd.conf 1> /dev/null 2> /dev/null; then
10        echo '
11                master agentx
12                agentXSocket /var/agentx/master
13                agentXPerms 0666 0555 nobody nogroup
14        ' >> /etc/snmpd.conf
15fi
16
17
18exit 0
Note: See TracBrowser for help on using the repository browser.