Page 2 of 2

Re: Can't monitor Fortigate v5.4

Posted: Fri Aug 25, 2017 10:48 am
by tgriep
The Wizard should work using the Port Name or the Port Number but in your example, the Port Name is empty.
Your snmpwalk command does show the name.
Try this, login to the XI server as root and go to the following folder

Code: Select all

/usr/local/nagiosxi/tmp
And delete all of the temporary mrtg files that the wizard uses by running

Code: Select all

rm -fr mrtg*
Then run the wizard again and see if the Port Name is displayed.

If not, post the mrtgscan file from the above folder.

Re: Can't monitor Fortigate v5.4

Posted: Fri Sep 08, 2017 4:27 am
by Icarus
Hi,

There are no result after delete the mrtgscan file.

Here is the new file.

Thanks

Re: Can't monitor Fortigate v5.4

Posted: Fri Sep 08, 2017 9:32 am
by tgriep
I see the Port Name in the mrtg config file so you should be able to use that.
Can you post the following file from the server?

Code: Select all

/usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php

Re: Can't monitor Fortigate v5.4

Posted: Fri Sep 08, 2017 9:39 am
by Icarus
Here is the php file.

Thanks

Re: Can't monitor Fortigate v5.4

Posted: Fri Sep 08, 2017 11:15 am
by tgriep
The version that is in the PHP script leads me to believe that you are running Nagios XI 2014 or older, correct?

That version of the Network Switch / Router wizard would only use the description field to that is why it is not working for you.

The newer wizard from XI 5.x.x has been changed to add the Port Name and if you would like, I can attach it here to see if it works but it may not be compatible.
Is that something you are willing to try?

Re: Can't monitor Fortigate v5.4

Posted: Mon Sep 11, 2017 2:58 am
by Icarus
Hi,

Yes, the version is Nagios XI 2014.

I confirm, the Wizard uses the OID of the description.

I want to test well with version 5.x.x.

Thanks

Re: Can't monitor Fortigate v5.4

Posted: Mon Sep 11, 2017 1:16 pm
by tgriep
Make a backup of this script in case you need to go back to it.

Code: Select all

/usr/local/nagiosxi/html/includes/configwizards/switch/switch.inc.php
Then overwrite that file with the switch.inc.php.txt file that is attached to the post but remove the .txt extension from the name and see if that works for you.

If not, put the old copy back and let us know what the errors you received if any when running the newer wizard.

Re: Can't monitor Fortigate v5.4

Posted: Wed Sep 13, 2017 7:10 am
by Icarus
Hi,

Effectively with this PHP file it seems to work.

Thanks for your help.