From nobody Fri May 3 15:08:29 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1535982914423637.4350960815177; Mon, 3 Sep 2018 06:55:14 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1AEAB3DBD6; Mon, 3 Sep 2018 13:55:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 375B82010CF7; Mon, 3 Sep 2018 13:55:10 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5A8104BB75; Mon, 3 Sep 2018 13:55:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w83Ciku9007521 for ; Mon, 3 Sep 2018 08:44:46 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7CFAE30912F5; Mon, 3 Sep 2018 12:44:46 +0000 (UTC) Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7504A309132E for ; Mon, 3 Sep 2018 12:44:43 +0000 (UTC) Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 54F43308338F for ; Mon, 3 Sep 2018 12:44:43 +0000 (UTC) Received: by mail-wr1-f69.google.com with SMTP id p105-v6so416488wrc.11 for ; Mon, 03 Sep 2018 05:44:43 -0700 (PDT) Received: from fedora.redhat.com ([188.127.189.142]) by smtp.gmail.com with ESMTPSA id t9-v6sm11050045wmf.1.2018.09.03.05.44.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Sep 2018 05:44:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Fd+RnRAajEaOCuvr6jN+pGvgUCQ4U9RZyDSt6Pnv9u8=; b=l3b2jL8J23ahZH/MEILkID+pbZ22fnXm3BLtzQOweFSE6oU6sxYc93Gov5yi7EYkB9 JPmP6pYemm9KD7fW8RI5LEY5ty79IFLhLNVaz6GY38TVtlSHC/fBVXacxKgxPOA5sUqx jVfAyez9zLmVBPH3rzfbhntnEgyjL32ql06VJhdnXsv6PFXUxbtvWAZAtUwUjIOb4/ff 3aa1V74NBkG5zh8YrouqUDnutoyTDQQ6Wz/wW80SP51E1gFWTiVp6YqzWSKW2icUFFL8 8X+zjO2cTNwSP2g4BUX5j7SnCNPOBll04w2rQuOrI0vd5kGtw+R8Mdw8jKrPNKQXtqak YWUw== X-Gm-Message-State: APzg51A+OdDymVkiBGMJVR7FBggCgUK3SKaouLnpSu376rYVMW3YKWc0 KRlUI1QmiNVf3VDx909DhUquCjrrHEHLywBE1F19plqN+nf8us+KH/etaw1HpasE6OKtFgPqn3Z gV5RtevWPT6MGIkqeGnHR X-Received: by 2002:a1c:85cb:: with SMTP id h194-v6mr771835wmd.54.1535978681933; Mon, 03 Sep 2018 05:44:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYFTcrycu8NvwpN2FRbS6yoF9qJhz3WH0gmYhDlMGVygIky2lEB4o76TNMrZpcoGSEb8cfOOg== X-Received: by 2002:a1c:85cb:: with SMTP id h194-v6mr771824wmd.54.1535978681780; Mon, 03 Sep 2018 05:44:41 -0700 (PDT) From: Miguel Martin To: libvirt-list@redhat.com Date: Mon, 3 Sep 2018 14:44:38 +0200 Message-Id: <20180903124438.19300-1-mmartinv@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Mon, 03 Sep 2018 09:54:26 -0400 Cc: Miguel Martin Subject: [libvirt] [snmp PATCH] Fix wrong object OIDs sent by libvirtMib_subagent X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.25 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 03 Sep 2018 13:55:13 +0000 (UTC) X-ZohoMail: RDMRC_0 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The objects OIDs sent by the guest agent are: libvirtGuestName.0 libvirtGuestUUID.1 libvirtGuestState.2 libvirtGuestRowStatus.3 The expected libvirtGuestNotif objects OID would be: libvirtGuestName.0 libvirtGuestUUID.0 libvirtGuestState.0 libvirtGuestRowStatus.0 Signed-off-by: Miguel Martin Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=3D1624839 --- src/libvirtNotifications.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libvirtNotifications.c b/src/libvirtNotifications.c index 135f177..0522d54 100644 --- a/src/libvirtNotifications.c +++ b/src/libvirtNotifications.c @@ -38,11 +38,11 @@ send_libvirtGuestNotif_trap(virDomainPtr dom) const oid libvirtGuestName_oid[] =3D { 1, 3, 6, 1, 4, 1, 36957, 1, 1, 1, 2, 0 }; const oid libvirtGuestUUID_oid[] =3D - { 1, 3, 6, 1, 4, 1, 36957, 1, 1, 1, 1, 1 }; + { 1, 3, 6, 1, 4, 1, 36957, 1, 1, 1, 1, 0 }; const oid libvirtGuestState_oid[] =3D - { 1, 3, 6, 1, 4, 1, 36957, 1, 1, 1, 3, 2 }; + { 1, 3, 6, 1, 4, 1, 36957, 1, 1, 1, 3, 0 }; const oid libvirtGuestRowStatus_oid[] =3D - { 1, 3, 6, 1, 4, 1, 36957, 1, 1, 1, 9, 3 }; + { 1, 3, 6, 1, 4, 1, 36957, 1, 1, 1, 9, 0 }; =20 =20 const char *domName =3D virDomainGetName(dom); --=20 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list