Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_file - failure under embedded perl #32

Open
heinemannj opened this issue Jul 14, 2013 · 4 comments
Open

check_file - failure under embedded perl #32

heinemannj opened this issue Jul 14, 2013 · 4 comments

Comments

@heinemannj
Copy link

If the file count of the checked directory is zero the following error under nagios embedded perl appears:

**ePN /usr/lib/nagios/plugins/check_files.pl: "Use of uninitialized value $oldest_filetime in concatenation (.) or string at (eval 4) line 755,".

Using normal perl interpreter it works without problems.

nagios core (3.x) - 3.5.0-79.1.x86_64 (2013-06-28)

Define a service to check rsyslog queue.

define service{
use local-service
hostgroup_name elma-server
servicegroups elma-services
service_description Syslog Queue
check_command check_local_files!'Syslog Queue /var/spool/rsyslog'!/var/spool/rsyslog!'dbq.*'!10!100
}

'check_local_files' command definition

define command{
command_name check_local_files
command_line $USER1$/check_files.pl -a -f -L $ARG1$ -D $ARG2$ -F $ARG3$ -w $ARG4$ -c $ARG5$
}

@willixix
Copy link
Owner

should be fixed in 0.417 version of check_files I committed to github yesterday

@heinemannj
Copy link
Author

Another issue appears if the file count of the checked directory is zero (error under nagios embedded perl):

**ePN /usr/lib/nagios/plugins/check_files.pl: "Use of uninitialized value $oldest_secold in concatenation (.) or string at (eval 1) line 777,".

@willixix
Copy link
Owner

Fixed in check_file v0.421 that has just been committed.

@heinemannj
Copy link
Author

Another issue appears if the file count of the checked directory is zero (error under nagios embedded perl):

**ePN /usr/lib/nagios/plugins/check_files.pl: "Use of uninitialized value $largest_filesize in concatenation (.) or string at (eval 1) line 797,".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants