How to integrate .NET and Zabbix?
Asked Answered
P

5

10

I have a .NET app that must send data to a Zabbix server. How to do that?

Parole answered 3/3, 2010 at 18:0 Comment(0)
Y
5

This is sample .Net library to connect Zabbix API https://github.com/p1nger/ODZL

Yogh answered 7/11, 2010 at 22:5 Comment(1)
The url is 404.Nedneda
G
2

You can embed a C# Zabbix Agent directly in your Service, ASP.net site or console app. It responds to Zabbix Passive Checks. https://www.nuget.org/packages/Nabbix/

Grill answered 14/4, 2016 at 22:44 Comment(0)
S
1

Depends on what you want to do. A good place to start would be here.

One very simple way to do it would be via a console program, since Zabbix supports running console programs on Windows - the return value is the output of the program. Another way is to have Zabbix request a HTTP page containing values you want to monitor.

But again, it really depends what you are trying to achieve.

Scalping answered 3/3, 2010 at 18:13 Comment(0)
P
1

zabbix_sender is a command line utility for sending data to a remote Zabbix Server.

zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -s Monitored Host'' -kmysql.queries'' -o ``342.45''

http://www.zabbix.com/documentation/1.8/manpages/zabbix_sender

Parole answered 3/3, 2010 at 19:4 Comment(1)
I don't know if it possible/easy to compile it for WindowsParole
W
1

Translate the PHP or Ruby code to .NET,

http://www.zabbix.com/wiki/doc/api

I took a look at the PHP code and it seems that Zabbix exposes its API via JSON web service. So such code can be translated to .NET code without problems. You just need some time.

Wildfowl answered 4/3, 2010 at 5:5 Comment(2)
Or simply convert the Python API to IronPythonParole
The limitation is that you cannot call IronPython from C# or VB.NET unless you are on .NET 4. :)Wildfowl

© 2022 - 2024 — McMap. All rights reserved.