nrpe charm mem check is broken because of invalid permissions

Bug #1206018 reported by Pavel Pachkovskij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nrpe (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

ubuntu@ip-10-254-105-184:~$ cat /etc/nagios/nrpe.d/check_mem.cfg
command[check_mem]=/var/lib/juju/agents/unit-nrpe-2/charm/plugins/check_mem.pl -C -u -w 85 -c 90

ubuntu@ip-10-254-105-184:~$ ls -la /var/lib/juju/agents/unit-nrpe-2/
total 32
drwxr-xr-x 4 root root 4096 Jul 29 07:04 .
drwxr-xr-x 5 root root 4096 Jul 29 07:03 ..
-rw------- 1 root root 12959 Jul 29 07:03 agent.conf
drwx------ 6 root root 4096 Jul 29 07:04 charm
drwxr-xr-x 5 root root 4096 Jul 29 07:04 state

ubuntu@ip-10-254-105-184:~$ /var/lib/juju/agents/unit-nrpe-2/charm/plugins/check_mem.pl -C -u -w 85 -c 90
-bash: /var/lib/juju/agents/unit-nrpe-2/charm/plugins/check_mem.pl: Permission denied

Revision history for this message
Mark Mims (mark-mims) wrote :

I'll file this as a bug against juju-core...

https://bugs.launchpad.net/juju-core/+bug/1211463

Revision history for this message
Tom Haddon (mthaddon) wrote :

Fwiw, I really don't think charms should be running things directly out of the charm directory (such as nagios checks). In this case it should be copied to /usr/local/nagios/plugins as part of the charm.

Revision history for this message
Tom Haddon (mthaddon) wrote :

And it seems https://bugs.launchpad.net/juju-core/+bug/1205286 confirms charms shouldn't be doing this either.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.