|
From: Clif J. S. <per...@cj...> - 2004-10-02 16:16:06
|
I just installed v0.100.6 and I'm having the same issue. I did tried=20
the hack to no avail, although the settings were already updated, I just=20
put them in the same order. Any ideas?
cjs
From: Paulo Afonso Graner Fessel <paulo@pr...>
RES: Warn values are not going into database =20
2004-08-13 13:15
=20
Ultra-quick hack that seems to solve my problem:
=20
In perfparse/perfparse.c:
=20
#define TPERFDATA_MIN 2
#define TPERFDATA_MAX 3
#define TPERFDATA_WARN 0
#define TPERFDATA_CRIT 1
#define TPERFDATA_VALUE 4
=20
instead of
=20
#define TPERFDATA_MIN 0
#define TPERFDATA_MAX 1
#define TPERFDATA_WARN 2
#define TPERFDATA_CRIT 3
#define TPERFDATA_VALUE 4
=20
The lines on the database now show
=20
+------------+---------------------+--------+---------------------+------=
---+--------+----------+--------+
| host_name | service_description | metric | ctime |=20
value | warn |
critical | state |
+------------+---------------------+--------+---------------------+------=
---+--------+----------+--------+
| nagioslab | /dev/vg00/rootlv | / | 2004-08-13 09:58:11 | =20
5211 | 8567 | =20
9575 | 0 |
+------------+---------------------+--------+---------------------+------=
---+--------+----------+--------+
=20
What, I think, should be the correct behavior.
=20
[]"s
Paulo
=20
=20
"This is not right. This is not even wrong." (Wolfgang Pauli) =20
=20
Paulo Fessel
Administrador de Ambiente e Sistemas UNIX PrimeSys Solu=E7=F5es=20
Empresariais
Av. Brig. Faria Lima, 1485 - 13=B0 andar
Torre Norte - Pinheiros
01451-904
S=E3o Paulo - SP =20
paulo.fessel@pr... tel:
fax:
mobile: +55 (11) 3038-6554
+55 (11) 3038-6508
+55 (11) 8259-0353 =20
=20
Signature powered by Plaxo <http://www.plaxo.com/signature> Want a=20
signature like this?
<http://www.plaxo.com/signature> =20
Add me to your address book...
<https://www.plaxo.com/add_me?u=3D8590019246&v0=3D166225&k0=3D1601108562>=
=20
=20
=20
=20
_____ =20
=20
De: Paulo Afonso Graner Fessel
Enviada em: sexta-feira, 13 de agosto de 2004 09:02
Para: Cook, Garry; perfparse-users@li...
Assunto: RES: [Perfparse-users] Warn values are not going into datab=
ase
=20
=20
I wasn"t at the office today, so I"ll try to describe what"s happeni=
ng.
=20
Here"s for example one row of data took from perfdata_service_bin:
=20
=20
+-----------+---------------------+--------+---------------------+------=
---+--------+----------+--------+
| host_name | service_description | metric | ctime |=20
value | warn |
critical | state |
=20
+-----------+---------------------+--------+---------------------+------=
---+--------+----------+--------+
| nagioslab | /dev/vg00/rootlv | / | 2004-07-23 14:35:10=20
| 4822 | 0 | =20
10079 | 0 |
=20
+-----------+---------------------+--------+---------------------+------=
---+--------+----------+--------+
=20
On the other hand, take a look at the output of check_disk:
=20
[root@nagioslab libexec]# ./check_disk -w 15% -c 5% -p /
DISK OK - free space: / 4869 MB (48%);| /=3D5211MB;8567;9575;0;10079
=20
The line recorded at serviceperf.log shows
=20
1092398291 nagioslab /dev/vg00/rootlv DISK OK -=20
free space: /
4869 MB (48%): OK /=3D5211MB;8567;9575;0;10079
=20
Seems that the values that are making into the database are minimum=20
(0) and maximum
(10079) values instead of warning (10064) and critical (10074) ones. My=20
patched check_nt
(that provides also perfdata information) also provides evidence=20
supporting this:
=20
[root@nagioslab libexec]# ./check_nt -H 10.4.8.135 -v USEDDISKSPACE=20
-l c -w 85% -c 95%
c:\ - total: 37.27 Gb - used: 7.31 Gb (20%) - free 29.96 Gb
(80%)|c=3D7.310GB;31.678;35.404;;37.268
=20
Now, the line recorded at the database:
=20
=20
+------------+---------------------------+--------+---------------------=
+---------+--------+----------+--------+
| host_name | service_description | metric |=20
ctime | value | warn =20
| critical | state |
=20
+------------+---------------------------+--------+---------------------=
+---------+--------+----------+--------+
| bradesk150 | Disco C: | c | 2004-07-23=20
15:09:11 | 5.909 | 0
| 37.26 | 0 |
=20
+------------+---------------------------+--------+---------------------=
+---------+--------+----------+--------+
=20
Again, we see that warn =3D 0 and critical =3D- 37.26, when the corr=
ect=20
information should
have been warn =3D 31.68 and critical =3D 35.40. Also, as you can see, bo=
th=20
plugins provide
output in the format you mentioned - that is,=20
"label"=3Dvalue[UOM];[warn];[crit];[min];[max].
=20
TIA,
=20
Paulo Fessel
=20
"This is not right. This is not even wrong." (Wolfgang Pauli) =20
=20
Paulo Fessel
Administrador de Ambiente e Sistemas UNIX PrimeSys Solu=E7=F5es=20
Empresariais
Av. Brig. Faria Lima, 1485 - 13=B0 andar
Torre Norte - Pinheiros
01451-904
S=E3o Paulo - SP =20
paulo.fessel@pr... tel:
fax:
mobile: +55 (11) 3038-6554
+55 (11) 3038-6508
+55 (11) 8259-0353 =20
=20
Signature powered by Plaxo <http://www.plaxo.com/signature> Want a=20
signature like this?
<http://www.plaxo.com/signature> =20
Add me to your address book...
<https://www.plaxo.com/add_me?u=3D8590019246&v0=3D166225&k0=3D1601108562>=
=20
=20
=20
=20
_____ =20
=20
De: Cook, Garry [mailto:GWCOOK@ma...]
Enviada em: quinta-feira, 12 de agosto de 2004 12:07
Para: Paulo Afonso Graner Fessel; perfparse-users@li...
Assunto: RE: [Perfparse-users] Warn values are not going into=20
database
=20
=20
I"m not sure that I completely understand your question... What=20
do you mean by "I"m not
including all fields of performance data on plugin output"?
=20
Plugin output of performance data should be in the format
"label"=3Dvalue[UOM];[warn];[crit];[min];[max]
Please see=20
http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN185 for
detailed information.
=20
As you can see from the above, some of the variables are=20
optional (those enclosed in
square brackets). If your performance data does not supply the warning=20
and critical values,
they will not make it into the database.
=20
Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/
303.308.6228 (Office) - 720.220.1862 (Mobile)
=20
-----Original Message-----
From: perfparse-users-admin@li...
[mailto:perfparse-users-admin@li...] On Behalf Of Paulo Afonso Graner Fes=
sel
Sent: Wednesday, August 11, 2004 2:44 PM
To: perfparse-users@li...
Subject: [Perfparse-users] Warn values are not going into=20
database
=20
=20
Hello, folks.
=20
We have noticed today that perfparse is not inserting the=20
warning values into
perfdata_service_bin table, only the critical ones. So it"s impossible=20
to graph threshold
lines as warning values are always "0".
=20
Does it happen because i"m not including all fields of=20
performance data on plugin
output? Is it neccessary to include all fields of performance values on=20
plugin output?
=20
[]"s
Paulo Fessel
=20
"This is not right. This is not even wrong." (Wolfgang Pauli) =20
=20
Paulo Fessel
Administrador de Ambiente e Sistemas UNIX PrimeSys Solu=E7=F5es=20
Empresariais
Av. Brig. Faria Lima, 1485 - 13=B0 andar
Torre Norte - Pinheiros
01451-904
S=E3o Paulo - SP =20
paulo.fessel@pr... tel:
fax:
mobile: +55 (11) 3038-6554
+55 (11) 3038-6508
+55 (11) 8259-0353 =20
=20
Signature powered by Plaxo <http://www.plaxo.com/signature> Want a=20
signature like this?
<http://www.plaxo.com/signature> =20
Add me to your address book...
<https://www.plaxo.com/add_me?u=3D8590019246&v0=3D166225&k0=3D1601108562>=
=20
=20
=20
=20
|