[AGENT++] Sub AgentX daemon script problem

Frank Fock fock at agentpp.com
Tue Oct 5 20:53:12 CEST 2004


Hello Patrice,

The NET snmp agent forks itself into background by default
(i.e. unless -f is specified). You will have to implement the same
for your AGENT++ agent. Please see the man page for fork
on your UNIX for more details.

Hope this helps.

Best regards,
Frank

Patrice Bentolila wrote:

> Hello everyone,
>
> I have build a subagentx generated by agenpro template,
> Working with master agent snmpd.
> I want to write a script
> that initializes the subagent as a daemon service.
> No matter if I add it to the snmpd script
> or I write a specific script.
> I've got a problem with the script.
> It stays pending in the shell session that runs the daemon service,
> and does not return ready to new command I/O:
>
> By example, for snmpd I get
> “…
> [root at station1 user1]# service snmpd start
> Starting snmpd [OK]
> [root at station1 user1]#
> …”
>
> For my subagent, I get
> “…
> [root at station1 user1]# service my_subagentx start
> Starting my_subagentx
> …” (Staying pending).
>
> has someone matched this problem?
> any help would be appreciated.
> Best Regards.
> Patrice
>
> _________________________________________________________________
> MSN Search, le moteur de recherche qui pense comme vous ! 
> http://search.msn.fr/
>
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://agentpp.org/mailman/listinfo/agentpp
>





More information about the AGENTPP mailing list