« Nagios Remote Plugin Executor (NRPE) for Tru64 and IRIX | Main | Installing Nagios 2.0 on Solaris 10 »

February 24, 2006

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83451f81d69e200d834cc78bd69e2

Listed below are links to weblogs that reference A "view some, change none" patch to Nagios:

Comments

Christian Masopust

Wouldn't it be better to make a patch for "can_submit_command" to status.c and not to cgi_auth.c? I think from users point it would be better to not see the actions that he cannot perform...

tonvoon

Christian,

I agree about a better UI (I hate UIs which show options that are not possible for the current user - another reason I hate SAP!).

However, there are two reasons for making the patch at cgi_auth.c:

1. security - even if you make the option unavailable at status.cgi, you still need to stop a user calling cmd.cgi with the required POST parameters to do the action, so there needs to be access logic there

2. With a future Nagios, the cgis are going to be rewritten in perl/php, so we can leave this for their feature list :)

Having said that, if you make the patches in status.c, I'm sure Ethan will consider adding it into Nagios 3. We'll be happy to publish or link to it too.

Ton

Margie B.

I don't suppose there is an rpm with the issue_commands.patch in it? Our Linux admins won't apply a source code patch, only rpm's.

- margie b.

tonvoon

Sorry, creating an RPM is outside of scope for us. Others may create one - maybe try the nagios-users mailing list.

This may require a change in local policy, but your linux admins could obtain a SRPM and amend the spec file to add the patch in before creating the RPM.

Otherwise, this patch will be in Nagios 3, so will be available then.

Nick M

How do you apply the patch. The resolution is exactly what I am looking for for our Nagios environment. I am new to Linux and not sure how to get this to work. We are running nagios 2.9. Thanks for your help.

tonvoon

Nick,

When you expand the Nagios tarball, you get something like nagios-2.9/. Change into that directory and run:

patch -p1 < ../issue_commands.patch

This should then patch all the files. Then you can run ./configure and make as usual.

You can see our svn head repository at http://source.altinity.org/source to see how we create our patched version of Nagios in our Makefile.

Alternatively, Nagios 3 has the feature and you could try using that.

Enjoy!

Ton

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment