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 | --help | Print help screen |
-H | MySQL hostname |
-u | MySQL user |
-p | MySQL pass |
-d | MySQL db-name (default: ocsweb) |
-q | Name of the software ( Wildcard: % ) |
-t | Version of the software You also can use "*" for all versions, by using double quotes. (default) |
-w | Warning |
-c | Critical |
-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