How to intall Suse Monitor

Hi guys, my company recently bought Suse Manager and we get the software from GCP MarketPlace and now we are going to install Suse Monitor, but, where do I could get the Instalation’s Docs of this guy?

@“pedro.andrade@sulamerica.com.br” Hi and welcome to the Forum :slight_smile:
I’m assuming you mean Prometheus and Grafana?
https://documentation.suse.com/external-tree/en-us/suma/4.0/suse-manager/administration/monitoring.html

How can I use Suse Monitor so? just open Prometheus?

@“pedro.andrade@sulamerica.com.br” Hi, you need to read up on the install documentation for Prometheus and install/configure to your requirements, if you following the guide I linked to it should be all good.

I installed the Prometheus on server, I got this on curl:
s10apl296:~ # curl localhost:9090
Found.

s10apl296:~ # curl localhost:9090 -I
HTTP/1.1 405 Method Not Allowed
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Tue, 17 Nov 2020 20:05:55 GMT
Content-Length: 19

But when I try to Enable on SuseManager I get this:
Failed to enable all monitoring services. Some services are still disabled. See the server logs for details.

Can you please help on it?
Ty

@“pedro.andrade@sulamerica.com.br” Did you click on the green button below “Enable services”?

Yes, I clicked on it and showed up that red message upon the page.

@“pedro.andrade@sulamerica.com.br” Ahh, OK. Well you need to use the command systemctl list-units to see the above four that aren’t running eg a tomcat service. I don’t have a SuMA instance running at the moment, so you might have to give more information…

Once you identify the actual names, then look at the status and see if enabled;

systemctl status <some service>

If disabled, then enable and start, you should also be able to do this via YaST.

systemctl status
What is the service?

@“pedro.andrade@sulamerica.com.br” In the list output I expect at least a Tomcat one and postgresql. Have you tried restarting the SuMA instance?

Attached

systemctl status tomcat.service

  • tomcat.service - Apache Tomcat Web Application Container
    Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
    Active: active (running) since Thu 2020-11-12 19:09:17 UTC; 6 days ago
    Main PID: 1198 (java)
    Tasks: 117 (limit: 576)
    CGroup: /system.slice/tomcat.service
    `-1198 /usr/lib64/jvm/jre/bin/java -ea -Xms256m -Xmx1G -Djava.awt.headless=true -Dorg.xml.sax.driver=com.redhat.rhn.frontend.xmlrpc.util.RhnSAXParser -Dorg>

Nov 12 19:10:53 s10apl291 server[1198]: 12-Nov-2020 19:10:53.095 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-0:0:0:0:0:0:0>
Nov 12 19:10:53 s10apl291 server[1198]: 12-Nov-2020 19:10:53.101 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [89,133] milliseconds
Nov 17 19:43:48 s10apl291 sudo[2441]: tomcat : TTY=unknown ; PWD=/usr/share/tomcat ; USER=root ; COMMAND=/usr/sbin/mgr-monitoring-ctl status
Nov 17 19:43:54 s10apl291 sudo[2498]: tomcat : TTY=unknown ; PWD=/usr/share/tomcat ; USER=root ; COMMAND=/usr/sbin/mgr-monitoring-ctl enable {“db_user”:"susemanager>
Nov 17 19:44:25 s10apl291 sudo[2566]: tomcat : TTY=unknown ; PWD=/usr/share/tomcat ; USER=root ; COMMAND=/usr/sbin/mgr-monitoring-ctl enable {“db_user”:"susemanager>
Nov 17 19:45:34 s10apl291 sudo[2716]: tomcat : TTY=unknown ; PWD=/usr/share/tomcat ; USER=root ; COMMAND=/usr/sbin/mgr-monitoring-ctl status
Nov 17 19:46:51 s10apl291 sudo[2817]: tomcat : TTY=unknown ; PWD=/usr/share/tomcat ; USER=root ; COMMAND=/usr/sbin/mgr-monitoring-ctl enable {“db_user”:"susemanager>
Nov 17 19:59:45 s10apl291 sudo[3725]: tomcat : TTY=unknown ; PWD=/usr/share/tomcat ; USER=root ; COMMAND=/usr/sbin/mgr-monitoring-ctl enable {“db_user”:"susemanager>
Nov 17 20:12:06 s10apl291 sudo[4369]: tomcat : TTY=unknown ; PWD=/usr/share/tomcat ; USER=root ; COMMAND=/usr/sbin/mgr-monitoring-ctl status
Nov 17 20:12:12 s10apl291 sudo[4429]: tomcat : TTY=unknown ; PWD=/usr/share/tomcat ; USER=root ; COMMAND=/usr/sbin/mgr-monitoring-ctl enable {“db_user”:"susemanager>
lines 1-18/18 (END)

That is the instant log from when I clicked on buttom and the error poped up:

10.225.143.83 - - [19/Nov/2020:15:02:38 +0000] “POST /rhn/manager/frontend-log HTTP/1.1” 200 16
127.0.0.1 - - [19/Nov/2020:15:02:38 +0000] “GET /rhn/websocket/notifications HTTP/1.1” 101 -
10.245.0.61 - - [19/Nov/2020:15:02:39 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.225.143.83 - - [19/Nov/2020:15:02:43 +0000] “GET /rhn/manager/api/admin/config/monitoring HTTP/1.1” 200 115
10.245.0.61 - - [19/Nov/2020:15:02:54 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.225.143.83 - - [19/Nov/2020:15:02:57 +0000] “POST /rhn/manager/api/admin/config/monitoring HTTP/1.1” 200 115
10.245.0.61 - - [19/Nov/2020:15:03:09 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:03:24 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:03:39 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:03:54 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:04:09 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:04:24 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:04:39 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:04:54 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:05:09 +0000] “GET /rhn/metrics HTTP/1.1” 200 -
10.245.0.61 - - [19/Nov/2020:15:05:24 +0000] “GET /rhn/metrics HTTP/1.1” 200 -