Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hey all, I'm trying to get MRTG configured to monitor some server resources. I've configured a .cfg file for CPUs on one server but I'm getting the following error message when I run the file:
root@FreeNag:/usr/home/jobee/Config # /usr/local/bin/mrtg /usr/home/jobee/Config/mrtg_1.1.1.1.cfg
Argument "v4only" isn't numeric in int at /usr/local/lib/perl5/site_perl/5.12.4/SNMP_Session.pm line 197.
backoff (v4only) must be a number >= 1.0 at /usr/local/lib/perl5/site_perl/5.12.4/SNMP_util.pm line 467
root@FreeNag:/usr/home/jobee/Config #
I've looked at those lines and I don't see where I should enter a number (I'm not a Perl guy so maybe it's me):
Line 197= croak ("backoff ($backoff) must be a number >= 1.0")
Line 467= $SNMP_util::Session->set_backoff($backoff)
Could you post /usr/home/jobee/Config/mrtg_1.1.1.1.cfg so that we may have a look?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
You should change them to the numeric oids, which I don't happen to have off hand.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Thank you sreinhardt! Using the numeric OIDs did the trick! I couldn't find any way to convert my original OIDs to numeric OIDs so I ran the following command: snmpwalk -v 2c -On-c public 1.1.1.1 > Server.txt (notice the -On) and then grep'ed COM1 as a landmark and counted down to my ProcessorLoad OIDs. Is there a program or a utility that will convert my OIDs to numeric OIDs and save me some time?
jbruyet wrote: Is there a program or a utility that will convert my OIDs to numeric OIDs and save me some time?
My suggestion would be to do one of the following:
1) Use google. Just search for the mib name and you should find a few website wit hthe numeric oid mentioned.
2) Use a mib browser.
3) Check your device vendor's mib documentation for the device.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.