Re: hrSystemUptime gives wrong result under Windows box

2009-10-29 Thread Bart Van Assche
On Wed, Oct 28, 2009 at 8:29 PM, Mike Ayers mike_ay...@tvworks.com wrote: From: malar vizhi [mailto:malar...@gmail.com] Sent: Wednesday, October 28, 2009 2:42 AM This has to be fixed since hrSystemUptime is the very basic property of system monitoring. On Wed, Oct 28, 2009 at 2:53 PM,

Passing methods as handlers?

2009-10-29 Thread Schmidt-Goertz, Ulrich
Hi, I am trying to add agent functionality to my program. Since I use OOP, I'd like to make the handlers methods of my agent class. However, so far my attempts have met the following error (on the line where I do netsnmp_register_scalar()): argument of type 'int

RE: hrSystemUptime gives wrong result under Windows box

2009-10-29 Thread Mike Ayers
From: Bart Van Assche [mailto:bart.vanass...@gmail.com] Sent: Thursday, October 29, 2009 1:06 AM Thanks for jumping in on this thread. I was already afraid that the chance was small that Microsoft would fix this bug. But regarding the interpretation of the TimeTicks definition, RFC 1213 is

daemon command no longer works after upgrade

2009-10-29 Thread Gebhardt, Tom
On Linux, I upgraded Net-SNMP from 5.4.2.1 to 5.5. I am running embedded perl. My /etc/rc.d/init.d/snmpd script issues the command:daemon /usr/sbin/snmpd (the daemon script is contained in /etc/init.d/functions). This eventually expands out to the following command string: /bin/bash -c

String monitoring

2009-10-29 Thread Mudassar
HI, I am using opennms and netsnmp to use string alerts, is it possible to get the some text before and after the string mentioned for monitoring. I am using the following syntax in netsnmp logmatch string:What /var/log/messages 1 Taking over resource group Thanks Mudassar

Re: String monitoring

2009-10-29 Thread Mudassar
Hi, I add the following lines in snmpd.conf logmatch test /var/adm/messages 1 GET.*HTTP.* monitor -u _internal -r 2 -o logMatchFilename -o logMatchRegEx -o logMatchCurrentCount String found in logfile logMatchCounter != 0 #snmptable -v 2c -c string 10.30.40.227 logMatchTable shows me the

RE: String monitoring

2009-10-29 Thread Haskins, Russell T.
The String you are looking for uses 'Regular Expressions', so GET.*HTTP.* would work for GET...HTTP The * means match the preceding element zero or more times, not match anything. Russ... -Original Message- From: Mudassar [mailto:mudas...@innovative-pk.com] Sent: Thursday, October

Re: String monitoring

2009-10-29 Thread Mudassar
Hi, I have the same understanding but it is not working. Thanks Original Message Subject: Re: String monitoring From: Haskins, Russell T. russell.hask...@gd-ais.com To: Mudassar mudas...@innovative-pk.com Cc: net-snmp users net-snmp-users@lists.sourceforge.net Date:

RE: String monitoring

2009-10-29 Thread Mike Ayers
From: Haskins, Russell T. [mailto:russell.hask...@gd-ais.com] Sent: Thursday, October 29, 2009 2:30 PM The String you are looking for uses 'Regular Expressions', so GET.*HTTP.* would work for GET...HTTP The * means match the preceding element zero or more times, not match anything.

RE: String monitoring

2009-10-29 Thread Haskins, Russell T.
The . matches a single character so I don't believe his expression will work, something like GET[.]...HTTP[.].. Might work for his example below. -Original Message- From: Mike Ayers [mailto:mike_ay...@tvworks.com] Sent: Thursday, October 29, 2009 2:55 PM To: Haskins, Russell

RE: String monitoring

2009-10-29 Thread Mike Ayers
From: Haskins, Russell T. [mailto:russell.hask...@gd-ais.com] Sent: Thursday, October 29, 2009 3:21 PM The . matches a single character so I don't believe his expression will work, something like GET[.]...HTTP[.].. Might work for his example below. '.' - match any

Re: String monitoring

2009-10-29 Thread Mudassar
Hi, Thanks all of you, i am still unable to get out put on opennms, is there any way that i can generate mail on this trigger. Thanks M Original Message Subject: Re: String monitoring From: Haskins, Russell T. russell.hask...@gd-ais.com To: Mike Ayers

RE: String monitoring

2009-10-29 Thread Haskins, Russell T.
Yeah, I've tried that before, as I remember it always returns more than you'd think... Something like: GET[^\.]HTTP[^\.] Maybe... -Original Message- From: Mike Ayers [mailto:mike_ay...@tvworks.com] Sent: Thursday, October 29, 2009 3:45 PM To: Haskins, Russell T. Cc: net-snmp users

Re: String monitoring

2009-10-29 Thread Mudassar
There is a little improvement, i have change the monitor parameters , alternatively can i generate mail on this trigger from the local machine. logmatch test /var/log/testlog 5 GET.*HTTP.* monitor -u _internal -r 2 -o logMatchFilename -o logMatchRegEx -o logMatchName -o logMatchCurrentCount

RE: Passing methods as handlers?

2009-10-29 Thread Steve Stetka
Ulrich, U have to use static functions if using C++. The function prototypes of c functions and static c++ functions are the same; however, the prototypes of c++ method functions are different (the actual class becomes part of the signature or something like that). So it gets a bit tricky