Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-03-17 Thread fireskyer
Hello Andreas,

 

Sorry i forgot the things which you've  mentioned.

 

I stopped omd and  started the deamon with the following syntax:

/omd/sites/SBA2/bin/mkeventd -gv  --debug  --verbose --snmptrap   -P /omd/sites/SBA2/tmp/run/mkeventd/pid -S /omd/sites/SBA2/tmp/run/mkeventd/status   -C /opt/omd/sites/SBA2/etc/check_mk/

 

Then i trigger the Traps again: 

 

whole_msg Part:

 

Exception handling a snmptrap (skipping this one): Traceback (most recent call last):
  File "/omd/sites/SBA2/bin/mkeventd", line 1299, in serve
    self.process_raw_data(self.process_snmptrap, self._snmptrap.recvfrom(65535))
  File "/omd/sites/SBA2/bin/mkeventd", line 1327, in process_raw_data
    handler_func(data)
  File "/omd/sites/SBA2/bin/mkeventd", line 1132, in process_snmptrap
    req_msg, whole_msg = pyasn_decoder.decode(whole_msg, asn1Spec = proto.Message())
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 342, in valueDecoder
    component, head = decodeFun(head, asn1Spec)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 50, in valueDecoder
    value, _ = decodeFun(head, asn1Spec, tagSet, length)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 831, in __call__
    '%s not in asn1Spec: %s' % (tagSet, asn1Spec)
PyAsn1Error: [0:0:6]+[128:32:4] not in asn1Spec: TagMap:

 

And here is the Whole Debug output from the traps for Download piped from the mkevent deamon:

 

https://www.file-upload.net/download-12379412/mekevent-deamon.log.html

 

 

It looks very similar to the omd output look when i start the mkeventd over omd.

 

i hope i haven't forgotten anything

 

best regards john  

 

Gesendet: Dienstag, 14. März 2017 um 13:57 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: Aw: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?




Hello Andreas,

 

At the first time i couldnt started mkeventd .. ther comes an error ... 

 

then i've  installed an python package:  python-pysnmp-common 

 

And now i'm able to   start the deamon...  so i stopped omd and  then i started mkeventd  with the following syntax :

 

/omd/sites/SBA2/bin/mkeventd -gv  --debug  --verbose --snmptrap   -P /omd/sites/SBA2/tmp/run/mkeventd/pid -S /omd/sites/SBA2/tmp/run/mkeventd/status   -C /opt/omd/sites/SBA2/etc/check_mk/

 

is this right ? 

 

best regards john 
 



Gesendet: Mittwoch, 08. März 2017 um 13:08 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


Without the raw trap content it is very difficult to see the problem. As mentioned before the trap has some illegal content.
This content cannot be decoded with PyAsn1.

You can add some debug output to the mkeventd - running in foreground for example to see what it is doing.

The "whole_msg" string would be interesting. 

 

Best regards

Andreas

 


 schrieb am Mi., 8. März 2017 um 12:46 Uhr:




Any other ideas ? 

 

I don't want to get rid of the snmp function from mkeventd in OMD.

 

Here again  are  the main error Lines :

 


[1488528430.390022] Exception handling a snmptrap (skipping this one): Traceback (most recent call last):
  File "/omd/sites/SBA2/bin/mkeventd", line 1299, in serve
    self.process_raw_data(self.process_snmptrap, self._snmptrap.recvfrom(65535))
  File "/omd/sites/SBA2/bin/mkeventd", line 1327, in process_raw_data
    handler_func(data)
  File "/omd/sites/SBA2/bin/mkeventd", line 1132, in process_snmptrap
    req_msg, whole_msg = pyasn_decoder.decode(whole_msg, asn1Spec = proto.Message())
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 342, in valueDecoder
    component, head = decodeFun(head, asn1Spec)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 50, in valueDecoder
    value, _ = decodeFun(head, asn1Spec, tagSet, length)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 831, in __call__
    '%s not in asn1Spec: %s' % (tagSet, asn1Spec)
PyAsn1Error: [0:0:6]+[128:32:4] not in asn1Spec: TagMap:
posMap:
[untagged] -> PDUs {
 "get-request" = [128:32:0] -> GetRequestPDU {
  "request-id" = [0:0:2] -> Integer32
  "error-status" = [0:0:2] -> Integer
  "error-index" = [0:0:2] -> Integer
  "variable-bindings" = [0:32:16] -> VarBindList {
   [0:32:16] -> VarBind {
    "name" = [0:0:6] -> ObjectName
    "" = 

Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-03-14 Thread fireskyer

Hello Andreas,

 

At the first time i couldnt started mkeventd .. ther comes an error ... 

 

then i've  installed an python package:  python-pysnmp-common 

 

And now i'm able to   start the deamon...  so i stopped omd and  then i started mkeventd  with the following syntax :

 

/omd/sites/SBA2/bin/mkeventd -gv  --debug  --verbose --snmptrap   -P /omd/sites/SBA2/tmp/run/mkeventd/pid -S /omd/sites/SBA2/tmp/run/mkeventd/status   -C /opt/omd/sites/SBA2/etc/check_mk/

 

is this right ? 

 

best regards john 
 



Gesendet: Mittwoch, 08. März 2017 um 13:08 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


Without the raw trap content it is very difficult to see the problem. As mentioned before the trap has some illegal content.
This content cannot be decoded with PyAsn1.

You can add some debug output to the mkeventd - running in foreground for example to see what it is doing.

The "whole_msg" string would be interesting. 

 

Best regards

Andreas

 


 schrieb am Mi., 8. März 2017 um 12:46 Uhr:




Any other ideas ? 

 

I don't want to get rid of the snmp function from mkeventd in OMD.

 

Here again  are  the main error Lines :

 


[1488528430.390022] Exception handling a snmptrap (skipping this one): Traceback (most recent call last):
  File "/omd/sites/SBA2/bin/mkeventd", line 1299, in serve
    self.process_raw_data(self.process_snmptrap, self._snmptrap.recvfrom(65535))
  File "/omd/sites/SBA2/bin/mkeventd", line 1327, in process_raw_data
    handler_func(data)
  File "/omd/sites/SBA2/bin/mkeventd", line 1132, in process_snmptrap
    req_msg, whole_msg = pyasn_decoder.decode(whole_msg, asn1Spec = proto.Message())
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 342, in valueDecoder
    component, head = decodeFun(head, asn1Spec)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 50, in valueDecoder
    value, _ = decodeFun(head, asn1Spec, tagSet, length)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 831, in __call__
    '%s not in asn1Spec: %s' % (tagSet, asn1Spec)
PyAsn1Error: [0:0:6]+[128:32:4] not in asn1Spec: TagMap:
posMap:
[untagged] -> PDUs {
 "get-request" = [128:32:0] -> GetRequestPDU {
  "request-id" = [0:0:2] -> Integer32
  "error-status" = [0:0:2] -> Integer
  "error-index" = [0:0:2] -> Integer
  "variable-bindings" = [0:32:16] -> VarBindList {
   [0:32:16] -> VarBind {
    "name" = [0:0:6] -> ObjectName
    "" = [untagged] -> _BindValue {
     "value" = [untagged] -> ObjectSyntax {
      "simple" = [untagged] -> SimpleSyntax {
       "integer-value" = [0:0:2] -> Integer
       "string-value" = [0:0:4] -> OctetString
       "objectID-value" = [0:0:6] -> ObjectIdentifier

      }
      "application-wide" = [untagged] -> ApplicationSyntax {
       "ipAddress-value" = [64:0:0] -> IpAddress
       "counter-value" = [64:0:1] -> Counter32
       "timeticks-value" = [64:0:3] -> TimeTicks
       "arbitrary-value" = [64:0:4] -> Opaque
       "big-counter-value" = [64:0:6] -> Counter64
       "gauge32-value" = [64:0:2] -> Gauge32

      }

     }
     "unSpecified" = [0:0:5] -> Null
     "noSuchObject" = [128:0:0] -> NoSuchObject
     "noSuchInstance" = [128:0:1] -> NoSuchInstance
     "endOfMibView" = [128:0:2] -> EndOfMibView

    }

   }
  }

 }
 "get-next-request" = [128:32:1] -> GetNextRequestPDU {
  "request-id" = [0:0:2] -> Integer32
  "error-status" = [0:0:2] -> Integer
  "error-index" = [0:0:2] -> Integer
  "variable-bindings" = [0:32:16] -> VarBindList {
   [0:32:16] -> VarBind {
    "name" = [0:0:6] -> ObjectName
    "" = [untagged] -> _BindValue {
     "value" = [untagged] -> ObjectSyntax {
      "simple" = [untagged] -> SimpleSyntax {
       "integer-value" = [0:0:2] -> Integer
       "string-value" = [0:0:4] -> OctetString
       "objectID-value" = [0:0:6] -> ObjectIdentifier

      }
      "application-wide" = [untagged] -> ApplicationSyntax {
       "ipAddress-value" = [64:0:0] -> IpAddress
       "counter-value" = [64:0:1] -> Counter32
       "timeticks-value" = [64:0:3] -> TimeTicks
       "arbitrary-value" = [64:0:4] -> Opaque
       "big-counter-value" = [64:0:6] -> Counter64
       "gauge32-value" = [64:0:2] -> Gauge32

      }

     }
     "unSpecified" = [0:0:5] -> Null
     "noSuchObject" = [128:0:0] -> NoSuchObject
     "noSuchInstance" = [128:0:1] -> NoSuchInstance
     "endOfMibView" = [128:0:2] -> EndOfMibView

    }

   }
  }

 }


 

 

Thanks for helping 

 

best regards john

 

 

Gesendet: Montag, 06. März 2017 um 15:47 Uhr






Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Be

Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-03-08 Thread fireskyer
Any other ideas ? 

 

I don't want to get rid of the snmp function from mkeventd in OMD.

 

Here again  are  the main error Lines :

 


[1488528430.390022] Exception handling a snmptrap (skipping this one): Traceback (most recent call last):
  File "/omd/sites/SBA2/bin/mkeventd", line 1299, in serve
    self.process_raw_data(self.process_snmptrap, self._snmptrap.recvfrom(65535))
  File "/omd/sites/SBA2/bin/mkeventd", line 1327, in process_raw_data
    handler_func(data)
  File "/omd/sites/SBA2/bin/mkeventd", line 1132, in process_snmptrap
    req_msg, whole_msg = pyasn_decoder.decode(whole_msg, asn1Spec = proto.Message())
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 342, in valueDecoder
    component, head = decodeFun(head, asn1Spec)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 825, in __call__
    stGetValueDecoder, self, substrateFun
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 50, in valueDecoder
    value, _ = decodeFun(head, asn1Spec, tagSet, length)
  File "/usr/lib/python2.7/dist-packages/pyasn1/codec/ber/decoder.py", line 831, in __call__
    '%s not in asn1Spec: %s' % (tagSet, asn1Spec)
PyAsn1Error: [0:0:6]+[128:32:4] not in asn1Spec: TagMap:
posMap:
[untagged] -> PDUs {
 "get-request" = [128:32:0] -> GetRequestPDU {
  "request-id" = [0:0:2] -> Integer32
  "error-status" = [0:0:2] -> Integer
  "error-index" = [0:0:2] -> Integer
  "variable-bindings" = [0:32:16] -> VarBindList {
   [0:32:16] -> VarBind {
    "name" = [0:0:6] -> ObjectName
    "" = [untagged] -> _BindValue {
     "value" = [untagged] -> ObjectSyntax {
      "simple" = [untagged] -> SimpleSyntax {
       "integer-value" = [0:0:2] -> Integer
       "string-value" = [0:0:4] -> OctetString
       "objectID-value" = [0:0:6] -> ObjectIdentifier

      }
      "application-wide" = [untagged] -> ApplicationSyntax {
       "ipAddress-value" = [64:0:0] -> IpAddress
       "counter-value" = [64:0:1] -> Counter32
       "timeticks-value" = [64:0:3] -> TimeTicks
       "arbitrary-value" = [64:0:4] -> Opaque
       "big-counter-value" = [64:0:6] -> Counter64
       "gauge32-value" = [64:0:2] -> Gauge32

      }

     }
     "unSpecified" = [0:0:5] -> Null
     "noSuchObject" = [128:0:0] -> NoSuchObject
     "noSuchInstance" = [128:0:1] -> NoSuchInstance
     "endOfMibView" = [128:0:2] -> EndOfMibView

    }

   }
  }

 }
 "get-next-request" = [128:32:1] -> GetNextRequestPDU {
  "request-id" = [0:0:2] -> Integer32
  "error-status" = [0:0:2] -> Integer
  "error-index" = [0:0:2] -> Integer
  "variable-bindings" = [0:32:16] -> VarBindList {
   [0:32:16] -> VarBind {
    "name" = [0:0:6] -> ObjectName
    "" = [untagged] -> _BindValue {
     "value" = [untagged] -> ObjectSyntax {
      "simple" = [untagged] -> SimpleSyntax {
       "integer-value" = [0:0:2] -> Integer
       "string-value" = [0:0:4] -> OctetString
       "objectID-value" = [0:0:6] -> ObjectIdentifier

      }
      "application-wide" = [untagged] -> ApplicationSyntax {
       "ipAddress-value" = [64:0:0] -> IpAddress
       "counter-value" = [64:0:1] -> Counter32
       "timeticks-value" = [64:0:3] -> TimeTicks
       "arbitrary-value" = [64:0:4] -> Opaque
       "big-counter-value" = [64:0:6] -> Counter64
       "gauge32-value" = [64:0:2] -> Gauge32

      }

     }
     "unSpecified" = [0:0:5] -> Null
     "noSuchObject" = [128:0:0] -> NoSuchObject
     "noSuchInstance" = [128:0:1] -> NoSuchInstance
     "endOfMibView" = [128:0:2] -> EndOfMibView

    }

   }
  }

 }


 

 

Thanks for helping 

 

best regards john

 

 

Gesendet: Montag, 06. März 2017 um 15:47 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?





So...

 

Now i've updated my OMD Version

@Thanks to Andreas 

 

But the same error occours in the log file  I think i have 2 Options:

 

1. Rebuild the Scenario with snmptt ( works on old nagios so it should works too)

 

2. Find out why Python is sending illegal Strings.

 

I would prefer the 2cnd one cause  i think in  the future we want to create other snmp traps and with the event console i can build this much more  easier than with core snmptt.

 

How i can i  control this on the system side ? 

 

Any ideas ?  

 

best regards john 

 

 

Gesendet: Freitag, 03. März 2017 um 13:44 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?




Hello Andreas,

 

I've made an other test too...   I've reproduced the Trap 1:1 and send it with an trap sender  to OMD .. but only as OID and this works. 

 

How i can update my OMD Version ? I'm on an LABS one ATM ... should i use an Stable ? 

 

Is it possible to upgrade ( downgrade)  from omd labs to omd prod?

 

best reg

Re: [omd-users] Cannot Update OMD ( Consol Labs Edition)

2017-03-06 Thread fireskyer
 

But not in it... i know that i have to download an package to update an software i can also build from source   but in OMD there is an "double Update" Process. 

 

The first the Package itself and then the Update Instance. 

 

Don't get me wrong ... i like OMD  but this Mechanism was not immediately obvious for me .. may I'm the only one :) 

 

best regards john 

 

Gesendet: Montag, 06. März 2017 um 15:06 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de
Betreff: Re: [omd-users] Cannot Update OMD ( Consol Labs Edition)




? this is normal package handling under Linux.
 

This must every admin know.

 

Best regards

Andreas

 


 schrieb am Mo., 6. März 2017 um 15:05 Uhr:




Thanks Andreas 

 

You Rock :)

 

Furthermore:

 

Where is this mentioned in the Update Process to get the Package first ? .. i thought  that OMD does the job.

 

I'm not  an developer but this is in my opinion noteworthly for the documentation if you want to update OMD .. i found only sth. for checkmk 

 

Just my 2 cents :) 

 

best regards john 

 



Gesendet: Montag, 06. März 2017 um 10:07 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Cannot Update OMD ( Consol Labs Edition)










First you have to install the actual OMD package. Without installing the new package it is not possible to make the update inside your site.
 

Something like "apt-get update" and "apt-get install omd-2.20-labs-edition" then you can make the "omd update "

 

Best regards

 


 schrieb am Mo., 6. März 2017 um 10:02 Uhr:




Consult

OMD 2.11.20161004-labs-edition

 

Hello everyone,

 

In Relation to the Thread:  [omd-users] Where i can see incoming smmp Traps in OMD ?

 

Andreas give me the Advice to update the OMD-Version first.

 

I tried to update my OMD Edition but it doesn't work.

 

I follow the Guide from the Consol Website for add the repository first:

https://labs.consol.de/repo/stable/#_ubuntu_xenial_16_04

 

Then i tried to update omd with the following Command:

omd stop "sitename"

omd update  "sitename" 

 

Then comes the following output: 

Unmounting temporary filesystem...OK
There is no other OMD version to update to.

 

May i oversee some obvious step  

 

best regards john 

 

 

 


___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users











___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-03-06 Thread fireskyer
So...

 

Now i've updated my OMD Version

@Thanks to Andreas 

 

But the same error occours in the log file  I think i have 2 Options:

 

1. Rebuild the Scenario with snmptt ( works on old nagios so it should works too)

 

2. Find out why Python is sending illegal Strings.

 

I would prefer the 2cnd one cause  i think in  the future we want to create other snmp traps and with the event console i can build this much more  easier than with core snmptt.

 

How i can i  control this on the system side ? 

 

Any ideas ?  

 

best regards john 

 

 

Gesendet: Freitag, 03. März 2017 um 13:44 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?




Hello Andreas,

 

I've made an other test too...   I've reproduced the Trap 1:1 and send it with an trap sender  to OMD .. but only as OID and this works. 

 

How i can update my OMD Version ? I'm on an LABS one ATM ... should i use an Stable ? 

 

Is it possible to upgrade ( downgrade)  from omd labs to omd prod?

 

best regards john 


Gesendet: Freitag, 03. März 2017 um 10:45 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


As you see you get an exception while parsing your messages. First step test with an actual version of OMD as this versions use its own Python and not the system installed version.
If the error persists you need to find some other solution as your system is sending illegal strings for Python parsing.

 

Best regards

Andreas

 


 schrieb am Fr., 3. März 2017 um 09:21 Uhr:




Good Morning Andreas,

 

Attached is an link with the mkeventd.log on that point which i have enabled the debug option and trigger the trap again ( it was too big for posting here).

 

https://www.file-upload.net/download-12348817/mkeventd.log.html

 

best regards john 



Gesendet: Donnerstag, 02. März 2017 um 16:18 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










Switch on "Debug Rule Execution" for mkeventd and check the debug log files.
 


 


 


 schrieb am Do., 2. März 2017 um 15:36 Uhr:




Hello Andreas,

 

The command : "lsof -i :162 "

 

Ouptputs the following Lines:

 

COMMAND    PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
mkeventd 25325 SBA2    8u  IPv4 6022201      0t0  UDP *:snmp-trap
 

So i think the Trap Deamon is running.

 

I've made some tests with with the tools from ireasoning browser: http://ireasoning.com/mibbrowser.shtml

 

1. Trigger  the OW-Server  Traps to an Trap Reciever which listens on Port 162 UDP --- Works

2. Send an cold Trap to OMD    Works

3. Trigger the OW-Server Traps to OMD  Failed

 

So as you can see sth. is different on the Trap from the Ow-Server but i don't know what.

 

Any good ideas so far ? 

 

best regards john 

  

 

Gesendet: Donnerstag, 23. Februar 2017 um 10:50 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










That is a typing error. SNMPTRAP is every time 162 UDP no TCP.
If you look at your machine with netstat it should be clear that the system is listening on 162 UDP.

 

Best regards

Andreas

 


 schrieb am Do., 23. Feb. 2017 um 10:44 Uhr:




Hello Andreas, 

 

I'm a little bit confused about the circumstance that the omd  config gui  says explizit in the mkenvent snmptrap config  ... 

 

                                                                              If this option is enabled then mkeventd starts a │
                                                                           │ builtin snmptrap server that receives snmptrap   │
                                                                           │ messages via TCP port 162. Enabling this option  │
                                                                           │ makes the mkeventd started via a SUID helper     │
                                                                           │ that first opens the (priviledged) port 162 and  │
                                                                           │ then starting the actual event daemon.           │
                                                                           │ ┌──┐ │
                                                                           │ │                 on   enable                  │ │
                                                                           │ │                 off  disable         

 

 


 

best regards john 

 


Gesendet: Mittwoch, 22. Februar 2017 um 16:19 Uhr










Von: "Andreas Döhler" 

Re: [omd-users] Cannot Update OMD ( Consol Labs Edition)

2017-03-06 Thread fireskyer


Thanks Andreas 



 

You Rock :)

 

Furthermore:

 

Where is this mentioned in the Update Process to get the Package first ? .. i thought  that OMD does the job.

 

I'm not  an developer but this is in my opinion noteworthly for the documentation if you want to update OMD ..  i found only sth. for checkmk.  

 

Just my 2 cents :) 

 

best regards john 

 



Gesendet: Montag, 06. März 2017 um 10:07 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Cannot Update OMD ( Consol Labs Edition)


First you have to install the actual OMD package. Without installing the new package it is not possible to make the update inside your site.
 

Something like "apt-get update" and "apt-get install omd-2.20-labs-edition" then you can make the "omd update "

 

Best regards

 


 schrieb am Mo., 6. März 2017 um 10:02 Uhr:




Consult

OMD 2.11.20161004-labs-edition

 

Hello everyone,

 

In Relation to the Thread:  [omd-users] Where i can see incoming smmp Traps in OMD ?

 

Andreas give me the Advice to update the OMD-Version first.

 

I tried to update my OMD Edition but it doesn't work.

 

I follow the Guide from the Consol Website for add the repository first:

https://labs.consol.de/repo/stable/#_ubuntu_xenial_16_04

 

Then i tried to update omd with the following Command:

omd stop "sitename"

omd update  "sitename" 

 

Then comes the following output: 

Unmounting temporary filesystem...OK
There is no other OMD version to update to.

 

May i oversee some obvious step  

 

best regards john 

 

 

 


___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users








___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Cannot Update OMD ( Consol Labs Edition)

2017-03-06 Thread fireskyer
Consult

OMD 2.11.20161004-labs-edition

 

Hello everyone,

 

In Relation to the Thread:  [omd-users] Where i can see incoming smmp Traps in OMD ?

 

Andreas give me the Advice to update the OMD-Version first.

 

I tried to update my OMD Edition but it doesn't work.

 

I follow the Guide from the Consol Website for add the repository first:

https://labs.consol.de/repo/stable/#_ubuntu_xenial_16_04

 

Then i tried to update omd with the following Command:

omd stop "sitename"

omd update  "sitename" 

 

Then comes the following output: 

Unmounting temporary filesystem...OK
There is no other OMD version to update to.

 

May i oversee some obvious step  

 

best regards john 

 

 

 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-03-03 Thread fireskyer

Hello Andreas,

 

I've made an other test too...   I've reproduced the Trap 1:1 and send it with an trap sender  to OMD .. but only as OID and this works. 

 

How i can update my OMD Version ? I'm on an LABS one ATM ... should i use an Stable ? 

 

Is it possible to upgrade ( downgrade)  from omd labs to omd prod?

 

best regards john 


Gesendet: Freitag, 03. März 2017 um 10:45 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


As you see you get an exception while parsing your messages. First step test with an actual version of OMD as this versions use its own Python and not the system installed version.
If the error persists you need to find some other solution as your system is sending illegal strings for Python parsing.

 

Best regards

Andreas

 


 schrieb am Fr., 3. März 2017 um 09:21 Uhr:




Good Morning Andreas,

 

Attached is an link with the mkeventd.log on that point which i have enabled the debug option and trigger the trap again ( it was too big for posting here).

 

https://www.file-upload.net/download-12348817/mkeventd.log.html

 

best regards john 



Gesendet: Donnerstag, 02. März 2017 um 16:18 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










Switch on "Debug Rule Execution" for mkeventd and check the debug log files.
 


 


 


 schrieb am Do., 2. März 2017 um 15:36 Uhr:




Hello Andreas,

 

The command : "lsof -i :162 "

 

Ouptputs the following Lines:

 

COMMAND    PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
mkeventd 25325 SBA2    8u  IPv4 6022201      0t0  UDP *:snmp-trap
 

So i think the Trap Deamon is running.

 

I've made some tests with with the tools from ireasoning browser: http://ireasoning.com/mibbrowser.shtml

 

1. Trigger  the OW-Server  Traps to an Trap Reciever which listens on Port 162 UDP --- Works

2. Send an cold Trap to OMD    Works

3. Trigger the OW-Server Traps to OMD  Failed

 

So as you can see sth. is different on the Trap from the Ow-Server but i don't know what.

 

Any good ideas so far ? 

 

best regards john 

  

 

Gesendet: Donnerstag, 23. Februar 2017 um 10:50 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










That is a typing error. SNMPTRAP is every time 162 UDP no TCP.
If you look at your machine with netstat it should be clear that the system is listening on 162 UDP.

 

Best regards

Andreas

 


 schrieb am Do., 23. Feb. 2017 um 10:44 Uhr:




Hello Andreas, 

 

I'm a little bit confused about the circumstance that the omd  config gui  says explizit in the mkenvent snmptrap config  ... 

 

                                                                              If this option is enabled then mkeventd starts a │
                                                                           │ builtin snmptrap server that receives snmptrap   │
                                                                           │ messages via TCP port 162. Enabling this option  │
                                                                           │ makes the mkeventd started via a SUID helper     │
                                                                           │ that first opens the (priviledged) port 162 and  │
                                                                           │ then starting the actual event daemon.           │
                                                                           │ ┌──┐ │
                                                                           │ │                 on   enable                  │ │
                                                                           │ │                 off  disable         

 

 


 

best regards john 

 


Gesendet: Mittwoch, 22. Februar 2017 um 16:19 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










No. Correctly configured mkeventd is listening on port 162 udp and 514 udp and 514 tcp.
 

best regards

Andreas

 


 schrieb am Mi., 22. Feb. 2017 um 15:48 Uhr:





May i found the problem ..

 

My server can only send traps over the udp Protocoll 

and the omd snmp deamon listen only on tcp or ?

 

So is this the pitfall ?

 

Could i change this in OMD  ? 

 

best regards

john 

 


Gesendet: Dienstag, 21. Februar 2017 um 14:07 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de









Betreff: Re: [omd-users] Where i 

Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-03-03 Thread fireskyer
Good Morning Andreas,

 

Attached is an link with the mkeventd.log on that point which i have enabled the debug option and trigger the trap again ( it was too big for posting here).

 

https://www.file-upload.net/download-12348817/mkeventd.log.html

 

best regards john 



Gesendet: Donnerstag, 02. März 2017 um 16:18 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


Switch on "Debug Rule Execution" for mkeventd and check the debug log files.
 


 


 


 schrieb am Do., 2. März 2017 um 15:36 Uhr:




Hello Andreas,

 

The command : "lsof -i :162 "

 

Ouptputs the following Lines:

 

COMMAND    PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
mkeventd 25325 SBA2    8u  IPv4 6022201      0t0  UDP *:snmp-trap
 

So i think the Trap Deamon is running.

 

I've made some tests with with the tools from ireasoning browser: http://ireasoning.com/mibbrowser.shtml

 

1. Trigger  the OW-Server  Traps to an Trap Reciever which listens on Port 162 UDP --- Works

2. Send an cold Trap to OMD    Works

3. Trigger the OW-Server Traps to OMD  Failed

 

So as you can see sth. is different on the Trap from the Ow-Server but i don't know what.

 

Any good ideas so far ? 

 

best regards john 

  

 

Gesendet: Donnerstag, 23. Februar 2017 um 10:50 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










That is a typing error. SNMPTRAP is every time 162 UDP no TCP.
If you look at your machine with netstat it should be clear that the system is listening on 162 UDP.

 

Best regards

Andreas

 


 schrieb am Do., 23. Feb. 2017 um 10:44 Uhr:




Hello Andreas, 

 

I'm a little bit confused about the circumstance that the omd  config gui  says explizit in the mkenvent snmptrap config  ... 

 

                                                                              If this option is enabled then mkeventd starts a │
                                                                           │ builtin snmptrap server that receives snmptrap   │
                                                                           │ messages via TCP port 162. Enabling this option  │
                                                                           │ makes the mkeventd started via a SUID helper     │
                                                                           │ that first opens the (priviledged) port 162 and  │
                                                                           │ then starting the actual event daemon.           │
                                                                           │ ┌──┐ │
                                                                           │ │                 on   enable                  │ │
                                                                           │ │                 off  disable         

 

 


 

best regards john 

 


Gesendet: Mittwoch, 22. Februar 2017 um 16:19 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










No. Correctly configured mkeventd is listening on port 162 udp and 514 udp and 514 tcp.
 

best regards

Andreas

 


 schrieb am Mi., 22. Feb. 2017 um 15:48 Uhr:





May i found the problem ..

 

My server can only send traps over the udp Protocoll 

and the omd snmp deamon listen only on tcp or ?

 

So is this the pitfall ?

 

Could i change this in OMD  ? 

 

best regards

john 

 


Gesendet: Dienstag, 21. Februar 2017 um 14:07 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de









Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










You can only use mkeventd with snmptrapd or snmptt. Booth at the same time is not so easy. I say it again if traps from other device are received then all is configured correctly on OMD site.

Ubuntu does nothing in the case of using mkeventd. You will also see nothing inside syslog if using mkeventd. Only with the catch-all rule you will see incoming traps.

Best regards
Andreas
 


 schrieb am Di., 21. Feb. 2017, 13:35:




Hello Andreas,

 

Yes I have 2 Sender Points which can configure on snmp server directly, but only 1 for an sensor.

 

But i retested this really often and there has to be an error on omd layer or on ubuntu OS one.

 

Then i thought may  it's a god idea to set an snmptt on the system for proofing the situtation ... but it doesn't work i get through this walktrough ..   

 

https://mathias-kettner.de/checkmk_mkeventd_traps.html

 

But nothing happens, even with an normal testing trap

Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-03-02 Thread fireskyer
Hello Andreas,

 

The command : "lsof -i :162 "

 

Ouptputs the following Lines:

 

COMMAND    PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
mkeventd 25325 SBA2    8u  IPv4 6022201      0t0  UDP *:snmp-trap
 

So i think the Trap Deamon is running.

 

I've made some tests with with the tools from ireasoning browser: http://ireasoning.com/mibbrowser.shtml

 

1. Trigger  the OW-Server  Traps to an Trap Reciever which listens on Port 162 UDP --- Works

2. Send an cold Trap to OMD    Works

3. Trigger the OW-Server Traps to OMD  Failed

 

So as you can see sth. is different on the Trap from the Ow-Server but i don't know what.

 

Any good ideas so far ? 

 

best regards john 

  

 

Gesendet: Donnerstag, 23. Februar 2017 um 10:50 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


That is a typing error. SNMPTRAP is every time 162 UDP no TCP.
If you look at your machine with netstat it should be clear that the system is listening on 162 UDP.

 

Best regards

Andreas

 


 schrieb am Do., 23. Feb. 2017 um 10:44 Uhr:




Hello Andreas, 

 

I'm a little bit confused about the circumstance that the omd  config gui  says explizit in the mkenvent snmptrap config  ... 

 

                                                                              If this option is enabled then mkeventd starts a │
                                                                           │ builtin snmptrap server that receives snmptrap   │
                                                                           │ messages via TCP port 162. Enabling this option  │
                                                                           │ makes the mkeventd started via a SUID helper     │
                                                                           │ that first opens the (priviledged) port 162 and  │
                                                                           │ then starting the actual event daemon.           │
                                                                           │ ┌──┐ │
                                                                           │ │                 on   enable                  │ │
                                                                           │ │                 off  disable         

 

 


 

best regards john 

 


Gesendet: Mittwoch, 22. Februar 2017 um 16:19 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










No. Correctly configured mkeventd is listening on port 162 udp and 514 udp and 514 tcp.
 

best regards

Andreas

 


 schrieb am Mi., 22. Feb. 2017 um 15:48 Uhr:





May i found the problem ..

 

My server can only send traps over the udp Protocoll 

and the omd snmp deamon listen only on tcp or ?

 

So is this the pitfall ?

 

Could i change this in OMD  ? 

 

best regards

john 

 


Gesendet: Dienstag, 21. Februar 2017 um 14:07 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de









Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










You can only use mkeventd with snmptrapd or snmptt. Booth at the same time is not so easy. I say it again if traps from other device are received then all is configured correctly on OMD site.

Ubuntu does nothing in the case of using mkeventd. You will also see nothing inside syslog if using mkeventd. Only with the catch-all rule you will see incoming traps.

Best regards
Andreas
 


 schrieb am Di., 21. Feb. 2017, 13:35:




Hello Andreas,

 

Yes I have 2 Sender Points which can configure on snmp server directly, but only 1 for an sensor.

 

But i retested this really often and there has to be an error on omd layer or on ubuntu OS one.

 

Then i thought may  it's a god idea to set an snmptt on the system for proofing the situtation ... but it doesn't work i get through this walktrough ..   

 

https://mathias-kettner.de/checkmk_mkeventd_traps.html

 

But nothing happens, even with an normal testing trap ... so my assumption that omd   sth. bends over that the trap doesn't comes to the syslog or in the logs which ih ave configured in snmptt.ini. 

 

Then i stopped all OMD  Services .. the same Result .. 

 

May i forgot sth. to setup in the snmpd settings from scratch ...

 

best regards john 

 

 

Gesendet: Montag, 20. Februar 2017 um 19:08 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, "omd-users@lists.mathias-kettner.de" 






Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?








If you see the trap from printers then your mkeventd with snmptrap receiver is working correct

Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-02-23 Thread fireskyer
Hello Andreas, 

 

I'm a little bit confused about the circumstance that the omd  config gui  says explizit in the mkenvent snmptrap config  ... 

 

                                                                              If this option is enabled then mkeventd starts a │
                                                                           │ builtin snmptrap server that receives snmptrap   │
                                                                           │ messages via TCP port 162. Enabling this option  │
                                                                           │ makes the mkeventd started via a SUID helper     │
                                                                           │ that first opens the (priviledged) port 162 and  │
                                                                           │ then starting the actual event daemon.           │
                                                                           │ ┌──┐ │
                                                                           │ │                 on   enable                  │ │
                                                                           │ │                 off  disable         

 

 


 

best regards john 

 


Gesendet: Mittwoch, 22. Februar 2017 um 16:19 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


No. Correctly configured mkeventd is listening on port 162 udp and 514 udp and 514 tcp.
 

best regards

Andreas

 


 schrieb am Mi., 22. Feb. 2017 um 15:48 Uhr:





May i found the problem ..

 

My server can only send traps over the udp Protocoll 

and the omd snmp deamon listen only on tcp or ?

 

So is this the pitfall ?

 

Could i change this in OMD  ? 

 

best regards

john 

 


Gesendet: Dienstag, 21. Februar 2017 um 14:07 Uhr










Von: "Andreas Döhler" 
An: firesk...@web.de









Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










You can only use mkeventd with snmptrapd or snmptt. Booth at the same time is not so easy. I say it again if traps from other device are received then all is configured correctly on OMD site.

Ubuntu does nothing in the case of using mkeventd. You will also see nothing inside syslog if using mkeventd. Only with the catch-all rule you will see incoming traps.

Best regards
Andreas
 


 schrieb am Di., 21. Feb. 2017, 13:35:




Hello Andreas,

 

Yes I have 2 Sender Points which can configure on snmp server directly, but only 1 for an sensor.

 

But i retested this really often and there has to be an error on omd layer or on ubuntu OS one.

 

Then i thought may  it's a god idea to set an snmptt on the system for proofing the situtation ... but it doesn't work i get through this walktrough ..   

 

https://mathias-kettner.de/checkmk_mkeventd_traps.html

 

But nothing happens, even with an normal testing trap ... so my assumption that omd   sth. bends over that the trap doesn't comes to the syslog or in the logs which ih ave configured in snmptt.ini. 

 

Then i stopped all OMD  Services .. the same Result .. 

 

May i forgot sth. to setup in the snmpd settings from scratch ...

 

best regards john 

 

 

Gesendet: Montag, 20. Februar 2017 um 19:08 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, "omd-users@lists.mathias-kettner.de" 






Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?








If you see the trap from printers then your mkeventd with snmptrap receiver is working correctly. That also means your other device is not correctly configured. :)
With the catchall rule you will see all traps send to your monitoring host.

 

Have you configured two different targets on your snmp sender side?

One for the monitoring host and one for your snmp browser?

 

Best regards

Andreas
 

 schrieb am Mo., 20. Feb. 2017 um 10:38 Uhr:





Hello Andreas

 

I've followed your advice to create an wildcard rule or at least i tried so...

 

My Rule has only one Condition:

 



	
		
			
			Text to match : .*

			 

			Is that correct ?  

			 

			Then i trigger my snnmp to test the Wildcard  Rule but nothing happens in the checkmk log but some other Traps from an Printer will be  logged fine.

			 

			My trap reciever which is the ireasoning browser tells me that the Trap is logged correctly and the Trigger works also... but not with checkmk.

			 

			This is my Snmp Trap which won't be processed in checkmk:

			 

			
			

	
		Source:
		192.168..xxx
		Timestamp:
		603 hours 54 minutes 9 seconds
		SNMP Version:
		1
	
	
	

Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-02-22 Thread fireskyer

May i found the problem ..

 

My server can only send traps over the udp Protocoll 

and the omd snmp deamon listen only on tcp or ?

 

So is this the pitfall ?

 

Could i change this in OMD  ? 

 

best regards

john 

 


Gesendet: Dienstag, 21. Februar 2017 um 14:07 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


You can only use mkeventd with snmptrapd or snmptt. Booth at the same time is not so easy. I say it again if traps from other device are received then all is configured correctly on OMD site.

Ubuntu does nothing in the case of using mkeventd. You will also see nothing inside syslog if using mkeventd. Only with the catch-all rule you will see incoming traps.

Best regards
Andreas
 


 schrieb am Di., 21. Feb. 2017, 13:35:




Hello Andreas,

 

Yes I have 2 Sender Points which can configure on snmp server directly, but only 1 for an sensor.

 

But i retested this really often and there has to be an error on omd layer or on ubuntu OS one.

 

Then i thought may  it's a god idea to set an snmptt on the system for proofing the situtation ... but it doesn't work i get through this walktrough ..   

 

https://mathias-kettner.de/checkmk_mkeventd_traps.html

 

But nothing happens, even with an normal testing trap ... so my assumption that omd   sth. bends over that the trap doesn't comes to the syslog or in the logs which ih ave configured in snmptt.ini. 

 

Then i stopped all OMD  Services .. the same Result .. 

 

May i forgot sth. to setup in the snmpd settings from scratch ...

 

best regards john 

 

 

Gesendet: Montag, 20. Februar 2017 um 19:08 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, "omd-users@lists.mathias-kettner.de" 






Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?








If you see the trap from printers then your mkeventd with snmptrap receiver is working correctly. That also means your other device is not correctly configured. :)
With the catchall rule you will see all traps send to your monitoring host.

 

Have you configured two different targets on your snmp sender side?

One for the monitoring host and one for your snmp browser?

 

Best regards

Andreas
 

 schrieb am Mo., 20. Feb. 2017 um 10:38 Uhr:





Hello Andreas

 

I've followed your advice to create an wildcard rule or at least i tried so...

 

My Rule has only one Condition:

 



	
		
			
			Text to match : .*

			 

			Is that correct ?  

			 

			Then i trigger my snnmp to test the Wildcard  Rule but nothing happens in the checkmk log but some other Traps from an Printer will be  logged fine.

			 

			My trap reciever which is the ireasoning browser tells me that the Trap is logged correctly and the Trigger works also... but not with checkmk.

			 

			This is my Snmp Trap which won't be processed in checkmk:

			 

			
			

	
		Source:
		192.168..xxx
		Timestamp:
		603 hours 54 minutes 9 seconds
		SNMP Version:
		1
	
	
		Enterprise:
		.iso.org.dod.internet.private.enterprises.edsMain
	
	
		Specific:
		6
	
	
		Generic:
		enterpriseSpecific
	
	
		Variable Bindings:
	
	
		
		
	
	
		Name:
		.iso.org.dod.internet.private.enterprises.edsMain.dTrap.dTrapDeviceTable.dTrapDeviceEntry.dTrapDeviceIndex.4
	
	
		Value:
		
		[Integer] 1

		 
		
	

			
			

			   

			 

			And this is my Trap from an printer which is logged in checkmk ( and no check is configured for this host in omd or checkmk) :

			 

			(no Service level)    192.168.xxx.xxx    all    1.3.6.1.4.1.683.6    Generic-Trap: 0, Specific-Trap: 0, Uptime: 8 sec    

			 

			 

			 

			best regards john 
			
			
			 

			 

			 

			 
			
		
	



 


Gesendet: Donnerstag, 16. Februar 2017 um 16:41 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










If you are using the mkeventd with buildin snmptrapd then you need to build a catchall rule inside event console.
Only if there is a matching rule you will see anything. Without rule nothing is shown.

 

Best regards

Andreas
 

 schrieb am Mi., 15. Feb. 2017 um 16:14 Uhr:




OMD Version: 2.11.20161004-labs-edition

 mkeventd (builtin: snmptrap)

 

Hello Guys 

 

Where i can see the incoming  Snmp Trap's in OMD ? .

 

In my rsyslog is no entry for it but the event console from check mk works and send some notification when the snmp  matches.

 

Then i thought maybe the reason is the rsyslog deamon from omd but thats not the problem. 

I tried both.. with rsyslog deamon on and off.

There 

Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-02-22 Thread fireskyer
 
 

Gesendet: Dienstag, 21. Februar 2017 um 13:35 Uhr
Von: firesk...@web.de
An: "Andreas Döhler" 
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?



Hello Andreas,

 

Yes I have 2 Sender Points which can configure on snmp server directly, but only 1 for an sensor.

 

But i retested this really often and there has to be an error on omd layer or on ubuntu OS one.

 

Then i thought may  it's a god idea to set an snmptt on the system for proofing the situtation ... but it doesn't work i get through this walktrough ..   

 

https://mathias-kettner.de/checkmk_mkeventd_traps.html

 

But nothing happens, even with an normal testing trap ... so my assumption that omd   sth. bends over that the trap doesn't comes to the syslog or in the logs which ih ave configured in snmptt.ini. 

 

Then i stopped all OMD  Services .. the same Result .. 

 

May i forgot sth. to setup in the snmpd settings from scratch ...

 

best regards john 

 

 

Gesendet: Montag, 20. Februar 2017 um 19:08 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, "omd-users@lists.mathias-kettner.de" 
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?




If you see the trap from printers then your mkeventd with snmptrap receiver is working correctly. That also means your other device is not correctly configured. :)
With the catchall rule you will see all traps send to your monitoring host.

 

Have you configured two different targets on your snmp sender side?

One for the monitoring host and one for your snmp browser?

 

Best regards

Andreas
 

 schrieb am Mo., 20. Feb. 2017 um 10:38 Uhr:





Hello Andreas

 

I've followed your advice to create an wildcard rule or at least i tried so...

 

My Rule has only one Condition:

 



	
		
			
			Text to match : .*

			 

			Is that correct ?  

			 

			Then i trigger my snnmp to test the Wildcard  Rule but nothing happens in the checkmk log but some other Traps from an Printer will be  logged fine.

			 

			My trap reciever which is the ireasoning browser tells me that the Trap is logged correctly and the Trigger works also... but not with checkmk.

			 

			This is my Snmp Trap which won't be processed in checkmk:

			 

			
			

	
		Source:
		192.168..xxx
		Timestamp:
		603 hours 54 minutes 9 seconds
		SNMP Version:
		1
	
	
		Enterprise:
		.iso.org.dod.internet.private.enterprises.edsMain
	
	
		Specific:
		6
	
	
		Generic:
		enterpriseSpecific
	
	
		Variable Bindings:
	
	
		
		
	
	
		Name:
		.iso.org.dod.internet.private.enterprises.edsMain.dTrap.dTrapDeviceTable.dTrapDeviceEntry.dTrapDeviceIndex.4
	
	
		Value:
		
		[Integer] 1

		 
		
	

			
			

			   

			 

			And this is my Trap from an printer which is logged in checkmk ( and no check is configured for this host in omd or checkmk) :

			 

			(no Service level)    192.168.xxx.xxx    all    1.3.6.1.4.1.683.6    Generic-Trap: 0, Specific-Trap: 0, Uptime: 8 sec    

			 

			 

			 

			best regards john 
			
			
			 

			 

			 

			 
			
		
	



 


Gesendet: Donnerstag, 16. Februar 2017 um 16:41 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?










If you are using the mkeventd with buildin snmptrapd then you need to build a catchall rule inside event console.
Only if there is a matching rule you will see anything. Without rule nothing is shown.

 

Best regards

Andreas
 

 schrieb am Mi., 15. Feb. 2017 um 16:14 Uhr:




OMD Version: 2.11.20161004-labs-edition

 mkeventd (builtin: snmptrap)

 

Hello Guys 

 

Where i can see the incoming  Snmp Trap's in OMD ? .

 

In my rsyslog is no entry for it but the event console from check mk works and send some notification when the snmp  matches.

 

Then i thought maybe the reason is the rsyslog deamon from omd but thats not the problem. 

I tried both.. with rsyslog deamon on and off.

There is no entry for the snmp Trap in rsyslog.

 

best regards john 

 

 

 

 


___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users




















___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-02-22 Thread fireskyer
 
 

Gesendet: Montag, 20. Februar 2017 um 10:38 Uhr
Von: firesk...@web.de
An: "Andreas Döhler" 
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?




Hello Andreas

 

I've followed your advice to create an wildcard rule or at least i tried so...

 

My Rule has only one Condition:

 



	
		
			
			Text to match : .*

			 

			Is that correct ?  

			 

			Then i trigger my snnmp to test the Wildcard  Rule but nothing happens in the checkmk log but some other Traps from an Printer will be  logged fine.

			 

			My trap reciever which is the ireasoning browser tells me that the Trap is logged correctly and the Trigger works also... but not with checkmk.

			 

			This is my Snmp Trap which won't be processed in checkmk:

			 

			
			

	
		Source:
		192.168..xxx
		Timestamp:
		603 hours 54 minutes 9 seconds
		SNMP Version:
		1
	
	
		Enterprise:
		.iso.org.dod.internet.private.enterprises.edsMain
	
	
		Specific:
		6
	
	
		Generic:
		enterpriseSpecific
	
	
		Variable Bindings:
	
	
		
		
	
	
		Name:
		.iso.org.dod.internet.private.enterprises.edsMain.dTrap.dTrapDeviceTable.dTrapDeviceEntry.dTrapDeviceIndex.4
	
	
		Value:
		
		[Integer] 1

		 
		
	

			
			

			   

			 

			And this is my Trap from an printer which is logged in checkmk ( and no check is configured for this host in omd or checkmk) :

			 

			(no Service level)    192.168.xxx.xxx    all    1.3.6.1.4.1.683.6    Generic-Trap: 0, Specific-Trap: 0, Uptime: 8 sec    

			 

			 

			 

			best regards john 
			
			
			 

			 

			 

			 
			
		
	



 


Gesendet: Donnerstag, 16. Februar 2017 um 16:41 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Where i can see incoming smmp Traps in OMD ?


If you are using the mkeventd with buildin snmptrapd then you need to build a catchall rule inside event console.
Only if there is a matching rule you will see anything. Without rule nothing is shown.

 

Best regards

Andreas
 

 schrieb am Mi., 15. Feb. 2017 um 16:14 Uhr:




OMD Version: 2.11.20161004-labs-edition

 mkeventd (builtin: snmptrap)

 

Hello Guys 

 

Where i can see the incoming  Snmp Trap's in OMD ? .

 

In my rsyslog is no entry for it but the event console from check mk works and send some notification when the snmp  matches.

 

Then i thought maybe the reason is the rsyslog deamon from omd but thats not the problem. 

I tried both.. with rsyslog deamon on and off.

There is no entry for the snmp Trap in rsyslog.

 

best regards john 

 

 

 

 


___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users











___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Where i can see incoming smmp Traps in OMD ?

2017-02-16 Thread fireskyer
Hello Marcel,

 

Ok thats make sense :) 

 

But before i use omd for snmp  i had snmptt and the submitcheckresult script  and the snmptt traps were always written in some snmp logs and  in the syslog too .. maybe an redirect funktion from snmptt it self i don't know 

 

But back to topic:

 

Where i can catch and see incoming logs in OMD which aren't match some Rules ? 

 

I tried to see sth. in checkmk  but i cannot see any traps 

 

best regards john 

 

 

 

 

 

 

 

 

 

 

 

 

 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Where i can see incoming smmp Traps in OMD ?

2017-02-15 Thread fireskyer
OMD Version: 2.11.20161004-labs-edition

 mkeventd (builtin: snmptrap)

 

Hello Guys 

 

Where i can see the incoming  Snmp Trap's in OMD ? .

 

In my rsyslog is no entry for it but the event console from check mk works and send some notification when the snmp  matches.

 

Then i thought maybe the reason is the rsyslog deamon from omd but thats not the problem. 

I tried both.. with rsyslog deamon on and off.

There is no entry for the snmp Trap in rsyslog.

 

best regards john 

 

 

 

 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Still some Problems with OMD

2016-12-08 Thread fireskyer

OMD - Open Monitoring Distribution Version 2.11.20161004-labs-edition
Ubuntu  Xenial LTS 
 
Hello Again 
 
Is my Error Message or my question to understand the Directory permissions for some apache or omd logics so much incomprehensible ?

If so plz. don't hesitate to say that ...

and it will be great to push me in the right direction

Thanks in advance

regards john


 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Still some Problems with OMD

2016-12-08 Thread fireskyer

OMD - Open Monitoring Distribution Version 2.11.20161004-labs-edition
Ubuntu  Xenial LTS 
 
Hello Again 
 
Is my Error Message  or my question to understand the Directory permissions for 
some apache or omd logics so much incomprehensible ?

If so plz. don't hesitate to say that ...

and  it will be great to  push me in the right direction 

Thanks in advance 

regards john 


 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Still some Problems with OMD

2016-12-06 Thread fireskyer
Hello Community, 

 

I have Posted in the past on this Topic  [omd-users] Migrate from nagios/Checkmk to OMD see at :

 http://www.mail-archive.com/omd-users@lists.mathias-kettner.de/msg01157.html

(  big thanks to   @Andreas Doehler so far for guidance me into  the right direction )

 

I tried with several ( not all) configs and cfgs to run the webif and it seems to that everything works ... 

 

Now i'm further and i can use the nagios core and  the icinga1.  

 

In the future i would change to the icinga2 or the neamon core so i need some help to run these properly.

 

But i cannot run the icinga2 core with the classic icinga gui 

 

it comes the following error:

 


Whoops!

Error: Could not read host and service status information!

It seems that Icinga is not running or has not yet finished the startup procedure and then creating the status data file. If Icinga is indeed not running, this is a normal error message. Please note that event broker modules and/or rdbms backends may slow down the overall (re)start and the cgis cannot retrieve any status information.

Things to check in order to resolve this error include:


	Check the Icinga log file for messages relating to startup or status data errors.
	Always verify configuration options using the -v command-line option before starting or restarting Icinga!
	If using any event broker module for Icinga, look into their respective logs and/or on their behavior!


make sure you read the documentation on installing, configuring and running Icinga thoroughly before continuing. If everything else fails, try sending a message to one of the mailing lists. More

information can be found at http://www.icinga.org.

 

Which settings i have to modify when i want to use the icinga2 core with the classic gui ? 

 

BTW: 

How about the main  mechanism in OMD to run some cores and their related guis.

Is this only restricted by the related  Permissions in the apache configs? 

Could i run every core to every gui ?

may someone could enlighten me a bit 

best regards john 

 

___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-12-01 Thread fireskyer
 

Update ( sorry I'm not so good in debug  things like that ): 

 

I only use the selfcreated localhost.cfg not any other files to exclude some migration error.

 

/omd/sites/SBA/etc/nagios/conf.d\localhost.cfg

 

 

I tried to run some other forks in my menue.

 

It comes the following errors:

 

checkmk: 

 

Cannot connect to 'unix:/omd/sites/SBA/tmp/run/live': [Errno 2] No such file or directory

 

thrurk:

SBA: ERROR: failed to open socket /omd/sites/SBA/tmp/run/live: No such file or directory.. (/omd/sites/SBA/tmp/run/live)

 

Classic Icinga:

SAME Error es nagios.

 

Here is my Virtual Host config ( apache2ctl -S):

 

VirtualHost configuration:
*:80                   xx.xx.xxx (/etc/apache2/sites-enabled/000-default.conf:1)
*:443                  xx.xx.xxx (/etc/apache2/sites-enabled/default-ssl.conf:2)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex fcgid-pipe: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex fcgid-proctbl: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33

 

Seems ok or ? 

 

so which other configs should i post .. that may we're able to solve that problem ? 

 

best regards john 

 

 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-12-01 Thread fireskyer
Hello again,

 

The Problem still exist  i had made some steps:

 

-Check the nagios config 

-Created an new instance and set only an test localhost 

- Checked  the apache logs

- checked the nagios log 

 

 

Could someone bring me on Track or in the right direction ? 

 

Do i have to check my apache configs ? 

 

thanks fro help 

 

best regards john 

 

 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-11-09 Thread fireskyer
Hello Again,

 

Now i have a little bit time to set an test-run

 

So what i have done so far:

 

Give the  files in /omd/sites/SBATEST/etc/nagios/conf.d

the owner from the OMD User.

 

Modified the commands.cfg and the ressource.cfg to the new variables.

 

But i get the error again Error: Could not read host and service status information!

 

So is this an apache problem ?:

 

Here is an outline from the apache.conf: 

 

ServerName 127.0.0.1


# OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD OMD  
# Better do not change anything in this block or you will have to
# resolve conflicts in omd cp/mv/upate:

ServerRoot "/omd/sites/SBA"
PidFile /omd/sites/SBA/tmp/apache/run/apache.pid
DocumentRoot "/omd/sites/SBA/var/www"

# Include file where TCP port number is configured. That file
# is automatically created and changed by 'omd config' if you
# change APACHE_TCP_PORT.
Include /omd/sites/SBA/etc/apache/listen-port.conf

# User/Group to run the webserver with
User SBA
Group SBA
 

Honestly . I'm a little bit helpless with thes problem 


 

regards john 



Gesendet: Freitag, 07. Oktober 2016 um 08:56 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Migrate from nagios/Checkmk to OMD




Hello Andreas 

 

I set only a few config files in omd nagios folder   

/omd/sites/SBATEST/etc/nagios/conf.d

 

And i comes an whoops  Error: Could not read host and service status information!

... so which files are really needed to test an minimal config with the old nagios files.

 

Or is it an Ubuntu Permission  Problem ? my www-data user is in both omd instance groups for the instances but not in the whole omd group 

 

In former times i had the error really often and i thought i can  avoid such things if i use OMD.

 

regards john 

 

 

 

Hello Andreas, 

 


> Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

> You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

My approach is to set nagios at the first monitoring system when i migrate from the old one 

Cause atm i cannot dive deeper into the checkmk checks and their mechanism and then from time to time i would convert the nagios checks in checkmk with wato.

Or is some feature availiable in check_mk to do this really fast ? ( a tool or sth like that ) 

 


>Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

>You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

With the merge one i have to  look which one will fit best.

 


>Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

>Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 

For some time i create some Config that i can see the check hosts in nagios .. but not more .. atm check_mk is just an experience.

 

I think it's a good idea to create another instance for testing.

 

I will do some testing and  if there problems  occours i'll write back.

 

Btw. could i use icinga2 core for the standard nagios  checks or do i have to modify sth. in order to run omd with  icinga2 core.

 

thanks so far andreas 

 

regards john 

 

Gesendet: Mittwoch, 05. Oktober 2016 um 16:25 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Migrate from nagios/Checkmk to OMD







Hi John

 




 

 how do you merge ? with rsync ? 

i would like  a tool which i can choose to keep the original ones  unmodified.

 




 

Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.

  





> do you have so many classical configured Nagios checks?

jep we have many classic checks.

 





Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 




 





>integrate all files from /etc/check_mk/conf.d and >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't >overwrite the files, i merge these files >- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories all hosts again






Beside the fact the we don't have many checkmk checks ( it's still for supporting nagios.. may to replace some checks in  future ) i think i can skip these step.

 





 






>copy your Nagios state files to the site that the system is starting with
>the last state from the old system. 











The state file i

Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-10-07 Thread fireskyer

Hello Andreas 

 

I set only a few config files in omd nagios folder   

/omd/sites/SBATEST/etc/nagios/conf.d

 

And i comes an whoops  Error: Could not read host and service status information!

... so which files are really needed to test an minimal config with the old nagios files.

 

Or is it an Ubuntu Permission  Problem ? my www-data user is in both omd instance groups for the instances but not in the whole omd group 

 

In former times i had the error really often and i thought i can  avoid such things if i use OMD.

 

regards john 

 

 

 

Hello Andreas, 

 


> Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

> You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

My approach is to set nagios at the first monitoring system when i migrate from the old one 

Cause atm i cannot dive deeper into the checkmk checks and their mechanism and then from time to time i would convert the nagios checks in checkmk with wato.

Or is some feature availiable in check_mk to do this really fast ? ( a tool or sth like that ) 

 


>Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

>You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

With the merge one i have to  look which one will fit best.

 


>Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

>Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 

For some time i create some Config that i can see the check hosts in nagios .. but not more .. atm check_mk is just an experience.

 

I think it's a good idea to create another instance for testing.

 

I will do some testing and  if there problems  occours i'll write back.

 

Btw. could i use icinga2 core for the standard nagios  checks or do i have to modify sth. in order to run omd with  icinga2 core.

 

thanks so far andreas 

 

regards john 

 

Gesendet: Mittwoch, 05. Oktober 2016 um 16:25 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Migrate from nagios/Checkmk to OMD







Hi John

 




 

 how do you merge ? with rsync ? 

i would like  a tool which i can choose to keep the original ones  unmodified.

 




 

Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.

  





> do you have so many classical configured Nagios checks?

jep we have many classic checks.

 





Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 




 





>integrate all files from /etc/check_mk/conf.d and >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't >overwrite the files, i merge these files >- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories all hosts again






Beside the fact the we don't have many checkmk checks ( it's still for supporting nagios.. may to replace some checks in  future ) i think i can skip these step.

 





 






>copy your Nagios state files to the site that the system is starting with
>the last state from the old system. 











The state file is also not critical... what it counts is the actual  state  but i think i still  copy these one .. it's the status.dat .. am I right ? 






Yes - you have to check the naming of the files - it is sometimes different in manual Nagios installations then OMD.

 






 

> ~/local/lib/nagios/plugins

 

where i can see the standard plugins from omd to compare thes ones with my old nagios instance ?

 






OMD delivered plugins are inside ~/lib/nagios/plugins 






 










> replace all $USER1$ with $USER2$ if the plugin is inside the ~/local/folder











what do you mean with this statment .. may you could describe a little bit more exactly .. where i have to set these variable ...in the command.cfg or could i change this in the resource.cfg  ?.







Inside your current resource.cfg there is the user macro defined for the standard plugin path ($USER1$) inside OMD you have two paths for plugins the standard one and the local on ($USER2$).

As you have plugins in two paths you need to change the configuration to reflect this situation.

 

Best regards

Andreas

 

 

 

 






___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-10-06 Thread fireskyer
Hello Andreas, 

 


> Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

> You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

My approach is to set nagios at the first monitoring system when i migrate from the old one 

Cause atm i cannot dive deeper into the checkmk checks and their mechanism and then from time to time i would convert the nagios checks in checkmk with wato.

Or is some feature availiable in check_mk to do this really fast ? ( a tool or sth like that ) 

 


>Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

>You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.


 

With the merge one i have to  look which one will fit best.

 


>Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

>Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 

For some time i create some Config that i can see the check hosts in nagios .. but not more .. atm check_mk is just an experience.

 

I think it's a good idea to create another instance for testing.

 

I will do some testing and  if there problems  occours i'll write back.

 

Btw. could i use icinga2 core for the standard nagios  checks or do i have to modify sth. in order to run omd with  icinga2 core.

 

thanks so far andreas 

 

regards john 

 

Gesendet: Mittwoch, 05. Oktober 2016 um 16:25 Uhr
Von: "Andreas Döhler" 
An: firesk...@web.de, omd-users@lists.mathias-kettner.de
Betreff: Re: [omd-users] Migrate from nagios/Checkmk to OMD







Hi John

 




 

 how do you merge ? with rsync ? 

i would like  a tool which i can choose to keep the original ones  unmodified.

 




 

Manual merge or use a diff tool, the problem is that you want some of the newer / actual settings inside your migrated site.

You can also add the newer rules first to your ".mk" files and then overwrite the existing ones.

  





> do you have so many classical configured Nagios checks?

jep we have many classic checks.

 





Then it would be good to migrate the classical configuration first inside WATO before you start with your migration.

Or other question from my side - at the moment do you define the hosts all inside WATO in your manual Nagios/Check_MK setup? 

 




 





>integrate all files from /etc/check_mk/conf.d and >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't >overwrite the files, i merge these files >- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories all hosts again






Beside the fact the we don't have many checkmk checks ( it's still for supporting nagios.. may to replace some checks in  future ) i think i can skip these step.

 





 






>copy your Nagios state files to the site that the system is starting with
>the last state from the old system. 











The state file is also not critical... what it counts is the actual  state  but i think i still  copy these one .. it's the status.dat .. am I right ? 






Yes - you have to check the naming of the files - it is sometimes different in manual Nagios installations then OMD.

 






 

> ~/local/lib/nagios/plugins

 

where i can see the standard plugins from omd to compare thes ones with my old nagios instance ?

 






OMD delivered plugins are inside ~/lib/nagios/plugins 






 










> replace all $USER1$ with $USER2$ if the plugin is inside the ~/local/folder











what do you mean with this statment .. may you could describe a little bit more exactly .. where i have to set these variable ...in the command.cfg or could i change this in the resource.cfg  ?.







Inside your current resource.cfg there is the user macro defined for the standard plugin path ($USER1$) inside OMD you have two paths for plugins the standard one and the local on ($USER2$).

As you have plugins in two paths you need to change the configuration to reflect this situation.

 

Best regards

Andreas

 

 

 

 





___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Migrate from nagios/Checkmk to OMD

2016-10-05 Thread fireskyer
Hello Andreas

 

First of all ... thanks for the infos 

 

 how do you merge ? with rsync ? 

i would like  a tool which i can choose to keep the original ones  unmodified.

 


> do you have so many classical configured Nagios checks?

jep we have many classic checks.

 


>integrate all files from /etc/check_mk/conf.d and >/etc/check_mk/multisite.d/ to the new OMD side - at this step i don't >overwrite the files, i merge these files >- copy the autocheck files from /var/lib/check_mk/autochecks to your OMD if > you don't want to inventories all hosts again


Beside the fact the we don't have many checkmk checks ( it's still for supporting nagios.. may to replace some checks in  future ) i think i can skip these step.

 


>copy your Nagios state files to the site that the system is starting with
>the last state from the old system.

The state file is also not critical... what it counts is the actual  state  but i think i still  copy these one .. it's the status.dat .. am I right ? 

 

> ~/local/lib/nagios/plugins

 

where i can see the standard plugins from omd to compare thes ones with my old nagios instance ?

 


> replace all $USER1$ with $USER2$ if the plugin is inside the ~/local/folder

what do you mean with this statment .. may you could describe a little bit more exactly .. where i have to set these variable ...in the command.cfg or could i change this in the resource.cfg  ?.

 

regards john 

 

 

 


 

 

 

 

 

 


 

 

 


 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Migrate from nagios/Checkmk to OMD

2016-10-05 Thread fireskyer
OMD omd-2.11.20161004-labs-edition 
Nagios 3.5 
Checkmk  1.2.6p12



Hello Community,

Where trying to migrate from our Nagios/Check_mk system to OMD.

I think the most business is done with copy&paste some config files.

Here is my approach:


Change to instance  OMD[mysite] with sudo su - mysite

Nagios Files: 

Cfg Files: Copy all cfg Files  and the ( nagios.cfg)  from old nagios folder   
/etc/mysite  to  /etc/nagios/ and ~conf.d 


Plugins: 

Copy all PLugins from usr\local\nagios\libexec to  ~/local/lib/nagios/plugins

Change the owner to omd standard mysite:mysite


check_mk Files:

OMD[mysite]:~/etc/check_mk

i don't know exaclty which i should replace and which should be kept.


I will be great if someone can give me some advices which files are crtitical 
or shouldnt replaced with the old ones.

regards john 


___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Remove HTPP Redirect from OMD-Labs Version

2016-10-04 Thread fireskyer
Do i forgot some important infos ?  

regards john 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Remove HTPP Redirect from OMD-Labs Version

2016-10-04 Thread fireskyer
Do i forgot some important infos ?  

regards john 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Remove HTPP Redirect from OMD-Labs Version

2016-09-26 Thread fireskyer

Ubuntu Xenial LTS
 
Package which are installed:
omd-2.11.20160829-labs-edition/testing,now 0.ubuntu16.04 amd64 [Installed,auto]
omd-labs-edition-daily/testing,now 2.11.20160829 all [installed]
 
Hello everybody,
 
I installed these Version of OMD and created an Instance.
 
Unfortunately when i try to Login to the omd site hey redirects me anytime on 
the thrurk gui .. even if i change the omd gui in the omd option menue.
 
So my guess is that in any apache  configuration is an entry for an exiplicit 
redirect. 
 
But my we can  take an easier way. If someone could tell me an version which is 
working with xenial and has no redirect it will be okay also .. cause i still  
had  an snapshot before ...
 
Thanks in advance 
 
regards john 
 
 
 
 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Migration von checkmk/nagios -> omd system

2014-01-28 Thread fireskyer
 

Hallo  Community,

 

Wir haben seit längeren einen Nagios/checkmk Instanz laufen.

 

Wir überlegen aber auf OMD umzusteigen und deshalb wollte ich jetzt mal die bestehenden Nagios u. Checkmk Dateien umziehen.

 

Was muss ich denn hierfür alles beachten ?

 

Wie gehe ich hierfür am besten vor?

 

Ich habe schonmal die sufu benutzt aber nur das gefunden : http://www.mail-archive.com/checkmk-de@lists.mathias-kettner.de/msg02009.html

 

Und das beschreibt ja eher den Weg von omd -> omd. 

 

grüße john s.

 

 

 

 

 

 

 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Internal error:: html instance has no attribute 'multisite_views error in check mk multisite

2014-01-16 Thread fireskyer

 

Got it

 

It's a python problem

 

 

Solution:

 

Install python3 with aptitude

 

and no more errors occured

 

regards john s.

 

 

Gesendet: Donnerstag, 16. Januar 2014 um 13:26 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: RE: Internal error:: html instance has no attribute 'multisite_views error in check mk multisite


 
 

Sorry i forgot that omd has there own apache instances :

here is the apache  error.log:
[Thu Jan 16 00:00:04 2014] [notice] mod_python: Creating 8 session mutexes based on 4 max processes and 25 max threads.
[Thu Jan 16 00:00:04 2014] [notice] mod_python: using mutex_directory /tmp
[Thu Jan 16 00:00:04 2014] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 Python/2.7.3 mod_fcgid/2.3.6 configured -- resuming normal operations
[Thu Jan 16 09:44:50 2014] [notice] mod_python (pid=24951, interpreter='test'): Importing module '/omd/sites/test/share/omd/htdocs/index.py'
[Thu Jan 16 13:08:29 2014] [notice] mod_python (pid=24949, interpreter='test'): Importing module '/omd/sites/test/share/omd/htdocs/index.py'
[Thu Jan 16 13:08:36 2014] [error] Internal error: 'NoneType' object has no attribute 'set_prepend_site'
[Thu Jan 16 13:08:38 2014] [notice] child pid 24951 exit signal Segmentation fault (11), possible coredump in /omd/sites/test
[Thu Jan 16 13:14:01 2014] [error] Internal error: html instance has no attribute 'display_options'
[Thu Jan 16 13:14:03 2014] [error] Internal error: html instance has no attribute 'live'


And here is the English Version of the mpm and prefork Problem :

http://comments.gmane.org/gmane.network.nagios.checkmk/4293

but as is always said ... it doesn't work to replace event version with the prefork one
 


  
 
regards john s.
 

Gesendet: Mittwoch, 15. Januar 2014 um 10:53 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: Internal error:: html instance has no attribute 'multisite_views error in check mk multisite
OS: Ubuntu 12.04 LTS 64 Bit

OMD: omd-1.10  

hello guys
 

I tried to setup an test omd system
 
I installed omd in this way :  aptitude repository from consol labs  and installed over repository with aptitude
 
If i tried to  start the multisite interface in browser there comes the following error :
 
"Internal error:: html instance has no attribute 'multisite_views"
 
So i googled a  while and found this post :
 
http://www.xing.com/net/nagios/nagios-core-nagios-plugins-de-196729/startseite-multisite-wird-nicht-mehr-korrekt-angezeigt-40785322
 
So i changed to mpm-prefork but nothing happened ...


And the Apache log has no error entry if i start the multisite webif.

 
 
regards john s.
 
 



___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


Re: [omd-users] Internal error:: html instance has no attribute 'multisite_views error in check mk multisite

2014-01-16 Thread fireskyer

 
 

Sorry i forgot that omd has there own apache instances :

here is the apache  error.log:
[Thu Jan 16 00:00:04 2014] [notice] mod_python: Creating 8 session mutexes 
based on 4 max processes and 25 max threads.
[Thu Jan 16 00:00:04 2014] [notice] mod_python: using mutex_directory /tmp
[Thu Jan 16 00:00:04 2014] [notice] Apache/2.2.22 (Ubuntu) mod_python/3.3.1 
Python/2.7.3 mod_fcgid/2.3.6 configured -- resuming normal operations
[Thu Jan 16 09:44:50 2014] [notice] mod_python (pid=24951, interpreter='test'): 
Importing module '/omd/sites/test/share/omd/htdocs/index.py'
[Thu Jan 16 13:08:29 2014] [notice] mod_python (pid=24949, interpreter='test'): 
Importing module '/omd/sites/test/share/omd/htdocs/index.py'
[Thu Jan 16 13:08:36 2014] [error] Internal error: 'NoneType' object has no 
attribute 'set_prepend_site'
[Thu Jan 16 13:08:38 2014] [notice] child pid 24951 exit signal Segmentation 
fault (11), possible coredump in /omd/sites/test
[Thu Jan 16 13:14:01 2014] [error] Internal error: html instance has no 
attribute 'display_options'
[Thu Jan 16 13:14:03 2014] [error] Internal error: html instance has no 
attribute 'live'


And here is the English Version of the mpm and prefork Problem :

http://comments.gmane.org/gmane.network.nagios.checkmk/4293

but as is always said ... it doesn't work to replace event version with the 
prefork one 
 


  
 
regards john s.
 

Gesendet: Mittwoch, 15. Januar 2014 um 10:53 Uhr
Von: firesk...@web.de
An: omd-users@lists.mathias-kettner.de
Betreff: Internal error:: html instance has no attribute 'multisite_views error 
in check mk multisite
OS: Ubuntu 12.04 LTS 64 Bit

OMD: omd-1.10  

hello guys
 

I tried to setup an test omd system
 
I installed omd in this way :  aptitude repository from consol labs  and 
installed over repository with aptitude
 
If i tried to  start the multisite interface in browser there comes the 
following error :
 
"Internal error:: html instance has no attribute 'multisite_views"
 
So i googled a  while and found this post :
 
http://www.xing.com/net/nagios/nagios-core-nagios-plugins-de-196729/startseite-multisite-wird-nicht-mehr-korrekt-angezeigt-40785322
 
So i changed to mpm-prefork but nothing happened ...


And the Apache log has no error entry if i start the multisite webif.

 
 
regards john s.
 
 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users


[omd-users] Internal error:: html instance has no attribute 'multisite_views error in check mk multisite

2014-01-15 Thread fireskyer

OS: Ubuntu 12.04 LTS 64 Bit 

OMD:  omd-1.10  
 

hello guys
 

I tried to setup an test omd system
 
I installed omd in this way :  aptitude repository from consol labs  and 
installed over repository with aptitude
 
If i tried to  start the multisite interface in browser there comes the 
following error :
 
"Internal error:: html instance has no attribute 'multisite_views"
 
So i googled a  while and found this post :
 
http://www.xing.com/net/nagios/nagios-core-nagios-plugins-de-196729/startseite-multisite-wird-nicht-mehr-korrekt-angezeigt-40785322
 
So i changed to mpm-prefork but nothing happened ...


And the Apache log has no error entry if i  start  the multisite webif.

 
 
regards john s.
 
 
___
omd-users mailing list
omd-users@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/omd-users