RANCID integration in Observium on a RHEL like OS
![](https://secure.gravatar.com/avatar/9a9842222c19df65b3f4f8bab26eb933.jpg?s=120&d=mm&r=g)
Hi,
I'm trying to integrate RANCID in an Observium server installed on top of a Scientific Linux 6.6.
So far I found this documentation for ubuntu: http://www.observium.org/docs/rancid/
I somehow "replaced by" what was necessary such as apt-get by yum and www-data by apache.
Though I'm not able to see the "Config" tab in my observium web pages.
Am I missing some specific steps for RHEL or it is just not meant to work under RHEL?
Many thanks in advance!
Cheers, Shkelzen
![](https://secure.gravatar.com/avatar/a7d7e58181948e0de1e19e95dba431d1.jpg?s=120&d=mm&r=g)
Usually a file permissions/group membership issue; and/or a hostname matching issue.
Observium config should pretty much should just be something like,
# grep -i rancid config.php // RANCID integration $config['rancid_version'] = 3; $config['rancid_configs'] = array('/var/rancid/bigip/configs/', '/var/rancid/firewall/configs/', '/var/rancid/router/configs/', '/var/rancid/switch/configs/', '/var/rancid/observium/configs',; $config['rancid_suffix'] = ''; $config['rancid_ignorecomments'] = 0; $config['rancid']['os_map']['panos'] = 'paloalto'; #
Make sure your device hostnames in Observium match up with filenames like /var/rancid/group/configs/hostname so that Observium can find the appropriate file - this is where $config[‘rancid_suffix’] comes in to play, e.g. if your device hostnames are not full domain names, but your rancid hostnames are full domain names, set rancid_suffix as appropriate.
Make sure your web server user is a member of the “rancid” group.
SELinux context for /var/rancid/group/* should be,
# ls -lZ /var/rancid/router drwxr-x---. rancid rancid system_u:object_r:var_t:s0 configs -rw-r-----. rancid rancid system_u:object_r:var_t:s0 router.db -rw-r-----. rancid rancid system_u:object_r:var_t:s0 routers.all -rw-r-----. rancid rancid system_u:object_r:var_t:s0 routers.down -rw-r-----. rancid rancid system_u:object_r:var_t:s0 routers.up -rw-r-----. rancid rancid system_u:object_r:var_t:s0 runcount #
I don’t believe any SELinux booleans need to be set to read files under that context.
-Colin
On 4 March 2016 at 21:59, Shkelzen Rugovac shkelzen.rugovac@gmail.com wrote:
Hi,
I'm trying to integrate RANCID in an Observium server installed on top of a Scientific Linux 6.6.
So far I found this documentation for ubuntu: http://www.observium.org/docs/rancid/
I somehow "replaced by" what was necessary such as apt-get by yum and www-data by apache.
Though I'm not able to see the "Config" tab in my observium web pages.
Am I missing some specific steps for RHEL or it is just not meant to work under RHEL?
Many thanks in advance!
Cheers, Shkelzen
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Colin Stubbs
-
Shkelzen Rugovac