[Nagiosplug-devel] runcmd, common.h, and popen

sean finney seanius at seanius.net
Wed Jun 29 04:55:28 CEST 2005


hey andreas,

On Wed, Jun 29, 2005 at 11:13:39AM +0200, Andreas Ericsson wrote:
> >check_by_ssh (segfaulted if i gave a remote cmd that didn't exist)
> 
> I'll look into it. Did you happen to have a backtrace of the core-dump?

#0  0x000000000040197c in main (argc=5, argv=0x7fbffffa78) at check_by_ssh.c:91
91                      result_text = chld_out.line[0];

> >check_users (doesn't return the correct number of users)
> 
> What system was this on, and how does it differ (+-1 or wildly incoherent)?

debian amd64.  here's an example:

copelandia[~]07:51:03$ w
 07:51:04 up 20 min,  4 users,  load average: 0.00, 0.00, 0.00
 USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
 seanius  :0       -                07:31   ?xdm?   3.42s  0.00s -:0         
 seanius  pts/0    :0.0             07:32    2.00s  0.03s  0.03s ssh seanius at sat
 seanius  pts/1    :0.0             07:47   40.00s  0.06s  0.05s vi check_by_ssh
 seanius  pts/2    :0.0             07:51    0.00s  0.00s  0.00s w

copelandia[~]07:51:04$ /usr/lib/nagios/plugins/check_users -w 3 -c 8
USERS WARNING - 4 users currently logged in |users=4;3;8;0

copelandia[~/nagios-plugins-1.5/plugins]07:51:52$ ./check_users -w 3 -c 8
USERS OK - 2 users currently logged in |users=2;3;8;0

i think the number is pretty much always 2 with the new plugin, fwiw.


	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20050629/9b6c10c4/attachment.sig>


More information about the Devel mailing list