Pandora FMS community forums
Configuring a monitoring check to read value from text file - Printable Version

+- Pandora FMS community forums (http://pandorafms.org/forum)
+-- Forum: Pandora FMS (http://pandorafms.org/forum/forum-3.html)
+--- Forum: General monitoring discussion (http://pandorafms.org/forum/forum-6.html)
+--- Thread: Configuring a monitoring check to read value from text file (/thread-4241.html)



Configuring a monitoring check to read value from text file - Morphius143 - 11-08-2011

Hello All.

Not too sure if anyone can help with this, but I am trying to configure a dfsr backlog check. I have a powershell script that generates a text file with nothing but the number of backlogged files in it, but when I add the following check to the windows agent conf file it always seems to return a 0

module_begin
module_name File1atoFile2a
module_type generic_data
module_regexp D:\Scripts\DrawingOfficeWebPage\Pandora\file1atofile2a.log
module_description DFS Backlog for File1a to File2a
module_pattern .*
module_end

Any ideas?


Re: Configuring a monitoring check to read value from text file - Morphius143 - 11-08-2011

Never mind... I managed to work around this using an exec check and running Type <Name of log file>