Re: [Nagios-users] snmpget truncating return

2008-10-31 Thread Marc Powell

On Oct 31, 2008, at 8:26 AM, Matt Nelson wrote:

> I have a process that I check for via SNMP.  I am using the following:
>
> snmpget server1 -v2c -c public -t 10 .1.3.6.1.2.1.25.4.2.1.5.9691
>
> which returns a string that is truncated:
>
> HOST-RESOURCES-MIB::hrSWRunParameters.9691 = STRING: "-Xms512m - 
> Xmx1024m -Dcom.sun.management.jmxremote.port=x - 
> Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxre"   
> 
>
> Is there a limitation of snmp that I can change to return more of  
> this string?

You'll probably get a better answer from a more appropriate forum  
(i.e. one about SNMP) but if this is under Solaris, this seems to be a  
known issue according to these threads --

http://www.google.com/search?hl=en&client=safari&rls=en-us&q=hrSWRunParameters+snmp-coders&btnG=Search

--
Marc


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] snmpget truncating return

2008-10-31 Thread Aaron Segura
Looks like about 128 characters...that number seems meaningful, somehow
:-)

 

http://www.net-snmp.org/docs/mibs/host.html#hrSWRunTable

 

-

hrSWRunParameters OCTETSTR

Legal Lengths: 0 .. 128

--

 



 

From: Matt Nelson [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2008 7:27 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] snmpget truncating return

 

I have a process that I check for via SNMP.  I am using the following:

snmpget server1 -v2c -c public -t 10 .1.3.6.1.2.1.25.4.2.1.5.9691

which returns a string that is truncated:

HOST-RESOURCES-MIB::hrSWRunParameters.9691 = STRING: "-Xms512m -Xmx1024m
-Dcom.sun.management.jmxremote.port=x
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxre"


Is there a limitation of snmp that I can change to return more of this
string?


Note: In all actuallity I run snmpwalk, and grep for what I am needing,
since 9691 changes...

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] snmpget truncating return

2008-10-31 Thread Matt Nelson
I have a process that I check for via SNMP.  I am using the following:

snmpget server1 -v2c -c public -t 10 .1.3.6.1.2.1.25.4.2.1.5.9691

which returns a string that is truncated:

HOST-RESOURCES-MIB::hrSWRunParameters.9691 = STRING: "-Xms512m -Xmx1024m
-Dcom.sun.management.jmxremote.port=x
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxre"  

Is there a limitation of snmp that I can change to return more of this
string?


Note: In all actuallity I run snmpwalk, and grep for what I am needing,
since 9691 changes...
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null