Page 2 of 3

Re: monitor a fortigate200E

Posted: Tue Apr 20, 2021 4:53 pm
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

Re: monitor a fortigate200E

Posted: Wed Apr 21, 2021 5:20 pm
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

Re: monitor a fortigate200E

Posted: Thu Apr 22, 2021 9:17 am
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

Re: monitor a fortigate200E

Posted: Thu Apr 22, 2021 9:53 am
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

Re: monitor a fortigate200E

Posted: Thu Apr 22, 2021 4:45 pm
by abpro
Captura.PNG

Re: monitor a fortigate200E

Posted: Fri Apr 23, 2021 9:57 am
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

Re: monitor a fortigate200E

Posted: Fri Apr 23, 2021 11:50 am
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

Re: monitor a fortigate200E

Posted: Fri Apr 23, 2021 11:58 am
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

Re: monitor a fortigate200E

Posted: Fri Apr 23, 2021 11:59 am
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

Re: monitor a fortigate200E

Posted: Fri Apr 23, 2021 12:37 pm
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