{"id":939,"date":"2016-04-12T05:39:00","date_gmt":"2016-04-12T12:39:00","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=939"},"modified":"2016-04-14T11:49:47","modified_gmt":"2016-04-14T18:49:47","slug":"nagios-on-linux-for-sparc","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/nagios-on-linux-for-sparc\/","title":{"rendered":"Nagios on Linux for SPARC"},"content":{"rendered":"

I recently experimented a little with Linux for SPARC(more here https:\/\/oss.oracle.com\/projects\/linux-sparc\/) and found it to be surprisingly stable. One of the environments I support is a pure OVM for SPARC environment and no luxury of Linux. So I am running some open source tools like Nagios, HAproxy etc on Solaris. Nagios has worked ok but is painful to compile. There are also some bugs that cause high utilization.<\/p>\n

I tried a Linux for SPARC instance and since they are pretty much like RedHat\/Oracle\/CentOS it means a fair bit of packages already exist. Nagios does not exist so I compiled it. Suffice to say installing dependencies from YUM and compiling was a breeze compared to Solaris.<\/p>\n

You can pretty much follow this doc to the letter:
\nhttps:\/\/assets.nagios.com\/downloads\/nagioscore\/docs\/Installing_Nagios_Core_From_Source.pdf<\/p>\n

Things to note.<\/strong>
\n1. By default the firewall does not allow inbound http.<\/p>\n

2. If you have permission issues in the web frontend or something like Internal server error you can disable(quick test) and then configure selinux for nagios scripts.<\/p>\n

\r\n# setenforce 0\r\n# chcon -R -t httpd_sys_content_t \/usr\/local\/nagios\r\n<\/pre>\n

3. Redo plugins with openssl for https checks. I wanted to do https checks.<\/p>\n

\r\n# yum install openssl-devel\r\n# pwd\r\n\/usr\/src\/nagios\/nagios-plugins-2.1.1\r\n\r\n# .\/configure --with-openssl --with-nagios-user=nagios --with-nagios-group=nagios\r\n[..]\r\n                    --with-openssl: yes\r\n# make\r\n# make install\r\n\r\n# \/usr\/local\/nagios\/libexec\/check_http -H 10.2.10.33 -S -p 215 \r\nHTTP OK: HTTP\/1.1 200 OK - 2113 bytes in 0.017 second response time |time=0.016925s;;;0.000000 size=2113B;;;0\r\n<\/pre>\n

I made a https command as follow.<\/strong><\/p>\n

\r\ncommand.cfg\r\n# 'check_https' command definition\r\ndefine command{\r\n        command_name    check_https\r\n        command_line    $USER1$\/check_http -H $HOSTADDRESS$ -S -p $ARG1$\r\n        }\r\n<\/pre>\n

And referenced as follow.<\/strong><\/p>\n

\r\nstorage.cfg\r\ndefine service{\r\n        use                             remote-service         ; Name of service template to use\r\n        host_name                       zfssa1\r\n        service_description             HTTPS\r\n        check_command                   check_https!215\r\n        notifications_enabled           0\r\n        }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

I recently experimented a little with Linux for SPARC(more here https:\/\/oss.oracle.com\/projects\/linux-sparc\/) and found it to be surprisingly stable. One of<\/p>\n","protected":false},"author":1,"featured_media":946,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,57],"tags":[],"class_list":["post-939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-nagios"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=939"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/939\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media\/946"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}