Hi Adam,

thanks for your reply. But it seems, the MIB will not polled:

root@uhu-virt:/opt/observium# ./poller.php -dd -h krake-eth0 -m virtual-machines|grep snmp
CMD[/usr/bin/snmpget --version 2>&1]
CMD[/usr/bin/snmpget -v2c -c '*********' -Pu -OQUst -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'krake-eth0':'161' sysObjectID.0 sysUpTime.0]
RRD /opt/observium/rrd/krake-eth0/ping_snmp.rrd already exists - no need to create.
RRD CMD[update /opt/observium/rrd/krake-eth0/ping_snmp.rrd N:11.72]
CMD[/usr/bin/snmpget -v2c -c '*********' -Pu -OQUs -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'krake-eth0':'161' sysUpTime.0 sysLocation.0 sysContact.0 sysName.0]
CMD[/usr/bin/snmpget -v2c -c '*********' -Pu -Oqv -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'krake-eth0':'161' sysDescr.0]
CMD[/usr/bin/snmpget -v2c -c '*********' -Pu -Oqvn -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'krake-eth0':'161' sysObjectID.0]
CMD[/usr/bin/snmpget -v2c -c '*********' -Pu -Ovqn -m SNMP-FRAMEWORK-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'krake-eth0':'161' snmpEngineID.0]
SNMP ERROR - device: 17, cmd: snmpget, options: -Ovqn, mib: 'SNMP-FRAMEWORK-MIB', oid: 'snmpEngineID.0', cmd exitcode: 0,
             snmp error code: #1000, reason: 'Failed response', runtime: 0.0083458423614502
SQL[SELECT * FROM `snmp_errors` WHERE `device_id` = '17' AND `error_code` = '1000' AND `snmp_cmd` = 'snmpget' AND `mib` = 'SNMP-FRAMEWORK-MIB' AND `oid` = 'snmpEngineID.0';]
SQL[UPDATE `snmp_errors` set `error_count` ='1020',`updated` ='1487749795' WHERE `error_id` = '157']
CMD[/usr/bin/snmpget -v2c -c '*********' -Pu -Oqv -m HOST-RESOURCES-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'krake-eth0':'161' hrSystemUptime.0]
 o snmpEngineID        
CMD[/usr/bin/snmpget -v2c -c '*********' -Pu -OQUs -m VMWARE-SYSTEM-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/vmware 'udp':'krake-eth0':'161' vmwProdName.0 vmwProdVersion.0 vmwProdBuild.0 vmwProdUpdate.0]
 o Graphs [checked]     ping, ping_snmp, uptime
  [device_snmp]          => string(5) "11.72"
NOTE, $config['snmp']['hide_auth'] is set to TRUE, snmp community and snmp v3 auth hidden from debug output.
 o SNMP Usage           snmpget[7/0.102s] (0.102s 20.404%)


I see only these snmp* commands for vmware

vmwProdName.0 vmwProdVersion.0 vmwProdBuild.0 vmwProdUpdate.0

with return values

vmwProdName.0 = VMware ESXi
vmwProdVersion.0 = 6.5.0
vmwProdBuild.0 = 4564106
vmwProdUpdate.0 = 0


and

./poller.php -dd -h krake-eth0 -m vmware-vminfo-mib

returns

CMD[/usr/bin/snmpget -v2c -c '********' -Pu -OQUs -m VMWARE-SYSTEM-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/vmware 'udp':'krake-eth0':'161' vmwProdName.0 vmwProdVersion.0 vmwProdBuild.0 vmwProdUpdate.0]

CMD EXITCODE[0]
CMD RUNTIME[0.0086s]
STDOUT[
vmwProdName.0 = VMware ESXi
vmwProdVersion.0 = 6.5.0
vmwProdBuild.0 = 4564106
vmwProdUpdate.0 = 0
]
SNMP STATUS[TRUE]
 o Hardware             HP ProLiant MicroServer x86 [64bit]
 o Version              ESXi 6.5.0
 o Features             build-4564106
 o Serial               5C7331P1K6
 o Asset                <empty>

 o Module time          0.0169s


But

 /usr/bin/snmpwalk -v2c -c '********' -Pu -OQUs -M /opt/observium/mibs/vmware 'udp':'krake-eth0':'161'

brings also no VM Names ... . Maybe an ESXi issue ?

lg.

TF

Am 21.02.2017 um 21:18 schrieb Adam Armstrong:
These are added in discovery, but you can run discovery in debug mode and check for SNMP responses.

./poller.php -h <host> -d -m virtual-machines

You'll be able to see in the output whether the system is returning the vms, which I'll guess it isn't.

The virual-machines module should run the vmware-vminfo-mib submodule on devices with the is 'vmware'.

Adam.

Sent from BlueMail
On 21 Feb 2017, at 17:49, Thoralf Freitag <teeff.bln@gmail.com> wrote:
Let me ask my question something different. What causes that Oberservium rekognizes a ESXi Host as hypervisor, so that it brings a additional tab with virtual maschines configured at this host ? How can a debug, why Observium has removed the tab ?

lg.

TF

Am 21.02.2017 um 08:50 schrieb Thoralf Freitag:
Hi,

is there any idea, why observium has removed all VMs from the ESXi
Server, like this:


1d 2h 3m    Vm Virtual Machine deleted: vmware
564da96d-e3b0-b511-66cc-2a184a576652
1d 2h 3m    Vm Virtual Machine deleted: vmware
564d8984-0864-6b78-7d91-36f2c13e53d6
1d 2h 3m    Vm Virtual Machine deleted: vmware
564d4905-87d7-6fdf-bc72-753c916ef3c1
1d 2h 3m    Vm Virtual Machine deleted: vmware
564d2060-e2e4-9949-97a6-28cb5f02e801
1d 2h 3m    Vm Virtual Machine deleted: vmware
564d3421-27c8-04ea-7ef8-139af5ebcb5c
1d 2h 3m    Vm Virtual Machine deleted: vmware
564d18eb-bad5-0691-7acf-3cb24787c0c1
1d 2h 3m    Vm Virtual Machine deleted: vmware
564d523c-b392-e037-12e6-4c93b9dc82b1
1d 2h 3m    Vm Virtual Machine deleted: vmware
564dc378-b321-2b72-176f-09c8fc5a1116
1d 2h 3m    Vm Virtual Machine deleted: vmware
564db385-e361-5d0a-3167-d9a416357692

...

The tab for virtual machines no longer appears ... . There was no change
at the ESXi.

VMWARE-SYSTEM-MIB and VMWARE-VMINFO-MIB are enabled.


I restarted the snmp agant at the ESXi host, run poller.php again , but
it changes nothing.


Thanks for any suggestions.



lg.


TF



_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium



observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium