I found it very hard to find other reports about this problem. Apologies for duplicates or what not as I haven't been subscribed before. Tried searching the archives and bug tracker without finding something close to this.
I am using net snmp 5.7.2 on Linux 3.4.18 and have a slight config headache with the proc command. This is a snippet of my configuration, let me know if you need to see more. ---------------------------------- proc postmaster 0 1 proc sshd 0 1 proc syslog-ng 0 1 proc 'MYDB main' 0 1 monitor -r 1 -o prNames -o prErrMessage "process table" prErrorFlag != 0 ---------------------------------- I was using net snmp 5.4.x and a older linux kernels earlier, at that point the last process in the list above showed up as "mydbd" and posed no problem at all. After upgrading components (I think) it now shows up as "MYDB main", this is all true as the main thread of that application is indeed calling itself "MYDB main". prctl (PR_SET_NAME, "MYDB main", 0, 0, 0); root@172.21.13.69:~# grep Name: /proc/10094/status Name: MYDB main Getting the space into the process list works but the meaning of "0 1" changes it seems. I get prMin 0, prMax 0 and prCount 1 and thus a prErrorFlag. I did expect it to be prMin 1, prMax 0 and prCount 1 just as postmaster, sshd and syslog-ng does. And ofc no error. Having the columns mean different things with or without the single quote mark is a bit disturbing for the administrator reading the file top down. For the immediate bug hunting session I opted for 1 1 as there should really be only one instance of "MYDB main" at any given time. If I build the application with a prNames set to something without spaces the config is reverted back to the assumed meaning. It mostly sounds like a bug but I might overlook something here and while searching for information on this I felt like I was the only one trying to monitor stuff with a space in the application name. -- Martin Bagge Procera Networks http://www.proceranetworks.com ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ 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