new nagios install on manjaro ...

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: new nagios install on manjaro ...

Post by hsmith »

Are you able to access <IP/FQDN>/nagios yet? If not, can you post the contents of /usr/share/nagios/share
Former Nagios Employee.
me.
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post by LithiumKid1976 »

hi,
thanks for getting back to me, its still the same "error: the requested URLcould not be retrieved"

here is the contents of the

drwxrwxr-x 4 nagios nagios 4096 Mar 8 09:47 angularjs
drwxrwxr-x 3 nagios nagios 4096 Mar 8 09:47 bootstrap-3.3.0
-rw-rw-r-- 1 nagios nagios 536 Mar 8 09:47 config.inc.php
drwxrwxr-x 2 nagios nagios 4096 Mar 8 09:47 contexthelp
drwxrwxr-x 2 nagios nagios 4096 Mar 8 09:47 d3
drwxrwxr-x 3 nagios nagios 4096 Mar 8 09:47 docs
-rw-rw-r-- 1 nagios nagios 879 Mar 8 09:47 graph-header.html
-rw-rw-r-- 1 nagios nagios 4136 Mar 8 09:47 histogram-form.html
-rw-rw-r-- 1 nagios nagios 5579 Mar 8 09:47 histogram-graph.html
-rw-rw-r-- 1 nagios nagios 2855 Mar 8 09:47 histogram.html
-rw-rw-r-- 1 nagios nagios 2372 Mar 8 09:47 histogram-links.html
drwxrwxr-x 3 nagios nagios 4096 Mar 8 09:47 images
drwxrwxr-x 3 nagios nagios 4096 Mar 8 09:47 includes
-rw-rw-r-- 1 nagios nagios 1653 Mar 8 09:47 index.php
-rw-rw-r-- 1 nagios nagios 1660 Mar 8 09:47 infobox.html
drwxrwxr-x 2 nagios nagios 4096 Mar 8 09:47 js
-rw-rw-r-- 1 nagios nagios 1177 Mar 8 09:47 jsonquery.html
-rw-rw-r-- 1 nagios nagios 8745 Mar 8 09:47 main.php
-rw-rw-r-- 1 nagios nagios 1967 Mar 8 09:47 map-directive.html
-rw-rw-r-- 1 nagios nagios 3824 Mar 8 09:47 map-form.html
-rw-rw-r-- 1 nagios nagios 2627 Mar 8 09:47 map.html
-rw-rw-r-- 1 nagios nagios 623 Mar 8 09:47 map-links.html
-rw-rw-r-- 1 nagios nagios 1723 Mar 8 09:47 map-popup.html
drwxrwxr-x 2 nagios nagios 4096 Mar 8 09:47 media
-rw-rw-r-- 1 nagios nagios 26 Mar 8 09:47 robots.txt
-rw-rw-r-- 1 nagios nagios 657 Mar 8 09:47 rss-corebanner.php
-rw-rw-r-- 1 nagios nagios 1071 Mar 8 09:47 rss-corefeed.html
-rw-rw-r-- 1 nagios nagios 898 Mar 8 09:47 rss-corefeed.php
-rw-rw-r-- 1 nagios nagios 544 Mar 8 09:47 rss-newsfeed.html
-rw-rw-r-- 1 nagios nagios 1068 Mar 8 09:47 rss-newsfeed.php
-rw-rw-r-- 1 nagios nagios 6275 Mar 8 09:47 side.php
drwxrwxr-x 2 nagios nagios 4096 Mar 8 09:47 spin
drwxrwxr-x 2 nagios nagios 4096 Mar 8 09:47 ssi
drwxrwxr-x 2 nagios nagios 4096 Mar 8 09:47 stylesheets
-rw-rw-r-- 1 nagios nagios 4243 Mar 8 09:47 trends-form.html
-rw-rw-r-- 1 nagios nagios 4256 Mar 8 09:47 trends-graph.html
-rw-rw-r-- 1 nagios nagios 852 Mar 8 09:47 trends-host-yaxis.html
-rw-rw-r-- 1 nagios nagios 2990 Mar 8 09:47 trends.html
-rw-rw-r-- 1 nagios nagios 3586 Mar 8 09:47 trends-links.html
-rw-rw-r-- 1 nagios nagios 1065 Mar 8 09:47 trends-service-yaxis.html
***********************************************************************************

Also, the UFW is on, could this be the issue? (although, that said, when i disable it , i still cant connect :) )
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: new nagios install on manjaro ...

Post by rkennedy »

The outputs of that file look good.

What is the output of netstat -anp|grep 22? I want to make sure apache is listening.

Also, can you post your error_log / access_log?

While the instructions you posted are for arch, when you bring Manjaro into the mix it does change things a little bit. That's probably what we're working through at this point.
Former Nagios Employee
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post by LithiumKid1976 »

output of netstat -amp|grep 22
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:42296 0.0.0.0:* LISTEN -
tcp 0 256 10.0.2.127:22 10.0.0.57:53720 ESTABLISHED -
tcp 1 0 127.0.0.1:37989 127.0.0.1:42296 CLOSE_WAIT -
tcp6 0 0 :::22 :::* LISTEN -
unix 2 [ ACC ] SEQPACKET LISTENING 8224 - /run/udev/control
unix 2 [ ACC ] SEQPACKET LISTENING 8225 - /run/systemd/coredump


Which error_logs / access_logs are required. i only see some for CUPS.. :)
Thanks
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: new nagios install on manjaro ...

Post by rkennedy »

LithiumKid1976 wrote:output of netstat -amp|grep 22
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:42296 0.0.0.0:* LISTEN -
tcp 0 256 10.0.2.127:22 10.0.0.57:53720 ESTABLISHED -
tcp 1 0 127.0.0.1:37989 127.0.0.1:42296 CLOSE_WAIT -
tcp6 0 0 :::22 :::* LISTEN -
unix 2 [ ACC ] SEQPACKET LISTENING 8224 - /run/udev/control
unix 2 [ ACC ] SEQPACKET LISTENING 8225 - /run/systemd/coredump


Which error_logs / access_logs are required. i only see some for CUPS.. :)
Thanks
Ah, my apologies. It should have been [/icode]netstat -anp|grep 80[/icode]

The error_log and access_log should be under /var/log/ somewhere, possibly /var/log/httpd or /var/log/apache -- I don't know the exact folder structure on arch.
Former Nagios Employee
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post by LithiumKid1976 »

No bother,

Output of netstat -anp |grep 80

(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
udp6 0 0 fe80::212:3fff:fecc:123 :::* -
unix 2 [ ] DGRAM 13141 808/systemd /run/user/1000/systemd/notify
unix 2 [ ACC ] STREAM LISTENING 13142 808/systemd /run/user/1000/systemd/private
unix 2 [ ACC ] STREAM LISTENING 13146 808/systemd /run/user/1000/bus
unix 2 [ ACC ] STREAM LISTENING 13147 808/systemd /run/user/1000/pulse/native
unix 2 [ ] DGRAM 11801 -
unix 3 [ ] STREAM CONNECTED 10808 - /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 10805 -
unix 2 [ ] DGRAM 10804 -
unix 3 [ ] STREAM CONNECTED 10806 -
unix 3 [ ] STREAM CONNECTED 10809 - /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 11805 - /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 10803 -
unix 3 [ ] STREAM CONNECTED 13123 808/systemd
unix 3 [ ] STREAM CONNECTED 1780 -
unix 3 [ ] STREAM CONNECTED 10807 - /run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 12580 -
unix 2 [ ] DGRAM 13133 808/systemd
[dbrennan@dbunix ~]$

Output of /var/nagios.log also

1457518891] Nagios 4.1.1 starting... (PID=8527)
[1457518891] Local time is Wed Mar 09 10:21:31 GMT 2016
[1457518891] LOG VERSION: 2.0
[1457518891] qh: Socket '/var/nagios/rw/nagios.qh' successfully initialized
[1457518891] qh: core query handler registered
[1457518891] nerd: Channel hostchecks registered successfully
[1457518891] nerd: Channel servicechecks registered successfully
[1457518891] nerd: Channel opathchecks registered successfully
[1457518891] nerd: Fully initialized and ready to rock!
[1457518891] wproc: Successfully registered manager as @wproc with query handler
[1457518891] wproc: Registry request: name=Core Worker 8528;pid=8528
[1457518891] wproc: Registry request: name=Core Worker 8531;pid=8531
[1457518891] wproc: Registry request: name=Core Worker 8530;pid=8530
[1457518891] wproc: Registry request: name=Core Worker 8529;pid=8529
[1457518891] Successfully launched command file worker with pid 8532
[1457518891] HOST ALERT: localhost;DOWN;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457518928] SERVICE ALERT: localhost;Current Load;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_load, ...) failed. errno is 2: No such file or directory
[1457518928] HOST ALERT: localhost;DOWN;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457518966] SERVICE ALERT: localhost;Current Users;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_users, ...) failed. errno is 2: No such file or directory
[1457518966] HOST ALERT: localhost;DOWN;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457518988] SERVICE ALERT: localhost;Current Load;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_load, ...) failed. errno is 2: No such file or directory
[1457518988] HOST ALERT: localhost;DOWN;SOFT;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457518993] Caught SIGTERM, shutting down...
[1457518994] Successfully shutdown... (PID=8527)
[1457518994] Event broker module 'NERD' deinitialized successfully.
[1457519580] Nagios 4.1.1 starting... (PID=2119)
[1457519580] Local time is Wed Mar 09 10:33:00 GMT 2016
[1457519580] LOG VERSION: 2.0
[1457519580] qh: Socket '/var/nagios/rw/nagios.qh' successfully initialized
[1457519580] qh: core query handler registered
[1457519580] nerd: Channel hostchecks registered successfully
[1457519580] nerd: Channel servicechecks registered successfully
[1457519580] nerd: Channel opathchecks registered successfully
[1457519580] nerd: Fully initialized and ready to rock!
[1457519580] wproc: Successfully registered manager as @wproc with query handler
[1457519580] wproc: Registry request: name=Core Worker 2135;pid=2135
[1457519580] wproc: Registry request: name=Core Worker 2134;pid=2134
[1457519580] wproc: Registry request: name=Core Worker 2133;pid=2133
[1457519580] wproc: Registry request: name=Core Worker 2132;pid=2132
[1457519580] Successfully launched command file worker with pid 2150
[1457519580] HOST ALERT: localhost;DOWN;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519617] SERVICE ALERT: localhost;Current Load;CRITICAL;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_load, ...) failed. errno is 2: No such file or directory
[1457519617] HOST ALERT: localhost;DOWN;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519623] SERVICE ALERT: localhost;Current Users;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_users, ...) failed. errno is 2: No such file or directory
[1457519677] SERVICE ALERT: localhost;Current Load;CRITICAL;HARD;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_load, ...) failed. errno is 2: No such file or directory
[1457519677] HOST ALERT: localhost;DOWN;SOFT;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519683] SERVICE ALERT: localhost;Current Users;CRITICAL;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_users, ...) failed. errno is 2: No such file or directory
[1457519692] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_http, ...) failed. errno is 2: No such file or directory
[1457519692] HOST ALERT: localhost;DOWN;SOFT;5;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519730] SERVICE ALERT: localhost;PING;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519730] HOST ALERT: localhost;DOWN;SOFT;6;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519743] SERVICE ALERT: localhost;Current Users;CRITICAL;HARD;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_users, ...) failed. errno is 2: No such file or directory
[1457519752] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_http, ...) failed. errno is 2: No such file or directory
[1457519752] HOST ALERT: localhost;DOWN;SOFT;7;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519767] SERVICE ALERT: localhost;Root Partition;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_disk, ...) failed. errno is 2: No such file or directory
[1457519767] HOST ALERT: localhost;DOWN;SOFT;8;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519790] SERVICE ALERT: localhost;PING;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519790] HOST ALERT: localhost;DOWN;SOFT;9;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519805] SERVICE ALERT: localhost;SSH;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ssh, ...) failed. errno is 2: No such file or directory
[1457519805] HOST ALERT: localhost;DOWN;HARD;10;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519805] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519812] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_http, ...) failed. errno is 2: No such file or directory
[1457519827] SERVICE ALERT: localhost;Root Partition;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_disk, ...) failed. errno is 2: No such file or directory
[1457519842] SERVICE ALERT: localhost;Swap Usage;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_swap, ...) failed. errno is 2: No such file or directory
[1457519850] SERVICE ALERT: localhost;PING;CRITICAL;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519865] SERVICE ALERT: localhost;SSH;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ssh, ...) failed. errno is 2: No such file or directory
[1457519872] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_http, ...) failed. errno is 2: No such file or directory
[1457519880] SERVICE ALERT: localhost;Total Processes;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_procs, ...) failed. errno is 2: No such file or directory
[1457519887] SERVICE ALERT: localhost;Root Partition;CRITICAL;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_disk, ...) failed. errno is 2: No such file or directory
[1457519902] SERVICE ALERT: localhost;Swap Usage;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_swap, ...) failed. errno is 2: No such file or directory
[1457519910] SERVICE ALERT: localhost;PING;CRITICAL;HARD;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457519925] SERVICE ALERT: localhost;SSH;CRITICAL;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ssh, ...) failed. errno is 2: No such file or directory
[1457519940] SERVICE ALERT: localhost;Total Processes;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_procs, ...) failed. errno is 2: No such file or directory
[1457519947] SERVICE ALERT: localhost;Root Partition;CRITICAL;HARD;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_disk, ...) failed. errno is 2: No such file or directory
[1457519962] SERVICE ALERT: localhost;Swap Usage;CRITICAL;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_swap, ...) failed. errno is 2: No such file or directory
[1457519985] SERVICE ALERT: localhost;SSH;CRITICAL;HARD;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ssh, ...) failed. errno is 2: No such file or directory
[1457520000] SERVICE ALERT: localhost;Total Processes;CRITICAL;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_procs, ...) failed. errno is 2: No such file or directory
[1457520022] SERVICE ALERT: localhost;Swap Usage;CRITICAL;HARD;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_swap, ...) failed. errno is 2: No such file or directory
[1457520060] SERVICE ALERT: localhost;Total Processes;CRITICAL;HARD;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_procs, ...) failed. errno is 2: No such file or directory
[1457523180] Auto-save of retention data completed successfully.
[1457524630] Caught SIGTERM, shutting down...
[1457524630] Successfully shutdown... (PID=2119)
[1457524630] Event broker module 'NERD' deinitialized successfully.
[1457524630] Nagios 4.1.1 starting... (PID=9539)
[1457524630] Local time is Wed Mar 09 11:57:10 GMT 2016
[1457524630] LOG VERSION: 2.0
[1457524630] qh: Socket '/var/nagios/rw/nagios.qh' successfully initialized
[1457524630] qh: core query handler registered
[1457524630] nerd: Channel hostchecks registered successfully
[1457524630] nerd: Channel servicechecks registered successfully
[1457524630] nerd: Channel opathchecks registered successfully
[1457524630] nerd: Fully initialized and ready to rock!
[1457524630] wproc: Successfully registered manager as @wproc with query handler
[1457524630] wproc: Registry request: name=Core Worker 9541;pid=9541
[1457524630] wproc: Registry request: name=Core Worker 9543;pid=9543
[1457524630] wproc: Registry request: name=Core Worker 9542;pid=9542
[1457524630] wproc: Registry request: name=Core Worker 9540;pid=9540
[1457524630] Successfully launched command file worker with pid 9549
[1457527072] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457528230] Auto-save of retention data completed successfully.
[1457531830] Auto-save of retention data completed successfully.
[1457534310] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457535430] Auto-save of retention data completed successfully.
[1457539030] Auto-save of retention data completed successfully.
[1457541510] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457543056] Warning: A system time change of 1100 seconds (0d 0h 18m 20s forwards in time) has been detected. Compensating...
[1457543730] Auto-save of retention data completed successfully.
[1457544724] Caught SIGTERM, shutting down...
[1457544724] Successfully shutdown... (PID=9539)
[1457544724] Event broker module 'NERD' deinitialized successfully.
[1457693083] Nagios 4.1.1 starting... (PID=7644)
[1457693083] Local time is Fri Mar 11 10:44:43 GMT 2016
[1457693083] LOG VERSION: 2.0
[1457693083] qh: Socket '/var/nagios/rw/nagios.qh' successfully initialized
[1457693083] qh: core query handler registered
[1457693083] nerd: Channel hostchecks registered successfully
[1457693083] nerd: Channel servicechecks registered successfully
[1457693083] nerd: Channel opathchecks registered successfully
[1457693083] nerd: Fully initialized and ready to rock!
[1457693083] wproc: Successfully registered manager as @wproc with query handler
[1457693083] wproc: Registry request: name=Core Worker 7646;pid=7646
[1457693083] wproc: Registry request: name=Core Worker 7645;pid=7645
[1457693083] wproc: Registry request: name=Core Worker 7648;pid=7648
[1457693083] wproc: Registry request: name=Core Worker 7647;pid=7647
[1457693083] Successfully launched command file worker with pid 7651
[1457693083] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457695952] Caught SIGTERM, shutting down...
[1457695952] Successfully shutdown... (PID=7644)
[1457695952] Event broker module 'NERD' deinitialized successfully.
[1457695952] Nagios 4.1.1 starting... (PID=11281)
[1457695952] Local time is Fri Mar 11 11:32:32 GMT 2016
[1457695952] LOG VERSION: 2.0
[1457695952] qh: Socket '/var/nagios/rw/nagios.qh' successfully initialized
[1457695952] qh: core query handler registered
[1457695952] nerd: Channel hostchecks registered successfully
[1457695952] nerd: Channel servicechecks registered successfully
[1457695952] nerd: Channel opathchecks registered successfully
[1457695952] nerd: Fully initialized and ready to rock!
[1457695952] wproc: Successfully registered manager as @wproc with query handler
[1457695952] wproc: Registry request: name=Core Worker 11282;pid=11282
[1457695952] wproc: Registry request: name=Core Worker 11285;pid=11285
[1457695952] wproc: Registry request: name=Core Worker 11283;pid=11283
[1457695952] wproc: Registry request: name=Core Worker 11284;pid=11284
[1457695952] Successfully launched command file worker with pid 11286
[1457699552] Auto-save of retention data completed successfully.
[1457700319] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457703152] Auto-save of retention data completed successfully.
[1457706752] Auto-save of retention data completed successfully.
[1457707519] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457710352] Auto-save of retention data completed successfully.
[1457713034] Caught SIGTERM, shutting down...
[1457713034] Successfully shutdown... (PID=11281)
[1457713034] Event broker module 'NERD' deinitialized successfully.
[1458120556] Nagios 4.1.1 starting... (PID=17461)
[1458120556] Local time is Wed Mar 16 09:29:16 GMT 2016
[1458120556] LOG VERSION: 2.0
[1458120556] qh: Socket '/var/nagios/rw/nagios.qh' successfully initialized
[1458120556] qh: core query handler registered
[1458120556] nerd: Channel hostchecks registered successfully
[1458120556] nerd: Channel servicechecks registered successfully
[1458120556] nerd: Channel opathchecks registered successfully
[1458120556] nerd: Fully initialized and ready to rock!
[1458120556] wproc: Successfully registered manager as @wproc with query handler
[1458120556] wproc: Registry request: name=Core Worker 17462;pid=17462
[1458120556] wproc: Registry request: name=Core Worker 17465;pid=17465
[1458120556] wproc: Registry request: name=Core Worker 17463;pid=17463
[1458120556] wproc: Registry request: name=Core Worker 17464;pid=17464
[1458120557] Successfully launched command file worker with pid 17466
[1458120557] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1458124156] Auto-save of retention data completed successfully.
[1458125528] Caught SIGTERM, shutting down...
[1458125529] Successfully shutdown... (PID=17461)
[1458125529] Event broker module 'NERD' deinitialized successfully.
[1458125529] Nagios 4.1.1 starting... (PID=30357)
[1458125529] Local time is Wed Mar 16 10:52:09 GMT 2016
[1458125529] LOG VERSION: 2.0
[1458125529] qh: Socket '/var/nagios/rw/nagios.qh' successfully initialized
[1458125529] qh: core query handler registered
[1458125529] nerd: Channel hostchecks registered successfully
[1458125529] nerd: Channel servicechecks registered successfully
[1458125529] nerd: Channel opathchecks registered successfully
[1458125529] nerd: Fully initialized and ready to rock!
[1458125529] wproc: Successfully registered manager as @wproc with query handler
[1458125529] wproc: Registry request: name=Core Worker 30358;pid=30358
[1458125529] wproc: Registry request: name=Core Worker 30361;pid=30361
[1458125529] wproc: Registry request: name=Core Worker 30359;pid=30359
[1458125529] wproc: Registry request: name=Core Worker 30360;pid=30360
[1458125529] Successfully launched command file worker with pid 30366
[1458127792] HOST NOTIFICATION: nagiosadmin;localhost;DOWN;notify-host-by-email;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1458129129] Auto-save of retention data completed successfully.
[1458132356] Caught SIGTERM, shutting down...
[1458132357] Successfully shutdown... (PID=30357)
[1458132357] Event broker module 'NERD' deinitialized successfully.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: new nagios install on manjaro ...

Post by rkennedy »

This would be the nagios log file -- can you please post the access_log and error_log?

You'll need to check out your apache configuration, as it does not look like the service is listening on port 80. Can you run curl 127.0.0.1 and post the result?

For reference, I think once you figure out what's going on exactly with apache, Nagios should be functioning.

Code: Select all

[1457518891] HOST ALERT: localhost;DOWN;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457518928] SERVICE ALERT: localhost;Current Load;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_load, ...) failed. errno is 2: No such file or directory
[1457518928] HOST ALERT: localhost;DOWN;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457518966] SERVICE ALERT: localhost;Current Users;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_users, ...) failed. errno is 2: No such file or directory
[1457518966] HOST ALERT: localhost;DOWN;SOFT;3;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
[1457518988] SERVICE ALERT: localhost;Current Load;CRITICAL;SOFT;2;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_load, ...) failed. errno is 2: No such file or directory
[1457518988] HOST ALERT: localhost;DOWN;SOFT;4;(No output on stdout) stderr: execvp(/usr/share/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
These errors indicate that you haven't installed the plugins yet.
Former Nagios Employee
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post by LithiumKid1976 »

Hi
thanks for that.
the output of curl is
curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused

Ive searched for access_logs, and error_logs but can only locate them in the /var/log/cups/ directory.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: new nagios install on manjaro ...

Post by rkennedy »

Can you verify apache is running?
Former Nagios Employee
LithiumKid1976
Posts: 16
Joined: Wed Mar 09, 2016 5:43 am

Re: new nagios install on manjaro ...

Post by LithiumKid1976 »

hi
so i had a look at this.

sudo nano /etc/httpd/conf/httpd.conf
and added this,
Include "conf/extra/nagios.conf"
removing some other stuff that was there (arch documentaion very unclear on this)

so now when i go to 10.0.2.127, i get "welcome to arch" screen
and if i go to 10.0.2.127/nagios im prompted for a username and password. (of which i've long since forgotten :) ) i will have to see if i can reset that now..

think we are getting closer.. :)
Locked