[HOWTO] Install and configure the Net-SNMP agent for Unix

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you try the lib/functions.php from this thread ?

If that doesn't work, I guess you'll have to open a bug :oops:
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Smux
Posts: 40
Joined: Mon Sep 10, 2007 2:47 pm

Post by Smux »

No, this issue dont work for me. I create a issue for my problem here
aixuser
Posts: 3
Joined: Thu Jan 31, 2008 3:06 pm

Re:[HOWTO] Install and configure the Net-SNMP agent for Unix

Post by aixuser »

> AIX Packages are available in the University of California repository:

This site is no longer available.
Is there any other site or place to download?

Thanks!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please search bullfreeware
Reinhard
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I've updated the HowTo with Bull links.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I've updated http://docs.cacti.net accordingly
Reinhard
utdrmac
Posts: 11
Joined: Wed Dec 19, 2007 12:31 pm

Post by utdrmac »

Nice HOWTO!

But 'exec' is now deprecated. Got a HOWTO on using 'extend' ?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

in fact 'exec' still works with 5.4 :

Code: Select all

$ /usr/sbin/snmpd --version

NET-SNMP version:  5.4.1
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net

Code: Select all

$ cat /etc/snmp/snmpd.conf
rocommunity public
disk /
exec foo /tmp/foo.sh

Code: Select all

$ snmpwalk -v 1 -c public localhost exttable
UCD-SNMP-MIB::extIndex.1 = INTEGER: 1
UCD-SNMP-MIB::extNames.1 = STRING: foo
UCD-SNMP-MIB::extCommand.1 = STRING: /tmp/foo.sh
UCD-SNMP-MIB::extResult.1 = INTEGER: 0
UCD-SNMP-MIB::extOutput.1 = STRING: 123
UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0)
UCD-SNMP-MIB::extErrFixCmd.1 = STRING:
But the 'exec' keyword does not work anymore with custom OIDs...

I'll update the HowTo soon.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
utdrmac
Posts: 11
Joined: Wed Dec 19, 2007 12:31 pm

Post by utdrmac »

But the 'exec' keyword does not work anymore with custom OIDs...
Exactly. And when I use 'extend' like this:

Code: Select all

extend .1.3.6.1.4.1.2021.69 sysLoad /root/sysload_snmp.sh
I get incredibly long OIDs like this:

Code: Select all

.1.3.6.1.4.1.2021.69.3.1.1.13.114.101.106.101.99.116.84.114.97.102.102.105.99
It works; just doesn't look right.
Lonlie
Posts: 23
Joined: Thu Jun 05, 2008 3:36 am
Location: France

Post by Lonlie »

Hi

Cacti is installed on Xp et I want to recover informations from CentOs.
When I save a new device, I have a snmp error.

I followed the tutorial :

com2sec Local 192.168.1.105 public
group ROGroup v1 Local
view all included .1
access ROGroup "" v1 noauth exact all none none


I saved and I restarted the snmp Daemon ...
Icer
Posts: 2
Joined: Sun Sep 14, 2008 7:34 pm

Post by Icer »

Hi,

I did an snmpwalk on the .1.3.6.1.4.1.2021 (ucdavis)
to check all the stuff that is available.
But the extTable 1.3.6.1.4.1.2021.8 doesn't seem to be there.
prTable and dskTable are there but not extTable.
How can I add this part?

ty
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please ask this question at the net-snmp-user mailing list
Reinhard
quequotion
Posts: 5
Joined: Fri Oct 17, 2008 6:38 am

How?

Post by quequotion »

I can't seem to understand how any of this works.

One point in particular confounds me: How do you know the OID of any particular process? Is there some way to list all of the OIDs currently in use, or a way to get an OID for a process? Would process x have the same OID on every machine or a unique one on any machine running it?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: How?

Post by gandalf »

quequotion wrote:I can't seem to understand how any of this works.

One point in particular confounds me: How do you know the OID of any particular process? Is there some way to list all of the OIDs currently in use, or a way to get an OID for a process? Would process x have the same OID on every machine or a unique one on any machine running it?
No. But if you create a script that first examines all "process name to index" correlations, you will then know the index to use for e.g. CPU usage.
Reinhard
allta
Posts: 3
Joined: Fri Oct 24, 2008 12:41 am

Post by allta »

For me, I've been struggling to graph the snmp "STRING" outputs.
For example:
snmpwalk -v2c -c cdsro228 1.2.3.4 .1.3.6.1.4.1.2021.8.1.101.2
UCD-SNMP-MIB::extOutput.2 = STRING: 10

I setup the SNMP OID Graph Template as stated in the http://forums.cacti.net/viewtopic.php?t=15353 webpage

However, my graphs aren't showing up. I'm getting nan, but whenever the snmp result changes, I see a spike in my graph and then it goes back to zero.

Ideally, I am expecting result between 0 and 100, but whenever this spike happens, I see something like 70m 50u etc.

Is there anything I'm getting wrong? I've tried exec, extend, pass commands of snmp and I'm not making headway at all.

Any Help will be highly appreciated.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests