Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_files_count
Compatible With
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
Owner
Hits
7428
Check more: https://github.com/DennyZhang/monitoring/tree/master/files/check_file_count
Reviews (1)
bynishith, June 1, 2020
This plugin works well on all type of file counts. I'm using it to monitor total number of Nagios Backup Files on daily basis.
So, I set the "check_interval" every 1440 minutes. (1 day)
Below is my configuration:
####################START
commands.cfg
define command {
command_name check_file_count
command_line $USER1$/check_file_count.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
####################END
####################sTART
localhost.cfg
define service{
use file-count-service
service_description Nagios Backup Log File Count
check_command check_file_count!/home/Nagios_Backup/!365!400!*.tar.gz
host_name localhost
}
####################END
Description:-
Here, when nagios backup log file count reaches > 365 day, I get WARNING ALERT. It means, I have last 1 year backup files under "/home/Nagios_backup" directory.
CRITICAL Alert is set for 400 days.
SUM UP:
Hope this plugin work with NRPE to monitor my cPanel files.
So, I set the "check_interval" every 1440 minutes. (1 day)
Below is my configuration:
####################START
commands.cfg
define command {
command_name check_file_count
command_line $USER1$/check_file_count.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
####################END
####################sTART
localhost.cfg
define service{
use file-count-service
service_description Nagios Backup Log File Count
check_command check_file_count!/home/Nagios_Backup/!365!400!*.tar.gz
host_name localhost
}
####################END
Description:-
Here, when nagios backup log file count reaches > 365 day, I get WARNING ALERT. It means, I have last 1 year backup files under "/home/Nagios_backup" directory.
CRITICAL Alert is set for 400 days.
SUM UP:
Hope this plugin work with NRPE to monitor my cPanel files.