Problem with folder_watch.pl
Posted: Wed Apr 06, 2016 5:11 am
Hi All
We are running Nagios XI 5.2.3 on CentOS release 6.7 (Final)
I'm trying to use "folder_watch.pl" configure over the wizard.
But even on the cl it is not working as you can see below.
I am checking the folder /tmp/nagiosxitest on a remote server over ssh, if the file 'murat.log' is present.
Nagios lists the file, but gives as output "OK - 0 murat.log files found | 'murat.log'=0".
My goal is to trigger an alarm if the file "murat.log" is found in the folder "/tmp/nagiosxitest."
Please help.
****************************************************************************************
[nagios@cnaxi212 ~]$ /usr/local/nagios/libexec/folder_watch.pl -C 'ssh [email protected] ls -l /tmp/nagiosxitest' -F 'murat.log' -T 'files' -f -v
Translated filespec 'murat.log' to regex 'murat\.log'
folder_watch.pl plugin version 0.43_nagios
Alarm at 30
Command Specified: ssh [email protected] ls -l /tmp/nagiosxitest
Executing ssh [email protected] ls -l /tmp/nagiosxitest 2>&1
got line: total 4
processed: type=unset
parsed: type=unset type=unset
got line: -rw-r--r-- 1 nagios nagios 84 2016-04-06 09:57 murat.log
processed: time= mode=644 size=84 time_line=2016-04-06 09:57 murat.log nfiles=1 group=nagios user=nagios type=file
parsed: time= mode=644 size=84 time_line=2016-04-06 09:57 murat.log nfiles=1 group=nagios user=nagios type=file time= mode=644 size=84 time_line=2016-04-06 09:57 murat.log nfiles=1 group=nagios user=nagios type=file
Date 1459936924 Oldest_filetime: undef Newest_filetime: undef
Largest file has size of octet and smallest octet
OK - 0 murat.log files found | 'murat.log'=0
[nagios@cnaxi212 ~]$
We are running Nagios XI 5.2.3 on CentOS release 6.7 (Final)
I'm trying to use "folder_watch.pl" configure over the wizard.
But even on the cl it is not working as you can see below.
I am checking the folder /tmp/nagiosxitest on a remote server over ssh, if the file 'murat.log' is present.
Nagios lists the file, but gives as output "OK - 0 murat.log files found | 'murat.log'=0".
My goal is to trigger an alarm if the file "murat.log" is found in the folder "/tmp/nagiosxitest."
Please help.
****************************************************************************************
[nagios@cnaxi212 ~]$ /usr/local/nagios/libexec/folder_watch.pl -C 'ssh [email protected] ls -l /tmp/nagiosxitest' -F 'murat.log' -T 'files' -f -v
Translated filespec 'murat.log' to regex 'murat\.log'
folder_watch.pl plugin version 0.43_nagios
Alarm at 30
Command Specified: ssh [email protected] ls -l /tmp/nagiosxitest
Executing ssh [email protected] ls -l /tmp/nagiosxitest 2>&1
got line: total 4
processed: type=unset
parsed: type=unset type=unset
got line: -rw-r--r-- 1 nagios nagios 84 2016-04-06 09:57 murat.log
processed: time= mode=644 size=84 time_line=2016-04-06 09:57 murat.log nfiles=1 group=nagios user=nagios type=file
parsed: time= mode=644 size=84 time_line=2016-04-06 09:57 murat.log nfiles=1 group=nagios user=nagios type=file time= mode=644 size=84 time_line=2016-04-06 09:57 murat.log nfiles=1 group=nagios user=nagios type=file
Date 1459936924 Oldest_filetime: undef Newest_filetime: undef
Largest file has size of octet and smallest octet
OK - 0 murat.log files found | 'murat.log'=0
[nagios@cnaxi212 ~]$