perl subagent works partially

Michael Schwartzkopff <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization sys4 AG
Message-ID <9919428.x830lOnf00@nb003>
Hi,

I wrote a SNMP subagent in perl. In snmpd.conf I add the line:

perl do '/root/pcmk-subagent.pl' || print "Problem running agent.\n"

and everything works fine when I call the agent from the command line 
(/usr/sbin/snmpd). The agent also works in Debian OS calling from the init 
system.

But it does not run in CentOS 6.5. Running /etc/init.d/snmpd start I get

"Problem running agent."

which means, my subagent did not start. Any ideas what is wrong with the 
CentOS init script? Why does the snmp agent behave different here?

Thanks for any help.


Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

------------------------------------------------------------------------------

_______________________________________________
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
signature.asc (application/pgp-signature, 230 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iF4EABEIAAYFAlPnkewACgkQsmtesqLuBDTX4QEAoCDxDrflftn/NfUOZNKhwWCR
dojLrgGw3bxKuCeVMVUBAImZ2jKEvT2OMpKYAMTjzSViceqfsxdxno0C+E9rglhJ
=eUcA
-----END PGP SIGNATURE-----
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.