Hi, These files are available for free at cisco.com, you should never have to pay for this : http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&mibName=CISCO-E NVMON-MIB
I would also suggest you use numerical OID. And last, there is an existing script to check temps sensors on Cisco : http://nagios.manubulon.com/snmp_env.html Regards, Patrick -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Richard Luys-Nagios User Envoyé : jeudi 3 mai 2007 16:07 À : Thomas Guyot-Sionnest; Nagios Userlist Objet : Re: [Nagios-users] Different results from 'check_snmp' running ondifferent servers Problem solved! Here's how: I used snmpget to see what the real errors were: Cannot find module (SNMPv2-TC-v1): At line 11 in /usr/share/snmp/mibs/CISCO-ENVMON-MIB.txt Cannot find module (SNMPv2-SMI-v1): At line 10 in /usr/share/snmp/mibs/CISCO-SMI.txt Strange, these MIB's don't exist on the oldNagios server... I tried to find these files on the internet. If found at all, I had to pay to download them... So at last, I searched for "SNMPv2-TC-v1.txt" and got one link: http://fresh.t-systems-sfr.com/unix/src/privat2/sella_nms-2.0.0.tar.gz/ Instead of downloading this complete tarball, I clicked on the link and got an overview of all the files. Used the browser's search function to find the files needed and opened them on-screen. Copy paste them directly into the mibs-dir on my server in a file with the correct name, and I was done. I still believe there must be a better way to do this, but I couldn't find it :( HTH Richard On Thu, 03 May 2007 15:14:49 +0200, Thomas Guyot-Sionnest <[EMAIL PROTECTED]> wrote: > On 03/05/07 06:06 AM, Richard Luys-Nagios User wrote: >> Hi list, >> >> I have an odd problem, hope someone can shed some light on this. >> >> I'm busy installing a new Nagios server. The old one is running >> Nagios 1.2, and the new one is running 2.9. The used nagios plugins >> on the old server is version 1.3.1, on the new server it is: 1.4.8. >> >> I issue the following check from the old server (the 1.2): >> >> oldNagios:/usr/local/nagios/libexec # ./check_snmp -H switch1 -o >> ciscoEnvMonTemperatureStatusDescr.1005 >> SNMP OK - Switch#1, Sensor#1, Status is GREEN >> >> The exitcode of this check is 0 (OK) >> >> newNagios:/usr/local/nagios/libexec # ./check_snmp -H switch1 -o >> ciscoEnvMonTemperatureStatusDescr.1005 >> SNMP WARNING - Switch#1, Sensor#1, Status is GREEN >> >> Now the exitcode is 1 (WARNING) !!! >> >> Then I issue this check from the new server (the 2.9 installation), >> but with the old plugin (1.3.1): >> newNagios:/usr/local/nagios/libexec.131 # ./check_snmp -H switch1 -o >> ciscoEnvMonTemperatureStatusDescr.1005 >> SNMP WARNING - Switch#1, Sensor#1, Status is GREEN >> >> And again: the exitcode is 1 (WARNING) > > You're checking is a string so normally it always return OK. If it > returns a non-ok status it's most likely because snmpget returned > something on STDERR. use the -v switch to see which command is being > run, and then you can run it yourself to see what's going on (usually > it's MIB parsing errors like illegal characters - there's multiple way > to fix these issues) > > If you want to alert based on the status returned you should rather > use a OID that returns a numeric value like these ones: > > ciscoEnvMonTemperatureStatusValue > ciscoEnvMonTemperatureState > > Thomas -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null