[Nagiosplug-devel] ENC: Patches: check_swap and check_procs
Voon, Ton
Ton.Voon at egg.com
Fri Jan 21 08:26:00 CET 2005
Paulo,
I think the AIX check_swap is already fixed. Please try the snapshot at
http://nagiosplug.sf.net/snapshot.
The check_procs patch sounds interesting, but I don't seem to have received
it. As Matt says, if you can add it to SF, we can look at it closer.
I'm not sure I understand the ps problem. Can you provide:
- platform
- ps -awxo | head -5 output
- ps awxo | head -5 output
This is probably best logged as a bug through SF as well.
Ton
-----Original Message-----
From: Matthew Kent [mailto:mkent at magoazul.com]
Sent: 21 January 2005 08:34
To: Paulo Afonso Graner Fessel
Cc: nagiosplug-devel at lists.sourceforge.net
Subject: Re: [Nagiosplug-devel] ENC: Patches: check_swap and check_procs
Would you be able to submit these patches to the sourceforge tracker at
http://sourceforge.net/projects/nagiosplug ? That way we can better keep
track of them and make sure they get evaluated.
Thanks,
Matt
On Fri, 2005-01-21 at 13:50, Paulo Afonso Graner Fessel wrote:
>
>
> Paulo Afonso Graner Fessel
> Administrador de Ambiente e Sistemas UNIX paulo.fessel at primesys.com.br
> OWT
> Fone: +55 (11) 3038-6554
> Fax: +55 (11) 3038-6508
> http://www.primesys.com.br
>
>
>
>
>
> ______________________________________________________________
> De: Paulo Afonso Graner Fessel
> Enviada em: quinta-feira, 20 de janeiro de 2005 15:50
> Para: 'nagiosplug-devel at lists.sourceforge.net'
> Assunto: Patches: check_swap and check_procs
>
>
> Hello, folks:
>
> I have two patches here: the first for check_swap fixes the
> problems found with AIX when using unsigned long long with
> gcc. Tested in AIX 4.3 and 5.1 and linux 2.4 and 2.6.
>
> The second is a patch that implements performance counters for
> check_procs. When run without metrics specified, it can check
> against warning and critical thresholds of the absolute number
> of processes. When the option "--metric=VARIABLE" is
> specified, it will tell 3 counters: the number of process for
> which the counter is in "OK", "WARNING" and "CRITICAL" states.
> Again, tested on linux and AIX.
>
> Finally, someone who knows automake and autoconf (I don't)
> should correct the ps command for procps-3.1(.19). By default
> it runs ps as "ps -axwo" which causes check_procs to return
> with a warning:
>
> [root at nagios plugins]# ./check_procs -vv
> CMD: /bin/ps -axwo 'stat uid ppid vsz rss pcpu comm args'
> STDERR: Warning: bad syntax, perhaps a bogus '-'? See
> http://procps.sf.net/faq.html
> System call sent warnings to stderr
> PROCS WARNING: 285 processes | Processes=285;;;
>
> After changing the ps command in config.h:
>
> [root at nagios plugins]# ./check_procs -vv
> CMD: /bin/ps axwo 'stat uid ppid vsz rss pcpu comm args'
> PROCS OK: 271 processes | Processes=271;;;
>
> Please evaluate the patches in other platforms and apply if
> shouldn't bring problems.
>
> []'s
> Paulo
>
> Paulo Afonso Graner Fessel
> Administrador de Ambiente e Sistemas UNIX
> paulo.fessel at primesys.com.br
> OWT
> Fone: +55 (11) 3038-6554
> Fax: +55 (11) 3038-6508
> http://www.primesys.com.br
>
>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool
for open source databases. Create drag-&-drop reports. Save time by over
75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a
FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________________
Nagios Plugin Development Mailing List
Nagiosplug-devel at lists.sourceforge.net
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-----------------------------------------
Egg is a trading name of the Egg group of companies which includes: Egg plc
(reg no 2448340), Egg Financial Products ltd (reg no 3319027), Egg
International ltd (reg no 4059266), Egg Financial Intermediation ltd (reg
no 382828), Egg Investments ltd (reg no 3403963) and Egg Banking plc (reg
no 2999842. Egg Investments Ltd, Egg Banking plc and Egg Financial
Intermediation Ltd are authorised and regulated by the Financial Services
Authority (FSA) and are entered in the FSA register under numbers 190518,
205621 and 309551 respectively. These members of the Egg group are
registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA. This e-mail is confidential and for
use by the addressee only. If you are not the intended recipient of this
e-mail and have received it in error, please return the message to the
sender by replying to it and then delete it from your mailbox. Internet
e-mails are not necessarily secure. The Egg group of companies do not
accept responsibility for changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the transmission of
viruses, it is the responsibility of the recipient to ensure that the
onward transmission, opening or use of this message and any attachments
will not adversely affect its systems or data. No responsibility is
accepted by the Egg group of companies in this regard and the recipient
should carry out such virus and other checks as it considers appropriate.
This communication does not create or modify any contract.
More information about the Devel
mailing list