Nagios xi SNMPTT install script issues

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Nagios xi SNMPTT install script issues

Post by arnab.roy »

any further updates on this..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Nagios xi SNMPTT install script issues

Post by scottwilkerson »

Arnab,

Did you try the new version Alex uploaded on Oct. 12th as he suggested?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Nagios xi SNMPTT install script issues

Post by arnab.roy »

scottwilkerson wrote:Arnab,

Did you try the new version Alex uploaded on Oct. 12th as he suggested?
Hi Scott as Alex never confirmed whether it was the correct version or not I didnt try..will give that a go if he has updated the installer
agriffin wrote:I'm not sure either, so I just removed the -n option. I also fixed the iptables code that another customer was having trouble with. The new version should finish uploading soon.

Thanks
Arnab
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Nagios xi SNMPTT install script issues

Post by arnab.roy »

Ok just tried the new version and :(

Code: Select all

oaded plugins: fastestmirror, security
Determining fastest mirrors
epel/metalink                                                                                                                                             |  18 kB     00:00     
 * base: mirrors.coreix.net
 * epel: mirrors.coreix.net
 * extras: mirrors.coreix.net
 * rpmforge: www.mirrorservice.org
 * updates: mirrors.coreix.net
base                                                                                                                                                      | 3.7 kB     00:00     
cr                                                                                                                                                        | 3.0 kB     00:00     
epel                                                                                                                                                      | 4.3 kB     00:00     
epel/primary_db                                                                                                                                           | 4.7 MB     00:01     
extras                                                                                                                                                    | 3.0 kB     00:00     
rpmforge                                                                                                                                                  | 1.9 kB     00:00     
rpmforge/primary_db                                                                                                                                       | 2.5 MB     00:00     
updates                                                                                                                                                   | 3.5 kB     00:00     
updates/primary_db                                                                                                                                        | 3.4 MB     00:01     
vmware-tools                                                                                                                                              |  951 B     00:00     
Setting up Install Process
Package 1:net-snmp-5.5-41.el6_3.1.x86_64 already installed and latest version
Package rpmdevtools-7.5-1.el6.noarch already installed and latest version
Package 1:net-snmp-perl-5.5-41.el6_3.1.x86_64 already installed and latest version
Package perl-Config-IniFiles-2.72-2.el6.noarch already installed and latest version
Nothing to do
--2012-10-18 20:03:13--  http://superb-sea2.dl.sourceforge.net/project/snmptt/snmptt/snmptt_1.3/snmptt_1.3.tgz
Resolving superb-sea2.dl.sourceforge.net... 209.160.57.180
Connecting to superb-sea2.dl.sourceforge.net|209.160.57.180|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 146314 (143K) [application/octet-stream]
Saving to: `snmptt_1.3.tgz'

100%[=======================================================================================================================================>] 146,314      157K/s   in 0.9s    

2012-10-18 20:03:14 (157 KB/s) - `snmptt_1.3.tgz' saved [146314/146314]

cp: cannot create regular file `/etc/rc.d/init.d/snmptt/': Is a directory
Mind you this system already had the previous installer run on it....

Can you guys kindly test this please....
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Nagios xi SNMPTT install script issues

Post by arnab.roy »

Any further updates ....? we are having regular issues with this...?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Nagios xi SNMPTT install script issues

Post by agriffin »

I just finished creating an RPM package for this to replace the install script, which should be more predictable and reliable. You can find it here. If you're upgrading from a previous version, you'll need to force rpm to overwrite the pre-existing files:

Code: Select all

# rpm -Uvh --force --nodeps snmptt-1.3-3.nagios.noarch.rpm
Otherwise, use this command on new installations:

Code: Select all

# yum --nogpgcheck localinstall snmptt-1.3-3.nagios.noarch.rpm
I'm more confident in this version than the last few (it will at least finish installing), but let me know if you encounter any issues. If everything seems to work fine, I'll update the documentation to use this instead. Thanks!

EDIT: updated URL and commands with fixed version
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Nagios xi SNMPTT install script issues

Post by arnab.roy »

That works! ...A small warning backup your snmptt.conf or trap def files before installing this... :)
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Nagios xi SNMPTT install script issues

Post by agriffin »

Thanks for the feedback. I just pushed a small update that doesn't overwrite your existing configs. I also updated our documentation to make this the official procedure.
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Nagios xi SNMPTT install script issues

Post by arnab.roy »

Hi Alex,

Just a quick update on this I found that snmptt.ini is still telling it to run as standalone mode / changed that to daemon. Traps doesnt get translated from oid to text strings

to fix that edit /etc/init.d/snmptrapd and replace

#OPTIONS="-Lsd -p /var/run/snmptrapd.pid -m all" -----this with
OPTIONS="-a -p /var/run/snmptrapd.pid -Ls 2 -Lf /var/log/snmptrapd-direct.log -m ALL" --also enables additional logging

in snmptt.ini have the following options set as

translate_value_oids = 1
translate_trap_oid_format = 1
translate_varname_oid_format = 1
translate_integers = 1
mibs_environment = ALL

This has got me what i wanted proper snmp trap translation. Might be worth changing your package to have these options enabled.

Many Thanks
Arnab
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: Nagios xi SNMPTT install script issues

Post by arnab.roy »

Hi Guys,

Please withdraw this patch if you released it completely breaks snmptrap handling. As snmptraphandling.py is never called so nagios never receives the processed traps !!!!!


Many Thanks
Arnab