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

Martin T <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <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".


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