monitor a fortigate200E

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abpro
Posts: 50
Joined: Wed Feb 24, 2021 5:31 pm

Re: monitor a fortigate200E

Post by abpro »

gsmith wrote:Please send me your system profile so I can see how you have the service defined so far.

To send us your system profile.
1. Login to the Nagios XI GUI using a web browser.
2. Click the "Admin" > "System Profile" Menu
3. Click the "Download Profile" button
4. Save the profile.zip file and share this a private message and then reply to this post to bring it up in the queue.
Thanks

ready I sent it to you by PM
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: monitor a fortigate200E

Post by gsmith »

Hi,

Here is what you have:
Screenshot 2021-04-21 171254.jpg
Here is what it should look like:
Screenshot 2021-04-21 171523.jpg
I removed the .ps1 from the command name, added $USER1$ and -H $HOSTADDRESS$ to the Command line.

And to support that command you will need to create a file called check_temperatures.ps1
in /usr/local/nagios/libexec

Thanks
You do not have the required permissions to view the files attached to this post.
abpro
Posts: 50
Joined: Wed Feb 24, 2021 5:31 pm

Re: monitor a fortigate200E

Post by abpro »

gsmith wrote:Hi,

Here is what you have:
Screenshot 2021-04-21 171254.jpg
Here is what it should look like:
Screenshot 2021-04-21 171523.jpg
I removed the .ps1 from the command name, added $USER1$ and -H $HOSTADDRESS$ to the Command line.

And to support that command you will need to create a file called check_temperatures.ps1
in /usr/local/nagios/libexec

Thanks


Hello thank you very much but we are not talking about the correct parameters for the fortigate?

what you are sending me is the temperature for servers

I wanted to know the parameters to monitor fortigate
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: monitor a fortigate200E

Post by gsmith »

Hi,

Regarding the "Memoria" service check, it looks like the required MIB file is missing or hasn't been
specified in the Service definition. Could you please screenshot the config pages for thr Memoria service check?

Thanks
abpro
Posts: 50
Joined: Wed Feb 24, 2021 5:31 pm

Re: monitor a fortigate200E

Post by abpro »

Captura.PNG
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: monitor a fortigate200E

Post by gsmith »

Hi,

I am sorry for not understanding the question. It seems like you are asking us what OIDs you should be
monitoring for a fortigate200E. If that is the question then it should be directed to Fortigate. Also,
please take a look at these posts they might be helpful:

https://forum.fortinet.com/tm.aspx?m=146470
https://kb.fortinet.com/kb/documentLink ... ID=FD47432
https://www.reddit.com/r/fortinet/comme ... questions/

If that is not your question please feel free to ask it in Spanish if that makes it more clear as we
have a Spanish speaking Support person who could help.

Thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: monitor a fortigate200E

Post by ssax »

Yeah, you would need to reach out to Fortigate in order to determine what OIDs you need to monitor as they will know the proper ones that meet your needs. We don't know this information.

A lot of customers use this plugin, I would give it a try as it supports multiple different vendors:

https://labs.consol.de/nagios/check_nwc ... index.html

Which requires a different setup:

Code: Select all

wget https://labs.consol.de/assets/downloads/nagios/check_nwc_health-8.3.1.tar.gz
tar zxf check_nwc_health-8.3.1.tar.gz
cd check_nwc_health-8.3.1
./configure
make all
make install
Then test it out against the Fortigate:

Code: Select all

/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode cpu-load
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode hardware-health
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode memory-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode disk-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode interface-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode interface-errors
You can see the plugin help for other options:

Code: Select all

/usr/local/nagios/libexec/check_nwc_health -h
abpro
Posts: 50
Joined: Wed Feb 24, 2021 5:31 pm

Re: monitor a fortigate200E

Post by abpro »

ssax wrote:Yeah, you would need to reach out to Fortigate in order to determine what OIDs you need to monitor as they will know the proper ones that meet your needs. We don't know this information.

A lot of customers use this plugin, I would give it a try as it supports multiple different vendors:

https://labs.consol.de/nagios/check_nwc ... index.html

Which requires a different setup:

Code: Select all

wget https://labs.consol.de/assets/downloads/nagios/check_nwc_health-8.3.1.tar.gz
tar zxf check_nwc_health-8.3.1.tar.gz
cd check_nwc_health-8.3.1
./configure
make all
make install
Then test it out against the Fortigate:

Code: Select all

/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode cpu-load
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode hardware-health
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode memory-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode disk-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode interface-usage
/usr/local/nagios/libexec/check_nwc_health --hostname X.X.X.X -t 60 --community 'yourcommunity' --mode interface-errors
You can see the plugin help for other options:

Code: Select all

/usr/local/nagios/libexec/check_nwc_health -h

muchas gracias por contestar me parece interesante esta tema lo pondre a prueba
abpro
Posts: 50
Joined: Wed Feb 24, 2021 5:31 pm

Re: monitor a fortigate200E

Post by abpro »

gsmith wrote:Hi,

I am sorry for not understanding the question. It seems like you are asking us what OIDs you should be
monitoring for a fortigate200E. If that is the question then it should be directed to Fortigate. Also,
please take a look at these posts they might be helpful:

https://forum.fortinet.com/tm.aspx?m=146470
https://kb.fortinet.com/kb/documentLink ... ID=FD47432
https://www.reddit.com/r/fortinet/comme ... questions/

If that is not your question please feel free to ask it in Spanish if that makes it more clear as we
have a Spanish speaking Support person who could help.

Thanks
ok , muchas gracias por contestar perdon por no explicar muy bien la pregunta mi ingles no es muy avanzado pero el comentario que me realizo uno de tus compañero realizare la prueba para ver que tal me va , muchas gracuas cualquier cosa le notifico
abpro
Posts: 50
Joined: Wed Feb 24, 2021 5:31 pm

Re: monitor a fortigate200E

Post by abpro »

Hola SSAAX

Muchas gracias por el plugin probé dentro de consola de nagios me corre muy bien y especifica lo que necesito

tengo ultima pregunta :
como crear el comando dentro de nagios xi por ejemplo :

[root@ABP-VMS01P-NAG check_nwc_health-8.3.1]# /usr/local/nagios/libexec/check_nwc_health --hostname 10.20.20.1 -t 60 --community 'Publico' --mode hardware-health
OK - environmental hardware working fine | 'sensor_FAN 1 CPU FAN '=4.72;;;; 'sensor_FAN 2 CPU FAN '=5.11;;;; 'sensor_FAN 3 REAR FAN '=4.82;;;; 'sensor_TMP 1 Thermal sensor 1 '=30;;;; 'sensor_TMP 2 Thermal sensor 2 '=37;;;; 'sensor_TMP 3 Thermal sensor 3 '=35;;;;

Como realizaría el comando para monitorearlo en nagios xi

muchas gracias
Locked