Ad Widget
Collapse
Extension to Zabbix discovery [zbxlld]
Collapse
X
-
I use Windows 7 64 bit
This is the full text of exception.Code:C:\ ver Microsoft Windows [Version 6.1.7601] C:\
Code:[root@zabbix ~]# zabbix_get -s 10.1.10.137 -k zbxlld[drive.discovery.fixed] Unhandled Exception: System.TypeInitializationException: The type initializer for 'zbxlld.Windows.Supplement.PerfMon.LogicalDisk' threw an exception. ---> System.TypeInitializationException: The type initializer for 'zbxlld.Windows.Supplement.PerfMon.Localization' threw an exception. ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at zbxlld.Windows.Supplement.PerfMon.Localization..cctor() --- End of inner exception stack trace --- at zbxlld.Windows.Supplement.PerfMon.Localization.GetName(String id) at zbxlld.Windows.Supplement.PerfMon.LogicalDisk..cctor() --- End of inner exception stack trace --- at zbxlld.Windows.Supplement.PerfMon.LogicalDisk.GetInstanceName(Guid guid) at zbxlld.Windows.Discovery.Drive.GetOutput(String key) at zbxlld.Windows.MainClass.Main(String[] args) [root@zabbix ~]#
Sincerely yours,
AlekseyComment
-
Please try using the version 0.6.1.I use Windows 7 64 bit
This is the full text of exception.Code:C:\ ver Microsoft Windows [Version 6.1.7601] C:\
Code:[root@zabbix ~]# zabbix_get -s 10.1.10.137 -k zbxlld[drive.discovery.fixed] Unhandled Exception: System.TypeInitializationException: The type initializer for 'zbxlld.Windows.Supplement.PerfMon.LogicalDisk' threw an exception. ---> System.TypeInitializationException: The type initializer for 'zbxlld.Windows.Supplement.PerfMon.Localization' threw an exception. ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at zbxlld.Windows.Supplement.PerfMon.Localization..cctor() --- End of inner exception stack trace --- at zbxlld.Windows.Supplement.PerfMon.Localization.GetName(String id) at zbxlld.Windows.Supplement.PerfMon.LogicalDisk..cctor() --- End of inner exception stack trace --- at zbxlld.Windows.Supplement.PerfMon.LogicalDisk.GetInstanceName(Guid guid) at zbxlld.Windows.Discovery.Drive.GetOutput(String key) at zbxlld.Windows.MainClass.Main(String[] args) [root@zabbix ~]#
Comment
-
Sorry for silly question - where I can get the newest version?
https://github.com/skarllot/zbxlld/wiki has only version 0.6Sincerely yours,
AlekseyComment
-
I was updated only the History page. Now the How to Install from version 0.6 was updated too.Sorry for silly question - where I can get the newest version?
https://github.com/skarllot/zbxlld/wiki has only version 0.6Comment
-
Sorry about that.
It works. partly.
Code:[root@zabbix ~]# zabbix_get -s 10.1.10.137 -k zbxlld[drive.discovery.fixed] Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at zbxlld.Windows.Supplement.JsonOutput.GetOutput(String keySuffix) at zbxlld.Windows.MainClass.Main(String[] args) [root@zabbix ~]# [root@zabbix ~]# zabbix_get -s 10.1.10.137 -k zbxlld[drive.discovery.mounted] Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at zbxlld.Windows.Supplement.JsonOutput.GetOutput(String keySuffix) at zbxlld.Windows.MainClass.Main(String[] args) [root@zabbix ~]# [root@zabbix ~]# zabbix_get -s 10.1.10.137 -k zbxlld[drive.discovery.swap] {"data": [ { "{#FSNAME}":"C:\\", "{#FSPERFMON}":"C:", "{#FSLABEL}":"", "{#FSFORMAT}":"NTFS", "{#FSCAPTION}":"C:" } ] } [root@zabbix ~]#Sincerely yours,
AlekseyComment
-
Template example
Hi.
I've attached a template that uses LLD to discover services with zbxlld.
There are a bunch of static items and triggers there as well, so please ignore those.
Also, I haven't tried importing it, so I don't take take any blame for dead goldfishes etc you might experience.
It'll discover any service set to startup type = automatic, and alert if any of those has been anything but running for 5 minutes.
Hope this helps anyone.Attached FilesComment
-
I'm using your template as a basis to create my own. When I try to add a trigger for a service not running I get
The trigger expression I am trying to make isCode:Incorrect item key "service_state[{#SVCNAME}]" provided for trigger expression on "blah Template".
Code:{GeoComm Template:service_state[{#SVCNAME}].last(0)}#0Comment
Comment