Discussion:
[Check_mk (english)] Notification on remote machine
Gregory Tsintaris
2017-12-19 11:27:48 UTC
Permalink
Hello all!

I have this scenario, I want to display a popup message to a windows host
when an event goes critical. I have already a poweshell script that
produces the message. Is there a way to trigger the execution of this
script for example using the check_mk agent?

Thank you all!!
Gregory
Robert Sander
2017-12-19 12:35:21 UTC
Permalink
Post by Gregory Tsintaris
Hello all!
I have this scenario, I want to display a popup message to a windows
host when an event goes critical. I have already a poweshell script that
produces the message. Is there a way to trigger the execution of this
script for example using the check_mk agent?
You can send Windows popup messages ("net send") from Linux via
smbclient: smbclient -M hostname "Message"

This can be used in a notification plugin.

Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

http://www.heinlein-support.de

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
GeschÀftsfÌhrer: Peer Heinlein -- Sitz: Berlin
Gregory Tsintaris
2017-12-19 13:06:21 UTC
Permalink
Thank you for your suggestion!

I'm trying to do that but whatever combination of the command I get the
following output..

root@:~# smbclient -M \10.0.1.101\ "Message" -A auth
WARNING: The "syslog" option is deprecated
Connection to 10.0.1.101 Message failed. Error NT_STATUS_UNSUCCESSFUL
Post by Robert Sander
Post by Gregory Tsintaris
Hello all!
I have this scenario, I want to display a popup message to a windows
host when an event goes critical. I have already a poweshell script that
produces the message. Is there a way to trigger the execution of this
script for example using the check_mk agent?
You can send Windows popup messages ("net send") from Linux via
smbclient: smbclient -M hostname "Message"
This can be used in a notification plugin.
Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin
http://www.heinlein-support.de
Tel: 030 / 405051-43
Fax: 030 / 405051-19
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
GeschÀftsfÌhrer: Peer Heinlein -- Sitz: Berlin
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Robert Sander
2017-12-19 13:49:52 UTC
Permalink
Post by Gregory Tsintaris
Thank you for your suggestion!
I'm trying to do that but whatever combination of the command I get the
following output..
WARNING: The "syslog" option is deprecated
Connection to 10.0.1.101 Message failed. Error NT_STATUS_UNSUCCESSFUL
Does the Windows machine accept these messages?

Is this the same method you use with your PowerShell script?

Regards
--
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

http://www.heinlein-support.de

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG:
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
GeschÀftsfÌhrer: Peer Heinlein -- Sitz: Berlin
Loading...