tag:blogger.com,1999:blog-5472158136828312403.post4651690226435707826..comments2023-03-25T15:09:33.838+01:00Comments on Blog of Hermann Maurer: Fortigate firewall check package for Check_MK updatedAnonymoushttp://www.blogger.com/profile/13022281390562781347noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-5472158136828312403.post-70401821707954831322014-07-07T08:41:04.404+02:002014-07-07T08:41:04.404+02:00Hello Hermann,
your suggestion certainly worked, ...Hello Hermann,<br /><br />your suggestion certainly worked, but did not solve my problem, that I only want some of the checked ipsec tunnels to give a warning if they go down and others to give a critical warning.<br /><br />My idea is to prioritize the tunnels, some of them are going down every now and then caused by idle timeouts some partners won't change.<br /><br />I would be very pleased if parameter support would find a way into a new version of your check.<br /><br />My last thought to display this logic at this moment is to try Check_MKs Business Intelligence function.<br /><br />Thanks a lot!<br /><br />Kind regards,<br /><br />MartinAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-38673683336869733932014-07-04T22:26:13.264+02:002014-07-04T22:26:13.264+02:00Hey Martin,
I haven't verify this yet, BUT th...Hey Martin,<br /><br />I haven't verify this yet, BUT the easiest and surely dirtiest way to change the check's behavior to detect a down of an IPsec tunnel like a warning and not like am error status, is to change the second line:<br /><br />fortigate_ipcec_status_map = { '1': 'DOWN', '2': 'UP' }<br />fortigate_ipsec_status2nagios_map = { 'UP': 0, 'DOWN': 2, }<br /><br />to this:<br />fortigate_ipcec_status_map = { '1': 'DOWN', '2': 'UP' }<br />fortigate_ipsec_status2nagios_map = { 'UP': 0, 'DOWN': 1, }<br /><br />Maybe I will implement some kind of parameter check in one of the next versions.<br />Let me know, if the workaround above has worked for you.<br /><br />BR<br />Hermann MaurerAnonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-13000385268622017132014-07-04T12:42:32.854+02:002014-07-04T12:42:32.854+02:00Hello Hermann,
i'm having a problem with the ...Hello Hermann,<br /><br />i'm having a problem with the fortigate_ipsec check.<br />I hope you can help me, I already created a new thread in the monitoring forum, there is a detailed problem description -> http://www.monitoring-portal.org/wbb/index.php?page=Thread&threadID=31314<br /><br />Thanks in advance and thank you very much,<br /><br />MartinAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-70326154217282140072013-10-10T16:47:25.335+02:002013-10-10T16:47:25.335+02:00You were right, the install now worked! Thanks for...You were right, the install now worked! Thanks for your help :)mAvhttps://www.blogger.com/profile/11522260140765758219noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-44776479049731677492013-09-27T23:36:25.789+02:002013-09-27T23:36:25.789+02:00It sounds like the downloaded mkp file is corrupte...It sounds like the downloaded mkp file is corrupted. Please download it again and look at the file size. It should be 2.550 Bytes. Anonymoushttps://www.blogger.com/profile/13022281390562781347noreply@blogger.comtag:blogger.com,1999:blog-5472158136828312403.post-10507705915205820512013-09-23T12:01:49.375+02:002013-09-23T12:01:49.375+02:00Hi Hermann,
I just tried to install your FortiGat...Hi Hermann,<br /><br />I just tried to install your FortiGate plugin, but it doesn't work:<br /><br />OMD[site]:~/tmp/downloads$ check_mk -vP install fortigate-1.6.mkp<br />Traceback (most recent call last):<br /> File "/omd/sites/site/share/check_mk/modules/check_mk.py", line 4845, in <br /> do_packaging(args)<br /> File "/omd/sites/site/share/check_mk/modules/packaging.py", line 98, in do_packaging<br /> f(args)<br /> File "/omd/sites/site/share/check_mk/modules/packaging.py", line 334, in package_install<br /> tar = tarfile.open(path, "r:gz")<br /> File "/usr/lib/python2.7/tarfile.py", line 1678, in open<br /> return func(name, filemode, fileobj, **kwargs)<br /> File "/usr/lib/python2.7/tarfile.py", line 1729, in gzopen<br /> raise ReadError("not a gzip file")<br />tarfile.ReadError: not a gzip file<br /><br />Do you know this issue? I googled around and found similar problems of other users, but no answers to it.<br /><br />Many thanks,<br />OlivermAvhttps://www.blogger.com/profile/11522260140765758219noreply@blogger.com