Results 1 to 5 of 5

Thread: I seem to have broken snmpd...

  1. #1
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    47 times in 42 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    I seem to have broken snmpd...

    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;

    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)
    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!

    Any suggestions?

    Cheers!
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  2. #2
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    47 times in 42 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    Re: I seem to have broken snmpd...

    I now seem to have fixed snmpd, I'm not sure what did it though.

    I was googling various sources of info about fixing broken packages, followed various steps in different guides etc, none of which seemed to work at all - cleared my apt package cache, did various other things too.

    Code:
    dpkg -l | grep snmpd
    still resulted in 3 characters on the left (I've forgotten 'em now) instead of the ii seen beside working packages, so it still wasn't working.

    By this time, my searching had led me to /var/lib/dpkg - in which I saw a file called 'status' - had a look in this file for snmpd and saw a few lines mentioning various files - I thought they might be files that are on the machine relating to the package - so I went all gung-ho and brought out my 'rm hammer' (tm) and removed 'em.

    Code:
    aptitude remove snmpd && aptitude install snmpd
    And we were back in business!

    Just gotta work out how to properly remove Nagios now, having issues with that 'cause I didn't install from the repos, followed the guide on nagios.org, which has you installing from source - make uninstall doesn't seem to be working, unless I'm running it from the wrong directory!
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  3. #3
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: I seem to have broken snmpd...

    If you erased the sources after installing nagios, you'll probably have to run the ./configure script and then make uninstall. Make sure you use the same version tarball as the one you used to install it.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  4. Received thanks from:

    kidzer (21-05-2009)

  5. #4
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    47 times in 42 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    Re: I seem to have broken snmpd...

    Nah, I've still got the source I originally downloaded.

    The Makefile has the uninstall section commented out with the comment;

    # Uninstall is too destructive if base install directory is /usr, etc.

    Suffice it to say that I've uncommented the line, sudo make uninstall and it appears to have removed all the stuff it installed, I'll go remove the user/group/database myself - 'cause I made those myself.
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  6. #5
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: I seem to have broken snmpd...

    Yeah, that's why it's usually a good idea to use /usr/local for installing tarball'ed software, as per convention. Unfortunately sometimes the default set by some tarballs configure script is /usr.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Data Recover from broken Hard Drive
    By mark19632 in forum Help! Quick Relief From Tech Headaches
    Replies: 9
    Last Post: 10-02-2009, 12:04 PM
  2. Broken memory clip on IS7
    By wmsteele in forum abit.care@HEXUS
    Replies: 3
    Last Post: 29-06-2006, 10:47 AM
  3. Is my 9800 broken forever?
    By alexander in forum Graphics Cards
    Replies: 12
    Last Post: 07-12-2004, 12:54 AM
  4. What's broken on YOUR system?
    By Nickthenerd in forum Software
    Replies: 31
    Last Post: 30-10-2004, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •