Web Inject config files not removing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Web Inject config files not removing

Post by krobertson71 »

I could delete the directory as Nagios yes... but not the files inside of it. The file permissions, look at the screenshot in the first post, themselves are group r world r. Which means members of the nagios group can only read the file.

I could delete the webinject directory but that would nuke the plugin as well.

Can you show me your file permissions within the webinject directory?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Web Inject config files not removing

Post by tmcdonald »

This is mine:

Code: Select all

$ ls -l /usr/local/nagiosxi/etc/components/webinject/
total 72
-rwxrwxr-x 1 apache nagios 63271 Sep 30 22:06 webinject.pl
-rw-r--r-- 1 apache nagios   228 Nov 24 16:12 www_nagios_com__Web_Transaction_config.xml
-rw-r--r-- 1 apache nagios    94 Nov 24 16:12 www_nagios_com__Web_Transaction_testdata.xml
Do you not have the writable flag? Is there a umask on your system?

Code: Select all

umask
Former Nagios employee
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Web Inject config files not removing

Post by krobertson71 »

ummmm I figured out my very stupid mistake...

I was trying to sudo rm.

Sorry been using sudo all day for other things unrelated.

I am so sorry for the wasted time.
Locked