Xen Erreur : « netsnmp_assert __extension__ »

netsnmp_assert extension

Dans votre /var/log/syslog vous trouvez ce type de message toute les minutes ou 30 secondes ?

netsnmp_assert __extension__ <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span> size_t __s1_len, __s2_len; <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> __builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>__s1_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, __s2_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">||</span> __s1_len <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">||</span> __s2_len <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? __builtin_strcmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name, ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> : <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>__s1_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, __s1_len <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? __builtin_strcmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_c May <span style="color: #000000;">20</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">58</span>:<span style="color: #000000;">43</span> elara snmpd<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">3010</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: netsnmp_assert __extension__ <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span> size_t __s1_len, __s2_len; <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> __builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>__s1_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, __s2_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">||</span> __s1_len <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">||</span> __s2_len <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? __builtin_strcmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name, ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> : <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>__s1_len = strlen <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_ctx-<span style="color: #000000; font-weight: bold;">&gt;</span>data.ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span>, __s1_len <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? <span style="color: #7a0874; font-weight: bold;">&#40;</span>__builtin_constant_p <span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> + <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> - <span style="color: #7a0874; font-weight: bold;">&#40;</span>size_t<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>const void <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>ifentry-<span style="color: #000000; font-weight: bold;">&gt;</span>name<span style="color: #7a0874; font-weight: bold;">&#41;</span> == <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> ? __builtin_strcmp <span style="color: #7a0874; font-weight: bold;">&#40;</span>rowreq_c

La Cause

Il existe peu de littérature sur le net à propose de ce message d’erreur. Cependant un bug report existe chez RedHat à propos snmpd. Sur Debian Etch 4.0 la version de snmpd est la 5.2. Upgrader en 5.3 comme préconisé dans la solution a ce bug en compilant le tente moyen moyen.

Quelques messages sur sur les mailling-list de xensource.com rester sans réponse, dont celui ci Problem with dom0 and snmpd.

Solution de contournement

A défaut de pouvoir mettre à jour snmpd, on peux le faire taire. J’ai trouver ici le bon paramètre : Snmpd filling up /var/log/messages. Donc il est possible de limité l’écriture dans les log au chose hyper importante.

Dans /etc/default/snmpd j’ai modifier la ligne suivante.

<span style="color: #808080; font-style: italic;"># SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'</span>

par

<span style="color: #007800;">SNMPDOPTS=</span><span style="color: #ff0000;">'-LS 0-4 d -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'</span>

Les paramètres « 0-4 » signifie que les « warning messages », « errors », « alerts » et « critical messages » sont logger par contre tout ce qui est « notice info » et « debug level messages » sont ignoré. Depuis cette modification c’est plus silencieux 🙂