Installing VIA Yum

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
theangryheretic
Posts: 15
Joined: Fri Feb 24, 2012 4:51 pm

Installing VIA Yum

Post by theangryheretic »

Does anyone know if there is a way to install Nagios via yum, and have it incorporate the --with-command-group=nagcmd that you would supply if you compiled it from source? Or is installing it from source the only way to get the --with-command-group=nagcmd flag added?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Installing VIA Yum

Post by abrist »

The generic way is to download the source RPM and look in the .spec file. Install the yum-utils package, and run yumdownloader --source bind, and then unpack the downloaded source RPM (with either rpm -ivh or rpm2cpio) and look.

Many programs also have an application-specific way of getting compile options. But with most yum packages, you are pretty much stuck looking through and editing the .spec file. My suggestion? Compile from source with hosted source tarball.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked