I have a question about the Post: "Log monitoring. check_file_content.pl " --> I'm trying to monitor that if a "pattern" is not found in a "file" on a Unix server, skip to notification using the command "check_file_content.pl"
It has been possible to prove that it works on the local Nagios server but it does not work when we apply it to another server. In this case a Unix with NRPE.
I show the Command Management: I show the Service Management: The alert shows: "Can't open directory: No such file or directory" because it refers to the Nagios server instead of the remote machine.
The Command Line is modified by:
$ USER1 $ / check_file_content.pl -H vmexpca1.perimetral.dom -f $ ARG1 $ -i $ ARG2 $ -n $ ARG3 $
to specify the server directly but the alert results in the following: Thanks and regards