hello
out of the box : there is nothing to answer your specific need
there is a check_files that will check the presence of file, and check_logfiles which will parse log with a specific syntax, but that will probably not be what you want.
howerver, you could code your own business logic in a script (bash, batch, powershell, python, whatever) that will be called by centreon and output centreon check specific output
Plugins development guidelines | Centreon Documentation
(your program/screen need to ouput 1 line with text, and an exit code to tell centreon “ok”, warning, critical, unknown)
you will be able to make your own test and a logic, and create a custom “check command” that will be called once every 15min
the script can be put on the windows/linux you want and be called through nrpe, ssh or nsclient, each technology has its own way to call a custom script (usually by declaring the script in a config file on the local server)
can’t help you more, here, it will depend on the scripting you will use, the os of the server that host the file etc…
Thank you ! When I’ve time I’ll test your proposal.
Hello, I’ve started to work on the topic. My understanding is the following.
- A csv file with timestamp, OK or CRITICAL on each line is available on a folder
- A shell, installed in a server, reads the file each 15 minutes and copy the last line (only the value OK or CRITICAL)
- A Centreon check command is executed each 15 minutes to read this value
- This command is associated to a host, and the result is displayed
So 2 actions have to be performed :
- Write the shell
- Create the check command
Do you validate this explanation ?
Thanks,