Trying to add SNMP Traps into Nagios following
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
and get the following error when running the script
./NagiosXI-SNMPTrap.sh
Retrieving http://download.fedora.redhat.com/pub/e ... noarch.rpm
error: skipping http://download.fedora.redhat.com/pub/e ... noarch.rpm - transfer failed - Unknown or unexpected error
warning: u 0xa02d210 ctrl 0xa02e028 nrefs != 0 (download.fedora.redhat.com http)
....
the rest seems to continue normally.
Is this critical and if so what's the proper rpm?
NagiosXI-SNMPTrap.sh and epel-release-5-3.noarch.rpm
NagiosXI-SNMPTrap.sh and epel-release-5-3.noarch.rpm
Grumpy Olde IT Guy
Re: NagiosXI-SNMPTrap.sh and epel-release-5-3.noarch.rpm
ok, answering my question
change
rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm
to
rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm
and I assume re-running the script will not screw anything up?
change
rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm
to
rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpm
and I assume re-running the script will not screw anything up?
Grumpy Olde IT Guy
Re: NagiosXI-SNMPTrap.sh and epel-release-5-3.noarch.rpm
Yet another question. Using the CentOS VM, and have installed the SNMPTrap.sh. Currently on 1.5.
I cannot find snmp.conf to add my mibs. I'm about to create on in /etc/snmp but I am am wondering if things have changed and it's done differently these days.
Basically while I may not need this for snmptt I would like my snmp performance counters to have better names by including some of my common mibs.
While getting my mibs into snmp.conf help with the lack of naming in performance counters? (i.e. not Datasource: iso.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1 but something meaningful).
I cannot find snmp.conf to add my mibs. I'm about to create on in /etc/snmp but I am am wondering if things have changed and it's done differently these days.
Basically while I may not need this for snmptt I would like my snmp performance counters to have better names by including some of my common mibs.
While getting my mibs into snmp.conf help with the lack of naming in performance counters? (i.e. not Datasource: iso.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1 but something meaningful).
Grumpy Olde IT Guy
Re: NagiosXI-SNMPTrap.sh and epel-release-5-3.noarch.rpm
Adding/editing mibs can be done by using the addmib command. The shell script installed the ability to use it anywhere on the command line. If you wanted to manually add them you'd have to edit the /etc/snmp/snmptt.conf
Regards,
Regards,
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: NagiosXI-SNMPTrap.sh and epel-release-5-3.noarch.rpm
I did use addmib but I believe that only adds the mib to the "trap translator" and doesn't seem to add it into the snmp.conf. I have copied my mibs into the mib directory and have run addmib but when I do an snmpwalk or any other snmp command I don't see the enterprise mibs defined. So I was looking for snmp.conf to add my MIB so when I query my devices I get readable results.
I would expect
PowerNet-MIB::iemStatusProbeCurrentTemp.1 = INTEGER: 29
instead I get
iso.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1 = INTEGER: 29
So does addmib add the mib to net-snmp or is it only adding it into the trap translator snmptt? I also thought that addmib was only for adding and not editting. Then back to my orginal (or second actually) question. I cannot find snmp.conf to add my mibs. I'm about to create one in /etc/snmp but I am am wondering if things have changed and it's done differently these days.
Please help shape my world view into something correct.
I would expect
PowerNet-MIB::iemStatusProbeCurrentTemp.1 = INTEGER: 29
instead I get
iso.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1 = INTEGER: 29
So does addmib add the mib to net-snmp or is it only adding it into the trap translator snmptt? I also thought that addmib was only for adding and not editting. Then back to my orginal (or second actually) question. I cannot find snmp.conf to add my mibs. I'm about to create one in /etc/snmp but I am am wondering if things have changed and it's done differently these days.
Please help shape my world view into something correct.
Grumpy Olde IT Guy
Re: NagiosXI-SNMPTrap.sh and epel-release-5-3.noarch.rpm
rseiwert,
No you're on the right track. You'll need to put the snmp.conf in the proper place though. If you want to go through the options just go to your /root/ directory and type snmpconf and it will guide you through the snmp setup process and will offer to make you a snmp.conf in the process. Its pretty much blank in the first place. You could just create snmp.conf in the /usr/share/snmp but it would probably be best to go through the intstaller in case it presents any options that you'd like to use.
No you're on the right track. You'll need to put the snmp.conf in the proper place though. If you want to go through the options just go to your /root/ directory and type snmpconf and it will guide you through the snmp setup process and will offer to make you a snmp.conf in the process. Its pretty much blank in the first place. You could just create snmp.conf in the /usr/share/snmp but it would probably be best to go through the intstaller in case it presents any options that you'd like to use.
Nicholas Scott
Former Nagios employee
Former Nagios employee