Hi Folks,
I was messing about with Nagios/Zenoss on my server at home (Ubuntu 8.10 - 2.6.27-11-generic), so I installed snmpd to send SNMP updates to them so I could see what kinda information I could get from it.
I installed the package 'snmp' too, as it includes snmpconf, which can be used go generate an snmpd.conf file, useful for somebody with no knowledge of SNMP.
Anyway, I ran through the snmpconf process, and the file was generated, I went to start snmpd with 'sudo /etc/init.d/snmpd start' and when I do, I get the following error;
/etc/default/snmpd: 1: c#: not found
If I try and uninstall/reinstall the snmpd package, I get the following;
Running apt-get install -f to fix broken packages returns the same error, and I'm all out of ideas - damn my limited Linux knowledge!Code:Removing snmpd ... /etc/default/snmpd: 1: c#: not found invoke-rc.d: initscript snmpd, action "stop" failed. dpkg: error processing snmpd (--purge): subprocess pre-removal script returned error exit status 127 /etc/default/snmpd: 1: c#: not found invoke-rc.d: initscript snmpd, action "start" failed. dpkg: error while cleaning up: subprocess post-installation script returned error exit status 127 Errors were encountered while processing: snmpd E: Sub-process /usr/bin/dpkg returned an error code (1)
Any suggestions?
Cheers!