Antw: Re: How does "proc" in snmpd.conf match the process

"Ulrich Windl" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
>>> Martin T <[email protected]> schrieb am 11.12.2015 um 00:43 in Nachricht
<CAJx5YvHaHgaBsCn2mkdsesSBN522nsfCq8AYrzRvQ1q_viDaBg@mail.gmail.com>:
> Hi,
> 
> if I check the fixproc Perl script in net-snmp-5.4.3 source tarball,
> then looks like "proc" executes simply "ps -e" and CMD column of this
> command is limited to 15 characters. The actual script name was not
> "backup.sh", but "<vendorname>-backup.sh". So in short, "proc" matches
> process by greping the output of "ps -e".

If I try "ps -ax -o cmd" I get rather long output like this:
/usr/sbin/console-kit-daemon
/usr/sbin/snmpd -r -A -LF d /var/log/net-snmpd.log -p /var/run/snmpd.pid

Maybe that helps.

> 
> 
> Martin
> 
> On Thu, Dec 10, 2015 at 6:13 PM, Martin T <[email protected]> wrote:
>> Hi,
>>
>> according to manual page of snmpd.conf, the "proc NAME" monitors the
>> number of processes called NAME (as reported by " -acx") running on
>> the local system. How to understand this "-acx" part? For example I
>> have a bash script backup.sh running as daemon in system and snmpd
>> seems to detect this script by the name "backup.", i.e. I need to
>> configure "proc    backup." while I assumed that it detects this
>> script by the name "backup" or "backup.sh". How exactly does "proc" in
>> snmpd.conf match the process?
>>
>>
>>
>> thanks,
>> Martin
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> 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 





------------------------------------------------------------------------------
_______________________________________________
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.