>
> Guys, good morning, how are you ?
>
> Sorry to jump on you like this, but I am having a problem I think you may
> know how to help me solving.
>
> I have a script, running on a remote server, as a daemon.
>
> And, sometimes, It crashes.
>
> Ok, so I use Nagios and SNMP to return the info when it's down, so I can
> access the server via SSH and restart the script.
>
> But, I know I can use Nagios's Event Handlers to do that. That it, when the
> script's down, Nagios runs a script ( my extend script), that uses SNMP's
> extend feature and it calls my script on my remote servers. Right ?
>
> The problem is: I need to pass arguments to the script. And I've been
> struggling here to use nsExtendArgs to do that and I have failed miserably.
>
> I saw some infos here (
> http://www.mail-archive.com/[email protected]/msg08515.html),
> and I've got to the point of setting a value to a SNMP object.
>
> The problem is I can't set this value.
>
> Check this out:
>
> *snmpset -v2c -c public -OvQ $IP
> NET-SNMP-EXTEND-MIB::nsExtendArgs.\"extend\" s "-s argument"*
> *Error in packet.*
> *Reason: noAccess*
>
> Now, can you imagine on how I can give myself permission to write this
> value to that object ?
>
> Or do you know any other way to pass an argument via nsExtendArgs or
> nsExtendOutputFuil ?
>
> I thank you any help you can give me.
>
>
> Thanks a lot !
>
> []'s
> Osimar Medeiros
> TI
> ----------------------------------------------------------
> VIRID Interatividade Digital
> www.virid.com.br
> Phone: +55 11 4084-5099
>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to