Details

    • Help
    • Resolution: Not A Bug
    • Minor
    • None
    • Professional Edition
    • Default
    • OS Linux 5.14.0-284.11.1.el9_2.x86_64 [amd64] (Rocky 9.2)
      Apache 2.4.53 (Rocky Linux)
      PHP 8.2.10 (OPcache: ENABLED) (Memory: 128MB)

    Description

      Hello,

      although I can see that syslog packets are received by observium via tcpdump, unfortunately they don't show in the API, or as .log files in any of the folders.

      When I tried to run syslog.php manually, I got the errors seen in the output file (attached).

      Would it be possible to get some help with this?

       

      Many Thanks,

      Attachments

        1. 30-observium.conf
          1 kB
          Dimitrios Ntarladimas
        2. rsyslog.conf
          3 kB
          Dimitrios Ntarladimas
        3. syslog-error
          5 kB
          Dimitrios Ntarladimas
        4. syslog-settings.png
          206 kB
          Dimitrios Ntarladimas

        Activity

          [OBS-4655] syslog.php cannot run, gives errors

          You need to look into docs section about host association(s):
          https://docs.observium.org/syslog/#match-syslog-hostnameip-with-device

          For debugging, you need set logs dir writeable for syslog user.
          Simplest way set writeable for others:

          chmod o+rwx /opt/observium/logs

          Mainly, after change syslog collect setting you need restart rsyslog service.

          landy Mike Stupalov added a comment - You need to look into docs section about host association(s): https://docs.observium.org/syslog/#match-syslog-hostnameip-with-device For debugging, you need set logs dir writeable for syslog user. Simplest way set writeable for others: chmod o+rwx /opt/observium/logs Mainly, after change syslog collect setting you need restart rsyslog service.

          Hello Mike, 

           

          I disabled it (it was part of my troubleshooting and trying different things), but syslog is still not working. 

           

          Now, when I run manually ./syslog.php, nothing happens. I still don't get any logs under the host, and I have a weird debug..syslog file in the logs, without too much info in it. Do you have any other ideas why it isn't working?

          If syslog would work, would I see host syslog files inside the observium/logs folder?

           

          [root@stk-observium01 logs]# cat debug..syslog
          [2023/11/09 12:11:42 +0000] syslog.php(2245246):
          [2023/11/09 12:11:42 +0000] syslog.php(2245246):
          [2023/11/09 12:11:42 +0000] syslog.php(2245246):
          [2023/11/09 12:12:13 +0000] syslog.php(2245246):
          [2023/11/09 12:12:13 +0000] syslog.php(2245246):
          [2023/11/09 12:12:13 +0000] syslog.php(2245246):

          d.ntarladimas Dimitrios Ntarladimas added a comment - Hello Mike,    I disabled it (it was part of my troubleshooting and trying different things), but syslog is still not working.    Now, when I run manually ./syslog.php, nothing happens. I still don't get any logs under the host, and I have a weird debug..syslog file in the logs, without too much info in it. Do you have any other ideas why it isn't working? If syslog would work, would I see host syslog files inside the observium/logs folder?   [root@stk-observium01 logs] # cat debug..syslog [2023/11/09 12:11:42 +0000] syslog.php(2245246): [2023/11/09 12:11:42 +0000] syslog.php(2245246): [2023/11/09 12:11:42 +0000] syslog.php(2245246): [2023/11/09 12:12:13 +0000] syslog.php(2245246): [2023/11/09 12:12:13 +0000] syslog.php(2245246): [2023/11/09 12:12:13 +0000] syslog.php(2245246):

          Follow instructions from docs:
          https://docs.observium.org/syslog/

          Do not use options whose purpose you do not know.

          landy Mike Stupalov added a comment - Follow instructions from docs: https://docs.observium.org/syslog/ Do not use options whose purpose you do not know.

          Remove your FIFO file config option. You set non FIFO file!
          This option not for general use.

          landy Mike Stupalov added a comment - Remove your FIFO file config option. You set non FIFO file! This option not for general use.

          General questions and device support can be discussed in our Discord channel, click here to join.


          Please make and attach additional information about the device:

          • full snmp dump from device:

            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk
            snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk

            If device not support SNMP version 2c, replace -v2c with -v1.

          • If you have problems with discovery or poller processes, please do and attach these debugs:

            ./discovery.php -d -h <device>
            ./poller.php -d -h <device>

          • additionally attach device and/or vendor specific MIB files

          This comment is added automatically.

          bot Observium Bot added a comment - General questions and device support can be discussed in our Discord channel, click here to join . Please make and attach additional information about the device: full snmp dump from device: snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk If device not support SNMP version 2c, replace -v2c with -v1. If you have problems with discovery or poller processes, please do and attach these debugs: ./discovery.php -d -h <device> ./poller.php -d -h <device> additionally attach device and/or vendor specific MIB files This comment is added automatically.

          People

            landy Mike Stupalov
            d.ntarladimas Dimitrios Ntarladimas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: