SNMP Issue

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: SNMP Issue

Post by netniV »

When you create a device, you specify the SNMP settings against it. You can update these individually, or select a few devices and update in mass. You MUST specify the correct SNMP version, community and if required auth details. The remote server must allow SNMP port through its firewall and be configured to receive on the IP used by Cacti.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
MasonL
Posts: 25
Joined: Mon May 13, 2019 1:07 pm
Location: Florida, USA

Re: SNMP Issue

Post by MasonL »

Went through and checked everything. Port 161 is open through windows firewall for SNMP on all servers. All instances have the proper IP address of the server/servers they're connected to. I went through the Paessler tester and looked at my registry to make sure I am using the right snmp version aswell as community in my case. Clearly I have a config issue, I have been trying to go back through the documentation and double check my settings against it with no success. I may have messed up the receiving IP, where do I find the config for that?
Most of what I say is targeted guessing...

Cacti: 1.2.3
OS: Windows Server 2008 r2
MasonL
Posts: 25
Joined: Mon May 13, 2019 1:07 pm
Location: Florida, USA

Re: SNMP Issue

Post by MasonL »

Went around to look for any other weird behavior, found some (hopefully) useful data. As seen below my cacti host CPU graph debugging log shows that the graph should be outputting some sort of data but is not.
CPUusageLOG.PNG
CPUusageLOG.PNG (8.92 KiB) Viewed 1271 times
CPUusageGraph.PNG
CPUusageGraph.PNG (40.79 KiB) Viewed 1271 times
Seems abnormal, no harm in pointing out seemingly odd behavior imo.
Most of what I say is targeted guessing...

Cacti: 1.2.3
OS: Windows Server 2008 r2
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: SNMP Issue

Post by camerabob »

From the run bar type 'services.msc' to open the services snap-in.
step1.png
step1.png (55.45 KiB) Viewed 1267 times
From there go to SNMP Service and select properties
step2.png
step2.png (62.21 KiB) Viewed 1267 times
After that cruise over to the 'Security' tab and fill in the blanks. I wiped out my information, but I'm sure you get it.
step3.png
step3.png (47.24 KiB) Viewed 1267 times
Close all and test again. For localhost, use 127.0.0.1 for IPv4.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
MasonL
Posts: 25
Joined: Mon May 13, 2019 1:07 pm
Location: Florida, USA

Re: SNMP Issue

Post by MasonL »

Ok, this is something I have done already, glad to see I can read. Is there anything I need to do with the SNMP trap service below it?
Most of what I say is targeted guessing...

Cacti: 1.2.3
OS: Windows Server 2008 r2
MasonL
Posts: 25
Joined: Mon May 13, 2019 1:07 pm
Location: Florida, USA

Re: SNMP Issue

Post by MasonL »

Went through my test servers, verified and double-checked everything was alright and replaced 'localhost' with '127.0.0.1' in each. After going through it did actually populate the graphs tab with all my graphs, went from 8 --> 48 graphs but very few actually contain data. The rest just show the '-nan(ind) %' value you can see on the CPU Utilization graph I attached previously. Below I am going to attach a current view of my logs where it shows the snmp returns as U values or "invalid response(s)"
073019.PNG
073019.PNG (56.52 KiB) Viewed 1261 times
PS. If you see this tomorrow Happy Fourth!
Most of what I say is targeted guessing...

Cacti: 1.2.3
OS: Windows Server 2008 r2
MasonL
Posts: 25
Joined: Mon May 13, 2019 1:07 pm
Location: Florida, USA

Re: SNMP Issue

Post by MasonL »

After reading just about every post made in the past year, I think the issue for me lies somewhere in the install. Every other setting I've gone from the ground up and made sure was correct, except for those involving the install. I already had mySQL 5.7 on the cactihost and couldn't delete to reinstall because it was already being used. When I first did the install my boss went through and "set up" the portion in mySQL which included making the schema and, well the issue there is I'm not sure what else was done and he doesn't remember exactly at this point. The only graphs/templates I am getting results on are my Poller Items, Poller Time, Main Poller DS/RRD, processes, logged on users, and uptime.

I ran through automation and cacti setup one of the servers I already have with a different IP, and the SNMP information in the device menu loads! The only issue is I still only get the graphs I mentioned above... That device has all the same SNMP community, version, port, device template setup identically to the other devices I have already. So after about a week of diving I'm still about as lost
Most of what I say is targeted guessing...

Cacti: 1.2.3
OS: Windows Server 2008 r2
Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests