opserver / Opserver

Stack Exchange's Monitoring System
https://opserver.github.io/Opserver/
MIT License
4.51k stars 827 forks source link

How do I add Apps to my nodes? Using WMI Provider #259

Open DanielFitzgerald opened 7 years ago

DanielFitzgerald commented 7 years ago

How are Apps added to nodes? I'm using WMI provider.

I'm also having trouble getting categories working in the DashBordSettings.json. My configuration is;

{
  "providers": {
"wmi": {
  "nodes": [
    "WEB-01",
    "WEB-02"
    "API-01",
    "API-02",
    "API-03"
  ],
  "staticDataTimeoutSeconds": 300,
  "dynamicDataTimeoutSeconds": 5,
  "historyHours": 2,
  "username": "====",
  "password": "===="
},
"excludePattern": "redis|\\.com",
"cpuWarningPercent": 50,
"cpuCriticalPercent": 60,
"memoryWarningPercent": 90,
"memoryCriticalPercent": 90,
"diskWarningPercent": 85,
"diskCriticalPercent": 95,
"showVolumePerformance": true,
"categories": [
  {
    "name": "Microservices",
    "pattern": "/WEB/",
    "cpuWarningPercent": 25,
    "memoryWarningPercent": 75
  },
],
"perNodeSettings": [
  {
    "pattern": "EDGE\\d+ \\(INAP\\)",
    "primaryInterfacePattern": "GigabitEthernet0/0/0"
  }
]
} }

The pattern doesn't seem to pick up WEB.

I can write a WMI query to get the processes and their respective memory and CPU, is that how Apps is supposed to be populated?

Thanks

NickCraver commented 7 years ago

Can you explain what you mean by "apps" here?

DanielFitzgerald commented 7 years ago

Sorry, I mean the Apps property on the Node class, StackExchange.Opserver.Data.Dashboard.Application. I don't see anything in WmiDataProvider.Polling which gets it but it's in WmiDataProvider.Data, is this just here to populate with a wmi query or is it specific to the Orion provider or, which is more likely, am I missing something? Thanks.