Strange error when starting snmpd from systemd
Måns Zigher <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAEhQi8mJNyW6uPH_LdD1+fz=VVm4QBPJLRqkgHaBZfTanTXacA@mail.gmail.com> |
Hi, I have cross-compiled net-snmp and managed to get it running on the system. I am now trying to get the snmpd started by systemd without any success. When starting snmpd from systemd I get the following error message systemctl status snmpd.service snmpd.service - Snmp Daemon Loaded: loaded (/etc/systemd/system/snmpd.service; disabled) Active: inactive (dead) CGroup: name=systemd:/system/snmpd.service Mar 20 00:49:50 AS-L-00C971 systemd[1]: Starting Snmp Daemon... Mar 20 00:49:51 AS-L-00C971 snmpd[506]: /usr/sbin/snmpd: cd: line 1: can't cd to /path/to/my/disk/on/my/build-system/package/net-snmp/agent Mar 20 00:49:51 AS-L-00C971 snmpd[506]: /usr/sbin/snmpd: eval: line 1: armv4l-cs-linux-gnueabi-gcc: not foundn Mar 20 00:49:51 AS-L-00C971 systemd[1]: Failed to start Snmp Daemon. Mar 20 00:49:51 AS-L-00C971 systemd[1]: Unit snmpd.service entered failed state I build net-snmp with the following flags $ ./configure --prefix=/usr --without-check --host=arm-none-linux-gnueabi --enable-mini-agent --with-mib-modules=mibII disman/event --with-perl-modules=no --disable-embedded-perl --without-rpm --with-default-snmp-version=3 --disable-snmpv1 --disable-snmpv2c --with-sys-contact=root@localhost --with-sys-location=unknown --with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp --disable-manuals --disable-scripts When running snmpd outside of systemd I do not get any error. Any idea what I am doing wrong? ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users