Create Graphs for this Device/Error in data query
Moderators: Developers, Moderators
-
- Posts: 5
- Joined: Fri Oct 19, 2018 12:55 am
Create Graphs for this Device/Error in data query
After Click "Create Graphs for this Device"
--------------------------------------------------------
Data Query [SNMP - Interface Statistics]
Error in data query.
--------------------------------------------------------
How can i solve this problem?
--------------------------------------------------------
Data Query [SNMP - Interface Statistics]
Error in data query.
--------------------------------------------------------
How can i solve this problem?
Re: Create Graphs for this Device/Error in data query
Is the device status showing as up? Can you post a screenshot?
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
-
- Posts: 5
- Joined: Fri Oct 19, 2018 12:55 am
Re: Create Graphs for this Device/Error in data query
this is the screenshot.
thank you for replying to my question.
thank you for replying to my question.
- Attachments
-
- error
- cacti_error.png (126.73 KiB) Viewed 683 times
Re: Create Graphs for this Device/Error in data query
That basically means that the web site was unable to read the XML file for the interface statistics data query due to permissions or corruption. Verify this (replacing <path_cacti> with your cacti root folder, eg /usr/share/cacti/):
- Goto Console -> Data Collections -> Data Queries
- Edit the SNMP - Interface Statistics query
- Examine the XML Path field which should read:
<path_cacti>/resource/snmp_queries/interface.xml
- Open a shell session and navigate to the folder holding the XML file
- Check that the permissions are such that both the website and the poller (users may be different for each one) are able to read that file
- sudo -u <website user> cat <path_cacti>/resource/snmp_queries/interface.xml
- sudo -u <poller user> cat <path_cacti>/resource/snmp_queries/interface.xml
- If they are both able to read it, make sure that the XML is valid and has not been corrupted.
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
-
- Posts: 5
- Joined: Fri Oct 19, 2018 12:55 am
Re: Create Graphs for this Device/Error in data query
I tried (5) and then i got
/usr/share/cacti/resource/snmp_queries/interface.xml: permission denied
so, i changed the file permission 777. but still i got same answer.
how can i solve this problem?
/usr/share/cacti/resource/snmp_queries/interface.xml: permission denied
so, i changed the file permission 777. but still i got same answer.
how can i solve this problem?
Re: Create Graphs for this Device/Error in data query
Check whether you have SELinux enabled, if so, you may have to set it to either permissive and/or grant permissions to the website user (not the file permissions but selinux permissions).
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
-
- Posts: 5
- Joined: Fri Oct 19, 2018 12:55 am
Re: Create Graphs for this Device/Error in data query
sudo -u <website user> cat <path_cacti>/resource/snmp_queries/interface.xml
I changed the mode of selinux from 'enable' to 'permissive'. Then, Above command line is working. But, the user seems like 'poller user' is not in '/etc/passwd'.
what can i do?
By the way, Really thank you!!!
I changed the mode of selinux from 'enable' to 'permissive'. Then, Above command line is working. But, the user seems like 'poller user' is not in '/etc/passwd'.
what can i do?
By the way, Really thank you!!!
Re: Create Graphs for this Device/Error in data query
The poller user, is normally the one found in /etc/cron.d/cacti (or the equivalent on your system). It will generally be the first column after the last time fields and before the php command.
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
-
- Posts: 5
- Joined: Fri Oct 19, 2018 12:55 am
Re: Create Graphs for this Device/Error in data query
I got a new problem.
I clicked the devices to create graph. but, it doesn't work.
The interfaces is not shown... How can i solve this problem?
I clicked the devices to create graph. but, it doesn't work.
The interfaces is not shown... How can i solve this problem?
- Attachments
-
- error.png (142.8 KiB) Viewed 628 times
Re: Create Graphs for this Device/Error in data query
Try emptying the search filter.
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 2 guests