[HOWTO] Install and configure the Net-SNMP agent for Unix
Moderators: Developers, Moderators
Now here is something intresting. Jazz is still showing the cacti hosts loads, but I decided to do something differant. I created a template for Linux servers which includes free disk, cpu usage, load and memory usage. In other words everything I'm monitoring in Jazz (the template is kind of a clone of what I have monitored for jazz).
I added a new server, and everything is reported correctly (including load).
Thanks alot for your help. I believe everything you have said has been correct, and this seems to be related to the position of the planets or something similar.
I added a new server, and everything is reported correctly (including load).
Thanks alot for your help. I believe everything you have said has been correct, and this seems to be related to the position of the planets or something similar.
I think I have finally figured what's wrong. I don't think it was showing the cacti hosts load at any point, rather the logic behind the graph is a bit skewed, and the resulting images happened to match the load in the cacti host.
How much load does this machine have? The graph seems to imply there is (or has recently been) a load of around 4. In reality load is all the time around 1 (+ - 0.5).
I might be mistaken, but isn't this summing up 1, 5 and 15 minute load averigies? I don't know what the correct way to do this would be, but this kind of skews the results.
How much load does this machine have? The graph seems to imply there is (or has recently been) a load of around 4. In reality load is all the time around 1 (+ - 0.5).
I might be mistaken, but isn't this summing up 1, 5 and 15 minute load averigies? I don't know what the correct way to do this would be, but this kind of skews the results.
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
You're correct : this graph uses STACKS, so values for 1, 5 and 15 minute load averages seem to be added.kamina wrote:I might be mistaken, but isn't this summing up 1, 5 and 15 minute load averigies? I don't know what the correct way to do this would be, but this kind of skews the results.
I agree, IMHO it's not the perfect way of displaying data...
[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]
[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]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Modify the graph template (use AREA instead of STACK for last 2).
[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]
[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]
No success yet
Sorry, but it doesn't helpd at all. Already no snmp access from remote.carpenike wrote:Try adding this to your snmpd.conf:
agentaddress
Re: HowTo: install and configure the Net-SNMP agent
You may find this handy. Documentation is rather limited for it and I didn't find much out from Google.
Suppose you want to get a counter from an arbitrary log file based on an arbitrary string. For example you want to get Spam Assassin stats out of spamd.log here's a simple way without additional scripts:
Put this into snmpd.conf:
-----------------------------
# Spamassassin (spamd)
logmatch saSpam /var/log/spamd/spamd.log 120 identified spam
logmatch saNotspam /var/log/spamd/spamd.log 120 clean message
-----------------------------
The syntax is:
logmatch <name> <logfile> <refresh in seconds> <regex>
Here's some more examples:
# Exim
logmatch eximIn /var/log/mail/mail.log 120 <=
logmatch eximOut /var/log/mail/mail.log 120 [-=]>
# SA-Exim
logmatch saeRej /var/log/mail/mail.log 120 SA: Action: permanently rejected message
logmatch saeTRej /var/log/mail/mail.log 120 SA: Action: temporarily rejected message
logmatch saeTag /var/log/mail/mail.log 120 SA: Action: flagged as Spam but accepted
logmatch saeDrop /var/log/mail/mail.log 120 SA: Action: silently tossed message
logmatch saeNoRun /var/log/mail/mail.log 120 SA: Action: Not running SA because SAEximRunCond
logmatch saeTeer1 /var/log/mail/mail.log 120 SA: Action: teergrubed sender for
logmatch saeTeer2 /var/log/mail/mail.log 120 SA: Action: teergrubed sender until full configured duration of
logmatch saeTimeOut /var/log/mail/mail.log 120 SA: Action: spamd took more than
logmatch saeFail /var/log/mail/mail.log 120 SA: Action: SA didn't successfully run against message
logmatch saeSize /var/log/mail/mail.log 120 SA: Action: check skipped due to message size
logmatch saeClean /var/log/mail/mail.log 120 SA: Action: scanned but message isn't spam
---------------------------------------
This will show you the tree:
snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.16
I tend to use .1.3.6.1.4.1.2021.16.2.1.5.1 etc which seem to be the "global" count but there are quite a few others which give say integers instead of counter32 or the count just for the last run and so on.
Suppose you want to get a counter from an arbitrary log file based on an arbitrary string. For example you want to get Spam Assassin stats out of spamd.log here's a simple way without additional scripts:
Put this into snmpd.conf:
-----------------------------
# Spamassassin (spamd)
logmatch saSpam /var/log/spamd/spamd.log 120 identified spam
logmatch saNotspam /var/log/spamd/spamd.log 120 clean message
-----------------------------
The syntax is:
logmatch <name> <logfile> <refresh in seconds> <regex>
Here's some more examples:
# Exim
logmatch eximIn /var/log/mail/mail.log 120 <=
logmatch eximOut /var/log/mail/mail.log 120 [-=]>
# SA-Exim
logmatch saeRej /var/log/mail/mail.log 120 SA: Action: permanently rejected message
logmatch saeTRej /var/log/mail/mail.log 120 SA: Action: temporarily rejected message
logmatch saeTag /var/log/mail/mail.log 120 SA: Action: flagged as Spam but accepted
logmatch saeDrop /var/log/mail/mail.log 120 SA: Action: silently tossed message
logmatch saeNoRun /var/log/mail/mail.log 120 SA: Action: Not running SA because SAEximRunCond
logmatch saeTeer1 /var/log/mail/mail.log 120 SA: Action: teergrubed sender for
logmatch saeTeer2 /var/log/mail/mail.log 120 SA: Action: teergrubed sender until full configured duration of
logmatch saeTimeOut /var/log/mail/mail.log 120 SA: Action: spamd took more than
logmatch saeFail /var/log/mail/mail.log 120 SA: Action: SA didn't successfully run against message
logmatch saeSize /var/log/mail/mail.log 120 SA: Action: check skipped due to message size
logmatch saeClean /var/log/mail/mail.log 120 SA: Action: scanned but message isn't spam
---------------------------------------
This will show you the tree:
snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.16
I tend to use .1.3.6.1.4.1.2021.16.2.1.5.1 etc which seem to be the "global" count but there are quite a few others which give say integers instead of counter32 or the count just for the last run and so on.
HP-UX probleme
please how i can use it?
i have untar the file
net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz
on my root file /
and how i create a path for /usr/local/bin
now i can make snmpwalk
but i can change my
/etc/snmpd.conf
what i need to make now??
to lunch net-snmpd?
please how i can use it?
i have untar the file
net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz
on my root file /
and how i create a path for /usr/local/bin
now i can make snmpwalk
but i can change my
/etc/snmpd.conf
what i need to make now??
to lunch net-snmpd?
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
AFAIK snmpd.conf on HP-UX is located in /usr/local/share/snmp
Once configured, launch the agent :
AFAIK snmpd.conf on HP-UX is located in /usr/local/share/snmp
Once configured, launch the agent :
Code: Select all
# /usr/local/sbin/snmpd
[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]
[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]
i try but nothing
i add this on my /etc/snmpd.conf
no date
when i find snmp on my Hp-ux i found this maybe help?
i add this on my /etc/snmpd.conf
and i restart snmpdproc httpd
but no change when i lunch the prTable i have nothing# /usr/local/sbin/snmpd
no date
when i find snmp on my Hp-ux i found this maybe help?
?root@root:/sbin/init.d # ll Snmp*
-r-xr-xr-x 1 bin bin 2589 Aug 15 2003 SnmpFddi4
-r-xr-xr-x 1 bin bin 6617 Dec 16 2002 SnmpHpunix
-r-xr-xr-x 1 bin bin 4558 Dec 16 2002 SnmpMaster
-r-xr-xr-x 1 bin bin 6727 Dec 16 2002 SnmpMib2
-r-xr-xr-x 1 bin bin 6631 Dec 16 2002 SnmpTrpDst
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
When installing Net-SNMP on HP-UX, you have to :
- stop the native HP-UX SNMP agent
- configure /usr/local/share/snmp/snmpd.conf
- run /usr/local/sbin/snmpd
[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]
[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]
i think i have probeleme with the install
i download this files :
net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz
and i extract it on my root file system
in /
and nothing more
i think my install are not good?
i download this files :
net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz
and i extract it on my root file system
in /
and nothing more
i think my install are not good?
|Cacti Version - 0.8.6j||Plugin Architecture - 1.1||Poller Type - CMD.php|
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
|os - Red hat 4es | |Web Server - Apache/2.0.52 (Red Hat)|
|PHP - 4.3.9| |MySQL - 4.1.20| |RRDTool - 1.2.13||SNMP - 5.1.2|
|Plugins| Host Info (hostinfo - v0.1)
Who is online
Users browsing this forum: No registered users and 0 guests