User Tools

Site Tools


nms:observium

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nms:observium [2019/01/10 11:13] jotasandokunms:observium [2023/11/02 14:38] (current) – external edit 127.0.0.1
Line 13: Line 13:
 Housekeeping : [[https://docs.observium.org/tuning/#housekeeping]] \\ Housekeeping : [[https://docs.observium.org/tuning/#housekeeping]] \\
 Update : [[https://docs.observium.org/updating/]]\\ Update : [[https://docs.observium.org/updating/]]\\
 +  ./discovery.php -V    # to see the CURRENT version
   svn update   svn update
   /opt/observium/discovery.php -u   /opt/observium/discovery.php -u
Line 19: Line 20:
  
 ---- ----
 +Add and delete devices. Recreate device doesn't delete history:\\
 +  /opt/observium/delete_device.php opengear.sg3.mgt.mycompany1.co.uk
 +  /opt/observium/add_device.php opengear.sg3.mgt.mycompany1.co.uk ap v3 ODC XXXXXXXXXXXX YYYYYYYYYYY sha aes 161 udp
 +  
 +----
 +
  
 Adding alert checkers: Adding alert checkers:
Line 25: Line 32:
   * [[https://github.com/mgmoerman/docs/blob/master/observium-alert-checkers.md]]   * [[https://github.com/mgmoerman/docs/blob/master/observium-alert-checkers.md]]
   * [[http://demo.observium.org/]]   * [[http://demo.observium.org/]]
 +
 +Things to **REMEMBER**: 
 +  * Association, like in "device.device_id in" not something we can edit manually but gets generated when we do:
 +    * Alert Checker >  device_down > Associations > Device in > Select all
 +    * **^^ We need to do this regularly to account for new or gone devices!**
 +  * **In order to edit the "Entity Association Ruleset" access observium via managment address.** If you access via public address, the menu appears empty!
 +\\
 +This is an example of **production alerts checkers** (change it to xml extension): {{ :nms:observium_templates_alert_allxml.txt |}}
  
  
Line 39: Line 54:
   /opt/observium/housekeeping.php -ya -d   /opt/observium/housekeeping.php -ya -d
      
 +
 ---- ----
 +
  
 REMOVED ALERTS: \\ REMOVED ALERTS: \\
Line 45: Line 62:
  
  
 +
 +----
 +
 +
 +TROUBLESHOOTING:\\
 +
 +  /opt/observium/discovery.php -V    # to check current version
 +  tail -f observium.log /opt/observium/logs/observium.log # for snmp polling logs
 +  
 +  mysql -p -u observium   # to access the database (credentials in config.php)
 +  use observium;   # connects database
 +  show tables;
 +  describe alert_log;
 +  SELECT * FROM alert_log where log_type = 'FAIL' ORDER BY timestamp DESC LIMIT 10;  # to check last alerts 
 +  describe devices;
 +  select device_id, hostname, sysName from devices where device_id = '440';
nms/observium.1547118814.txt.gz · Last modified: (external edit)