[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: Moderators, Developers

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

#61 Post by fmangeant » Tue Dec 04, 2007 2:53 pm

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

#62 Post by Smux » Tue Dec 04, 2007 3:38 pm

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

#63 Post by aixuser » Thu Jan 31, 2008 3:15 pm

> 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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#64 Post by gandalf » Fri Feb 01, 2008 7:19 am

Please search bullfreeware
Reinhard

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

#65 Post by fmangeant » Fri Feb 01, 2008 8:06 am

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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#66 Post by gandalf » Fri Feb 01, 2008 9:31 am

I've updated http://docs.cacti.net accordingly
Reinhard

utdrmac
Posts: 11
Joined: Wed Dec 19, 2007 12:31 pm

#67 Post by utdrmac » Tue Feb 26, 2008 1:32 pm

Nice HOWTO!

But 'exec' is now deprecated. Got a HOWTO on using 'extend' ?

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

#68 Post by fmangeant » Wed Feb 27, 2008 8:25 am

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:             [email protected]

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

#69 Post by utdrmac » Wed Feb 27, 2008 10:41 am

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

#70 Post by Lonlie » Tue Aug 12, 2008 7:48 am

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

#71 Post by Icer » Wed Sep 17, 2008 12:31 pm

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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#72 Post by gandalf » Wed Sep 17, 2008 2:31 pm

Please ask this question at the net-snmp-user mailing list
Reinhard

quequotion
Posts: 5
Joined: Fri Oct 17, 2008 6:38 am

How?

#73 Post by quequotion » Thu Feb 19, 2009 7:26 am

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: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: How?

#74 Post by gandalf » Fri Feb 20, 2009 3:53 pm

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

#75 Post by allta » Mon Feb 23, 2009 5:53 am

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