The default notification script for nagios is very simple, why not get more information on the email. Like: hostgroup, how long has the problem happened, link to the possible documentation. And format it in a nice html table.
Nagios plugin to verify a FTP site, by uploading a file and testing the time it takes.
< ?php // Script to connect to a FTP site and Upload a file, return the time it took and compare to WARN and CRIT values // Formated for Nagios usage // Use a test user for the FTP as it could be simple to get this password // I use a 5mb file, created by using: dd bs=1024 count=5120 skip=5120 if=/dev/sda of=file.tst // by Felipe Ferreira http://felipeferreira.net Read more…
I wrote to scripts with the same idea, to monitor a file age, I have written it also in vbs in the past.
Now I did it in bash and php.
I needed to check if operation was happening.
The doubt was, Is the FTP files being copied over every day to the server?
To be sure I wrote this PHP script to check.
It goes into the FTP server and check for a folder with the date of today.