[Nagiosplug-devel] Unexpected column count in 'check_procs' throws "Not parseable:"

Bret Cason Bret_Cason at symantec.com
Wed Oct 1 01:03:31 CEST 2008


Here is a sample of the 'pst3' output that is causing the problem:

 

S     0 17943     1   1736    320  0.0 rsh  rsh -n w.x.y.z exec
2>/dev/null; \

          uname -s; \

          uname -r; \

          uname -i; \

          /etc/prtconf | grep Memory | sed "s/.*: //"; \

          echo "`pkginfo -l VRTSvxvm.* 2>/dev/null | grep PSTA | tail
-1`\n" \

              | sed "s/.*TAS-//" | sed "s/:.*//" | head -1; \

          echo "`pkginfo -l VRTSvxfs 2>/dev/null | grep VERS | cut -d\"
\" \

              -f6`\n" | sed "s/,REV=.*//" | head -1; \

          echo "`pkginfo -l VRTSvcs.* 2>/dev/null | grep VERS | tail
-1`\n" \

              | sed "s/.*: *//" | sed "s/,REV=.*//" | head -1; \

          echo "`pkginfo -l VRTSgab.* 2>/dev/null | grep VERS | tail
-1`\n" \

              | sed "s/.*: *//" | sed "s/,REV=.*//" | head -1; \

 

 

This would seem to be confusing the following code:

 

cols = sscanf (input_line, PS_FORMAT, PS_VARLIST);

 

I've worked around the problem using a wrapper script for 'pst3', for
example:

 

/lhome/nagios/libexec/pst3.orig | /usr/bin/grep -v "^\ "

 

The white space in the 'grep -v' argument is a  TAB.

 

 

Regards.

 

 

 

Bret Cason

Administrator

Global Support Labs

Symantec Corporation

www.symantec.com

===========================

Offfice: (541) 335 5487

Email: Bret_Cason at symantec.com

===========================

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20080930/98fa28f9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1765 bytes
Desc: image001.gif
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20080930/98fa28f9/attachment.gif>


More information about the Devel mailing list