Re: perl subagent works partially

Michael Schwartzkopff <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization sys4 AG
Message-ID <2089567.eFYTAOyYo9@nb003>
Am Sonntag, 10. August 2014, 17:38:20 schrieb Michael Schwartzkopff:
> 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?

Hi,

the problem was the selinux beeing still activated in my setup. Without 
selinux it works.

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)

iF4EABEIAAYFAlPoaykACgkQsmtesqLuBDSrUQEAxix+vJ2pabYvL+k8zcRlYktE
0HhQOyrLMA6gosR9GuIA/Ryhzq8IOCHFb13kNO1/K8/y61krfRqLHqdOv31kKtHi
=25DF
-----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.