SNMP errors and empty graphs

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
maetrik
Posts: 3
Joined: Tue May 04, 2021 2:01 am

SNMP errors and empty graphs

Post by maetrik »

This is my first Cacti installation and I think I'm almost there.

We're talking Cacti 1.2.16 and it runs on Ubuntu 20.04.2 LTS, NGINX 1.18.0, PHP 7.4.3.

I'm only trying to graph my local machine and I'm specifically trying to graph network traffic and speed. Per day, per week, per month, per year.

So I have created a "Local Linux Machine" device with "SNMP - Interface Statistics" as an associated data query. The re-index method has been set to "Verify All".

At the data sources menu I now have 4 traffic entries and I have created graphs for them. These graphs are empty and what I see are SNMP errors.

I've been using the cmd.php poller and it runs via a cron job.

So I think what I am doing wrong is related to this specific error:

WARNING: Result from SNMP not valid. Partial Result: U

I'd really appreciate some help to get me going.
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: SNMP errors and empty graphs

Post by macan »

maetrik wrote: Tue May 04, 2021 2:50 am This is my first Cacti installation and I think I'm almost there.

We're talking Cacti 1.2.16 and it runs on Ubuntu 20.04.2 LTS, NGINX 1.18.0, PHP 7.4.3.

I'm only trying to graph my local machine and I'm specifically trying to graph network traffic and speed. Per day, per week, per month, per year.

So I have created a "Local Linux Machine" device with "SNMP - Interface Statistics" as an associated data query. The re-index method has been set to "Verify All".

At the data sources menu I now have 4 traffic entries and I have created graphs for them. These graphs are empty and what I see are SNMP errors.

I've been using the cmd.php poller and it runs via a cron job.

So I think what I am doing wrong is related to this specific error:

WARNING: Result from SNMP not valid. Partial Result: U

I'd really appreciate some help to get me going.
Console -> management -> devices -> choose your device and click "Verbose query" in Associated Data Queries on line SNMP - Interface Statistics . Have you got any result?
Let the Cacti grow!
User avatar
maetrik
Posts: 3
Joined: Tue May 04, 2021 2:01 am

Re: SNMP errors and empty graphs

Post by maetrik »

macan wrote: Tue May 04, 2021 3:46 am
maetrik wrote: Tue May 04, 2021 2:50 am This is my first Cacti installation and I think I'm almost there.

We're talking Cacti 1.2.16 and it runs on Ubuntu 20.04.2 LTS, NGINX 1.18.0, PHP 7.4.3.

I'm only trying to graph my local machine and I'm specifically trying to graph network traffic and speed. Per day, per week, per month, per year.

So I have created a "Local Linux Machine" device with "SNMP - Interface Statistics" as an associated data query. The re-index method has been set to "Verify All".

At the data sources menu I now have 4 traffic entries and I have created graphs for them. These graphs are empty and what I see are SNMP errors.

I've been using the cmd.php poller and it runs via a cron job.

So I think what I am doing wrong is related to this specific error:

WARNING: Result from SNMP not valid. Partial Result: U

I'd really appreciate some help to get me going.
Console -> management -> devices -> choose your device and click "Verbose query" in Associated Data Queries on line SNMP - Interface Statistics . Have you got any result?
The output:

Code: Select all

Total: 0.000000, Delta: 0.000000, Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [4].
Total: 0.000000, Delta: 0.000000, Found Type = '3' [SNMP Query].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.010000, Delta: 0.000000, Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count:
Total: 0.010000, Delta: 0.010000, Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 0
Total: 0.010000, Delta: 0.000000, No SNMP data returned
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: SNMP errors and empty graphs

Post by macan »

You have to configure snmp on linux machine:
https://kifarunix.com/quick-way-to-inst ... ntu-20-04/
Let the Cacti grow!
User avatar
maetrik
Posts: 3
Joined: Tue May 04, 2021 2:01 am

Re: SNMP errors and empty graphs

Post by maetrik »

macan wrote: Wed May 05, 2021 2:18 am You have to configure snmp on linux machine:
https://kifarunix.com/quick-way-to-inst ... ntu-20-04/
Thanks! I had that configured but turns out it was not properly configured.

Still have to tweak some settings but I got it working by starting out with a very default config;

Code: Select all

rocommunity public
rocommunity6 public
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: SNMP errors and empty graphs

Post by macan »

maetrik wrote: Wed May 05, 2021 2:30 am
macan wrote: Wed May 05, 2021 2:18 am You have to configure snmp on linux machine:
https://kifarunix.com/quick-way-to-inst ... ntu-20-04/
Thanks! I had that configured but turns out it was not properly configured.

Still have to tweak some settings but I got it working by starting out with a very default config;

Code: Select all

rocommunity public
rocommunity6 public
For security is better to use other than default community string (public).
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests