2014-04-14 Ramon Novoa <rnovoa@artica.es>
* plugins/who.sh: Output some text when there are no users connected. Otherwise the module goes to unkown. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9763 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d5bf64d052
commit
9e9152d069
|
@ -1,3 +1,8 @@
|
|||
2014-04-14 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* plugins/who.sh: Output some text when there are no users connected.
|
||||
Otherwise the module goes to unkown.
|
||||
|
||||
2014-03-13 Mario Pulido <mario.pulido@artica.es>
|
||||
|
||||
* plugins/inventory: Distributions compatibility
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
#!/bin/bash
|
||||
echo "<module>";
|
||||
echo "<name>who</name>";
|
||||
echo "<type>generic_data_string</type>";
|
||||
echo "<type>async_string</type>";
|
||||
echo "<data><![CDATA["
|
||||
who
|
||||
WHO=`who`
|
||||
if [ "$WHO" == "" ]; then
|
||||
echo "None"
|
||||
else
|
||||
echo $WHO
|
||||
fi
|
||||
echo "]]></data>"
|
||||
echo "</module>"
|
||||
|
||||
|
|
Loading…
Reference in New Issue