-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Integrate OCS Inventory with Grafana or Zabbix to Monitoring PC's #280
Comments
How does this work? Is it running on the OCS Inventory side or on the nagios side? https://metacpan.org/pod/Ocs::Nagios NAME |
Hi @lexcorp These implementation are most likely really old. It would be indeed a nice thing to add, however we currently have a lot going on in our roadmap. If this request is really important for you, developpment can be done faster trough the ocs professional offer : In any case it will be added to our roadmap but don't expect it anytime soon. Regards, |
Hello, I am not familiar with Nagios or Grafana, but in Zabbix the OCS inventory can be used in a rudimentary way if you know which values you want to monitor. Since the OCS is based on an SQL database, it is of course possible to read out values and set triggers for alarms via SQL queries from Zabbix. To do this, place a shell script on the OCS server with which the SQL database can be read (preferably with a dedicated user who only has read access to the database). For example, my script looks like this:
In Zabbix you can then create a template and put items in there and formulate SQL queries in them. The query can then be sent to the script, for example like this:
The function 'ocs.check' must of course be connected to the shell script in the Zabbix agent config beforehand, like this: Here you can then work with the usual Zabbix macros, mappings and triggers to generate the desired information and alarms. For example, in Zabbix we monitor the hard disk space and the supported Windows release versions of our client computers. This is of course the 'quick&dirty' method and should only be used within encrypted communication channels between Zabbix and OCS inventory, but works wonderfully as an alternative to an official integration of OCS into the mentioned applications. Perhaps someone here can use this as food for thought. Have fun with it and best regards. |
Integrate OCS Inventory with Grafana or Zabbix to Monitoring PC's
The text was updated successfully, but these errors were encountered: