Hello Bill,

Any update on it ?
I believe, on receiving HUP signal by the agent, log rotation occurs( as 
checked in code). It’s a free bsd box and would output of any command provide 
hint for the reason of HUP signal.

Thank you
Krishna Vivek

From: Krishna Vivek Vitta <krishna.vivekvi...@citrix.com>
Sent: 28 August 2019 22:14
To: Bill Fenner <fen...@gmail.com>
Cc: net-snmp-users@lists.sourceforge.net
Subject: RE: nsNotifyRestart traps

Hello Bill

Thank you for inputs.
Isn’t snmpd.log rotated on receiving the HUP signal ? How can we check 
“logrotate” is running on server ? It’s a free bsd box and would output of any 
command provide hint the reason of HUP signal

How can we log timestamp in snmpd.log ?

Thank you
Krishna Vivek

From: Bill Fenner <fen...@gmail.com<mailto:fen...@gmail.com>>
Sent: 27 August 2019 21:04
To: Krishna Vivek Vitta 
<krishna.vivekvi...@citrix.com<mailto:krishna.vivekvi...@citrix.com>>
Cc: 
net-snmp-users@lists.sourceforge.net<mailto:net-snmp-users@lists.sourceforge.net>
Subject: Re: nsNotifyRestart traps

On Tue, Aug 27, 2019 at 2:54 AM Krishna Vivek Vitta 
<krishna.vivekvi...@citrix.com<mailto:krishna.vivekvi...@citrix.com>> wrote:
Hello experts,

We have a management server running snmpd where it is sending nsNotifyRestart 
traps. The frequency is once per day during same time.
May I know on what occasions this trap is raised and I don’t get to see any 
logs in management server restarting agent(snmpd), though we see following in 
snmpd.log.

I went to 
https://lmgtfy.com/?q=nsNotifyRestart<https://secure-web.cisco.com/1i9QG7HjSl-xZDwR0beKOD8l_ixD-zAcQZA7nkVKbOpOEClEBICzjPj_kLgpMWxiCWfhSXsVud05IWOxYlZj8zgtNKhqnRVRjwb_faPehfC8BfUK-AjQDWjQUdNY2aIbNctln8km9u5sruQrJfnc7EyX5XOrB6qlrYQlHZvlORQqYRKmFGmEoqTyDDLck20XOTKXpVvsZc9RK6mBFmH52zyHMAwsU0sVVoXlp6JmXa2c3MEfOmX3PYxsGhPat3PNEJyCyQ3fgPeyvU8WImBWNZoNjOFhfkL2v0iYFTnqWgwa3UPEt79kEQqd0TLseAeypLNe9k2xQ-vARlEpDcRuLsIPNdFii7deGjO3Sxewtx14/https%3A%2F%2Flmgtfy.com%2F%3Fq%3DnsNotifyRestart>
 and the first search result was 
http://net-snmp.sourceforge.net/wiki/index.php/FAQ:Agent_15 which says:

The Net-SNMP agent ... generates an enterprise-specific trap 'nsNotifyRestart' 
... on receiving a HUP signal - typically after being re-configured.

One interesting thing to note is that "logrotate" is pretty likely to send a 
HUP to a daemon whose logs it's configured to rotate.  Does your trap happen to 
coincide with when "logrotate" runs on your server?

  Bill

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to