Can't monitor Fortigate v5.4

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Can't monitor Fortigate v5.4

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Icarus
Posts: 26
Joined: Tue Jun 30, 2015 3:50 am

Re: Can't monitor Fortigate v5.4

Post by Icarus »

Hi,

There are no result after delete the mrtgscan file.

Here is the new file.

Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Can't monitor Fortigate v5.4

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Icarus
Posts: 26
Joined: Tue Jun 30, 2015 3:50 am

Re: Can't monitor Fortigate v5.4

Post by Icarus »

Here is the php file.

Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Can't monitor Fortigate v5.4

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Icarus
Posts: 26
Joined: Tue Jun 30, 2015 3:50 am

Re: Can't monitor Fortigate v5.4

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Can't monitor Fortigate v5.4

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Icarus
Posts: 26
Joined: Tue Jun 30, 2015 3:50 am

Re: Can't monitor Fortigate v5.4

Post by Icarus »

Hi,

Effectively with this PHP file it seems to work.

Thanks for your help.
Locked