RE: A SIGHUP signal just kills snmpd daemon instead of reloading theconfig.

"Hu, Fengliang" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <FB2AA99F70966942AB0CC838F40FF2C92710A6D8FE@GVW0432EXB.americas.hpqcorp.net>
Hi, Joan,

I just tried it and it didn't work... what's the version of net-snmp you used?

On Linux tried:
    kill -1 <pid>
    kill -SIGHUP <pid>
    kill -s SIGHUP <pid>
    kill -s 1 <pid>
    kill -hup <pid>

Thanks,
Feng

________________________________
From: Joan Landry [mailto:[email protected]]
Sent: Friday, August 01, 2008 2:38 PM
To: Hu, Fengliang; [email protected]
Subject: RE: A SIGHUP signal just kills snmpd daemon instead of reloading theconfig.

kill -hup pid, where pid = the snmpd process id.

worked when I tried it.


________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Hu, Fengliang
Sent: Friday, August 01, 2008 5:29 PM
To: [email protected]
Subject: A SIGHUP signal just kills snmpd daemon instead of reloading theconfig.

Hi,

This is Feng. I am poking net-snmp software 5.4 on x86 Linux (ubuntu 7.4) and trying to see how it can reloads the new configuration (such as the updated community string). Googled some articles, I thought SIGHUP signal needs to be sent to snmpd process. I also took a look at the code and it seems that on Linux it installs the signal handler for SIGHUP to set a reconfig flag. But for me, snmpd always simply died after I "kill -s SIGHUP <snmpd_pid>".

Snmpd was started with the following command line options:
"
-u 0 -Ls5 -Lf /dev/null -p <PID_FILE_FULL_PATH> -c <SNMP_CONFIG_FILE_FULL_PATH> -M <MIB_DIRS>"
"

Thanks for any feedback here.
Feng


Overture Networks Inc. The information contained in this message is privileged, confidential, and non-binding and is intended for use by the intended recipient or entity. All other uses, including distribution to third parties, are prohibited. Please notify the sender if you have received this message in error. Thank You, Overture Networks.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.