jizaymes/lmapi
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This PHP class allows the interaction with LogicMonitor (http://www.logicmonitor.com) Any further contributions welcome! <?php require("config.php"); require("lmapi.php"); $lm = new logicMonitor($config); if($lm === false) { die("Error"); } $results = $lm->addHostGroup("Host Group","Description",1); if(@$results->data) { echo("My HostGroupID is : " . $results->data->id); } ?> $ php addHost.php esx1.company.com ESX1 "Device Description" 1 "Servers" --- PHP Weathermap integration In order to utilize logicmonitor data for PHP weathermap, there are some examples in weathermap-files - WeatherMapDataSource_logicmonitor.php -- Put this in your $weathermap/lib/datasources folder, modify to reference your lmapi.php and config.php, and update your weathermap configs: LINK providerA-switch1 OVERLIBGRAPH /displayLmGraph.php?graphName=Throughput&hostDisplayedAs=switch1&dataSourceInstanceName=snmp64_If-GigabitEthernet12&time=6hour TARGET logicmonitor:switch1:snmp64_If-GigabitEthernet12:InOctets,OutOctets NODES providerA switch1 - displayLmGraph.php -- modify to reference your lmapi.php and config.php, and make it web accessible. Your weathermap config files will need to refer to it, see example above Developors: - James Cornman at Atlantic Metro / http://github.com/jizaymes / http://www.atlanticmetro.net/?lmapi
About
LogicMonitor PHP Class
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published