Installing Observium

Discussion in 'Linux VPS/Dedicated - General' started by Davor, Jul 13, 2013.

  1. Davor

    Davor New Member

    Hi

    Did someone tried to install http://www.observium.org/ on VPS? I see that CentOS is not supported, so it confuses me, I stuck on step where I need to update config.php fo database.

    I tried to install it as a subdomain of my main domain, is that OK?
    I'm not an unix expert and even they say that 'install is pretty simple', I didn't see it that way :)

    any tips?
    thanks
     
  2. KH-Chad

    KH-Chad Banned User Staff Member

    Hi Davor,

    I haven't installed it personally but from the documentation installing it on a subdomain shouldn't be an issue.

    Are you having issues with running the update.php script for updating the database, or adding fping to the config file?
     
  3. Davor

    Davor New Member

    Hey Chad,

    Yeah, I created manually db through cPanel, and stuck on adding fping. I will try today again and will see If goes ok this time :)
     
  4. KH-Chad

    KH-Chad Banned User Staff Member

    Have you made sure that fping is actually installed on your server? If it is then you can use the which command to find the installation path, which should be used instead of the path that's in the install manual:

    which fping

    If it isnt installed then typing
    fping
    at the prompt will produce the results
    -bash: fping: command not found
    In which case, of course, it will need to be installed. That install information can be found at:
    http://pkgs.org/centos-6-rhel-6/repoforge-i386/fping-2.4-1.b2.3.el6.rf.i686.rpm.html
     
  5. Davor

    Davor New Member

    Hey Chad,
    fping wasn't installed and I installed it and I try to fping some ip and its working.

    I can login into UI (I added user successfully), I'm stucked now on adding hostname, I updated community for localhost in snmpd.conf

    Code:
    com2sec local    localhost      <mykey>
    com2sec mynetwork NETWORK/24      <mykey>

    but I guess something is missing, because it can't find it


    Code:
    [email protected] [/home/user/opt/observium]# ./addhost.php localhost <mykey> v2c
    Trying v2c community <mykey> ...
    No reply on community <mykey> using v2c
    Could not reach localhost with given SNMP community using v2c
    Trying v2c community<mykey> ...
    No reply on community <mykey> using v2c
    Could not reach localhost with given SNMP community using v2c
     
  6. KH-Mathew

    KH-Mathew Systems Administration Staff Member

    Did you follow the directions here for the snmp client? http://www.observium.org/wiki/NetSNMPd_Client_Configuration
    Have you made sure that there is an snmp process running?
    Are you positive that the password is correct?
    Are you sure that localhost is allowed and that you don't need to use the actual hostname of the server?
    Have you tried disabling the firewall?
     
  7. Davor

    Davor New Member

    Hi, thanks for dealing this with me :)

    yes, snmp is running

    Code:
    [email protected] [/home/user/opt/observium]# service snmpd status
    snmpd (pid  11693) is running...
    I receive huge list if I do this
    Code:
    snmpwalk -v 1 -c <community> -O e localhost

    I found support answer, saying that it could be missing sysObjectId
    http://jira.observium.org/browse/OBSERVIUM-245

    where I can find this Id?
    I tried adding both localhost or host name with firewall disabled and its the same
     
  8. KH-Mathew

    KH-Mathew Systems Administration Staff Member

    Check out http://www.net-snmp.org/docs/man/snmpd.conf.html

    What you have in your snmpd.conf file?
     
  9. Davor

    Davor New Member

    I used the info from docs above


    Code:
    com2sec readonly  localhost        <mycommunity>
    group MyROGroup v1        readonly
    group MyROGroup v2c        readonly
    group MyROGroup usm        readonly
    view all    included  .1                              80
    access MyROGroup ""    any      noauth    exact  all    none  none
    syslocation "Mexico City, Mexico"
    syscontact [email protected]
    sysDescr "Description"
    #This line allows Observium to detect the host OS if the distro script is installed
    extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
     
  10. KH-Mathew

    KH-Mathew Systems Administration Staff Member

    Based on the thread that you posted a link to, I would try setting te sysObjectID in the config file.
     
  11. Davor

    Davor New Member

    Where can I find the value of sysObjectID?
    thanks
     
  12. KH-Mathew

    KH-Mathew Systems Administration Staff Member

    See if this helps:

    If setting the value to .1.3.6.1.4.1.8072.3.2.10 and restarting snmp does not fix the problem then lets see what dmesg and /var/log/messages say about the event. Try doing
    Code:
    dmesg|tail -f
    In one terminal while adding the host in another terminal. You may also want to try
    Code:
    tail -f /var/log/messages
    Just make sure that syslog is enabled in Observium as outlined here http://www.observium.org/wiki/Configuration_Options#Syslog_Settings .
    I might would comment out the $config['syslog_filter'] option so syslog will be more verbose.
     
  13. Davor

    Davor New Member

    Ok, thanks will try this!
     
  14. Davor

    Davor New Member

    Hm, I think I will leave this for some other day :(

    When i restart snmpd, I only see service restarted in /var/log/messages

    Code:
    Jul 15 09:32:12 host snmpd[24309]: Received TERM or STOP signal...  shutting down...
    Jul 15 09:32:12 host snmpd[27869]: Duplicate IP address detected, some interfaces may not be visible in IP-MIB
    Jul 15 09:32:12 host snmpd[27869]: NET-SNMP version 5.3.2.2 
    but no log when trying to add new host.
     
  15. KH-Mathew

    KH-Mathew Systems Administration Staff Member

    I am going to install on my VPS in the next few days. I will let you know if I can duplicate the issue. I will post back when I have had a chance to poke at it.
     
  16. Davor

    Davor New Member

    that would be awesome Mathew.

    thanks
     
  17. KH-Mathew

    KH-Mathew Systems Administration Staff Member

    Hey Davor,

    I got it running on my VPS

    Code:
    [email protected] [/home/moon/public_html/observium]# ./addhost.php localhost public v2c
    Trying v2c community public ...
     
    Discovering localhost (1)localhost 1 linux  (unix)
    Adding: lo(1)()Adding: venet0(2)()Adding: tun0(13)()
    Discovered in 0.115 seconds
     
    localhost 1 linux  (unix)
    IPv4 Addresses : S+S+S+S+S+
    Discovered in 0.162 seconds
     
    localhost 1 linux  (unix)
    IPv6 Addresses :
    Discovered in 0.066 seconds
     
    Added device localhost (1)
    
    Did you do this (from http://www.observium.org/wiki/NetSNMPd_Client_Configuration)
    If not, then this would be in line with the bug about RHEL not giving the sysObjectID. I think that sysObjectID is what they are actually referring to by
    Also, just to make sure, you did use an actual string for <Community> right? Make sure you used the same string for <Community> in the smpd.conf and when adding the host.
     
  18. Davor

    Davor New Member

    Hi, yeah, I have distro in place, I also added that OPTION for redhat as instructed.

    could it be something related with ports?
    I tried disabling csf firewall
     
  19. KH-Mathew

    KH-Mathew Systems Administration Staff Member

    I am not sure about ports. It would seem that the firewall should not matter when using localhost, but I may be wrong. If disabling csf does not correct the issue then it is definitely not an issue with ports being blocked. Can you actually login to observium? Have you tried adding a different host?
     
  20. Davor

    Davor New Member

    Yeah, I can login, I even tried adding the host in UI, but its the same, I tried 'localhost' and 'host.mydomain.com', will check all the steps, maybe I jumped something.
     

Share This Page