Ad Widget

Collapse

Userparameter - retreving number of files in directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ThomasLevandovsky
    Junior Member
    • May 2018
    • 7

    #1

    Userparameter - retreving number of files in directory

    Hi,

    is it possible to modify this userparameter to show value of "0" files?

    UserParameter=dir.Count.SMTPSVC.ZIKO_XML,DIR /A-D /B \\mydir\*.xml | FIND /C /V ""

    Right now I can monitor number of XML files in directory above, but when it comes to situation when there is no files at all I think Zabbix returns "null" instead of 0.
    It causes graph to have gaps like this (check screenshoot in attachement):

    Attached Files
Working...