Commit Graph
65 Commits
Author SHA1 Message Date
Anthony F McInerney 203686d5c4 Add service templates - Add Name 2020-09-25 01:49:16 +01:00
Anthony F McInerney 53ddc6adc5 Add service templates 2020-09-24 06:26:23 +01:00
Anthony F McInerney 795c2399f3 Add service templates 2020-09-24 06:18:19 +01:00
Anthony F McInerney 125d4de27a Add service templates 2020-09-23 19:52:09 +01:00
Anthony F McInerney 4a9e3d00db Add service templates 2020-09-23 19:41:10 +01:00
Anthony F McInerney 77a515a9d9 Add service templates 2020-09-23 00:24:25 +01:00
Anthony F McInerney e7126adcc8 Add service templates 2020-09-22 22:17:37 +01:00
Anthony F McInerney ce6a0d9ae1 Add service templates 2020-09-22 22:08:17 +01:00
Anthony F McInerney 74d7f61592 Add service templates 2020-09-22 13:47:44 +01:00
Anthony F McInerney aaa125deb2 Add service templates 2020-09-22 00:04:58 +01:00
Anthony F McInerney b968ad839b Add service templates - styleci 2020-09-21 20:39:11 +01:00
Anthony F McInerney f321da5724 Add service templates - styleci 2020-09-21 20:38:33 +01:00
Anthony F McInerney 54633a4653 Add service templates - styleci 2020-09-21 20:30:31 +01:00
Anthony F McInerney b7c74dc729 Add service templates - Master merge 2020-09-21 19:34:09 +01:00
Anthony F McInerney e7be0ec28d Add service templates 2020-09-21 18:38:39 +01:00
JellyfrogandGitHub 29f45ca352 Apply fixes from StyleCI (#12124) 2020-09-21 15:59:34 +02:00
JellyfrogandGitHub 82f43cb98d Apply fixes from StyleCI (#12120) 2020-09-21 15:40:17 +02:00
Anthony F McInerney ac4d42e9e9 Add service templates 2020-09-20 22:59:17 +01:00
Anthony F McInerney a27085243a Add service templates 2020-09-19 01:29:20 +01:00
Anthony F McInerney c5b1b4b9aa Add service templates 2020-09-18 16:46:35 +01:00
Anthony F McInerney 338628c19c Add service templates 2020-09-17 20:16:54 +01:00
Anthony F McInerney c2d95ed0e9 Add service templates 2020-09-17 20:07:32 +01:00
Anthony F McInerney 44de91a570 Add service templates 2020-09-17 20:04:21 +01:00
Anthony F McInerney 39cf7efa7f Add service templates 2020-09-17 19:44:14 +01:00
Anthony F McInerney 345f5c8b8e Add service templates 2020-09-15 16:05:43 +01:00
Anthony F McInerney 0764e15fff Add service templates 2020-09-15 14:06:05 +01:00
Anthony F McInerney cddb1cc246 Add service templates 2020-09-15 13:56:10 +01:00
Anthony F McInerney 775c318a2c Add service templates 2020-09-15 10:24:52 +01:00
Anthony F McInerney 32b2593cfe Add service templates 2020-09-14 13:04:49 +01:00
bofh80andGitHub 92af6136ee Fix automatic service discovery (#11963) 2020-08-05 15:05:03 +02:00
SourceDoctorandGitHub 7950893cd1 Alternate Poller IP instead of Hostname (#10981)
* optional alternative poller ip

* add missing schema update

* .

* enhance API Call 'add_device' with overwrite_ip key

* .

* .

* updating docs
2020-01-30 06:20:30 -06:00
tgregory86andPipoCanaja 394d66a3f0 Typo in Spelling prevented new services from being added. (#10420)
When attempting to add a new services this was showing up in the logs:
[2019-07-07 09:44:53] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'servcie_disabled' in 'field list' (SQL: INSERT IGNORE INTO `services` (`device_id`,`service_ip`,`service_type`,`service_changed`,`service_desc`,`service_param`,`service_ignore`,`service_status`,`service_message`,`service_ds`,`servcie_disabled`)


No error was presented in the gui, it said the service was added but in fact it was not and when you went back to the list of all services the one you tried to add was not present.
2019-07-07 17:53:15 +02:00
Heath BarnhartandPipoCanaja 5a2f2497bb Allow setting Service Ignore and Disable in UI (#10334)
* Added disable and ignore checkboxes to services modal

* Updated add_services function to set disabled field

* Modified check-services.php respect service_disable value

* Minor code change for consistency in new_service.inc.php

* Removed unneeded includes
2019-07-06 17:58:06 +02:00
Tony MurrayandGitHub f3ba8947f7 Use Config helper (#10339)
remove usage of global variable
2019-06-23 00:29:12 -05:00
Tony MurrayandNeil Lathwood 10432b1764 Escape services commands properly. (#9269)
* Attempt to escape services commands properly.

* Add LC_NUMERIC="C" back

* Updated create-service to only faily if a dbUpdate fails
2018-10-17 16:46:07 +01:00
PipoCanajaandNeil Lathwood 2c91348c5c Log an event for each Service Status change (#8968)
Hello

Here is a proposal for a pièce of code to log (using log_events) each service status change onto the device itself. 

Let me know if we should create the "getStatusText()" function to convert the int to "OK", "Critical" etc etc . I searched for such a function but did not find it. 

I also add to use a hack for the SQL cause it would prevent the device_id valueto be available in the resulting $service when device_attribs is empty for the device. If you have a better way to suggest, I'll be happy to use it. 

PipoCanaja

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [X] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-08-04 21:35:23 +01:00
Rémy JacquinandNeil Lathwood e12e6720f8 api: Added add_service_for_host endpoint to API (#8113)
* Add add_service_for_host endpoint to API

Signed-off-by: Rémy Jacquin <[email protected]>

* Change permissions to allow users to modify device

Signed-off-by: Rémy Jacquin <[email protected]>
2018-01-21 19:56:57 +00:00
EtzandNeil Lathwood 0ebf436d47 refactor: Replace escapeshellcmd with Purifier in service checks (#7118)
* fix: issue #4934

Required for service checks, which include multiple quotes or regex.

Proposed patch tested, works.

* fix: issue #4934

Required for service checks, which include multiple quotes or regex.

Proposed patch tested, works.
2017-08-12 20:19:12 +01:00
Neil LathwoodandGitHub fad5aca1b7 feature: Allow customisation of rrd step/heartbeat when creating new rrd files (#5947)
* feature: Allow customisation of rrd step/heartbeat when creating new rrd files

* revert defaults

* added docs + webui config option

* Move RrdDefinition to an Object to make them easier to create and remove the possibility of typos.

* Fix style/lint issues and missing use statements

* 3 more missing use statements

* updated doc + moved schema file
2017-02-23 22:45:50 +00:00
Richard MayhewandNeil Lathwood 5bfd23e7eb webui: New eventlog severity classification (#5830)
* New event log severity model

* Revert "New event log severity model"

This reverts commit 0783527af8.

* New event log severity model

* Fixed spaces vs tabs

* Learning the format requirements

* Learning the format requirements

* Moved the colours in to the stylesheet

* change SQL file to stop conflicting

* refactor log_event so severity isn't last, but reference is.

* keep having to move the file due to new PR conflicts

* Revert "keep having to move the file due to new PR conflicts"

This reverts commit f3030e7218.

* extended support to dashboard and eventlog page

* formatting
2017-02-12 22:41:05 +00:00
nerdalertdkandNeil Lathwood e53503c544 fix: Fixed graphs for services not working (#5569) 2017-01-25 17:41:48 +00:00
Neil LathwoodandTony Murray d5296319fb refactor: MySQL strict and query fixes (#5338)
* refactor: MySQL strict and query fixes

* moved sql file
2017-01-13 06:47:16 -06:00
Aaron DanielsandNeil Lathwood 4e436f8a8b fix: Execute commands using the numeric conventions of the C locale. (#5192) 2016-12-20 22:40:02 +00:00
Jason EllisonandNeil Lathwood b4693e559e refactor: limit perf array index length to 19 characters due to limitation in ds-name rrdtool (#4731) 2016-11-16 07:24:56 +00:00
LayneandNeil Lathwood aac9b73c91 fix: update debug output in service check (#4933) 2016-11-04 07:09:40 +00:00
Tony MurrayandNeil Lathwood 0351b54fb8 webui: make d_echo work in webui (#4432)
* webui: make d_echo work in webui
Remove d_print_r(), it is redundant to d_echo()
Remove d_echo calls in services.inc.php

* Switched debug check to work with nginx
2016-09-14 10:05:49 +01:00
Tony MurrayandNeil Lathwood 9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00
Tony Murray 57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00
Aaron Daniels a5617d4985 - Update Service Message in the database when it has changed. 2016-04-26 06:46:22 +10:00
Aaron Daniels e2988e7725 - Ensure that $check_cmd is always set.
- Move SQL because of upstream changes
2016-04-12 07:34:06 +10:00