Hello there!
So, i'm having some issues to monitor a Windows Server, mainly because it does not have PowerShell, so i'm having to improvise.
As it's the only way i found, i'm checking one file's size via External Check, with a nice and short script on my ExternalScripts dir
I set its permissions so the user zabbix is able to run it, and it does run perfectly, i get a 3 numbers value in my echo, everything is fine.
But the GUI tells me it's not supported, even tho it does not echo that not supported message.
The script? There it is:
#!/bin/bash
DATA=`date +%Y%m%d`
DADOS=`zabbix_get -s "HostIP" -p "SomePort" -k vfs.file.size["SomeDirectory\SomeFileName_$DATA.zip"]`
echo ${DADOS}
I obviously can't show some info in here, but it works
./CheckSize.sh
373
So, on Zabbix Gui i get this:
Received value [] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
It looks like it's returning nothing!
Can someone help me out? What am i doing wrong?
Edit: I'm using Zabbix 2.0.4
So, i'm having some issues to monitor a Windows Server, mainly because it does not have PowerShell, so i'm having to improvise.
As it's the only way i found, i'm checking one file's size via External Check, with a nice and short script on my ExternalScripts dir
I set its permissions so the user zabbix is able to run it, and it does run perfectly, i get a 3 numbers value in my echo, everything is fine.
But the GUI tells me it's not supported, even tho it does not echo that not supported message.
The script? There it is:
#!/bin/bash
DATA=`date +%Y%m%d`
DADOS=`zabbix_get -s "HostIP" -p "SomePort" -k vfs.file.size["SomeDirectory\SomeFileName_$DATA.zip"]`
echo ${DADOS}
I obviously can't show some info in here, but it works
./CheckSize.sh
373
So, on Zabbix Gui i get this:
Received value [] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
It looks like it's returning nothing!
Can someone help me out? What am i doing wrong?
Edit: I'm using Zabbix 2.0.4
Comment