Freewaregruppe Monitoring/Nagios-Plugins
Windows-Plugin: checks the state of a AVIRA Management Controller (called SMC or AMC)
check_avira_smc is a Windows-Plugin for Nagios, which checks the state of a AVIRA Management Controller (called SMC or AMC).
The plugin detects various states from the Avira database.
Installed AVIRA Management Controller (AMC) database
Usually you run the script with the path to the database:
C:> check_avira_smc.exe database=<path_to_amc_database>
For debugging purposes, it may also be called with a more detailed output option (this mode is not suitable for continuous operation, but for testing purposes only). Afterwards it will output the detailed status of the individual components:
C:> check_avira_smc.exe database=”C:\Documents and Settings\All Users\Application Data\Avira\Avira Security Management Center Server\ev_mgr.mdb” debug
Database: c:\programdata\Avira\Avira Security Management Center Server\ev_mgr.mdb Timeout: 15 Last Event_ID: 1350894777 *** New Events in database *** 04.09.2014 11:50:14: Update of TRANSFER (192.168.2.22) failed. There were no new files downloaded. | events=1152 *** END (1 new events in database) *** Avira_SMC OK: 1 new Events in database. 0 critical, 0 warning | events=0
For information on the plugin and its usage you can call it with the help command:
C:> check_avira_smc.exe help
check_avira_smc - 1.6 Copyright (C) 2014 LuftEngineering GmbH Report Bugs to:info@luft-it.de check_avira_smc plugin for Nagios. Monitors event database of avira Usage: database - Full Path to avira access database or database name on SQL server (default: ev_mgr) sql - Plugin use MS SQL Express database (SERVER\INSTANCE) licence - Print information about licence status timeout - Seconds before the plugin times out (default = 15) version - Plugin version help - Show this text debug - Print details. NOT for use with nagios Examples: check_avira_smc sql=SERVER\SQLEXPRESS database=avira_db licence ... checks in SQL-DB for Licence Informations check_avira_smc database=avira_db timeout=60 ... checks for Alarms in Access Database with timeout of 60 secs
Preferably the plugin is copied into the script directory where you will store your checks under Windows
When using NSClient ++ use an entry in NSC.INI similar to this is generated and pointed to check_avira_smc:
... [/modules] NRPEServer=enabled CheckExternalScripts=enabled [/settings/NRPE/server] allow arguments=true check_avira_smc_lic=scripts\check_avira_smc.exe database="C:\ProgramData\Avira\Avira Security Management Center Server\ev_mgr.mdb" licence timeout=60 ...
Check for license term, warning due to low residual time to maturity:
check_avira_smc.exe database=”C:\ProgramData\Avira\Avira Security Management Center Server\ev_mgr.mdb” licence timeout=60
Avira_SMC WARNING: The license is valid until 2014-15-11, User Fa. Virenschutz AG, Users 0000035.
2014-07-06
1.6 – Support for .Net 3.5
2013-05-07
1.5 – Support for international Dataformats (german / english)
2013-01-07
1.41 – correction at output of licence-date
2013-12-01
1.4 – Difference Malware / Trojans with Datapath of detection.
Several small Bugfixes & Typos.
2012-04-11
1.32 – Events “Update outstanding” ect. no longer CRITICAL, now WARNING. CRITICAL-States only at malware detection
2012-30-10
1.31 – wrong parameter-handling with MDB-Databases
2012-26-10
1.3 – Support for SQL-Databases
2012-21-10
1.2 – Support for new AMC / Bugfix: Cleanup SQL and Licence-Calls
2012-09-05
1.1 – Support for MS SQL Express databases
2011-10-12
1.0 – First public version
Check_avira_smc is licensed under the GNU General Public License.
Joachim Luft will answer your questions to this plugin and is happy about your donation.