Hey there everyone,
To start off this post, let me tell you a little about me so you have a global idea of the knowledge I have when it comes to Zabbix.
I'm an intern at a security company who is almost graduating high school, and since last week I've been tasked to figure out how Zabbix works and to add new functionality to the server.
Now my first assignment was to add S.M.A.R.T. capabilities to the Zabbix server, which should then monitor the HDD's of Windows machines for errors. Here at my company they want to 'predict' when components are failing, so let's say that that is where we are starting off.
After a searching for a long time, I came across the following page:
Which, in theory, sounded like the perfect solution, so I added this script to my agent.d file and AT FIRST imported the version 3.0 template that is found right there on the github page.
Now, when I tried checked the graphs, they would give me the error that there is no data found, which is obviously not good. So I figured maybe the template is wrong, since I'm using version 3.2 of the Zabbix server.
The current situation is the following: I've managed to use the zabbix_get command on the server in order to pull data from smartmontools towards me, which works perfectly.
Now, when I made a normal item and used the key uHDD.[hda, 194] and then put this item in a graph, the graph will get the data about the temperature of the HDD, which is perfect.
So my problem is the following: If you look at the information the github page gives you right here:
UserParameter=uHDD.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files (x86)\Zabbix Agent\smartctl-disks-discovery.ps1"
( Which works if I'm using the zabbix_get uHDD.discovery command )
This script and config should be getting JSON(?) data from the remote computer and then give MACRO's as a response, which would be:
{#SMART_ENABLE} :<0/1>
{#DISKNAME} : <nameofdisk>
So what it does in the original template ( as far as I can see ) is create a discovery protocol with the key: uHDD.discovery and then enters {#SMART_ENABLE} as a filter so we only use SMART enabled disks. Then it makes a prototype item named uHDD.[{#DISKNAME}, 194] and then puts this item into a graph prototype which would then be able to be picked at the MONITOR > GRAPHS section.
However, after following above steps, I just can't get the Discovery Graph Prototype to show up in my Graph list and I honestly have no idea how to make it appear.
I'm sorry for the long ( And probably vague ) post, but I really have no idea what to do here and I hope you can help.
Kind Regards,
Questionnaire
TL;DR
How do you get a Graph Prototype to show at your Graphs? Mine won't appear, not even in name. (And yes, I did link the discovery protocol to the correct machine and I am monitoring that machine )
To start off this post, let me tell you a little about me so you have a global idea of the knowledge I have when it comes to Zabbix.
I'm an intern at a security company who is almost graduating high school, and since last week I've been tasked to figure out how Zabbix works and to add new functionality to the server.
Now my first assignment was to add S.M.A.R.T. capabilities to the Zabbix server, which should then monitor the HDD's of Windows machines for errors. Here at my company they want to 'predict' when components are failing, so let's say that that is where we are starting off.
After a searching for a long time, I came across the following page:
Which, in theory, sounded like the perfect solution, so I added this script to my agent.d file and AT FIRST imported the version 3.0 template that is found right there on the github page.
Now, when I tried checked the graphs, they would give me the error that there is no data found, which is obviously not good. So I figured maybe the template is wrong, since I'm using version 3.2 of the Zabbix server.
The current situation is the following: I've managed to use the zabbix_get command on the server in order to pull data from smartmontools towards me, which works perfectly.
Now, when I made a normal item and used the key uHDD.[hda, 194] and then put this item in a graph, the graph will get the data about the temperature of the HDD, which is perfect.
So my problem is the following: If you look at the information the github page gives you right here:
UserParameter=uHDD.discovery,powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files (x86)\Zabbix Agent\smartctl-disks-discovery.ps1"
( Which works if I'm using the zabbix_get uHDD.discovery command )
This script and config should be getting JSON(?) data from the remote computer and then give MACRO's as a response, which would be:
{#SMART_ENABLE} :<0/1>
{#DISKNAME} : <nameofdisk>
So what it does in the original template ( as far as I can see ) is create a discovery protocol with the key: uHDD.discovery and then enters {#SMART_ENABLE} as a filter so we only use SMART enabled disks. Then it makes a prototype item named uHDD.[{#DISKNAME}, 194] and then puts this item into a graph prototype which would then be able to be picked at the MONITOR > GRAPHS section.
However, after following above steps, I just can't get the Discovery Graph Prototype to show up in my Graph list and I honestly have no idea how to make it appear.
I'm sorry for the long ( And probably vague ) post, but I really have no idea what to do here and I hope you can help.
Kind Regards,
Questionnaire
TL;DR
How do you get a Graph Prototype to show at your Graphs? Mine won't appear, not even in name. (And yes, I did link the discovery protocol to the correct machine and I am monitoring that machine )