Help with

Hi , need help setting up a cronjob for running the snmp-scan script , so far i tried:

*/1 * * * * librenms /opt/librenms/ >> /var/log/snmpdiscovery.log 2>&1

This gives a error: /usr/bin/env: ‘lnms’: No such file or directory

Running the script manually with librenms user works with no problems:

[email protected]:~$ ./
Scanning IPs:

Scanned 62 IPs: 60 known devices, added 0 devices, failed to add 0 devices
Runtime: 3.50 seconds

Run validate.php and fix the problems

There seem to be no problems, only the script , i put some comments miself.

[email protected]:~$ php validate.php

Component Version
LibreNMS 22.6.0-29-ga9d5c378f
DB Schema 2022_05_30_084932_update-app-status-length (242)
PHP 7.4.28
Python 3.9.2
MySQL 10.5.15-MariaDB-0+deb11u1
RRDTool 1.7.2
SNMP 5.9


[OK] Composer Version: 2.3.9
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Your local git contains modified files, this could prevent automatic updates.
You can fix this with ./scripts/github-remove
Modified Files:

Managed to get in working by switching to crontab , i has using the librenms file under cron.d

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.