LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 04-13-2007, 07:15 PM   #1
Lhlalyam
LQ Newbie
 
Registered: Mar 2007
Posts: 29

Rep: Reputation: 15
Question cacti agents


Hello Everyone...

I've been working to setup up cacti here on my test server.

I've installed Fedora Core 6 with Cacti-0.8.6j

after installing all the required tools and figuring out how to setup the database, I'm a bit confused in setting up the agents.

The computers I want to identify are Windows Systems. I've enabled the snmp.

This is a guide that I have been following but am not fully certain if it is correct:

http://cactiusers.org/wiki/SNMPWindows

Under security: I added a community called cacti and assumed that it should be notify

Under traps: I again added a community called cacti and added the trap destination of my cacti server

When I go to add the system as a device in the Cacti Admin Panel, it informs me that there is an snmp error. I did ensure that it was under the cacti snmp community.

When I look at the settings, nothing shows being created for graphs. I tried different settings.

I am trying to have my Windows XP laptop that is wireless based communicate with the linux cacti server... and i used the settings for Associated Data Queries:

Karlnet
Netware
SNMP

Just to see if anything would show up. Debugging states Verbose Query and Status = Success

my question: How do i get it going for Windows to connect to my cacti server?
 
Old 04-14-2007, 03:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well your best bet is normally to divide the problem in to two, in order to see if it's a cacti issue or a windows issue. use a mib browser, any will do on either windows or linux, and just manually query the device. you'll then be able to see if windows snmp is responding correctly for what you want to be able to obtain. under linux you should already have snmpwalk installed, so try "snmpwalk -v2c -ccacti 1.2.3.4" where 1.2.3.4 is the windows box and cacti is the community name. if that starts spewing out snmp oids then you're fine from the windows side. often you can have issues in terms of versions of snmp in use. v3 is still rare (and complicated) but v1 and v2c are standard and simple to configure. check you can successfully walk with both versions, that can often be a point of difference.
 
Old 04-15-2007, 03:21 PM   #3
Lhlalyam
LQ Newbie
 
Registered: Mar 2007
Posts: 29

Original Poster
Rep: Reputation: 15
Thanx Acid.

I'll see where the configuration problems are. Excellent information you shared. Honestly "ebarrasingly", I hadn't heard of the MIB browser.

I do know that I have SNMPwalk v2 installed on my linux box. It was one of the path requirments needed when I began the install process through the administration panel. I had to use yum to find the location for its "i believe" binary files. Once found, I corrected the path.

Lhlalyam.
 
Old 04-19-2007, 05:40 PM   #4
Lhlalyam
LQ Newbie
 
Registered: Mar 2007
Posts: 29

Original Poster
Rep: Reputation: 15
Tried out the snmpwalk command on the linux server to the Windows IP address and it stated that it could not communicate with the requested ip.

So, I checked the snmp agent configuration on the Windows Agent and it all seemed good. So, I checked into the event logs and found the following:

SNMP Event Log Extension Agent has terminated

I also tried the MIB Browser on the Windows agent machine and nothing seem to happen at all. No activity that is.

[EDIT]I also pinged the Server machine from the Windows machine and had success. Still no SNMP though.

would anyone have any other ideas?

Last edited by Lhlalyam; 04-19-2007 at 06:42 PM.
 
Old 04-20-2007, 03:11 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well if would look like an issue within the windows box then, not cacti etc... personal firewall or aynthing?
 
Old 04-20-2007, 01:23 PM   #6
Lhlalyam
LQ Newbie
 
Registered: Mar 2007
Posts: 29

Original Poster
Rep: Reputation: 15
I've disabled the firewall but nothing yet. The only difference is that I'm on wireless. I'm not to sure if this makes a difference. Lastly, should community name be the same as a domain or workgroup? or does this really matter?

Lhlalyam
 
Old 04-20-2007, 02:30 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well many wireless adsl routers enable some forms of firewalled seperation incase the wireless is compromised, but i'd expect that to cover pings too. and no the community name is irrelevant, just as long as it's the same... it's just a nominal password-like string, (why would you think that an open standard had to relate to a M$ proprietary concept??)
 
Old 04-20-2007, 07:56 PM   #8
Lhlalyam
LQ Newbie
 
Registered: Mar 2007
Posts: 29

Original Poster
Rep: Reputation: 15
Ok... I've done some research on the router. It is a WRT54GC. What I did find is that it doesn't accept incoming snmp requests but what I didn't find is if it didn't accept LAN wirless snmp requests.

With the MIB Browser, I received information when I entered the IP Address: 127.0.0.1 with an OID of .1.3.6.1.2.1.1.1.0 and Walk. This was to test if the machine itself could receive SNMP requests.

I also did the IP address which is 192.168.1.100 and an OID of .1.3.6.1.2.1.1.1.0 and this worked also.

When I went to the linux server and did the command:
snmpwalk -v2c -ccacti 192.168.1.100
I received the following error:
Timeout: No Response from 192.168.1.100


I also did a simple command of:
snmpwalk 192.168.1.100
An error that came up was:
snmpwalk: Timeout

so, i know snmp is working on the machine, i can only assume it is the router causing this. how would i get around this to make snmp available for the LAN?

Lhlalyam
 
Old 04-21-2007, 04:29 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
last check would be to see if the server is recieveing the snmp packets. run wireshark on it and look for the incoming packets.
 
Old 05-16-2007, 05:08 PM   #10
Lhlalyam
LQ Newbie
 
Registered: Mar 2007
Posts: 29

Original Poster
Rep: Reputation: 15
is wireshark available in text mode only? just curious because my server doesn't use any graphics... text only

Lhlalyam
 
Old 05-16-2007, 05:17 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
yes, it's called tshark. wireshark comes normally in two packages, wireshark and wireshark-gnome. with just wireshark installed, you don't need X, and only have the tshark command to run in a console. the wireshark-gnome adds the actual wireshark program itself.
 
Old 05-24-2007, 11:23 PM   #12
bclinton
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by Lhlalyam
Under security: I added a community called cacti and assumed that it should be notify
Could this be the problem? Try setting the security to 'read only' and see if you can see the computer in Cacti or the MIB browser.
 
Old 06-22-2007, 02:09 PM   #13
Lhlalyam
LQ Newbie
 
Registered: Mar 2007
Posts: 29

Original Poster
Rep: Reputation: 15
I tried using tshark on the cacti server with the following commands:

tshark -n -i eth0 -x port 161

and

tshark -n -i eth1 -x port 161

both came up with the same error:

tshark: the capture session could not be initiated (ioctl: No such device).

I did this command through putty and as root.

I also changed the settings on my windows clients to remove cacti from security but nothing. Any other ideas? Would definitely be nice to get this system going. I've been taking my time at this... as you may note the slow responses by the dates of my posts
 
Old 06-22-2007, 03:49 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well does eth1 exist? that's clearly what the cited error is.
 
Old 06-22-2007, 04:46 PM   #15
Lhlalyam
LQ Newbie
 
Registered: Mar 2007
Posts: 29

Original Poster
Rep: Reputation: 15
I know eth0 shows that it has a fixed IP address as shown in ifconfig. I setup the server with a static ipaddress and it is able to receive updates when I need. I've also started the service snmpd... not to sure if this makes a difference

Lhlalyam
 
  


Reply

Tags
cacti, fedora 6, linux, monitoring, network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cacti installation on Debian Sarge: create cacti database error Yahweee Debian 2 08-26-2008 07:35 AM
LXer: Change Agents - people who will shape IT in the coming year LXer Syndicated Linux News 1 12-19-2005 11:12 PM
Webalizer truncates User Agents to 61 characters deoren Linux - General 4 01-17-2005 06:55 AM
Which mail agents should I use? orakio Linux - Newbie 2 03-13-2004 11:21 AM
agents jamna Linux - Newbie 1 11-29-2001 06:28 AM


All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration