Page 1 of 4
pidof: invalid options on command line!
Posted: Mon Sep 23, 2013 4:28 pm
by benhank
OK i have a fresh clean machine and I have snmp set up. no scratch that...i have it installed...hmmmm. I have what may or may not be snmptt located in my Linux's internal command structure.
I get none of my previous errors but I do get this one:
Code: Select all
Stopping snmptrapd: [FAILED] (in capital red letters too :cry:
pidof: invalid options on command line!
Tried to look the error up on google, but all it returned was the words "hahahahahaha" on my screen.
Re: snmptt home stretch
Posted: Mon Sep 23, 2013 6:19 pm
by BanditBBS
benhank wrote:OK i have a fresh clean machine and I have snmp set up. no scratch that...i have it installed...hmmmm. I have what may or may not be snmptt located in my Linux's internal command structure.
I get none of my previous errors but I do get this one:
Code: Select all
Stopping snmptrapd: [FAILED] (in capital red letters too :cry:
pidof: invalid options on command line!
Tried to look the error up on google, but all it returned was the words "hahahahahaha" on my screen.
smptrapd is a completely different app from snmptt. Both are needed for what you are wanting to do. snmptrapd receives the traps and forwards them to snmptt which then calls a python script that manipulates the data and sends it to Nagios.
I got no help for you, just saying good luck! I just had to respond, to make sure you understood the order of things and to say thanks for the laugh yet again.
Re: snmptt home stretch
Posted: Mon Sep 23, 2013 6:23 pm
by BanditBBS
Scratch my no help....just in case this may help:
https://bugzilla.redhat.com/show_bug.cgi?id=170928
Same error message, unrelated problem, but may point you towards the issue.
Re: snmptt home stretch
Posted: Tue Sep 24, 2013 9:37 am
by sreinhardt
snmptt 1.3 or 1.4? although as a side note, I have run both and never noticed this issue before, hopefully because the bug is from 2005. Doesn't mean something similar is not still happening with snmptt. Also was the service started when you stopped it?
Re: snmptt home stretch
Posted: Tue Sep 24, 2013 11:38 am
by benhank
the bad snmp not working still
getting the:
Code: Select all
MIB could not be installed - directory permissions may be incorrect.
BUUUT:
good news! NAILED that filthy soB(iscuit). KaPOW! Ever saw that scene in Sin City in which Bruce Willis has his final"conversation' with the yellow guy? Well that me on this pid ish:
the short answer: for some reason after my fresh install of snmptt the following was wrong in
At lines 29 and 51:
Code: Select all
OPTIONS="-Lsd -On -p /var/run/snmptrapd.pid"
should read:
Code: Select all
OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
remove "-On" and it worked.
Spence could you rename my topic to:
Code: Select all
pidof: invalid options on command line!
maybe it will help someone else.
--------------------------------------------------------------------------------------------
Hey BanditBBS , I have to disagree with you on that one, snmpXXXXXX do not differ, they all <censored><censored><censored><censored><censored><BLEEP><BLEEP><censored><censored> AND <censored><BLEEP><untranslatable>!
Ahhh I feel so light and clean now !
But seriously thanks for the assist and helpful intent on your part man.
Re: pidof: invalid options on command line!
Posted: Tue Sep 24, 2013 1:14 pm
by sreinhardt
Changed and WOW, that is strange. I will have to look into those flags at some point and see what the deal is. So, how are we doing at this point.
Re: pidof: invalid options on command line!
Posted: Tue Sep 24, 2013 1:18 pm
by benhank
check yah pm bro, but in a nutshell, I think I am stuck in a permissions issue like last time but THIS time the machine is brand spanking new, so I don't think that other crap will come into play. I pm'med you some files.
Re: pidof: invalid options on command line!
Posted: Tue Sep 24, 2013 2:39 pm
by sreinhardt
OK, since I got things working for myself this weekend, here are the commands I ran.
Code: Select all
chown root.nagios /etc/snmp/snmptt.ini /etc/snmp /usr/share/snmp/mibs/
chown snmptt.snmptt /var/log/snmptt /var/spool/snmptt
Otherwise for a quick glance, your configs look good. One thing to note that I found, the addmib, snmptrapconvert, and snmptraphandler.py are NOT included in v1.4 if you need the binaries I can share them. they will work on both x86 and x64 without issue.
Re: pidof: invalid options on command line!
Posted: Tue Sep 24, 2013 3:11 pm
by benhank
ok I am excited now!
those two commands didnt work, but then I remembered how you fixed my OTHER server. I logged onto is did a history and found this command that you used:
.
Ran it and now I can upload mibs from the interface!
still not relieving them but I know we are like >.< close!
Re: pidof: invalid options on command line!
Posted: Tue Sep 24, 2013 3:25 pm
by abrist
What are the last remaining issues good sir?