Auteur Sujet: plugin check_interface_table_v2.pl  (Lu 1627 fois)

Hors ligne michon

  • Addict Froggy
  • ***
  • Messages: 120
  • Karma: 3
Re : plugin check_interface_table_v2.pl
« Réponse #30 le: 28 juillet, 2010, 12:07:36 pm »
[FloodInutile]

Attention ! tu vas avoir une erreur de configuration Nagios avec ce service :

define service{
   use         generic-service         ; Name of service template to use
   hostgroups      switches
   service_description   interfaces
   check_command      check_interfaces!-regexp 1 -Exclude "$_HOSTIGNOREIF$" -Include "$_HOSTCHECKIF$" -LastTrafficWarn 4838400 -LastTrafficCrit 9994838400 -ifLoadWarn 30 -ifLoadCrit 60 -Human 1 -ifLoadGradient 1 -VLANs 1 -w 1 -c 1
   # -Debug 1

Merci de votre aide,  
}

je te conseil la modif suivante :

define service{
   use         generic-service         ; Name of service template to use
   hostgroups      switches
   service_description   interfaces
   check_command      check_interfaces!-regexp 1 -Exclude "$_HOSTIGNOREIF$" -Include "$_HOSTCHECKIF$" -LastTrafficWarn 4838400 -LastTrafficCrit 9994838400 -ifLoadWarn 30 -ifLoadCrit 60 -Human 1 -ifLoadGradient 1 -VLANs 1 -w 1 -c 1
   # -Debug 1
   # Merci de votre aide
}



[/FloodInutile]

Hors ligne romain0412

  • Mentor Froggy
  • ****
  • Messages: 463
  • Karma: 0
Re : Re : plugin check_interface_table_v2.pl
« Réponse #31 le: 28 juillet, 2010, 12:12:09 pm »
Tu as modifier quoi?

Bon j'avais mis mon merci dans la définition du service,je viens juste de m'en rendre compte  ::). Là le plugin fonctionne très bien, juste j'aimerais que ce soit PNP qui interprète les données pour en faire des graphes.

Et puis aussi, si quelqu'un pouvait me confirmer pour le WARNING/CRITICAL.

Merci du coup de main  :)

[FloodInutile]

Attention ! tu vas avoir une erreur de configuration Nagios avec ce service :

define service{
   use         generic-service         ; Name of service template to use
   hostgroups      switches
   service_description   interfaces
   check_command      check_interfaces!-regexp 1 -Exclude "$_HOSTIGNOREIF$" -Include "$_HOSTCHECKIF$" -LastTrafficWarn 4838400 -LastTrafficCrit 9994838400 -ifLoadWarn 30 -ifLoadCrit 60 -Human 1 -ifLoadGradient 1 -VLANs 1 -w 1 -c 1
   # -Debug 1

Merci de votre aide,  
}

je te conseil la modif suivante :

define service{
   use         generic-service         ; Name of service template to use
   hostgroups      switches
   service_description   interfaces
   check_command      check_interfaces!-regexp 1 -Exclude "$_HOSTIGNOREIF$" -Include "$_HOSTCHECKIF$" -LastTrafficWarn 4838400 -LastTrafficCrit 9994838400 -ifLoadWarn 30 -ifLoadCrit 60 -Human 1 -ifLoadGradient 1 -VLANs 1 -w 1 -c 1
   # -Debug 1
   # Merci de votre aide
}



[/FloodInutile]

Hors ligne funkyman

  • Modérateur Global
  • Super Froggy
  • *****
  • Messages: 2 297
  • Karma: 47
Re : plugin check_interface_table_v2.pl
« Réponse #32 le: 28 juillet, 2010, 12:17:31 pm »
salut,

quand tu exécutes le plugin en ligne de commande, quelle est le retour qui est affiché ?
(pour voir si les perdatas sont compatibles avec PNP)
Nagios 3.2.3, MK Livestatus, PNP4, Nagvis, Nagtrap, ex Ndoutils, Addon et Plugins perso.
1000 hosts, 5000 services (actif), 1 serveur nagios.

Hors ligne romain0412

  • Mentor Froggy
  • ****
  • Messages: 463
  • Karma: 0
Re : plugin check_interface_table_v2.pl
« Réponse #33 le: 28 juillet, 2010, 12:28:50 pm »
Voilà le retour :


nagios:~# /usr/lib/nagios/libexec/check_interface_table_v2.pl --StateDir '/usr/local/nagios/var/tmp/.ifState' --CacheDir '/usr/local/nagios/var/tmp/.ifCache' --HTMLDir '/usr/local/nagios/share/interfacetable/' --ResetUrl '/nagios/cgi-bin/' -C My_community -H IP_Dist -h hostname -regexp 1 -Exclude "Null,loopback,local" -Include "GigabitEthernet,vlan,trunk,wan,vip,^\\d+" -LastTrafficWarn 4838400 -LastTrafficCrit 9994838400 -ifLoadWarn 30 -ifLoadCrit 60 -Human 1 -ifLoadGradient 1 -VLANs 1 -w 1 -c 1

Voilà le retour :

<a href="/nagios/interfacetable/SwitchQ5FSAN1-Interfacetable.html">0 interface(s), 0 free, load warning: 2[/url]|check_interface_table::interface_table::time=1s;;;; uptime=60681551s;;;; watched=0c;;;; useddelta=2982s;;;; ports=0c;;;; freeports=0c;;;; AdminUpFree=0c;;;;

Et voilà ce qu'il y a dans le fichier html :


nagios:~# cat /usr/local/nagios/share/interfacetable/SwitchQ5FSAN1-Interfacetable.html

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>fqdn machine</title>
    <script type="text/javascript">
      function ChangeColor(tableRow, highLight) {
        if (highLight) { tableRow.style.backgroundColor = "#81BEF7"; }
        else { tableRow.style.backgroundColor = "#DCFAC9"; }
      }
      function DoNav(theUrl) {
        document.location.href = theUrl;
      }
    </script>
  </head>
<body>
<center>
<a href="ssh://@_ip">@_ip[/url] updated: Wed Jul 28 10:25:19 2010 (1 sec.)
<a name=top>[/url]

<span style="font-size:8pt" style="font-family:monospace">
<table border style="font-size:8pt;WORD-BREAK:NORMAL;" bgcolor=#D2D2D2>
<th>Name</th><th>Uptime</th><th>System Information</th><th>Type</th><th>Serial</th><th>Ports</th><th>delta seconds used for bandwidth calculations</th>
<tr>
<td >FQDN</td>
<td >7d&nbsp;0h&nbsp;33m</td>
<td >Linux FQDN 2.6.18-164.ESX #1 Thu Mar 11 07:09:06 PST 2010 x86_64</td>
<td ></td>
<td ></td>
<td >ports:&nbsp;0 free:&nbsp;0 AdminUpFree:&nbsp;0</td>
<td >2982</td></tr></table></td></tr>
<a name=top>[/url]

<span style="font-size:8pt" style="font-family:monospace">
<table border style="font-size:8pt;WORD-BREAK:NORMAL;" bgcolor=#D2D2D2>
<th>index</th><th>Description</th><th>Alias</th><th>AdminStatus</th><th>OperStatus</th><th>Speed</th><th>VLANs</th><th>Load In</th><th>Load Out</th><th>IP</th><th>bpsIn</th><th>bpsOut</th><th>last traffic</th>
<tr>
<td >1</td>
<td >lo</td>
<td >&nbsp</td>
<td >up</td>
<td >up</td>
<td bgcolor="#F5A9A9">now: 10.00 Mbit was: </td>
<td >&nbsp</td>
<td bgcolor="ffb700">38.32</td>
<td bgcolor="ffb700">38.32</td>
<td bgcolor="#F5A9A9">now: 127.0.0.1/255.0.0.0 was: </td>
<td >3.83 Mbps</td>
<td >3.83 Mbps</td>
<td >0d&nbsp;0h&nbsp;0m</td></tr>
<tr>
<td >2</td>
<td >vmnic0</td>
<td >&nbsp</td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: 1.00 Gbit was: </td>
<td >&nbsp</td>
<td bgcolor="08ff00">1.03</td>
<td bgcolor="00ff00">0.03</td>
<td >&nbsp</td>
<td >10.32 Mbps</td>
<td >328.30 Kbps</td>
<td >0d&nbsp;0h&nbsp;0m</td></tr>
<tr>
<td >3</td>
<td >vmnic2</td>
<td >&nbsp</td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: 1.00 Gbit was: </td>
<td >&nbsp</td>
<td bgcolor="08ff00">0.98</td>
<td >0.00</td>
<td >&nbsp</td>
<td >9.85 Mbps</td>
<td >0.00 bps</td>
<td >0d&nbsp;0h&nbsp;0m</td></tr>
<tr>
<td >4</td>
<td >vmnic3</td>
<td >&nbsp</td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: 1.00 Gbit was: </td>
<td >&nbsp</td>
<td bgcolor="01ff00">0.14</td>
<td bgcolor="00ff00">0.00</td>
<td >&nbsp</td>
<td >1.42 Mbps</td>
<td >2.41 bps</td>
<td >0d&nbsp;0h&nbsp;0m</td></tr>
<tr>
<td >5</td>
<td >vmnic1</td>
<td >&nbsp</td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: 1.00 Gbit was: </td>
<td >&nbsp</td>
<td bgcolor="08ff00">0.98</td>
<td >0.00</td>
<td >&nbsp</td>
<td >9.85 Mbps</td>
<td >0.00 bps</td>
<td >0d&nbsp;0h&nbsp;0m</td></tr>
<tr>
<td >6</td>
<td >vswif0</td>
<td >&nbsp</td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: up was: </td>
<td bgcolor="#F5A9A9">now: 1.00 Gbit was: </td>
<td >&nbsp</td>
<td bgcolor="08ff00">0.97</td>
<td bgcolor="00ff00">0.03</td>
<td bgcolor="#F5A9A9">now: @_ip/Netmask was: </td>
<td >9.65 Mbps</td>
<td >295.06 Kbps</td>
<td >0d&nbsp;0h&nbsp;0m</td></tr></table></td></tr>
<span style="font-size:8pt" style="font-family:monospace">
<a href="JavaScript:history.back();">[ back ][/url]
<a href="/nagios/cgi-bin//InterfaceTableReset.cgi?Command=rm&What=/usr/local/nagios/var/tmp/.ifState/SwitchQ5FSAN1-Interfacetable.txt">[ reset table ][/url]</span>

Merci du coup de main,
« Modifié: 28 juillet, 2010, 12:31:50 pm par romain0412 »

Hors ligne funkyman

  • Modérateur Global
  • Super Froggy
  • *****
  • Messages: 2 297
  • Karma: 47
Re : plugin check_interface_table_v2.pl
« Réponse #34 le: 28 juillet, 2010, 13:36:20 pm »
donc pour que le plugins soit compatible PNP il faut modifier le code source afin qu il génère des perfadatas compatible PNP en sortie du plugins

les perdatas actuelles sont celle la:
check_interface_table::interface_table::time=1s;;;; uptime=60681551s;;;; watched=0c;;;; useddelta=2982s;;;; ports=0c;;;; freeports=0c;;;; AdminUpFree=0c;;;;

voici le format de sortie pour PNP:
http://docs.pnp4nagios.org/pnp-0.6/perfdata_format
Nagios 3.2.3, MK Livestatus, PNP4, Nagvis, Nagtrap, ex Ndoutils, Addon et Plugins perso.
1000 hosts, 5000 services (actif), 1 serveur nagios.

Hors ligne romain0412

  • Mentor Froggy
  • ****
  • Messages: 463
  • Karma: 0
Re : plugin check_interface_table_v2.pl
« Réponse #35 le: 28 juillet, 2010, 13:38:14 pm »
Ok,

Merci, pour le coup je suis une bille pour ce qui est PNP, graphe etc. je vais essayer de voir si en modifiant le plugin je peux arriver à mes fins !  ;D

Merci de ton aide,

Hors ligne funkyman

  • Modérateur Global
  • Super Froggy
  • *****
  • Messages: 2 297
  • Karma: 47
Re : plugin check_interface_table_v2.pl
« Réponse #36 le: 28 juillet, 2010, 13:44:25 pm »
je suis pas sur a 100% que cette sortie des perfdata ne soient pas compatibles avec PNP:  :-\

check_interface_table::interface_table::time=1s;;;; uptime=60681551s;;;; watched=0c;;;; useddelta=2982s;;;; ports=0c;;;; freeports=0c;;;; AdminUpFree=0c;;;;

tu as deja testé de grapher le plugins avec PNP ?
Nagios 3.2.3, MK Livestatus, PNP4, Nagvis, Nagtrap, ex Ndoutils, Addon et Plugins perso.
1000 hosts, 5000 services (actif), 1 serveur nagios.

Hors ligne romain0412

  • Mentor Froggy
  • ****
  • Messages: 463
  • Karma: 0
Re : plugin check_interface_table_v2.pl
« Réponse #37 le: 28 juillet, 2010, 13:45:59 pm »
Oui j'avais tenté les graphes, j'en avait bien mais qui ne correspondait à rien.

Hors ligne funkyman

  • Modérateur Global
  • Super Froggy
  • *****
  • Messages: 2 297
  • Karma: 47
Re : plugin check_interface_table_v2.pl
« Réponse #38 le: 28 juillet, 2010, 14:04:08 pm »
donc tu avais bien des graphes

que voudrais tu comme graphiques ?
que dit le help du plugins concernant les perfdatas ?

Je suis un peu septique concernant les graphiques pour ce plugins car si je comprend bien il supervise l'etat de tous les ports d'un switch.
Ce qui voudrait dire qu il faudrait un graphique par port  ???

Nagios 3.2.3, MK Livestatus, PNP4, Nagvis, Nagtrap, ex Ndoutils, Addon et Plugins perso.
1000 hosts, 5000 services (actif), 1 serveur nagios.

Hors ligne romain0412

  • Mentor Froggy
  • ****
  • Messages: 463
  • Karma: 0
Re : plugin check_interface_table_v2.pl
« Réponse #39 le: 28 juillet, 2010, 14:10:02 pm »
Il supervise effectivement chaque interface, il te donne également VLAN, nom etc. J'aimerais effectivement un graphe par interface.

Et il est possible de le faire via NagiosGrapher :

http://nagios.demo.netways.de/nagios/cgi-bin/status.cgi?host=f1-switch

Tu peux ensuite en cliquant sur une interfaces quelconque avoir de beaux graphes  ;D

Voici le template pour NagiosGrapher si c'est parlant pour toi.

Merci,


###########################################################################################

#  NagiosGrapher Template for check_interface_table_v2.pl
#  Author: Birger Schmidt (Netways GmbH)
#
###########################################################################################


# Port
define ngraph{
   service_name      Port
   graph_perf_regex   OctetsIn=(\d+)c
   graph_value      in
   graph_units
   graph_legend      bandwidth usage (in)
   rrd_plottype      AREA
   rrd_color      00CC00
   rrd_type      COUNTER
   hide         yes
}
   
define ngraph{
   service_name      Port
   type         CDEF
   graph_value      innice
   graph_calc      in,8,*
   graph_units      Bits/s
   graph_legend      bandwidth usage (in)
   rrd_plottype      AREA
   rrd_color      00CC00
   print_eol      left
   page         1 traffic
   hide         no
}
   
define ngraph{
   service_name      Port
   graph_perf_regex   OctetsOut=(\d+)c
   graph_value      out
   graph_units
   graph_legend      bandwidth usage (out)
   rrd_plottype      LINE1
   rrd_color      0000FF
   rrd_type      COUNTER
   hide         yes
}

define ngraph{
   service_name      Port
   type         CDEF
   graph_value      outnice
   graph_calc      out,8,*
   graph_units      Bits/s
   graph_legend      bandwidth usage (out)
   rrd_plottype      LINE1
   rrd_color      0000FF
   page         1 traffic
   hide         no
}
   
#define ngraph{
#   service_name      Port
#   type         CDEF
#   graph_value      cdef_out
#   graph_units
#   graph_legend
#   graph_calc      outnice
#   rrd_plottype      LINE1
#   rrd_color      3F6800
#   page         1 traffic
#}
#   
#define ngraph{
#   service_name      Port
#   type         CDEF
#   graph_value      cdef_in
#   graph_units
#   graph_legend
#   graph_calc      innice
#   rrd_plottype      LINE1
#   rrd_color      3650C9
#   page         1 traffic
#}

define ngraph{
   service_name      Port
   type         HRULE
   hrule_value      0
   rrd_color      000000
   page         1 traffic
}

define ngraph{
   service_name      Port
   type         CDEF
   graph_value      mysum
   graph_calc      out,in,+,8,*
   graph_units
   graph_legend      bandwidth usage (total)
   rrd_plottype      LINE1
   rrd_color      FF0000
   page         2 traffic
   hide         no
}

define ngraph{
   service_name      Port
   type         CDEF
   graph_value      inmrtg
   graph_calc      in,8,*
   graph_units      Bits/s
   graph_legend      bandwidth usage (in)
   rrd_plottype      AREA
   rrd_color      00CC00
   print_eol      left
   page         2 traffic
   hide         no
}

define ngraph{
   service_name      Port
   type         CDEF
   graph_value      outmrtg
   graph_calc      out,-8,*
   graph_units      Bits/s
   graph_legend      bandwidth usage (out)
   rrd_plottype      AREA
   rrd_color      0000FF
   page         2 traffic
   hide         no
}

define ngraph{
   service_name      Port
   type         HRULE
   hrule_value      0
   rrd_color      000000
   page         2 traffic
   hide         no
}

# [EOF]

Hors ligne funkyman

  • Modérateur Global
  • Super Froggy
  • *****
  • Messages: 2 297
  • Karma: 47
Re : plugin check_interface_table_v2.pl
« Réponse #40 le: 28 juillet, 2010, 17:09:34 pm »
Effectivement sur la demo:
on voit bien les perfdatas génères pour chaque port (contrairement a ce que sort ton plugins).
Mais je vois pas de graphiques pour le service interface !

le probleme ce situe la:

est il possible d'afficher plusieurs graphiques pour un seul service  ???

je pense qu'avec ce plugins il est possible d'avoir un seul graphique avec toutes les courbes de tous les ports.
Nagios 3.2.3, MK Livestatus, PNP4, Nagvis, Nagtrap, ex Ndoutils, Addon et Plugins perso.
1000 hosts, 5000 services (actif), 1 serveur nagios.

Hors ligne romain0412

  • Mentor Froggy
  • ****
  • Messages: 463
  • Karma: 0
Re : plugin check_interface_table_v2.pl
« Réponse #41 le: 28 juillet, 2010, 17:18:08 pm »
Donc tu pense que ça ne servirait à rien que je tente l'installation de NagiosGrapher et l'ajout des templates fournis?

D'ailleurs on peut coupler un PNP et un NagiosGrapher?

Merci pour toute ton aide  :)

Hors ligne funkyman

  • Modérateur Global
  • Super Froggy
  • *****
  • Messages: 2 297
  • Karma: 47
Re : plugin check_interface_table_v2.pl
« Réponse #42 le: 28 juillet, 2010, 17:35:26 pm »
Je pense qu il est inutile d'avoir deux outils de graphique !

je pense que PNP doit fonctionner avec ton plugins, le probleme se situe au niveau des perfdata qu'il genere:

les tiens:

Citer
check_interface_table::interface_table::time=1s;;;; uptime=60681551s;;;; watched=0c;;;; useddelta=2982s;;;; ports=0c;;;; freeports=0c;;;; AdminUpFree=0c;;;;

ceux de la demo:
Citer
heck_interface_table::interface_table::time=2s;;;; uptime=1885660960s;;;; watched=48c;;;; useddelta=3600s;;;; ports=48c;;;; freeports=19c;;;; AdminUpFree=19c;;;; Port001::check_iftraffic::OctetsIn=1355995480c;0;0;0;0 OctetsOut=3523755572c;0;0;0;0 Port002::check_iftraffic::OctetsIn=304508604c;0;0;0;0 OctetsOut=452793617c;0;0;0;0 Port003::check_iftraffic::OctetsIn=5323963c;0;0;0;0 OctetsOut=169891985c;0;0;0;0 Port004::check_iftraffic::OctetsIn=148306336c;0;0;0;0 OctetsOut=318205744c;0;0;0;0 Port005::check_iftraffic::OctetsIn=891914665c;0;0;0;0 OctetsOut=433641381c;0;0;0;0 Port006::check_iftraffic::OctetsIn=706409193c;0;0;0;0 OctetsOut=432118613c;0;0;0;0 Port007::check_iftraffic::OctetsIn=483086204c;0;0;0;0 OctetsOut=583409290c;0;0;0;0 Port008::check_iftraffic::OctetsIn=404768064c;0;0;0;0 OctetsOut=546705172c;0;0;0;0 Port009::check_iftraffic::OctetsIn=138096224c;0;0;0;0 OctetsOut=344481491c;0;0;0;0 Port010::check_iftraffic::OctetsIn=22861425c;0;0;0;0 OctetsOut=225132731c;0;0;0;0 Port011::check_iftraffic::OctetsIn=95540267c;0;0;0;0 OctetsOut=163798193c;0;0;0;0 Port012::check_iftraffic::OctetsIn=25649176c;0;0;0;0 OctetsOut=122896634c;0;0;0;0 Port013::check_iftraffic::OctetsIn=303535313c;0;0;0;0 OctetsOut=365710943c;0;0;0;0 Port014::check_iftraffic::OctetsIn=122003650c;0;0;0;0 OctetsOut=149841750c;0;0;0;0 Port015::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port016::check_iftraffic::OctetsIn=12516622c;0;0;0;0 OctetsOut=22858832c;0;0;0;0 Port017::check_iftraffic::OctetsIn=331709189c;0;0;0;0 OctetsOut=1791888630c;0;0;0;0 Port018::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port019::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port020::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port021::check_iftraffic::OctetsIn=24692542c;0;0;0;0 OctetsOut=216259261c;0;0;0;0 Port022::check_iftraffic::OctetsIn=46599607c;0;0;0;0 OctetsOut=1305525879c;0;0;0;0 Port023::check_iftraffic::OctetsIn=16604495c;0;0;0;0 OctetsOut=289276970c;0;0;0;0 Port024::check_iftraffic::OctetsIn=3549644768c;0;0;0;0 OctetsOut=2502131599c;0;0;0;0 Port025::check_iftraffic::OctetsIn=395270060c;0;0;0;0 OctetsOut=935238730c;0;0;0;0 Port026::check_iftraffic::OctetsIn=35545932c;0;0;0;0 OctetsOut=1271913208c;0;0;0;0 Port027::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=297009c;0;0;0;0 Port028::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port029::check_iftraffic::OctetsIn=148503745c;0;0;0;0 OctetsOut=2176442097c;0;0;0;0 Port030::check_iftraffic::OctetsIn=3817101362c;0;0;0;0 OctetsOut=811142721c;0;0;0;0 Port031::check_iftraffic::OctetsIn=2535761243c;0;0;0;0 OctetsOut=2130211203c;0;0;0;0 Port032::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port033::check_iftraffic::OctetsIn=3847521669c;0;0;0;0 OctetsOut=3789356978c;0;0;0;0 Port034::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port035::check_iftraffic::OctetsIn=23775895c;0;0;0;0 OctetsOut=1065784729c;0;0;0;0 Port036::check_iftraffic::OctetsIn=40779736c;0;0;0;0 OctetsOut=1435570138c;0;0;0;0 Port037::check_iftraffic::OctetsIn=1746c;0;0;0;0 OctetsOut=7636c;0;0;0;0 Port038::check_iftraffic::OctetsIn=6406c;0;0;0;0 OctetsOut=21138c;0;0;0;0 Port039::check_iftraffic::OctetsIn=17357c;0;0;0;0 OctetsOut=2324c;0;0;0;0 Port040::check_iftraffic::OctetsIn=94138c;0;0;0;0 OctetsOut=7138c;0;0;0;0 Port041::check_iftraffic::OctetsIn=242894c;0;0;0;0 OctetsOut=1052770c;0;0;0;0 Port042::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port043::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port044::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port045::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port046::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port047::check_iftraffic::OctetsIn=0c;0;0;0;0 OctetsOut=0c;0;0;0;0 Port048::check_iftraffic::OctetsIn=451782212c;0;0;0;0 OctetsOut=3198731174c;0;0;0;0

comme tu peux le constater il te manque un certain nombre de données  ;D
Nagios 3.2.3, MK Livestatus, PNP4, Nagvis, Nagtrap, ex Ndoutils, Addon et Plugins perso.
1000 hosts, 5000 services (actif), 1 serveur nagios.

Hors ligne romain0412

  • Mentor Froggy
  • ****
  • Messages: 463
  • Karma: 0
Re : plugin check_interface_table_v2.pl
« Réponse #43 le: 28 juillet, 2010, 17:37:47 pm »
Ah effectivement ! Le script est fait pour des switchs Cisco, moi je l'utilise sur un autre fabriquant et également sur des ESX.

Bon bah j'aurai pas de graphe alors ! Pourtant dans le tableaux que me fait le plugin, il montre bien des données, alors est-ce qu'il récupère pas des conneries...

Je vais regarder tout cela !

Merci de ton aide,

Hors ligne funkyman

  • Modérateur Global
  • Super Froggy
  • *****
  • Messages: 2 297
  • Karma: 47
Re : plugin check_interface_table_v2.pl
« Réponse #44 le: 28 juillet, 2010, 17:58:46 pm »
./check_interface_table_v2.pl -H <host> -C <community string> -Debug 1 
Nagios 3.2.3, MK Livestatus, PNP4, Nagvis, Nagtrap, ex Ndoutils, Addon et Plugins perso.
1000 hosts, 5000 services (actif), 1 serveur nagios.