|
From: Reinhard S. <Rei...@te...> - 2006-03-26 09:44:55
|
Mike Jimenez wrote: > Hello Reinhard, > > When I run that command it returns the following results. > > End of MIB > > Thanks > > Mike > > -----Original Message----- > From: cac...@li... > [mailto:cac...@li...] On Behalf Of Reinhard > Scheck > Sent: Saturday, March 25, 2006 5:55 AM > To: cac...@li... > Subject: Re: [cacti-user] monitor linux disks on windows cacti > > Please run > snmpwalk -c <your community string> -v 1 <target host> > .1.3.6.1.4.1.2021.9.1.1 > > (all on one line) from command line (at least on linux this will work) > > Reinhard > > Mike Jimenez wrote: > >>Hello Jeremy, >> >> >> >>What would be the command to run the manual query? >> >> >> >>Should I just run it from command prompt on the Windows machine? >> >> >> >>Thanks >> >> >> >>Mike >> >> >> >>________________________________ >> >>From: cac...@li... >>[mailto:cac...@li...] On Behalf Of Pavleck, >>Jeremy D. >>Sent: Thursday, March 23, 2006 10:18 AM >>To: cac...@li... >>Subject: RE: [cacti-user] monitor linux disks on windows cacti >> >> >> >>What happens when you manually query that oid? > > (.1.3.6.1.4.1.2021.9.1.1) > >>- if all goes well, you should just receive a number for each slice. >> >> >> >>Jeremy D. Pavleck >>Network Engineer >>System Management >> >>Direct Line: 612-977-5881 >>Toll Free: 1-888-CAPELLA ext. 5881 >>Fax: 612-977-5060 >>E-mail: jer...@ca... <mailto:jer...@ca...> > > >> >>Capella University >>225 South 6th Street, 9th Floor >>Minneapolis, MN 55402 >> >>www.capella.edu <http://www.capella.edu/> >> >>If you have a monitoring request, placing [Monitoring Request] in the >>subject line ensures the fastest response. >> >> >> >> >> >>________________________________ >> >>From: cac...@li... >>[mailto:cac...@li...] On Behalf Of Mike >>Jimenez >>Sent: Wednesday, March 22, 2006 4:28 PM >>To: cac...@li... >>Subject: [cacti-user] monitor linux disks on windows cacti >> >>Hello, >> >> >> >>I am trying to monitor my Redhat Linux partitions from my cacti box >>running on windows. >> >> >> >>Cacti Server: >> >> >> >>cacti-0.8.6f >> >>cacti-cactid-0.8.6e >> >>net-snmp-5.1.3-1.win32 >> >>apache_2.0.54-win32-x86 >> >>rrdtool-1.0.49-win32-bin >> >>php-4.4.0-Win32 >> >> >> >>Linux Server: >> >>Red Hat Enterprise Linux ES release 4 >> >>NET-SNMP version: 5.1.2 >> >> >> >>The data queries appear to be working but when I try and create the >>graphs the partions do not show up. >> >> >> >> >> >>Data Query Debug Information >> >>+ Running data query [2]. >>+ Found type = '3' [snmp query]. >>+ Found data query XML file at >>'C:\Apache2\htdocs\cacti/resource/snmp_queries/net-snmp_disk.xml' >>+ XML file parsed ok. >>+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.9.1.1' >>+ Located input field 'dskIndex' [walk] >>+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.9.1.1' >>+ Found item [dskIndex='Unknown value type'] index: >>enterprises.ucdavis.dskTable.dskEntry.dskIndex [from value] >>+ Located input field 'dskPath' [walk] >>+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.9.1.2' >>+ Found item [dskPath='Unknown value type'] index: >>enterprises.ucdavis.dskTable.dskEntry.dskPath [from value] >>+ Located input field 'dskDevice' [walk] >>+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2021.9.1.3' >>+ Found item [dskDevice='Unknown value type'] index: >>enterprises.ucdavis.dskTable.dskEntry.dskDevice [from value] >>+ Found data query XML file at >>'C:\Apache2\htdocs\cacti/resource/snmp_queries/net-snmp_disk.xml' >>+ Found data query XML file at >>'C:\Apache2\htdocs\cacti/resource/snmp_queries/net-snmp_disk.xml' >>+ Found data query XML file at >>'C:\Apache2\htdocs\cacti/resource/snmp_queries/net-snmp_disk.xml' >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>Data Query [ucd/net - Get Monitored Partitions] >> >> >> > > <http://cacti.vpi.net/cacti/graphs_new.php?action=query_reload&id=2&host > >>_id=16> >> >>Index >> >>Mount Point >> >>Device Name >> >> >> >> >> >> >> >> >> >>Unknown value type >> >> >> >> >> >> >> >>Unknown value type >> >> >> >> >> >> >> >>Unknown value type >> >> >> >> >> >> >> >> >> >> >> >>My snmp.conf contains the following in the disk checks area >> >> >> >>disk / 10000 >> >> >> >>If someone could let me know what I am doing wrong I would really >>appreciate it. >> >> >> >> >> >> >> >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > cacti-user mailing list > cac...@li... > https://lists.sourceforge.net/lists/listinfo/cacti-user > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > cacti-user mailing list > cac...@li... > https://lists.sourceforge.net/lists/listinfo/cacti-user > So the disk option is not configured. Here's a copy of a snippet of my /etc/snmp/snmpd.conf that should help you: ############################################################################### # disk checks # # The agent can check the amount of available disk space, and make # sure it is above a set limit. # disk PATH [MIN=100000] # # PATH: mount path to the disk in question. # MIN: Disks with space below this value will have the Mib's errorFlag set. # Default value = 100000. # Check the / partition and make sure it contains at least 10 megs. #disk / 10000 # % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.9 # enterprises.ucdavis.diskTable.dskEntry.diskIndex.1 = 0 # enterprises.ucdavis.diskTable.dskEntry.diskPath.1 = "/" Hex: 2F # enterprises.ucdavis.diskTable.dskEntry.diskDevice.1 = "/dev/dsk/c201d6s0" # enterprises.ucdavis.diskTable.dskEntry.diskMinimum.1 = 10000 # enterprises.ucdavis.diskTable.dskEntry.diskTotal.1 = 837130 # enterprises.ucdavis.diskTable.dskEntry.diskAvail.1 = 316325 # enterprises.ucdavis.diskTable.dskEntry.diskUsed.1 = 437092 # enterprises.ucdavis.diskTable.dskEntry.diskPercent.1 = 58 # enterprises.ucdavis.diskTable.dskEntry.diskErrorFlag.1 = 0 # enterprises.ucdavis.diskTable.dskEntry.diskErrorMsg.1 = "" # ----------------------------------------------------------------------------- so disk / should do the trick Reinhard |