[Nagios-users] check_disk solaris problem and solution

2009-03-24 Thread Philip Brown
Odd thing

we've been in the process of upgrading from an ooold set of plugins, to a 
new one, on solaris

we have some very large filesystems we want to monitor.

the old 1.3.1 plugin version of check_disk worked fine.

the newer ones did not, at one point.
(I'm dealing with 1.4.13 of the plugins)

The older one calls df. The newer one attempts to use system calls to 
figure it out the hard way.

Odd thing is... SOMETIMES, it compiles correctly.
Sometimes, it does not.

I have not yet figured out the magic that makes it compile correctly.
However, when it didnt, I brute-forced the issue a bit, by defining.

CFLAGS=-D_LARGEFILE64_SOURCE=1

and then it seems to work.

Odd thing is that a more recent test compile, showed
  ac_cv_sys_file_offset_bits=64
in config.log, and that resulted in a check_disk that worked correctly on 
large files.



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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] use of check_udp

2009-03-25 Thread Philip Brown
Hmm..

another snag I hit upgrading from plugins version 1.3.1, to 1.4.13.

previously, it was perfectly valid to use

check_udp -H hostname -p 

and it worked.

but now, you have to specify BOTH a 'send' string, and an 'expect' string.

The help/error message is not entirely clear:

With UDP checks, a send/expect string must be specified.

It would be nicer if it more accurately said,

With UDP checks, both a send AND an expect string must be specified.


I was wondering why it was not sufficient to call it with -s. I did not 
realize it required -e as well.
Also: i didnt really know what to 'expect... but it turns out that

check_udp -H host -p 2342 -s 'xyz' -e ''

works ok.

Too bad that trick does not seem to work for checking if a kerb5 kdc port is 
up and valid.

I know there is a check_kdc perl script, but it requires a couple of 
external modules. I prefer things that are self-contained, or compiled.


--
___
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