poll time

sashk <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
Hi,

I have a question on how to improve my config file. I have several hosts, which I would like to monitor, but I don't want to run some checks every cycle, and therefore come up with something like code bellow: check host and it's services availability every cycle, but check ssl certificate for expiration once every hour. Is there a way to combine two services definition into a single service definition?

check host hostname with address 10.10.10.10

if failed ping then alert

if failed port 443 with protocol https then alert

if failed port 993...

if failed port 25...

check host ssl-hostname with address 10.10.10.10 every 60 cycles

if failed port 443 with protocol https

and certificate valid > 14 days use ssl options {verify: enable}

then alert

Thanks.

-S
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.