Nagios alternatives
Author: f | 2025-04-25
Nagios Alternatives Similar projects and alternatives to Nagios Nagios. Suggest alternative; Edit details; Nextcloud. 1 620 28,664 10.0 PHP Nagios VS Nextcloud ☁️ Nextcloud server, a safe Nagios Alternatives. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or registered trademarks owned by Nagios Enterprises. All other
Nagios Alternative. Compare Atatus vs. Nagios
Can verify the availability and responsiveness of a standard service, such as notifications, or HTTP. Java management extensions (JMX), web monitoring and other methods are also alternatives to using agents. In Zabbix, JMX can be used to monitor Java-based applications. Web monitoring is used to check the availability of websites and supports HTTP and HTTPS. Zabbix collects data relating to the average download speed of a scenario, errors and error messages, response time and more. The Zabbix API The Zabbix application programming interface (API) is a web-based API to create new applications, automate tasks and integrate with third-party software, such as Go, Zabbix::Tiny or Zabbix sender. The JavaScript Object Notation format is used to base the API as a front-end web interface. The Zabbix API consists of many methods that are grouped together into separate APIs, each performing a specific service. For example, a method to create a new host is host.create; the method to log in as an admin is user.login. Utilizing the API, users can create applications to work with and display Zabbix information. Templates for monitoring capabilities Templates are custom-built add-ons that extend the functionality of Zabbix. Some templates are made by Zabbix and come packaged with the software ready for use, while others are built by Zabbix users. Templates enable Zabbix users to monitor network devices from vendors such as Cisco, Dell, HP and Juniper. Other templates can be used to monitor IBM, HP and Super Micro servers. Templates for application-based services include MS Exchange, Zenoss and PowerDNS. Templates can be created to monitor OSes and hypervisors as well. Infrastructure monitoring competitors to Zabbix Microsoft System Center Operations Manager (SCOM), Nagios and Zenoss are examples of competing IT infrastructure monitoring systems. SCOM enables configuration, management and monitoring for an IT ecosystem through one management console. SCOM can monitor server hardware, system services, OSes, hypervisors and applications, similar to Zabbix. SCOM also uses agent-based and agentless monitoring similar to Zabbix. Nagios is another open source monitoring program for IT environments. Nagios can monitor Linux, Unix and Windows OSes. Nagios offers multiple products, such as Core, XI, Log Server, Network Analyzer and Fusion. Nagios can run active checks that are self-initiated and run passive checks that are completed using external applications. Nagios uses both agent-based and agentless monitoring as well. Zenoss is monitoring software available in two forms: Zenoss Core and Zenoss Service Dynamics. Zenoss Core is the Set date.timezone = 'America/Los_Angeles'vi /etc/php.inisystemctl restart httpd6. Start NagiosQL web installer Open the URL in a browser: Click Start Installation Verify the system meets all the requirements. Here is where I found out the PHP 5.4 in CentOS 7 doesn’t meet the requirement Click Next On NagiosQL Installation: Setup page Enter NagiosQL DB password, root password (the root password is MySQL root password), and NagiosQL admin password Check the checkboxes “Drop database if already exists?” “Import Nagios sample config?” (optional) “Create NagiosQL config paths?” set NagiosQL config path: /usr/local/nagios/nagiosql set Nagios config path: /usr/local/nagios/etc Click Next On NagiosQL Installation: Finishing Setup page, it should be all green if everything is right Delete the NagiosQL install directory 7. Access NagiosQL web UI Open the URL in a browser: login with NagiosQL admin and password 8. Integrate NagiosQL with Nagios Navigate to Administration -> Administration -> Config targets Click Modify icon next to localhost On Configuration domain administration page Configuration directories section should be all set. No change is needed Nagios configuration files and directories section, verify the following settings Nagios base directory: /usr/local/nagios/etc/ Import directory: /usr/local/nagios/etc/objects/ Picture base directory: (blank) Nagios command file: /usr/local/nagios/var/rw/nagios.cmd Nagios binary file: /usr/local/nagios/bin/nagios Nagios process file: /run/nagios.lock Nagios config file: /usr/local/nagios/etc/nagios.cfg Nagios cgi file: /usr/local/nagios/etc/cgi.cfg Nagios resource file: /usr/local/nagios/etc/resource.cfg Select 4.x in Nagios version Leave Access group “Unrestricted access” Check Active checkbox Click Save Edit Nagios Core configuration file Edit Nagios configuration file /usr/local/nagios/etc/nagios.cfg Comment all cfg_file and cfg_dir entries Add the following cfg_file and cfg_dir entries cfg_file=/usr/local/nagios/nagiosql/commands.cfgcfg_file=/usr/local/nagios/nagiosql/contactgroups.cfgcfg_file=/usr/local/nagios/nagiosql/contacts.cfgcfg_file=/usr/local/nagios/nagiosql/contacttemplates.cfgcfg_file=/usr/local/nagios/nagiosql/hostdependencies.cfgcfg_file=/usr/local/nagios/nagiosql/hostescalations.cfgcfg_file=/usr/local/nagios/nagiosql/hostextinfo.cfgcfg_file=/usr/local/nagios/nagiosql/hostgroups.cfgcfg_file=/usr/local/nagios/nagiosql/hosttemplates.cfgcfg_file=/usr/local/nagios/nagiosql/servicedependencies.cfgcfg_file=/usr/local/nagios/nagiosql/serviceescalations.cfgcfg_file=/usr/local/nagios/nagiosql/serviceextinfo.cfgcfg_file=/usr/local/nagios/nagiosql/servicegroups.cfgcfg_file=/usr/local/nagios/nagiosql/servicetemplates.cfgcfg_file=/usr/local/nagios/nagiosql/timeperiods.cfgcfg_dir=/usr/local/nagios/nagiosql/hostscfg_dir=/usr/local/nagios/nagiosql/services 9. Verify Nagios Core config files/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgWhen I run the above command, I get the error message of missing command.cfg file, etc. I go back to NagiosQL web UI, in each main section Supervision, Alerting, Commands, and Specialties, click “Write config file” to generate these files. Then the command reports no error or warning.10. Restart Nagios Core servicesystemctl restart nagiosNow Nagios Core and NagiosQL are successfully set up. You can view the monitoring status in the Nagios web UI and modify the monitoring via NagiosQL web UI.Nagios Core alternatives - Nagios Support Forum
Command:ls -la /usr/local/pnp4nagios/var/perfdata/localhost/The output from that command should resemble (it might take up to 5 minutes for files to appear here):total 5308drwxrwxr-x. 2 nagios nagios 4096 Feb 27 16:18 .drwxr-xr-x. 4 nagios nagios 4096 Feb 27 14:41 ..-rw-rw-r--. 1 nagios nagios 1151280 Feb 27 16:17 Current_Load.rrd-rw-rw-r--. 1 nagios nagios 3428 Feb 27 16:17 Current_Load.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:18 Current_Users.rrd-rw-rw-r--. 1 nagios nagios 1976 Feb 27 16:18 Current_Users.xml-rw-rw-r--. 1 nagios nagios 768008 Feb 27 16:18 _HOST_.rrd-rw-rw-r--. 1 nagios nagios 2555 Feb 27 16:18 _HOST_.xml-rw-rw-r--. 1 nagios nagios 768008 Feb 27 16:18 HTTP.rrd-rw-rw-r--. 1 nagios nagios 2565 Feb 27 16:18 HTTP.xml-rw-rw-r--. 1 nagios nagios 768008 Feb 27 16:14 PING.rrd-rw-rw-r--. 1 nagios nagios 2655 Feb 27 16:14 PING.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:15 Root_Partition.rrd-rw-rw-r--. 1 nagios nagios 2021 Feb 27 16:15 Root_Partition.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:15 SSH.rrd-rw-rw-r--. 1 nagios nagios 1938 Feb 27 16:15 SSH.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:16 Swap_Usage.rrd-rw-rw-r--. 1 nagios nagios 1974 Feb 27 16:16 Swap_Usage.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:17 Total_Processes.rrd-rw-rw-r--. 1 nagios nagios 2015 Feb 27 16:17 Total_Processes.xmlThere is also a web interface for PNP4Nagios. Open your web browser to the following URL: nagios_server with the DNS record or ip address of your Nagios Core server.This will display a page of test results, they should all be passed, most importantly is this statement at the bottom of the page:Your environment passed all requirements. Remove or rename the /usr/local/pnp4nagios/share/install.php file now.PNP4Nagios requires updating for the PHP/web component to correctly work. This does not affect the data collection and storing in RRD files however none of the web functionality works. Due to this issue, you will not be able to use PNP4Nagios as a data source in Grafana.To remove the install.php file execute the following command:RHEL | CentOS | Oracle Linux | Debian | Raspbian | Fedora | FreeBSD | Arch Linux | Gentoorm -f /usr/local/pnp4nagios/share/install.phpUbuntu | SLES | openSUSEsudo rm -f /usr/local/pnp4nagios/share/install.phpAfter executing the command you need to refresh your web browser and you will start to see the Nagios graphs. If you are seeing the graphs then everything appears to be functioning correctly. Your next step is to configure Nagios Core Web Interface Integration.NOTE: If you receive an error when attempting to validate like the below (sizeof() parameter must be an array or an object that implements Countable):Open the /usr/local/pnp4nagios/share/application/models/data.php file for editing.Replace if(sizeof($pages)>0) with if(is_array($pages). Nagios Alternatives Similar projects and alternatives to Nagios Nagios. Suggest alternative; Edit details; Nextcloud. 1 620 28,664 10.0 PHP Nagios VS Nextcloud ☁️ Nextcloud server, a safeNagios alternatives for Windows monitoring? - Nagios Support
/usr/local/nagios/etc/nagios.cfgsed -i '' 's/^#service_perfdata_file_processing_interval=.*/service_perfdata_file_processing_interval=15/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/^#service_perfdata_file_processing_command=.*/service_perfdata_file_processing_command=process-service-perfdata-file-bulk-npcd/g' /usr/local/nagios/etc/nagios.cfgTwo nagios commands need to be defined, it is recommended to place these in the /usr/local/nagios/etc/objects/commands.cfg file:define command { command_name process-service-perfdata-file-bulk-npcd command_line /bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$ }define command { command_name process-host-perfdata-file-bulk-npcd command_line /bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.$TIMET$ }To make the required changes above you can manually edit the file, or the following commands will add those commands for you:RHEL | CentOS | Oracle Linux | Debian | Raspbian | Fedora | FreeBSD | Arch Linux | Gentooecho '' >> /usr/local/nagios/etc/objects/commands.cfgecho 'define command {' >> /usr/local/nagios/etc/objects/commands.cfgecho ' command_name process-host-perfdata-file-bulk-npcd' >> /usr/local/nagios/etc/objects/commands.cfgecho ' command_line /bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.$TIMET$' >> /usr/local/nagios/etc/objects/commands.cfgecho ' }' >> /usr/local/nagios/etc/objects/commands.cfgecho '' >> /usr/local/nagios/etc/objects/commands.cfgecho 'define command {' >> /usr/local/nagios/etc/objects/commands.cfgecho ' command_name process-service-perfdata-file-bulk-npcd' >> /usr/local/nagios/etc/objects/commands.cfgecho ' command_line /bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$' >> /usr/local/nagios/etc/objects/commands.cfgecho ' }' >> /usr/local/nagios/etc/objects/commands.cfgecho '' >> /usr/local/nagios/etc/objects/commands.cfgUbuntu | SLES | openSUSEsudo sh -c "echo '' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo 'define command {' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo ' command_name process-host-perfdata-file-bulk-npcd' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo ' command_line /bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.\$TIMET\$' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo ' }' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo '' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo 'define command {' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo ' command_name process-service-perfdata-file-bulk-npcd' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo ' command_line /bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.\$TIMET\$' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo ' }' >> /usr/local/nagios/etc/objects/commands.cfg"sudo sh -c "echo '' >> /usr/local/nagios/etc/objects/commands.cfg" Once those changes have been performed you will need to verify the Nagios Core configuration with the following command:RHEL | CentOS | Oracle Linux | Debian | Raspbian | Fedora | FreeBSD | Arch Linux | Gentoo/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgUbuntu | SLES | openSUSEsudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgIf the verification was successful then you can restart the nagios service:RHEL | CentOS | Oracle Linux===== 5/6 =====service nagios restart===== 7/8 =====systemctl restart nagios.serviceUbuntu===== 14 =====sudo service nagios restart===== 15/16/17/18 =====sudo systemctl restart nagios.serviceSLES | openSUSE===== SUSE SLES 11 =====sudo /sbin/service nagios restart===== SUSE SLES 12 | openSUSE =====sudo systemctl restart nagios.serviceDebian | Raspbian===== 7 =====service nagios restart===== 8/9 =====systemctl restart nagios.serviceFedora | Arch Linuxsystemctl restart nagios.serviceFreeBSDservice nagios restartGentoorc-service nagios restart The next step is to verify that PNP4Nagios is working.Verify PNP4Nagios Is WorkingThe first step in verifying that PNP4Nagios is working is to look at the RRD files that should now exist. By following this guide they should exist in /usr/local/pnp4nagios/var/perfdata/. There will be a folder for each Nagios host, here you can see the localhost and it's services by executing this Entries.To make the required changes above you can manually edit the file, or the following commands will update those templates for you:RHEL | CentOS | Oracle Linux | Debian | Raspbian | Fedora | Arch Linux | Gentoosed -i '/name.*generic-host/a\ use host-pnp' /usr/local/nagios/etc/objects/templates.cfgsed -i '/name.*generic-service/a\ use service-pnp' /usr/local/nagios/etc/objects/templates.cfgUbuntu | SLES | openSUSEsudo sh -c "sed -i '/name.*generic-host/a\ use host-pnp' /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "sed -i '/name.*generic-service/a\ use service-pnp' /usr/local/nagios/etc/objects/templates.cfg"FreeBSDperl -ni.bak -le 'print; print " use host-pnp" if /name.*generic-host/' /usr/local/nagios/etc/objects/templates.cfgperl -ni.bak -le 'print; print " use service-pnp" if /name.*generic-service/' /usr/local/nagios/etc/objects/templates.cfgOnce those changes have been performed you will need to verify the Nagios Core configuration with the following command:RHEL | CentOS | Oracle Linux | Debian | Raspbian | Fedora | FreeBSD | Arch Linux | Gentoo/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgUbuntu | SLES | openSUSEsudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgIf the verification was successful then you can restart the nagios service:RHEL | CentOS | Oracle Linux===== 5/6 =====service nagios restart===== 7/8 =====systemctl restart nagios.serviceUbuntu===== 14 =====sudo service nagios restart===== 15/16/17 =====sudo systemctl restart nagios.serviceSLES | openSUSE===== SUSE SLES 11 =====sudo /sbin/service nagios restart===== SUSE SLES 12 | openSUSE =====sudo systemctl restart nagios.serviceDebian | Raspbian===== 7 =====service nagios restart===== 8/9 =====systemctl restart nagios.serviceFedora | Arch Linuxsystemctl restart nagios.serviceFreeBSDservice nagios restartGentoorc-service nagios restartFinally open the Nagios Core web interface and navigate to the Services page, you should now see a graph icon for all the hosts and services. Clicking on an icon will open the host or service graph for that object in the PNP4Nagios web interface.This completes the steps required for integrating PNP4Nagios with Nagios Core.Additional ReadingThis documentation would not have been possible without the official documentation available here: ThoughtsFor any support related questions please visit the Nagios Support Forums at: Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.Nagios vs Solarwinds SAM - Nagios Alternative
&& sizeof($pages)>0) in both places it exists in the file.Refresh the page.Nagios Core Web Interface IntegrationPNP4Nagios can also be integrated into the Nagios Core web interface, this is quite useful however it does require some changes to your Nagios object definitions.Nagios Core uses the action_url directive in object definitions to provide an icon/link when viewing host or service objects in the web interface.This means that every object in Nagios Core requires the action_url directive to be defined. This can be easily achieved by using a template and using that template in your object definitions.In a fresh installation of Nagios Core the following host and service templates need to be added to /usr/local/nagios/etc/objects/templates.cfg file:define host { name host-pnp action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_ register 0}define service { name service-pnp action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$ register 0}To make the required changes above you can manually edit the file, or the following commands will add those templates for you:RHEL | CentOS | Oracle Linux | Debian | Raspbian | Fedora | FreeBSD | Arch Linux | Gentooecho '' >> /usr/local/nagios/etc/objects/templates.cfgecho 'define host {' >> /usr/local/nagios/etc/objects/templates.cfgecho ' name host-pnp' >> /usr/local/nagios/etc/objects/templates.cfgecho ' action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_' >> /usr/local/nagios/etc/objects/templates.cfgecho ' register 0' >> /usr/local/nagios/etc/objects/templates.cfgecho '}' >> /usr/local/nagios/etc/objects/templates.cfgecho '' >> /usr/local/nagios/etc/objects/templates.cfgecho 'define service {' >> /usr/local/nagios/etc/objects/templates.cfgecho ' name service-pnp' >> /usr/local/nagios/etc/objects/templates.cfgecho ' action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$' >> /usr/local/nagios/etc/objects/templates.cfgecho ' register 0' >> /usr/local/nagios/etc/objects/templates.cfgecho '}' >> /usr/local/nagios/etc/objects/templates.cfgecho '' >> /usr/local/nagios/etc/objects/templates.cfgUbuntu | SLES | openSUSEsudo sh -c "echo '' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo 'define host {' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo ' name host-pnp' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo ' action_url /pnp4nagios/index.php/graph?host=\$HOSTNAME\$&srv=_HOST_' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo ' register 0' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo '}' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo '' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo 'define service {' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo ' name service-pnp' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo ' action_url /pnp4nagios/index.php/graph?host=\$HOSTNAME\$&srv=\$SERVICEDESC\$' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo ' register 0' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo '}' >> /usr/local/nagios/etc/objects/templates.cfg"sudo sh -c "echo '' >> /usr/local/nagios/etc/objects/templates.cfg"Then to use those templates you need to include them in your host and service directives. This example will update the generic-host and generic-service templates to include these templates, here is how they should look:define host{ name generic-host ; The name of this host template use host-pnpdefine service{ name generic-service ; The 'name' of this service template use service-pnpIn the example above the remaining options in the default templates have been omitted, there is no point showing all of thoseNagios Alternatives and Reviews - LibHunt
Home » Categories » Products » Nagios XI » Installation Article Number: 16 | Rating: Unrated | Last Updated by tlea on Wed, Jul 19, 2017 at 12:42 AM How to Select A Nagios XI Download This brief introduction of Nagios XI download choices will show you which option is best for you and get you up and running with Nagios XI in minutes.Final ThoughtsFor any support related questions please visit the Nagios Support Forums at: Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more! Posted by: on Sun, Dec 21, 2014 at 2:18 PM. This article has been viewed 7488 times.Filed Under: Installation Have a question? Try our Forums! | Give Feedback Attachments There are no attachments for this article. Related Articles Enabling Oracle Linux Optional RepositoryViewed 19477 times since Mon, May 14, 2018 Nagios XI - Downgrading Nagios CoreViewed 8874 times since Wed, Aug 15, 2018 Nagios XI - Installation PrerequisitesViewed 13824 times since Sun, Dec 21, 2014 Nagios XI - Logging InViewed 8315 times since Wed, Jul 19, 2017 Starting a Nagios XI TrialViewed 10619 times since Tue, Jan 12, 2021 Nagios XI - Virtual Machine NotesViewed 6967 times since Thu, Jan 28, 2016 Nagios XI - Hardware RequirementsViewed 30162 times since Sun, Dec 21, 2014. Nagios Alternatives Similar projects and alternatives to Nagios Nagios. Suggest alternative; Edit details; Nextcloud. 1 620 28,664 10.0 PHP Nagios VS Nextcloud ☁️ Nextcloud server, a safe Nagios Alternatives. Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or registered trademarks owned by Nagios Enterprises. All other6 Nagios Alternatives and Competitors
Step.FreeBSDPrerequisitesPerform these steps to install the pre-requisite packages.pkg install -y rrdtool p5-RRD-Simple p5-Time-HiRes php70-gd php70-zlib php70-socketsDownloading the Sourcecd /tmpwget -O pnp4nagios.tar.gz xzf pnp4nagios.tar.gzCompile & Installcd pnp4nagios-0.6.26sed -i '' 's/g root/g wheel/g' scripts/Makefile.in./configure --with-httpd-conf=/usr/local/etc/apache24/Includesgmake allgmake installgmake install-webconfgmake install-configgmake install-initConfigure & Start Service / DaemonThe npcd service needs to be configured to start on boot, it also needs to be started. The Apache apache24 service is also restarted at this point.echo '/usr/local/etc/rc.d/npcd start' >> /etc/rc.localservice npcd startsed -i '' 's/^#LoadModule rewrite_module/LoadModule rewrite_module/g' /usr/local/etc/apache24/httpd.confservice apache24 restartPlease proceed to the Nagios Command Configuration section for the next step. Nagios Command ConfigurationOnce PNP4Nagios is running as the npcd service, the next step is to configure Nagios Core to send the performance data to PNP4Nagios.This guide is configuring Nagios Core and PNP4Nagios in Bulk Mode. This documentation will not explain in detail how it all works, basically a bunch of temporary files are created and the npcd service preocesses these files and turns them into RRD files. Full detailed information is in the official PNP4Nagios documentation: following configuration changes are required to the /usr/local/nagios/etc/nagios.cfg file:process_performance_data=1host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdatahost_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$host_perfdata_file_mode=ahost_perfdata_file_processing_interval=15host_perfdata_file_processing_command=process-host-perfdata-file-bulk-npcdservice_perfdata_file=/usr/local/pnp4nagios/var/service-perfdataservice_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$service_perfdata_file_mode=aservice_perfdata_file_processing_interval=15service_perfdata_file_processing_command=process-service-perfdata-file-bulk-npcdIn a fresh installation of Nagios Core the directive process_performance_data is set to 0 and the other directives are commented out.To make the required changes above you can manually edit the file, or the following commands will make those changes for you:RHEL | CentOS | Oracle Linux | Debian | Raspbian | Fedora | Arch Linux | Gentoosed -i 's/process_performance_data=0/process_performance_data=1/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/#host_perfdata_file=/host_perfdata_file=/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/^host_perfdata_file=.*/host_perfdata_file=\/usr\/local\/pnp4nagios\/var\/service-perfdata/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/^#host_perfdata_file_template=.*/host_perfdata_file_template=DATATYPE::HOSTPERFDATA\\tTIMET::$TIMET$\\tHOSTNAME::$HOSTNAME$\\tHOSTPERFDATA::$HOSTPERFDATA$\\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\\tHOSTSTATE::$HOSTSTATE$\\tHOSTSTATETYPE::$HOSTSTATETYPE$/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/#host_perfdata_file_mode=/host_perfdata_file_mode=/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/^#host_perfdata_file_processing_interval=.*/host_perfdata_file_processing_interval=15/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/^#host_perfdata_file_processing_command=.*/host_perfdata_file_processing_command=process-host-perfdata-file-bulk-npcd/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/#service_perfdata_file=/service_perfdata_file=/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/^service_perfdata_file=.*/service_perfdata_file=\/usr\/local\/pnp4nagios\/var\/service-perfdata/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/^#service_perfdata_file_template=.*/service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\\tTIMET::$TIMET$\\tHOSTNAME::$HOSTNAME$\\tSERVICEDESC::$SERVICEDESC$\\tSERVICEPERFDATA::$SERVICEPERFDATA$\\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\\tHOSTSTATE::$HOSTSTATE$\\tHOSTSTATETYPE::$HOSTSTATETYPE$\\tSERVICESTATE::$SERVICESTATE$\\tSERVICESTATETYPE::$SERVICESTATETYPE$/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/#service_perfdata_file_mode=/service_perfdata_file_mode=/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/^#service_perfdata_file_processing_interval=.*/service_perfdata_file_processing_interval=15/g' /usr/local/nagios/etc/nagios.cfgsed -i 's/^#service_perfdata_file_processing_command=.*/service_perfdata_file_processing_command=process-service-perfdata-file-bulk-npcd/g' /usr/local/nagios/etc/nagios.cfgUbuntu | SLES | openSUSEsudo sh -c "sed -i 's/process_performance_data=0/process_performance_data=1/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/#host_perfdata_file=/host_perfdata_file=/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/^host_perfdata_file=.*/host_perfdata_file=\/usr\/local\/pnp4nagios\/var\/service-perfdata/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/^#host_perfdata_file_template=.*/host_perfdata_file_template=DATATYPE::HOSTPERFDATA\\\\tTIMET::\$TIMET\$\\\\tHOSTNAME::\$HOSTNAME\$\\\\tHOSTPERFDATA::\$HOSTPERFDATA\$\\\\tHOSTCHECKCOMMAND::\$HOSTCHECKCOMMAND\$\\\\tHOSTSTATE::\$HOSTSTATE\$\\\\tHOSTSTATETYPE::\$HOSTSTATETYPE\$/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/#host_perfdata_file_mode=/host_perfdata_file_mode=/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/^#host_perfdata_file_processing_interval=.*/host_perfdata_file_processing_interval=15/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/^#host_perfdata_file_processing_command=.*/host_perfdata_file_processing_command=process-host-perfdata-file-bulk-npcd/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/#service_perfdata_file=/service_perfdata_file=/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/^service_perfdata_file=.*/service_perfdata_file=\/usr\/local\/pnp4nagios\/var\/service-perfdata/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/^#service_perfdata_file_template=.*/service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\\\\tTIMET::\$TIMET\$\\\\tHOSTNAME::\$HOSTNAME\$\\\\tSERVICEDESC::\$SERVICEDESC\$\\\\tSERVICEPERFDATA::\$SERVICEPERFDATA\$\\\\tSERVICECHECKCOMMAND::\$SERVICECHECKCOMMAND\$\\\\tHOSTSTATE::\$HOSTSTATE\$\\\\tHOSTSTATETYPE::\$HOSTSTATETYPE\$\\\\tSERVICESTATE::\$SERVICESTATE\$\\\\tSERVICESTATETYPE::\$SERVICESTATETYPE\$/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/#service_perfdata_file_mode=/service_perfdata_file_mode=/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/^#service_perfdata_file_processing_interval=.*/service_perfdata_file_processing_interval=15/g' /usr/local/nagios/etc/nagios.cfg"sudo sh -c "sed -i 's/^#service_perfdata_file_processing_command=.*/service_perfdata_file_processing_command=process-service-perfdata-file-bulk-npcd/g' /usr/local/nagios/etc/nagios.cfg"FreeBSDsed -i '' 's/process_performance_data=0/process_performance_data=1/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/#host_perfdata_file=/host_perfdata_file=/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/^host_perfdata_file=.*/host_perfdata_file=\/usr\/local\/pnp4nagios\/var\/service-perfdata/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/^#host_perfdata_file_template=.*/host_perfdata_file_template=DATATYPE::HOSTPERFDATA\\tTIMET::$TIMET$\\tHOSTNAME::$HOSTNAME$\\tHOSTPERFDATA::$HOSTPERFDATA$\\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\\tHOSTSTATE::$HOSTSTATE$\\tHOSTSTATETYPE::$HOSTSTATETYPE$/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/#host_perfdata_file_mode=/host_perfdata_file_mode=/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/^#host_perfdata_file_processing_interval=.*/host_perfdata_file_processing_interval=15/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/^#host_perfdata_file_processing_command=.*/host_perfdata_file_processing_command=process-host-perfdata-file-bulk-npcd/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/#service_perfdata_file=/service_perfdata_file=/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/^service_perfdata_file=.*/service_perfdata_file=\/usr\/local\/pnp4nagios\/var\/service-perfdata/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/^#service_perfdata_file_template=.*/service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\\tTIMET::$TIMET$\\tHOSTNAME::$HOSTNAME$\\tSERVICEDESC::$SERVICEDESC$\\tSERVICEPERFDATA::$SERVICEPERFDATA$\\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\\tHOSTSTATE::$HOSTSTATE$\\tHOSTSTATETYPE::$HOSTSTATETYPE$\\tSERVICESTATE::$SERVICESTATE$\\tSERVICESTATETYPE::$SERVICESTATETYPE$/g' /usr/local/nagios/etc/nagios.cfgsed -i '' 's/#service_perfdata_file_mode=/service_perfdata_file_mode=/g'Comments
Can verify the availability and responsiveness of a standard service, such as notifications, or HTTP. Java management extensions (JMX), web monitoring and other methods are also alternatives to using agents. In Zabbix, JMX can be used to monitor Java-based applications. Web monitoring is used to check the availability of websites and supports HTTP and HTTPS. Zabbix collects data relating to the average download speed of a scenario, errors and error messages, response time and more. The Zabbix API The Zabbix application programming interface (API) is a web-based API to create new applications, automate tasks and integrate with third-party software, such as Go, Zabbix::Tiny or Zabbix sender. The JavaScript Object Notation format is used to base the API as a front-end web interface. The Zabbix API consists of many methods that are grouped together into separate APIs, each performing a specific service. For example, a method to create a new host is host.create; the method to log in as an admin is user.login. Utilizing the API, users can create applications to work with and display Zabbix information. Templates for monitoring capabilities Templates are custom-built add-ons that extend the functionality of Zabbix. Some templates are made by Zabbix and come packaged with the software ready for use, while others are built by Zabbix users. Templates enable Zabbix users to monitor network devices from vendors such as Cisco, Dell, HP and Juniper. Other templates can be used to monitor IBM, HP and Super Micro servers. Templates for application-based services include MS Exchange, Zenoss and PowerDNS. Templates can be created to monitor OSes and hypervisors as well. Infrastructure monitoring competitors to Zabbix Microsoft System Center Operations Manager (SCOM), Nagios and Zenoss are examples of competing IT infrastructure monitoring systems. SCOM enables configuration, management and monitoring for an IT ecosystem through one management console. SCOM can monitor server hardware, system services, OSes, hypervisors and applications, similar to Zabbix. SCOM also uses agent-based and agentless monitoring similar to Zabbix. Nagios is another open source monitoring program for IT environments. Nagios can monitor Linux, Unix and Windows OSes. Nagios offers multiple products, such as Core, XI, Log Server, Network Analyzer and Fusion. Nagios can run active checks that are self-initiated and run passive checks that are completed using external applications. Nagios uses both agent-based and agentless monitoring as well. Zenoss is monitoring software available in two forms: Zenoss Core and Zenoss Service Dynamics. Zenoss Core is the
2025-03-30Set date.timezone = 'America/Los_Angeles'vi /etc/php.inisystemctl restart httpd6. Start NagiosQL web installer Open the URL in a browser: Click Start Installation Verify the system meets all the requirements. Here is where I found out the PHP 5.4 in CentOS 7 doesn’t meet the requirement Click Next On NagiosQL Installation: Setup page Enter NagiosQL DB password, root password (the root password is MySQL root password), and NagiosQL admin password Check the checkboxes “Drop database if already exists?” “Import Nagios sample config?” (optional) “Create NagiosQL config paths?” set NagiosQL config path: /usr/local/nagios/nagiosql set Nagios config path: /usr/local/nagios/etc Click Next On NagiosQL Installation: Finishing Setup page, it should be all green if everything is right Delete the NagiosQL install directory 7. Access NagiosQL web UI Open the URL in a browser: login with NagiosQL admin and password 8. Integrate NagiosQL with Nagios Navigate to Administration -> Administration -> Config targets Click Modify icon next to localhost On Configuration domain administration page Configuration directories section should be all set. No change is needed Nagios configuration files and directories section, verify the following settings Nagios base directory: /usr/local/nagios/etc/ Import directory: /usr/local/nagios/etc/objects/ Picture base directory: (blank) Nagios command file: /usr/local/nagios/var/rw/nagios.cmd Nagios binary file: /usr/local/nagios/bin/nagios Nagios process file: /run/nagios.lock Nagios config file: /usr/local/nagios/etc/nagios.cfg Nagios cgi file: /usr/local/nagios/etc/cgi.cfg Nagios resource file: /usr/local/nagios/etc/resource.cfg Select 4.x in Nagios version Leave Access group “Unrestricted access” Check Active checkbox Click Save Edit Nagios Core configuration file Edit Nagios configuration file /usr/local/nagios/etc/nagios.cfg Comment all cfg_file and cfg_dir entries Add the following cfg_file and cfg_dir entries cfg_file=/usr/local/nagios/nagiosql/commands.cfgcfg_file=/usr/local/nagios/nagiosql/contactgroups.cfgcfg_file=/usr/local/nagios/nagiosql/contacts.cfgcfg_file=/usr/local/nagios/nagiosql/contacttemplates.cfgcfg_file=/usr/local/nagios/nagiosql/hostdependencies.cfgcfg_file=/usr/local/nagios/nagiosql/hostescalations.cfgcfg_file=/usr/local/nagios/nagiosql/hostextinfo.cfgcfg_file=/usr/local/nagios/nagiosql/hostgroups.cfgcfg_file=/usr/local/nagios/nagiosql/hosttemplates.cfgcfg_file=/usr/local/nagios/nagiosql/servicedependencies.cfgcfg_file=/usr/local/nagios/nagiosql/serviceescalations.cfgcfg_file=/usr/local/nagios/nagiosql/serviceextinfo.cfgcfg_file=/usr/local/nagios/nagiosql/servicegroups.cfgcfg_file=/usr/local/nagios/nagiosql/servicetemplates.cfgcfg_file=/usr/local/nagios/nagiosql/timeperiods.cfgcfg_dir=/usr/local/nagios/nagiosql/hostscfg_dir=/usr/local/nagios/nagiosql/services 9. Verify Nagios Core config files/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgWhen I run the above command, I get the error message of missing command.cfg file, etc. I go back to NagiosQL web UI, in each main section Supervision, Alerting, Commands, and Specialties, click “Write config file” to generate these files. Then the command reports no error or warning.10. Restart Nagios Core servicesystemctl restart nagiosNow Nagios Core and NagiosQL are successfully set up. You can view the monitoring status in the Nagios web UI and modify the monitoring via NagiosQL web UI.
2025-04-10Command:ls -la /usr/local/pnp4nagios/var/perfdata/localhost/The output from that command should resemble (it might take up to 5 minutes for files to appear here):total 5308drwxrwxr-x. 2 nagios nagios 4096 Feb 27 16:18 .drwxr-xr-x. 4 nagios nagios 4096 Feb 27 14:41 ..-rw-rw-r--. 1 nagios nagios 1151280 Feb 27 16:17 Current_Load.rrd-rw-rw-r--. 1 nagios nagios 3428 Feb 27 16:17 Current_Load.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:18 Current_Users.rrd-rw-rw-r--. 1 nagios nagios 1976 Feb 27 16:18 Current_Users.xml-rw-rw-r--. 1 nagios nagios 768008 Feb 27 16:18 _HOST_.rrd-rw-rw-r--. 1 nagios nagios 2555 Feb 27 16:18 _HOST_.xml-rw-rw-r--. 1 nagios nagios 768008 Feb 27 16:18 HTTP.rrd-rw-rw-r--. 1 nagios nagios 2565 Feb 27 16:18 HTTP.xml-rw-rw-r--. 1 nagios nagios 768008 Feb 27 16:14 PING.rrd-rw-rw-r--. 1 nagios nagios 2655 Feb 27 16:14 PING.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:15 Root_Partition.rrd-rw-rw-r--. 1 nagios nagios 2021 Feb 27 16:15 Root_Partition.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:15 SSH.rrd-rw-rw-r--. 1 nagios nagios 1938 Feb 27 16:15 SSH.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:16 Swap_Usage.rrd-rw-rw-r--. 1 nagios nagios 1974 Feb 27 16:16 Swap_Usage.xml-rw-rw-r--. 1 nagios nagios 384736 Feb 27 16:17 Total_Processes.rrd-rw-rw-r--. 1 nagios nagios 2015 Feb 27 16:17 Total_Processes.xmlThere is also a web interface for PNP4Nagios. Open your web browser to the following URL: nagios_server with the DNS record or ip address of your Nagios Core server.This will display a page of test results, they should all be passed, most importantly is this statement at the bottom of the page:Your environment passed all requirements. Remove or rename the /usr/local/pnp4nagios/share/install.php file now.PNP4Nagios requires updating for the PHP/web component to correctly work. This does not affect the data collection and storing in RRD files however none of the web functionality works. Due to this issue, you will not be able to use PNP4Nagios as a data source in Grafana.To remove the install.php file execute the following command:RHEL | CentOS | Oracle Linux | Debian | Raspbian | Fedora | FreeBSD | Arch Linux | Gentoorm -f /usr/local/pnp4nagios/share/install.phpUbuntu | SLES | openSUSEsudo rm -f /usr/local/pnp4nagios/share/install.phpAfter executing the command you need to refresh your web browser and you will start to see the Nagios graphs. If you are seeing the graphs then everything appears to be functioning correctly. Your next step is to configure Nagios Core Web Interface Integration.NOTE: If you receive an error when attempting to validate like the below (sizeof() parameter must be an array or an object that implements Countable):Open the /usr/local/pnp4nagios/share/application/models/data.php file for editing.Replace if(sizeof($pages)>0) with if(is_array($pages)
2025-04-20