Jeroen Gouma

  • Posts

  • Joined

  • Last visited

  • Days Won



8 Neutral

About Jeroen Gouma

  • Rank
  • Birthday January 19

Recent Profile Visitors

768 profile views
  1. Jonathan, have a look into this thread on this forum also. It is a bit old, but more or less the same as I did :-). Jeroen
  2. Jonathan, Sorry for the delay. I was not in the office for some time. Please see instructions below. Open Teams and right click the 3 dots behind the channel where the notifications should appear Select “Connectors” and create an “Incoming webhook”. Give it a name and click <Create> Copy the provided URL, you will need it in a later stage Open LogicMonitor webinterface and go to “Settings > Integrations” Click <Add> to create a new integration Click on “Custom HTTP Delivery” Give it a name and description, select “HTTP Post” as method In the URL-Field, paste the URL you saved earlier from Teams Leave username and password empty Select “Raw” as data type, and “JSON” as format Paste text below in the body field: { "@type": "MessageCard", "@context": "", "themeColor": "FF0000", "summary": "##ALERTID##", "sections": [{ "activityTitle": "##LEVEL##: ##HOST## ##DATASOURCE##", "activitySubtitle": "", "activityImage": "", "facts": [{ "name": "Type", "value": "##ALERTTYPE##" }, { "name": "Status", "value": "##ALERTSTATUS##" }, { "name": "Host", "value": "##HOST##" }, { "name": "Start", "value": "##START##" }, { "name": "URL", "value": "[##ALERTDETAILURL##](##ALERTDETAILURL##)" }], "text": "##MESSAGE##" }], } Click <Save> and test 😊. Of course the body is customisable, but at least this one is working. Feel free to adapt according your needs. Kind regards, JEroen
  3. Hi Jonathan, This can be done. I will try to find my notes and post them here. Meanwhile, on the LM side you have to create an Integration which posts message to http endpoint. On the MS Teams side you need to create a webhook in the teams-channel which is used by LM to post a message I'll let you know when I found my notes
  4. Hi, as MSP we use LM for several clients who sometimes have their own dashboards (which are restricted to only their own environment of course). This works fine. Currently we are developing some generic datasources that will be running on 1 of our own servers to gather data for multiple customers (i.e. billing & usage data). We don't want to do this for each individual customer but run it on 1 central place. Is there a way to give a customer view permissions on only a small part of the data in our "central"environment? Idealy a standarized dashboard showing them only what they are allowed to see. Thanks in advance!
  5. Hi, beside all the good things I would love to see an option to display the thresholds (warning/error/critical) in a graph, making it a lot easier to identify when/how often thresholds are breached in a specific period. See attached example where 3 lines are added for the threshold Cheers, Jeroen
  6. Thanks a lot for the swift reply. I noticed the multi-instance box, but indeed it was greyd-out. I will try this appoach and create a new version of the datasource, making it multi instance and see how I can query something that indicates the various instances. Beside that i will have to look into the BatchScript. We are indeed a MSP and the script will definitly run on one of our own collectors, providing the results only on the specific customer dashboards.
  7. Hi, I created a datasource which runs a script with a bunch of parameters to retreive acual cloud usage& costs for our customers. Currently this script is running on the collector in the customers environment and working fine. But I would like to centralize these data collections 1 single place. I would like to have multiple instances from my script running on 1 system,. Based on the name of the instance I can retreive all the parameters from a parameter file. How can I make multiple instances of my script? Thanks a lot! Jeroen
  8. It would be very welcome (read as: required) that we can mark days as a bank-holiday. During these days we normally have no staff on site and alerting should be done in a different way as on normal working days. Last week we had a production incident which was not routed correctly due to the fact nobody was in the office on Public holiday. My ideal situation would be something like this: 1. Be able to create a custom list of dates (just a single list) on which monitoring should act on in a different way. 2. On the alert rule "time based chain" add an extra "day" besides Mon-Sun (i.e. called special) 3. if an alert arises it should first check if the now() moment is in the special list. It true, act on that. If not continue normal processing. Thanks a lot! Jeroen
  9. A way to solve this might be creating a datasource which runs every x minutes, depending on your needs. This datasource executes a perl script somehow similar to the one below. The example script we use to get the number of open alerts, and trigger an alert if the number reaches a specific threshold. It will need some modification... The script executes an rpc call to LM getting the results on which you want to trigger the execution. If the monitored value is above the threshold some action is taken. Based on the output of the script you could even set an alert on the fact that the script is executed. It's not directly bound to a datasource, but could work. #!/usr/bin/env perl # Replace parameters below to suit your situation $userName="myUsername"; $password="mySecret"; $sitename="mySite"; $siteurl=""; $groupId="1"; $curlopt="'https://$siteurl/santaba/rpc/getAlerts?c=$sitename&u=$userName&p=$password&hostGroupId=$groupId'"; $curlrun="env curl -s $curlopt"; # Now we have the command to run $alertwarn=0; $alerterr=0; $alertcrit=0; open(FILE, "-|", $curlrun) or die $!; while (<FILE>) { $alertwarn++ if /warn/; $alerterr++ if /error/; $alertcrit++ if /critical/; } close $handle; $alerttotal=$alertwarn+$alerterr+$alertcrit; if ($alerttotal > 30) { # execute any required action # execution more action $scriptresult=1; } else { $scriptresult=0; } print "ScriptResult" . $scriptresult . "\n";
  10. Currently we have a customer who has the a requirement which I hope can be fulfilled from within LogicMonitor. We have 3 single datasources which are completely independent of each other (CPU usage, memory distribution in the database and number of messages in a queue). I can collect these three datasources and put a threshold on, but the requirement is that only on a specific combination of these thresholds an alert needs to be triggerd. Example: IF CPU > 80% and Memory usage in the database > 70% and a certain queue contains > 1000 messages then an alert needs to be triggerd. If one of the requirements is not met, there is no reason for an alert. Thanks for any hint into the right direction.
  11. Just in case someone else runs into the same: The key thing here is that the user needs manage rights on his collector(s) and device group(s). Antohter thing is that he has te select the group where the new device has to be added to. Otherwise the default (root) group is used, and there the user does noet have any permissions... Thanks to David from LM support who helped me out! Jeroen
  12. Hi, I would like to allow a customer to add his own new devices without asking our support team to do this for him. Customer account has full control on his devicegroup and also rights to manage his own collector. However, if I try to add a device using the "Add device (wizard)"option we get the following message: "No permission to add device.". But if we use the "Add device (expert)" option we are able to ad an device, but for opbvious reasons I prefer them to use the wizard for this . How is controlled if the user is allowed to use the wizard? Which rights should a user be granted to get this working? Thanks a lot, Jeroen
  13. Hi Johan, this is not available out of the box, but can pretty easy been done by writing the correct query and putting this in a datasource. What brand of database are we talking about? Regards, Jeroen