unix - Re-read the configuration 'snmpd.conf' file? HOW? -


well, year developed agent module net-snmp monitor disk usage/statistics. locally installed on system in lan.

now, intend use same module home pc , trap on office.. isp not provide me 'static ip' , expensive own one.

over last week-end found out 'no-ip.org' can me out setup virtual static ip using dynamic ip (just stole working-logic, simple)

anyways, here did! wrote program check present running ip in system , update me through mail , inserts same snmpd.conf file.

i not know how make 'snmpd' re-read configuration file without restarting snmpd service.

after spending lot of time on google found can use 'kill -sighup <snmpd-pid>'

but ever me out in re-reading .conf file? sighup terminate process, speaking...

how if ever wanted re-read .conf file without restarting snmpd daemon?

from snmpd.conf man page:

the net-snmp agent can instructed re-read various configuration files, either via snmpset assignment of integer(1) ucd-snmp-mib::versionupdateconfig.0 (.1.3.6.1.4.1.2021.100.11.0), or sending kill -hup signal agent process.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -