Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.6 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

alert when new software is installed in computer

Hello,

thats my question, i have several machines and i want to know when new software is installed in the computer, i dont care if the software is installed by the user or administrator.

For example, today the computer/machine has 10 software installed, and in the next cycle ocs counts 11 softwares, send an alert. And if ocs detects less than 10 software installed, alert too.

is this possible?

Thanks in advance
in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes
yes it is possible.

I havent tried it - but perhaps it is enough for you.

https://wiki.ocsinventory-ng.org/04.Management-console-and-its-advanced-features/Configure-mail-notification/

What you also can do is the following.

Create a mysql cmd query and send an E-mail

SELECT hardware.name,hardware.lastcome,hardware_id, COUNT(softwares.name) FROM softwares join hardware on softwares.hardware_id = hardware.id GROUP BY hardware_id order by COUNT(softwares.name)

mysql -u .. -p.. -N <<<"your query\G" | mail -s 'subject' *OCS-Inventory Software counts*

https://stackoverflow.com/questions/7273242/quick-way-to-email-results-of-a-mysql-query

It isn't exactly what you need, but with a litte bit scripting it should be possible to adapt the "templates"

Kind regards
by (11.5k points)
 
Powered by Question2Answer
...