Pandora FMS Community

SNMP Recon Script Not Showing up

Technolust · 20 ago 2018, 21:49 · 11 mensajes · 90 visitas

  1. Inicio del debate

    Pandorians, I just installed Pandora FMS for the first time to see if this is a viable solution. Read through the documentation to setup SNMP Recon to pull all of our switch gear information. However, when I go to setup the recon script (Web Console -> Servers -> Recon Task -> Create -> Mode = Custom Script -> Recon Script.) to perform an SNMP layer 2 scan the SNMP script is missing. When I browse the console via ssh I see in the util directory (/usr/share/pandora_server/util/recon_scripts) the snmp-recon.pl script is there. Can someone tell me how I can populate this script in the recon script drop down menu?  Web Console -> Servers -> Recon Task -> Create -> Mode = Custom Script -> Recon Script Thanks, Joe

    [

    ](//pandorafms.com/community/media/forum/10356/26085=2394-Recon_Script.PNG)

    [

    ](//pandorafms.com/community/media/forum/10356/26085=2393-Recon_Script_1.PNG)

  2. Pandorians, I just installed Pandora FMS for the first time to see if this is a viable solution. Read through the documentation to setup SNMP Recon to pull all of our switch gear information. However, when I go to setup the recon script (Web Console -> Servers -> Recon Task -> Create -> Mode = Custom Script -> Recon Script.) to perform an SNMP layer 2 scan the SNMP script is missing. When I browse the console via ssh I see in the util directory (/usr/share/pandora_server/util/recon_scripts) the snmp-recon.pl script is there. Can someone tell me how I can populate this script in the recon script drop down menu?  Web Console -> Servers -> Recon Task -> Create -> Mode = Custom Script -> Recon Script Thanks, Joe

    Good morning Technolust, Have you added this script to the Recon Script in the console? First you have to go to: Web Console -> Servers -> Recon script and add the script you want to use as recon script. Afterwards it should be shown when creating the recon task. Please try this solution and then comment us if the problem is solved. Thank you in advanced, Alberto

  3. Thank you Alberto, I found where you are referring to but I do I don't know the details of the script to create it. In all of the documentation it shows the script already available. Should I just copy the contents of the .pl file? I'm asking because I see in the /usr/share/pandora_server/util/recon_scripts/ folder these three files. ipmi-recon.pl snmp-recon.pl wmi-recon.pl However, the snmp-recon.pl doesn't show up in the drop down. Unless I'm not understanding this correctly but could please provide me with a generic snmp script if this is not correct? Thanks, Joe

  4. Hey Alberto, I figured out how to add the script but how do I add the SNMP Community and username and password for the SNMP poller? Thanks, Joe

  5. Hey Alberto, I was able to add the script, network, community, and poller login info to the script. However, when I run the script nothing happens and it takes all of about 3 seconds to finish. I have way to many switches for the snmp poller to finish that fast and I don't see any of the switches populate. Here is what my Recon Task looks like Task Name: Network_Recon Recon server: pandorafms Mode: Custom Script Interval: Manual Recon script: SNMP-Recon Group: Network Incident: Yes Explanation: ... Macros Network: 10.136.0.0/24 Community:orionpoll: Username: orion Password: left blank Not sure what the next step is to get the info pulled from switches. Thanks, Joe

  6. Hey Alberto, I was able to add the script, network, community, and poller login info to the script. However, when I run the script nothing happens and it takes all of about 3 seconds to finish. I have way to many switches for the snmp poller to finish that fast and I don't see any of the switches populate. Here is what my Recon Task looks like Task Name: Network_Recon Recon server: pandorafms Mode: Custom Script Interval: Manual Recon script: SNMP-Recon Group: Network Incident: Yes Explanation: ... Macros Network: 10.136.0.0/24 Community:orionpoll: Username: orion Password: left blank Not sure what the next step is to get the info pulled from switches. Thanks, Joe

    Good morning Technolust, The way of using this script is in the image attached. So you only have to include the list of networks, the snmp communities and optionally, but recommended, the router in the network, try to put only this parameters to the script and try it again. Let me know the result of this try. Alberto

    [

    ](//pandorafms.com/community/media/forum/10325/26113=2399-Captura.PNG)

  7. Hey Alberto, I was able to add the script, network, community, and poller login info to the script. However, when I run the script nothing happens and it takes all of about 3 seconds to finish. I have way to many switches for the snmp poller to finish that fast and I don't see any of the switches populate. Here is what my Recon Task looks like Task Name: Network_Recon Recon server: pandorafms Mode: Custom Script Interval: Manual Recon script: SNMP-Recon Group: Network Incident: Yes Explanation: ... Macros Network: 10.136.0.0/24 Community:orionpoll: Username: orion Password: left blank Not sure what the next step is to get the info pulled from switches. Thanks, Joe

    Good morning Technolust, The way of using this script is in the image attached. So you only have to include the list of networks, the snmp communities and optionally, but recommended, the router in the network, try to put only this parameters to the script and try it again. Let me know the result of this try. Alberto

    Thank you Alberto, Let me know if I have this is setup/configured correctly because my result has been the recon task sits at 1% and never changes. If you look at the pictures let me know if this is what you are referring to. Is there a way to view logs for this task and/or test the snmp polling? Thoughts? Thanks, Joe

    [

    ](//pandorafms.com/community/media/forum/10356/26114=2400-Recon.PNG)

    [

    ](//pandorafms.com/community/media/forum/10356/26114=2401-Recon_Script.PNG)

  8. Alberto, Also finding a lot of issues with the programing syntax in the /var/spool/mail/root file. Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4773, near "" enterprise_hook("elasticsearch_performance"        (Missing operator before elasticsearch_performance?) String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4775, near "$xml_output .=""  (Might be a runaway multi-line "" string starting on line 4773)        (Missing semicolon on previous line?) String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4776, near "$xml_output .=""  (Might be a runaway multi-line "" string starting on line 4775)        (Missing semicolon on previous line?) Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4776, near "Database"        (Missing operator before Database?) Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4777, near "generic_proc"  (Might be a runaway multi-line "" string starting on line 4776)        (Missing operator before generic_proc?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4778. String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4782, near "$xml_output .=""  (Might be a runaway multi-line "" string starting on line 4781)        (Missing semicolon on previous line?) Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4782, near "Queued_Modules"        (Missing operator before Queued_Modules?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4783. Scalar found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4784, near "$queued_modules"  (Might be a runaway multi-line "" string starting on line 4783)        (Missing operator before $queued_modules?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4785. String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4788, near "$xml_output .=""  (Might be a runaway multi-line "" string starting on line 4787)        (Missing semicolon on previous line?) Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4788, near "Agents_Unknown"        (Missing operator before Agents_Unknown?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4789. Scalar found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4790, near "$agents_unknown"  (Might be a runaway multi-line "" string starting on line 4789)        (Missing operator before $agents_unknown?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4791. String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4795, near "$xml_output .=""  (Might be a runaway multi-line "" string starting on line 4794)        (Missing semicolon on previous line?) Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4795, near "System_Load_AVG"        (Missing operator before System_Load_AVG?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4796. Scalar found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4797, near "$load_average"  (Might be a runaway multi-line "" string starting on line 4796)        (Missing operator before $load_average?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4798. String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4803, near "$xml_output .=""  (Might be a runaway multi-line "" string starting on line 4802)        (Missing semicolon on previous line?) Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4803, near "Free_RAM"        (Missing operator before Free_RAM?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4804. Scalar found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4805, near "$free_mem"  (Might be a runaway multi-line "" string starting on line 4804)        (Missing operator before $free_mem?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4806. String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4811, near "$xml_output .=""  (Might be a runaway multi-line "" string starting on line 4810)        (Missing semicolon on previous line?) Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4811, near "FreeDisk_SpoolDir"        (Missing operator before FreeDisk_SpoolDir?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4812. Scalar found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4813, near "$free_disk_spool"  (Might be a runaway multi-line "" string starting on line 4812)        (Missing operator before $free_disk_spool?) Having no space between pattern and following word is deprecated at /usr/lib/perl5/PandoraFMS/Core.pm line 4814. String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4819, near "incomingdir"}."" String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4821, near "open (XMLFILE, ""  (Might be a runaway multi-line "" string starting on line 4819)        (Missing semicolon on previous line?) String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4821, near "$filename") or die ""        (Missing operator before ") or die "?) Bareword found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4821, near "] Could"        (Missing operator before Could?) String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4821, near "at '$filename'"        (Do you need to predeclare at?) String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4841, near "logger($pa_config, ""  (Might be a runaway multi-line "" string starting on line 4821)        (Missing semicolon on previous line?) String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4911, near "logger ($pa_config, ""  (Might be a runaway multi-line "" string starting on line 4908)        (Missing semicolon on previous line?) String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4911, near "Module " . $module->{'nombre'} . ""        (Do you need to predeclare Module?) String found where operator expected at /usr/lib/perl5/PandoraFMS/Core.pm line 4920, near "module '" . $module->{'"        (Do you need to predeclare module?) Bad name after nombre' at /usr/lib/perl5/PandoraFMS/Core.pm line 4920. Compilation failed in require at /usr/lib/perl5/PandoraFMS/Config.pm line 29. BEGIN failed--compilation aborted at /usr/lib/perl5/PandoraFMS/Config.pm line 29. Compilation failed in require at /usr/share/pandora_server/util/pandora_db.pl line 33. BEGIN failed--compilation aborted at /usr/share/pandora_server/util/pandora_db.pl line 33. -Joe

  9. Hey Alberto, I was able to add the script, network, community, and poller login info to the script. However, when I run the script nothing happens and it takes all of about 3 seconds to finish. I have way to many switches for the snmp poller to finish that fast and I don't see any of the switches populate. Here is what my Recon Task looks like Task Name: Network_Recon Recon server: pandorafms Mode: Custom Script Interval: Manual Recon script: SNMP-Recon Group: Network Incident: Yes Explanation: ... Macros Network: 10.136.0.0/24 Community:orionpoll: Username: orion Password: left blank Not sure what the next step is to get the info pulled from switches. Thanks, Joe

    Good morning Technolust, The way of using this script is in the image attached. So you only have to include the list of networks, the snmp communities and optionally, but recommended, the router in the network, try to put only this parameters to the script and try it again. Let me know the result of this try. Alberto

    Thank you Alberto, Let me know if I have this is setup/configured correctly because my result has been the recon task sits at 1% and never changes. If you look at the pictures let me know if this is what you are referring to. Is there a way to view logs for this task and/or test the snmp polling? Thoughts? Thanks, Joe

    Good morning Technolust, Lets try the folllowing action. Try to use the script directly in the shell without using no parameters so we can see if you have installed all the dependencies correctly installed to use the script. /usr/share/pandora_server/util/recon_scripts/snmp-recon.pl If everything is ok it should show a messsage as the image attached.

    [

    ](//pandorafms.com/community/media/forum/10325/26123=2403-Image.PNG)

  10. Thanks Alberto, I ended up just rebuilding the server from scratch and using the script.I think the issue was caused from the current 180820 update and this time I did not update to this version. I was able to successfully run the script and now have 957 agents including switches, WAPs, & servers. So now to understand how this works, I have pulled the devices now which are now called agents. How often do I need to run the recon scripts? Is there an actual agent I need to install on any of the devices to check in? If so where or how do I find the agent to install? Now I have them all in there how can I change the groups they are in for example switches in switches group, WAPs in WAPs group etc. etc. How do I know that PandoraFMS is monitoring these devices live and not just what I pulled down? Thanks, Joe

  11. Thanks Alberto, I ended up just rebuilding the server from scratch and using the script.I think the issue was caused from the current 180820 update and this time I did not update to this version. I was able to successfully run the script and now have 957 agents including switches, WAPs, & servers. So now to understand how this works, I have pulled the devices now which are now called agents. How often do I need to run the recon scripts? Is there an actual agent I need to install on any of the devices to check in? If so where or how do I find the agent to install? Now I have them all in there how can I change the groups they are in for example switches in switches group, WAPs in WAPs group etc. etc. How do I know that PandoraFMS is monitoring these devices live and not just what I pulled down? Thanks, Joe

    Good morning Technolust, Good news then! To change the groups of the agents you need to create the groups you have, and then go to bulk operations and change de agent group at whatever group you want. To know if Pandora is doing its live job, you must just wait 1 period of time and see if any data of your agent_modules changes, so you can see it does it each X minutes. The recon will be executed by himself if you configured it like this, if not you should do it manually each time you know a new element has being introduced in your range. You can see in the logs where more elements are added or not. Hope this helps you. Alberto

Entra en tu cuenta para publicar.