I have a monitoring system using mrtg (mrtg-2.9.25-2mdk) installed on my
computers (linux mandrake 9.0). this latest works fine using little bash
scripts for probing different parameters.
I recently upgraded systems with snmp to enhance probes from only the master
probe computer (before, each computer's bash script wrote data on a shared
directory)
ucd-snmp-4.2.3-4mdk
ucd-snmp-utils-4.2.3-4mdk
libsnmp0-4.2.3-4mdk
I succeeded in running both mrtg and snmp, but for limited amounts of probes
only;
for example System load average is accessed in /etc/mrtg_config by :
(.....)
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt,
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
(.....)
#--------- System load average --------------------
Target[loadavg]:.1.3.6.1.4.1.2021.10.1.5.1&.1.3.6.1.4.1.2021.10.1.5.1:public
@localhost
(.....)
and it works perfectly
but I need to snmp-probe other parameters such as system uptime for example
and all info I could gather over google was not working, I have tested all
the following commands from within /etc/mrtg_config:
Target[uptime]: 1.3.6.1.2.1.1.3.0&1.3.6.1.2.1.1.3.0:public@localhost
Target[uptime]: system.SysUpTime.0&system.sysUpTime:public@localhost
Target[uptime]:hrSystemUptime&hrSystemUptime:public@localhost
Target[uptime]:.1.3.6.1.4.1.2021.8.1.101.1&.1.3.6.1.4.1.2021.8.1.101.1:publi
c@localhost
Target[uptime]: system.sysUpTime.0:public@localhost
all of these created long lists of errors when running mrtg
/etc/mrtg_config.
that seems to me really strange because systemuptime is easyly accessed when
tested from prompt only via snmp
# snmpget -v1 -c public localhost system.sysUpTime.0
here is my question:
where (I did not find on google) can I find a list of detailed snmp command
probes accessible from mrtg and which MIB file am I supposed to load. Notice
that for system uptime I know that for some commands the result differs from
systemuptime to snmp uptime .That makes no difference to me because snmp is
started at boot.
thanks for your posts