You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2014-03-20 01:45:05

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

[Plugin][ShellCommands 1.6.0] Items in the dustbin, you've a problem.

Hello,

The test environment

GLPI 0.84.5 + Shell Commands 1.6.0 (and others plugins).

The test

1.- The dustbin is empty

2.- You have this Shell Command Item defined

ID: 1
Name: Ping
Path: /usr/ping
Tag: [IP]
Windows: -c 2
Type: Computer
Child entities: Yes

3.- The Shell Command Item ID 1 works perfectly

Command

Ping -> 10.36.9.234

PING 10.36.9.234 (10.36.9.234) 56(84) bytes of data.
64 bytes from 10.36.9.234: icmp_req=1 ttl=64 time=1.37 ms
64 bytes from 10.36.9.234: icmp_req=2 ttl=64 time=0.461 ms

--- 10.36.9.234 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.461/0.916/1.372/0.456 ms
/bin/ping -c 2 10.36.9.234

4.- You put the Shell Command Item ID 1 into dustbin

5.- You define a new Shell Command Item

ID: 7
Name: Ping
Path: /usr/ping
Tag: [IP]
Windows: -c 2
Type: Computer
Child entities: Yes

Now Shell Command Item ID 1 and ID 7 are equal. The first one is into the dustbin and the second one is out the dustbin.

6.- You try to launch Shell Command Item ID 7

That's what happens.

Command

Ping -> 10.36.9.234

  10.36.9.234      <<<--- This is the command launched. '/usr/ping' & '-c 2' are missing.

There is not any command to execute.

Conclusion

If you have a Shell Command item into the dustbin and other one out the dustbin, and both have the same name -in this example 'Ping'-, you have a problem.

If ID 7 had been 'Ping2' by name, there would have been no problem.


Tomás Abad

Offline

#2 2014-04-22 11:00:55

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][ShellCommands 1.6.0] Items in the dustbin, you've a problem.

Hello,

Have you got any news regarding it?.

Best regards,


Tomás Abad

Offline

Board footer

Powered by FluxBB