Nagios plugin cron error - help please

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
DunogRamers
Posts: 3
Joined: Sat Jul 23, 2022 7:51 am

Nagios plugin cron error - help please

Post by DunogRamers »

Just following the guide to setup, the nagios plugins, got to the part where you need to add to the cron job but getting the following error.

root@lpslibrenms1:/etc/cron.d# */5 * * * * librenms /opt/librenms/services-wrapper.py 1

bash: */5: No such file or directory

if i LS the librenms folder i can see the services-wrapper.py but i don't have a .py 1 ?
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Nagios plugin cron error - help please

Post by gormank »

You should use a full path to librenms
crons shouldn't have any output--it gets sent to the root mail

*/5 * * * * librenms /opt/librenms/services-wrapper.py 1 2>&1 > /dev/null
Post Reply