First Work Day Of Month

Hi,

I need to run a specific check on the first work day of each month. Work days are Monday-Friday but not bank holiday’s.

At the moment the site I’m working at only has version 2.12 - I’m trying to get them to upgrade.

Any ideas on how to set this up?

Many thanks!

I don’t see a timeperiod.cfg options as per you requirement.
nagios.sourceforge.net/docs/3_0/ … timeperiod

What is can suggest is write a custom script as follows.
echo cal|awk {'print $2'}
from the above output take the Mo and first numeric output and compare that number with today’s date. If the date matches with today’s date execute the plugin using
exec
else
echo "Date dosen’t match"
exit 0