Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVENTS tab display error ["select_nodes" ["<" "report_timestamp" "2017-02-07T13:38:28.066Z"]] is not well-formed: query operator 'select_nodes' is unknown #63

Open
ocontant opened this issue Feb 7, 2017 · 0 comments

Comments

@ocontant
Copy link

ocontant commented Feb 7, 2017

I have an error under EVENTS where no data is showing and this error message is displayed:

################
["select_nodes" ["<" "report_timestamp" "2017-02-07T13:38:28.066Z"]] is not well-formed: query operator 'select_nodes' is unknown
################

puppet-2016.5.1-learning-5.9 VM
puppetexplorer 2.0.0 from CentOS 7 Yum repository


vhost.conf
root@puppetmaster:~ # cat /etc/httpd/conf.d/puppetexplorer.conf
<VirtualHost *:8443>
ServerName puppetmaster.localdomain.loc
ServerAlias puppetmaster

Vhost docroot

DocumentRoot "/usr/share/puppetexplorer"

Directories, there should at least be a declaration for /usr/share/puppetexplorer

<Directory "/usr/share/puppetexplorer">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Require all granted

Logging

ErrorLog "/var/log/httpd/puppetexplorer_error_ssl.log"
ServerSignature Off
CustomLog "/var/log/httpd/puppetexplorer.log" combined

PuppetDB 4 support

RewriteEngine On
RewriteRule ^/api/metrics/v1/mbeans/puppetlabs.puppetdb.query.population:type=default,name=(.*)$ https://%{HTTP_HOST}/api/metrics/v1/mbeans/puppetlabs.puppetdb.population:name=$1 [R=301,L]

Proxy rules

ProxyRequests Off

ProxyPass /api/pdb/query http://localhost:8080/pdb/query
<Location /api/pdb/query>
ProxyPassReverse http://localhost:8080/pdb/query

ProxyPass /api/pdb/meta http://localhost:8080/pdb/meta
<Location /pdb/meta>
ProxyPassReverse http://localhost:8080/pdb/meta

ProxyPass /api/metrics/v1/mbeans http://localhost:8080/metrics/v1/mbeans
<Location /api/metrics/v1/mbeans>
ProxyPassReverse http://localhost:8080/metrics/v1/mbeans

SSL directives

SSLEngine on
SSLCertificateFile "/etc/puppetlabs/puppet/ssl/certs/learning.puppetlabs.vm.pem"
SSLCertificateKeyFile "/etc/puppetlabs/puppet/ssl/private_keys/learning.puppetlabs.vm.pem"
SSLCACertificatepath "/etc/puppetlabs/puppet/ssl/certs"

SSLProxyEngine On
SSLProtocol All -SSLv2 -SSLv3 -TLSv1
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK


puppetexplorer/config.js

root@puppetmaster:~ # cat /usr/share/puppetexplorer/config.js
// List of PuppetDB servers, pairs of name, URL and $http config object
// The first one will be used as the default server
PUPPETDB_SERVERS = [
['production', '/api']
// ['testing', '/']
];

// A list of important facts that you want shown in the node detail view
NODE_FACTS = [
'operatingsystem',
'operatingsystemrelease',
'manufacturer',
'productname',
'processorcount',
'memorytotal',
'ipaddress'
];

// The amount of hours since the last check-in after which a node is considered
// unresponsive
UNRESPONSIVE_HOURS = 2;

// Customisable dashboard panels
// type can be either 'primary', 'success', 'info', 'warning' or 'danger'
// Different types will be displayed with different colors
DASHBOARD_PANELS = [
{
name: 'Unresponsive nodes',
type: 'danger',
query: '#node.report_timestamp < @"now - 2 hours"'
},
{
name: 'Nodes in production env',
type: 'success',
query: '#node.catalog_environment = production'
},
{
name: 'Nodes in non-production env',
type: 'warning',
query: '#node.catalog_environment != production'
}
];

// Google Analytics settings
// GA_TRACKING_ID = 'UA-XXXXXXXX-YY';
// GA_DOMAIN = 'auto';

@ocontant ocontant changed the title EVENTS tab display error related to timestamp malformed EVENTS tab display error ["select_nodes" ["<" "report_timestamp" "2017-02-07T13:38:28.066Z"]] is not well-formed: query operator 'select_nodes' is unknown Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant