Separate service check

Guys,

Is it possible to modify check-services.php to check only specific services?

Unfortunately, we do have some services which take more than 5 minutes to be checked.

Thanks!

Not sure what you mean here. Just add the services that are needed? Are you saying they are not being polled within 5 minutes?

Kevin,

Yes, I’ve executed ./check-services.php -d and seems like it takes more than 5 minutes as specified in my cron:
*/5 * * * * librenms /opt/librenms/check-services.php >> /dev/null 2>&1

There are 2 services that are taking for about 20-30 seconds for each device (about 40 devices are monitored by Libre)

So I need to know if it’s possible to exclude these services from the main cron and execute them once per day.

I’m not so good in PHP, so not sure how to rewrite check-services.php, maybe somebody can assist me.

Thanks in advance!

What service check is that?

It’s the python script to check if the IP address is blocked on the RBL list (so there is no need to execute it every 5 minutes, once per day will be optimal). The 2nd one is our own script to check partition disk usage on the remote host using SNMP.

The rest of the services are the Nagios ones (http, ftp, imap, pop and etc.), however, they’re really fast and take few seconds.