check_ocsing

check_ocsing

Checks number installed software packages in OCS Inventory NG.

Synopsis: check_ocsing -H HOST -u USER -p PASSWORD -d DATABASE -q PRODUCTNAME -t PRODUCTVERSION [-w ] [-c ] [-l ] [-h]

Options:

-h | --helpPrint help screen
-HMySQL hostname
-uMySQL user
-pMySQL pass
-dMySQL db-name (default: ocsweb)
-qName of the software ( Wildcard: % )
-tVersion of the software
You also can use "*" for all versions, by using double quotes. (default)
-wWarning
-cCritical
-l [item]List a specific somethink
The option "-l" without any item, provides a list of all posible items

Example:

php check_ocsing -H localhost -u 'ocsuser' -p 'secret' -q 'IrfanView%' -w 15 -c 20

Result:

OK: Now are 13 installations for IrfanView|IrfanView=13;15;20;0;

Changelog:

check_ocsing (0.2)

  • improvement: add "--help"-Option
  • improvement: add wildcard "%" in Softwarename-Search
  • improvement: add performance data
  • fix: problem with return codes

-- Björn Becker Thu, 19 Oct 2010 12:40:10 +0200

check_ocsing (0.1)

  • initial release

-- Björn Becker Thu, 01 June 2010 09:33:18 +0200