nagiostats Config Parameters
Jochen Bern
Jochen.Bern at LINworks.de
Wed Jun 20 23:40:56 CEST 2012
On 05/24/2012 11:30 AM, Andreas Ericsson wrote:
> On 05/18/2012 12:52 AM, Jochen Bern wrote:
>> On 05/11/2012 09:34 PM, Jochen Bern wrote:
>>> Everyone,
>>> I played with the "-c" and "-s" Parameters of a 3.2.3's nagiostats today
>>> and noticed the odd behavior shown below. [...]
>> Any chance that the -s option might be reappropriated to read the
>> current status.dat files via read_status_file(), rather than a format
>> lost in the sands of time ... ?
>
> Sounds like you've already done a large part of the analysis, so it might
> be good if you did the patch as well.
Very well. The attached patch is for 3.2.3, which is what I have at hand
right now both source- and real-world-example-data-wise. Does it happen
to apply cleanly to 3.4.1 ... ?
Kind regards,
J. Bern
========== Running new tests against unpatched executable ==========
[root at nagios nagios-3.2.3+all]# make test-perl
[...]
705nagiostats.t ................. 9/10
# Failed test 'Explicit generated status file contains host(s)'
# at 705nagiostats.t line 37.
# '0
# '
# matches '/^0$/'
# Looks like you failed 1 test of 10.
[...]
Result: FAIL
[...]
========== Compiling patched source and re-running tests ==========
[root at nagios nagios-3.2.3+all]# make all
cd ./base && make
make[1]: Entering directory `/root/nagios-3.2.3+all/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -lm
make[1]: Leaving directory `/root/nagios-3.2.3+all/base'
[...]
[root at nagios nagios-3.2.3+all]# make test-perl
[...]
705nagiostats.t ................. ok
[...]
Result: PASS
make[1]: Leaving directory `/root/nagios-3.2.3+all/t'
--
Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/>
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Geschäftsführer Metin Dogan, Oliver Michel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagios-3.2.3-nagiostats-s-option-patch.txt
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20120620/c4f15ae1/attachment.txt>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list