Page 1 of 1

Nagios plugin cron error - help please

Posted: Wed Dec 14, 2022 7:27 am
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 ?

Re: Nagios plugin cron error - help please

Posted: Wed Dec 14, 2022 1:30 pm
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