--- I created another Post with the same name. Unforutnately I couldn´t find a way to edit it an add further Info, so I had to vreate a new one. Feel free to delete the incomplete one ---
Dear Zabbix-Friends,
I am pretty new to Zabbix and I´m sharing this challenge with out:
I created a windows tasks, that I want to monitor. The easiest (for me) would be to issue a Powershell command through a custom item and process the given output. The Powershell-command itself is quite simple:
Powershell -NoProfile -ExecutionPolicy bypass -Command "Get-ScheduledTaskInfo -TaskName 'Zabbix-Agent - Deploy Data'"
The Item in Zabbix is this right now: Test is successful:
Right now I’m interested in the Value “LastTaskResult”, but want to build up on that and monitor other items too (like “NumberOfMissedRuns”, “LastRunTime”, “NextRunTime” etc): As you can see right now the output is not optimised. As far as I understand Zabbix/Monitoring works best with single and numeric values. Since I´m new I don´t know what´s best in general. Either make one Item for each value (with the same Powershell), or issue the command once and split the output into several values.
From the perspective of the client-performance, I´d rather use one single command and process the output into Zabbix, than do this job 3 or four time to get every out in single items.
I know there´s a template for scheduled tasks, already: https://share.zabbix.com/operating-s...hes-planifiees
But I this didn’t work right away, so I thought let´s take it as a challenge to get to know zabbix more. Its gonna help me on the long run, since I´ll have more skripts coming up with similar things.
Thanks so much in advance for all your ideas and your help!
Dear Zabbix-Friends,
I am pretty new to Zabbix and I´m sharing this challenge with out:
I created a windows tasks, that I want to monitor. The easiest (for me) would be to issue a Powershell command through a custom item and process the given output. The Powershell-command itself is quite simple:
Powershell -NoProfile -ExecutionPolicy bypass -Command "Get-ScheduledTaskInfo -TaskName 'Zabbix-Agent - Deploy Data'"
The Item in Zabbix is this right now: Test is successful:
Right now I’m interested in the Value “LastTaskResult”, but want to build up on that and monitor other items too (like “NumberOfMissedRuns”, “LastRunTime”, “NextRunTime” etc): As you can see right now the output is not optimised. As far as I understand Zabbix/Monitoring works best with single and numeric values. Since I´m new I don´t know what´s best in general. Either make one Item for each value (with the same Powershell), or issue the command once and split the output into several values.
From the perspective of the client-performance, I´d rather use one single command and process the output into Zabbix, than do this job 3 or four time to get every out in single items.
I know there´s a template for scheduled tasks, already: https://share.zabbix.com/operating-s...hes-planifiees
But I this didn’t work right away, so I thought let´s take it as a challenge to get to know zabbix more. Its gonna help me on the long run, since I´ll have more skripts coming up with similar things.
Thanks so much in advance for all your ideas and your help!
Comment